mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
vcmi: rename HeroBonus.h to Bonus.h
This commit is contained in:
@@ -109,7 +109,7 @@ BattleAction CBattleAI::activeStack( const CStack * stack )
|
||||
auto healingTargets = cb->battleGetStacks(CBattleInfoEssentials::ONLY_MINE);
|
||||
std::map<int, const CStack*> woundHpToStack;
|
||||
for(auto stack : healingTargets)
|
||||
if(auto woundHp = stack->MaxHealth() - stack->getFirstHPleft())
|
||||
if(auto woundHp = stack->getMaxHealth() - stack->getFirstHPleft())
|
||||
woundHpToStack[woundHp] = stack;
|
||||
if(woundHpToStack.empty())
|
||||
return BattleAction::makeDefend(stack);
|
||||
|
||||
Reference in New Issue
Block a user