mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
secondary skill bonuses get updated via replacement (issue 2796)
This commit is contained in:
committed by
ArseniyShestakov
parent
26aad17295
commit
4c0a67041b
@@ -850,6 +850,14 @@ void CBonusSystemNode::removeBonus(const std::shared_ptr<Bonus>& b)
|
||||
CBonusSystemNode::treeHasChanged();
|
||||
}
|
||||
|
||||
void CBonusSystemNode::removeBonuses(const CSelector &selector)
|
||||
{
|
||||
BonusList toRemove;
|
||||
exportedBonuses.getBonuses(toRemove, selector);
|
||||
for(auto bonus : toRemove)
|
||||
removeBonus(bonus);
|
||||
}
|
||||
|
||||
bool CBonusSystemNode::actsAsBonusSourceOnly() const
|
||||
{
|
||||
switch(nodeType)
|
||||
|
||||
Reference in New Issue
Block a user