Browse Source

Do not play mouse-over animation on petrified creatures

Ivan Savenko 2 years ago
parent
commit
d712a6b896
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/battle/BattleStacksController.cpp

+ 1 - 1
client/battle/BattleStacksController.cpp

@@ -850,7 +850,7 @@ void BattleStacksController::updateHoveredStacks()
 			continue;
 
 		stackAnimation[stack->ID]->setBorderColor(AnimationControls::getBlueBorder());
-		if (stackAnimation[stack->ID]->framesInGroup(ECreatureAnimType::MOUSEON) > 0 && stack->alive())
+		if (stackAnimation[stack->ID]->framesInGroup(ECreatureAnimType::MOUSEON) > 0 && stack->alive() && !stack->isFrozen())
 			stackAnimation[stack->ID]->playOnce(ECreatureAnimType::MOUSEON);
 
 	}