share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 14443 6b1fe6d0a26b
parent 14401 6c21bd8547dd
child 14445 12940929cb66
equal deleted inserted replaced
14442:448213112508 14443:6b1fe6d0a26b
  1123       AnimSwitchHog(deployedHog)
  1123       AnimSwitchHog(deployedHog)
  1124     end
  1124     end
  1125   end
  1125   end
  1126 
  1126 
  1127   if stage == spyKillStage then
  1127   if stage == spyKillStage then
  1128     if CurrentHedgehog == spyHog or GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then
  1128     if GetHogTeamName(CurrentHedgehog) ~= loc("Natives") then
  1129       EndTurn(true)
  1129       EndTurn(true)
  1130     else
  1130     else
       
  1131       if CurrentHedgehog == spyHog then
       
  1132         AnimSwitchHog(natives[leaksNum])
       
  1133       end
  1131       SetGearMessage(CurrentHedgehog, 0)
  1134       SetGearMessage(CurrentHedgehog, 0)
  1132       --AnimSwitchHog(natives[leaksNum])
       
  1133       SetTurnTimeLeft(MAX_TURN_TIME)
  1135       SetTurnTimeLeft(MAX_TURN_TIME)
  1134     end
  1136     end
  1135   else
  1137   else
  1136     if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then
  1138     if freshDead ~= nil and GetHogTeamName(CurrentHedgehog) == loc("Natives") then
  1137       SetupHogDeadAnim(freshDead)
  1139       SetupHogDeadAnim(freshDead)