From 9eec3562e0ca55b35d94994716275536d6027879 Mon Sep 17 00:00:00 2001 From: Tiduzz Date: Mon, 6 May 2024 10:41:37 -0300 Subject: [PATCH] Refined code on phases.ts Tested new funcs against DAMP, it's working. --- src/phases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phases.ts b/src/phases.ts index 6e2518b59a7..b888fed7389 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -2254,7 +2254,7 @@ export class MovePhase extends BattlePhase { if ((moveQueue.length && moveQueue[0].move === Moves.NONE) || !targets.length) { moveQueue.shift(); - if (this.move.moveId === 153 || this.move.moveId === 120 || this.move.moveId === 802){ //Currently all explosions, AKA, kamikaze-attacks. There might be a better way to do it except to hardcode it, but i haven't found how yet. + if (this.move.moveId === Moves.EXPLOSION || this.move.moveId === Moves.SELF_DESTRUCT || this.move.moveId === Moves.MISTY_EXPLOSION){ //Currently all explosions, AKA, kamikaze-attacks. There might be a better way to do it except to hardcode it, but i haven't found how yet. } else { this.cancel(); }