From 6df85be4b3bde68a51524e1f265cf537bfadcf0f Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Thu, 20 Apr 2023 18:12:10 +0300 Subject: [PATCH] Fixed death animation of Efreeti killed by petrification attack --- ChangeLog.md | 1 + client/battle/BattleAnimationClasses.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 3845f9ed2..99bdd07bc 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -6,6 +6,7 @@ * Fixed empty Black Market on game start * Fixed bad morale happening after waiting * Fixed good morale happening after defeating last enemy unit +* Fixed death animation of Efreeti killed by petrification attack * Adventure map spells are no longer visible on units in battle * RMG settings will now show all existing in game templates and not just those suitable for current settings * RMG settings (map size and two-level maps) that are not compatible with current template will be blocked diff --git a/client/battle/BattleAnimationClasses.cpp b/client/battle/BattleAnimationClasses.cpp index 96ffffbd4..dbb7c1705 100644 --- a/client/battle/BattleAnimationClasses.cpp +++ b/client/battle/BattleAnimationClasses.cpp @@ -137,7 +137,7 @@ bool StackActionAnimation::init() StackActionAnimation::~StackActionAnimation() { - if (stack->isFrozen()) + if (stack->isFrozen() && currGroup != ECreatureAnimType::DEATH && currGroup != ECreatureAnimType::DEATH_RANGED) myAnim->setType(ECreatureAnimType::HOLDING); else myAnim->setType(nextGroup);