Fix LeapAttack setting attack.IsAiming too early

This commit is contained in:
abcdefg30
2019-01-18 23:57:19 +01:00
committed by Paul Chote
parent 3039b1d710
commit 428155c093

View File

@@ -44,7 +44,10 @@ namespace OpenRA.Mods.Cnc.Activities
targetMobile = target.Actor.TraitOrDefault<Mobile>();
edible = target.Actor.TraitOrDefault<EdibleByLeap>();
}
}
protected override void OnFirstRun(Actor self)
{
attack.IsAiming = true;
}
@@ -98,7 +101,6 @@ namespace OpenRA.Mods.Cnc.Activities
protected override void OnLastRun(Actor self)
{
attack.IsAiming = false;
base.OnLastRun(self);
}
}
}