mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Configurable multi-hex attacks
- Added bonus type MULTIHEX_UNIT_ATTACK - configurable version of Dragon Breath. - Added bonus type MULTIHEX_ENEMY_ATTACK - configurable version of Cerberi multi-headed attack that only hits enemies - Added bonus type MULTIHEX_ANIMATION - optional bonus that does not affects gameplay, but allows to define in which cases game should use alternative attack animation. - All existing multi-hex attack bonuses other than ATTACKS_ALL_ADJACENT are presumable deprecated, but will be supported for now. - It is now possible to precisely configure which hexes are targeted by MULTIHEX_XXX bonuses. See docs for details. - Unified logic of all multi-hex attacks, all existing bonuses are now implemented as specific case of MULTIHEX_XXX bonus - Added tests to cover Cerberi attack logic, and fixed incorrect edge case of Dragon Breath
This commit is contained in:
@@ -943,6 +943,7 @@ void CPlayerInterface::battleAttack(const BattleID & battleID, const BattleAttac
|
||||
info.unlucky = ba->unlucky();
|
||||
info.deathBlow = ba->deathBlow();
|
||||
info.lifeDrain = ba->lifeDrain();
|
||||
info.playCustomAnimation = ba->playCustomAnimation();
|
||||
info.tile = ba->tile;
|
||||
info.spellEffect = SpellID::NONE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user