ACF1: Fix princess/elder flying very weirdly when punching to direction they look at
authorWuzzy <almikes@aol.com>
Sat, 30 Sep 2017 02:04:58 +0200
changeset 12605 d05a159e7874
parent 12604 a45f8eec6869
child 12606 f1e0fa009eb7
ACF1: Fix princess/elder flying very weirdly when punching to direction they look at
share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua	Sat Sep 30 01:45:01 2017 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/first_blood.lua	Sat Sep 30 02:04:58 2017 +0200
@@ -248,7 +248,7 @@
 end
 
 function DoNeedToTurn(gear)
-  if gear == princess then
+  if gear == princess and not princessDamaged then
     if GetX(princess) > GetX(youngh) then
       HogTurnLeft(princess, true)
       princessFace = "Left"
@@ -256,7 +256,7 @@
       HogTurnLeft(princess, false)
       princessFace = "Right"
     end
-  else
+  elseif gear == elderh and not elderDamaged then
     if GetX(elderh) > GetX(youngh) then
       HogTurnLeft(elderh, true)
       elderFace = "Left"