Add detail to comment

This commit is contained in:
Sirz Benjie 2025-05-12 18:32:54 -05:00
parent 88d38f7891
commit 49333cb2f4
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -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) { if (this.faintPhases.length) {
globalScene.unshiftPhase(...this.faintPhases); globalScene.unshiftPhase(...this.faintPhases);
} }