diff --git a/OpenRA.Mods.Common/Traits/Render/WithInfantryBody.cs b/OpenRA.Mods.Common/Traits/Render/WithInfantryBody.cs index 28967beefd..839761dd6b 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithInfantryBody.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithInfantryBody.cs @@ -80,18 +80,6 @@ namespace OpenRA.Mods.Common.Traits.Render move = init.Self.Trait(); } - public void PlayStandAnimation(Actor self) - { - state = AnimationState.Waiting; - - var sequence = DefaultAnimation.GetRandomExistingSequence(Info.StandSequences, Game.CosmeticRandom); - if (sequence != null) - { - var normalized = NormalizeInfantrySequence(self, sequence); - DefaultAnimation.PlayRepeating(normalized); - } - } - protected override void Created(Actor self) { rsm = self.TraitOrDefault(); @@ -115,6 +103,18 @@ namespace OpenRA.Mods.Common.Traits.Render return hasIdleSequence && !IsModifyingSequence; } + public void PlayStandAnimation(Actor self) + { + state = AnimationState.Waiting; + + var sequence = DefaultAnimation.GetRandomExistingSequence(Info.StandSequences, Game.CosmeticRandom); + if (sequence != null) + { + var normalized = NormalizeInfantrySequence(self, sequence); + DefaultAnimation.PlayRepeating(normalized); + } + } + public void Attacking(Actor self, Target target, Armament a) { string sequence;