Don't change the animation when it's not your turn.
This commit is contained in:
committed by
Paul Chote
parent
3cc76f91b4
commit
0103c38c13
@@ -106,6 +106,9 @@ namespace OpenRA.Mods.Common.Traits.Render
|
|||||||
|
|
||||||
protected override void DamageStateChanged(Actor self)
|
protected override void DamageStateChanged(Actor self)
|
||||||
{
|
{
|
||||||
|
if (IsTraitDisabled)
|
||||||
|
return;
|
||||||
|
|
||||||
DefaultAnimation.PlayFetchIndex(NormalizeSequence(self, Info.Sequence), () => adjacent);
|
DefaultAnimation.PlayFetchIndex(NormalizeSequence(self, Info.Sequence), () => adjacent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user