ACF1: Fix princess/elder flying very weirdly when punching to direction they look at
--- 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"