1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Merge pull request #2773 from wb180/blindedStackMoraleFix

Blinded stack should not be able to get morale
This commit is contained in:
Ivan Savenko 2023-09-07 10:54:51 +03:00 committed by GitHub
commit bef97889e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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