Jelajahi Sumber

Fixed death animation of Efreeti killed by petrification attack

Ivan Savenko 2 tahun lalu
induk
melakukan
6df85be4b3
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      ChangeLog.md
  2. 1 1
      client/battle/BattleAnimationClasses.cpp

+ 1 - 0
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

+ 1 - 1
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);