mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Implemented visit mode "limiter". Fixed h3m variable loading
This commit is contained in:
@@ -101,6 +101,9 @@ bool Rewardable::Limiter::heroAllowed(const CGHeroInstance * hero) const
|
||||
if(manaPoints > hero->mana)
|
||||
return false;
|
||||
|
||||
if (canLearnSkills && !hero->canLearnSkill())
|
||||
return false;
|
||||
|
||||
if(manaPercentage > 100 * hero->mana / hero->manaLimit())
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user