mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Fix magic coat/bounce error from conflict resolution
This commit is contained in:
parent
ad4100cec7
commit
f4d3bed3ee
@ -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
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user