Browse Source

Blinded stack should not be able to get morale

Evgeniy Meshcheryakov 2 years ago
parent
commit
e9c2d4e857
1 changed files with 1 additions and 0 deletions
  1. 1 0
      server/battles/BattleFlowProcessor.cpp

+ 1 - 0
server/battles/BattleFlowProcessor.cpp

@@ -484,6 +484,7 @@ bool BattleFlowProcessor::rollGoodMorale(const CStack * next)
 		&& !next->waited()
 		&& !next->waited()
 		&& !next->fear
 		&& !next->fear
 		&& next->alive()
 		&& next->alive()
+		&& next->canMove()
 		&& nextStackMorale > 0)
 		&& nextStackMorale > 0)
 	{
 	{
 		auto diceSize = VLC->settings()->getVector(EGameSettings::COMBAT_GOOD_MORALE_DICE);
 		auto diceSize = VLC->settings()->getVector(EGameSettings::COMBAT_GOOD_MORALE_DICE);