Fix magic coat/bounce error from conflict resolution

This commit is contained in:
Dean 2025-06-16 19:03:10 -07:00
parent ad4100cec7
commit f4d3bed3ee

View File

@ -162,7 +162,7 @@ export class MoveEffectPhase extends PokemonPhase {
} }
/** /**
* Queue the phaes that should occur when the target reflects the move back to the user * Queue the phases that should occur when the target reflects the move back to the user
* @param user - The {@linkcode Pokemon} using this phase's invoked move * @param user - The {@linkcode Pokemon} using this phase's invoked move
* @param target - The {@linkcode Pokemon} that is reflecting the move * @param target - The {@linkcode Pokemon} that is reflecting the move
* TODO: Rework this to use `onApply` of Magic Coat * TODO: Rework this to use `onApply` of Magic Coat
@ -181,15 +181,13 @@ export class MoveEffectPhase extends PokemonPhase {
globalScene.phaseManager.unshiftNew("HideAbilityPhase"); globalScene.phaseManager.unshiftNew("HideAbilityPhase");
} }
this.queuedPhases.push( globalScene.phaseManager.pushNew(
globalScene.phaseManager.create(
"MovePhase", "MovePhase",
target, target,
newTargets, newTargets,
new PokemonMove(this.move.id), new PokemonMove(this.move.id),
MoveUseMode.REFLECTED, MoveUseMode.REFLECTED,
MovePhaseTimingModifier.FIRST MovePhaseTimingModifier.FIRST,
),
); );
} }