From 49333cb2f4a7baf132348fbbd6af6952fc6d87af Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Mon, 12 May 2025 18:32:54 -0500 Subject: [PATCH] Add detail to comment --- src/phases/move-effect-phase.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/phases/move-effect-phase.ts b/src/phases/move-effect-phase.ts index eff94a64794..9811da66bf9 100644 --- a/src/phases/move-effect-phase.ts +++ b/src/phases/move-effect-phase.ts @@ -246,7 +246,10 @@ export class MoveEffectPhase extends PokemonPhase { } } - // Append the faint phases after resolving all move effects so that the faint phase happens after any message phases + // Faint phases are unshifted after applying the move effects to all targets in order + // to ensure that all move effect messages and related phases occur _before_ the faint phase + // Note that this must occur before POST_TARGET effects are triggered in order for the faint phase to correctly + // occur before the user of self-destruct faints if (this.faintPhases.length) { globalScene.unshiftPhase(...this.faintPhases); }