mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
vcmi: remove BLOCK_LUCK bonus
To block a luck, just set both INDEPENDENT_MAX and INDEPENDENT_MIN to 0 of LUCK bonus
This commit is contained in:
@@ -398,12 +398,6 @@ void MoraleLuckBox::set(const IBonusBearer * node)
|
||||
text += CGI->generaltexth->arraytxt[113]; //unaffected by morale
|
||||
bonusValue = 0;
|
||||
}
|
||||
else if(!morale && node && node->hasBonusOfType(Bonus::BLOCK_LUCK))
|
||||
{
|
||||
// TODO: there is no text like "Unaffected by luck" so probably we need own text
|
||||
text += CGI->generaltexth->arraytxt[noneTxtId];
|
||||
bonusValue = 0;
|
||||
}
|
||||
else if(morale && node && node->hasBonusOfType(Bonus::NO_MORALE))
|
||||
{
|
||||
auto noMorale = node->getBonus(Selector::type()(Bonus::NO_MORALE));
|
||||
|
||||
Reference in New Issue
Block a user