Don't change the animation when it's not your turn.

This commit is contained in:
Matthias Mailänder
2020-03-19 10:07:47 +01:00
committed by Paul Chote
parent 3cc76f91b4
commit 0103c38c13

View File

@@ -106,6 +106,9 @@ namespace OpenRA.Mods.Common.Traits.Render
protected override void DamageStateChanged(Actor self)
{
if (IsTraitDisabled)
return;
DefaultAnimation.PlayFetchIndex(NormalizeSequence(self, Info.Sequence), () => adjacent);
}