- Updated `cards.json` and `skills.json` to define `preBattle` (Rally) and `preAttack` (Strike, Mortar) triggers with new descriptions. - Added `_preBattlePhase` in `CombatEngine.js` to process Rally skills before combat, tracking temporary buffs on cards. - Added `_postBattlePhase` to remove temporary buffs after combat resolves, ensuring stat changes are cleared for the next turn. - Modified `SkillProcessor.js` to handle `Strike`, `Mortar`, and `Rally` logic with context data for animation targets and damage values. - Implemented `_onPreAttackStep` in `BattleScene.js` to sequence animations before the main attack: - `_animateMortarFire`: Flies a mortar shell in an arc, explodes on impact, and handles HP loss/death. - `_animateStrikeFire`: Launches a missile at the opposing lane/commander with similar impact effects. - `_animateRallyBuff`: Animates a flag flying between cards to visualize ATK gains. - Updated `CardObject.js` `animateHPLoss` to accept explicit `fromHP`/`toHP` arguments, ensuring correct display values during multi-step damage sequences. - Added `_playSkillExplosion` for consistent impact visual effects during skill resolution. - Adjusted attack flow to pause for pre-attack animations before the standard card clash sequence. |
||
|---|---|---|
| .. | ||
| cards.json | ||
| missions.json | ||
| packs.json | ||
| skills.json | ||