Преглед изворни кода

Blinded stack should not be able to get morale

Evgeniy Meshcheryakov пре 2 година
родитељ
комит
e9c2d4e857
1 измењених фајлова са 1 додато и 0 уклоњено
  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->fear
 		&& next->alive()
+		&& next->canMove()
 		&& nextStackMorale > 0)
 	{
 		auto diceSize = VLC->settings()->getVector(EGameSettings::COMBAT_GOOD_MORALE_DICE);