mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Updaters replace bonuses during inheritance
This commit is contained in:
@@ -524,7 +524,6 @@ void CGHeroInstance::initObj(CRandomGenerator & rand)
|
||||
|
||||
//initialize bonuses
|
||||
recreateSecondarySkillsBonuses();
|
||||
updateBonuses();
|
||||
|
||||
mana = manaLimit(); //after all bonuses are taken into account, make sure this line is the last one
|
||||
type->name = name;
|
||||
@@ -1255,8 +1254,8 @@ void CGHeroInstance::levelUp(std::vector<SecondarySkill> skills)
|
||||
}
|
||||
}
|
||||
|
||||
//specialty and other bonuses that scale with level
|
||||
updateBonuses();
|
||||
//update specialty and other bonuses that scale with level
|
||||
treeHasChanged();
|
||||
}
|
||||
|
||||
void CGHeroInstance::levelUpAutomatically(CRandomGenerator & rand)
|
||||
|
||||
Reference in New Issue
Block a user