Просмотр исходного кода

Blinded stack should not be able to get morale

Evgeniy Meshcheryakov 2 лет назад
Родитель
Сommit
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);