1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Fix sonar & json

This commit is contained in:
Ivan Savenko
2025-05-19 21:07:28 +03:00
parent cc5f47a085
commit a6cf671a68
4 changed files with 19 additions and 24 deletions

View File

@@ -748,13 +748,10 @@ void BattleFlowProcessor::stackTurnTrigger(const CBattleInfoCallback & battle, c
break;
}
}
if (fearsomeCreature)
if (fearsomeCreature && gameHandler->randomizer->rollCombatAbility(opponentArmyID, 10)) //fixed 10%
{
if (gameHandler->randomizer->rollCombatAbility(opponentArmyID, 10)) //fixed 10%
{
bte.effect = vstd::to_underlying(BonusType::FEAR);
gameHandler->sendAndApply(bte);
}
bte.effect = vstd::to_underlying(BonusType::FEAR);
gameHandler->sendAndApply(bte);
}
}
BonusList bl = *(st->getBonuses(Selector::type()(BonusType::ENCHANTER)));