mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-12 03:12:18 +02:00
Refined code on phases.ts
Tested new funcs against DAMP, it's working.
This commit is contained in:
parent
c88f535269
commit
9eec3562e0
@ -2254,7 +2254,7 @@ export class MovePhase extends BattlePhase {
|
|||||||
|
|
||||||
if ((moveQueue.length && moveQueue[0].move === Moves.NONE) || !targets.length) {
|
if ((moveQueue.length && moveQueue[0].move === Moves.NONE) || !targets.length) {
|
||||||
moveQueue.shift();
|
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 {
|
} else {
|
||||||
this.cancel();
|
this.cancel();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user