mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-05 07:52:17 +02:00
Add detail to comment
This commit is contained in:
parent
88d38f7891
commit
49333cb2f4
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user