mirror of
https://github.com/vcmi/vcmi.git
synced 2025-12-01 23:12:49 +02:00
vcmi: split bonus to enumerator and HeroBonus.h
This commit is contained in:
@@ -52,7 +52,7 @@ BattleAction BattleAction::makeMeleeAttack(const battle::Unit * stack, BattleHex
|
||||
ba.stackNumber = stack->unitId();
|
||||
ba.aimToHex(attackFrom);
|
||||
ba.aimToHex(destination);
|
||||
if(returnAfterAttack && stack->hasBonusOfType(Bonus::RETURN_AFTER_STRIKE))
|
||||
if(returnAfterAttack && stack->hasBonusOfType(BonusType::RETURN_AFTER_STRIKE))
|
||||
ba.aimToHex(stack->getPosition());
|
||||
return ba;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user