feat(combat): skip skill resolution for cards with active delay
Adds a check in `CombatEngine.js` to prevent cards with `currentDelay > 0` from resolving their `preBattle` skills. This ensures that delayed units do not trigger abilities until their delay counter has expired.
This commit is contained in:
parent
c3e56fd6aa
commit
eb62ba972d
|
|
@ -380,6 +380,7 @@ export class CombatEngine {
|
|||
const liveEnemies = enemies.filter(c => c.currentHP > 0);
|
||||
for (const card of cards) {
|
||||
if (card.currentHP <= 0) continue;
|
||||
if (card.currentDelay > 0) continue;
|
||||
for (const s of card.skills) {
|
||||
if (s.trigger !== 'preBattle') continue;
|
||||
// For drain, resolve the card directly across as defender
|
||||
|
|
|
|||
Loading…
Reference in New Issue