From 0103c38c133f28026aa703f82e2207cc42c1cd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 19 Mar 2020 10:07:47 +0100 Subject: [PATCH] Don't change the animation when it's not your turn. --- OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs b/OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs index 43ee3f8a32..cd436420a6 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithWallSpriteBody.cs @@ -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); }