mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-22 23:39:34 +02:00
Fix Protean + charge move interaction
This commit is contained in:
parent
d613ffe7a8
commit
4a5db3d9c2
@ -300,6 +300,9 @@ export class MovePhase extends BattlePhase {
|
|||||||
|
|
||||||
/** Queues a {@linkcode MoveChargePhase} for this phase's invoked move. */
|
/** Queues a {@linkcode MoveChargePhase} for this phase's invoked move. */
|
||||||
protected chargeMove() {
|
protected chargeMove() {
|
||||||
|
// Protean and Libero apply on the charging turn of charge moves
|
||||||
|
applyPreAttackAbAttrs(PokemonTypeChangeAbAttr, this.pokemon, null, this.move.getMove());
|
||||||
|
|
||||||
this.scene.unshiftPhase(new MoveChargePhase(this.scene, this.pokemon.getBattlerIndex(), this.targets[0], this.move));
|
this.scene.unshiftPhase(new MoveChargePhase(this.scene, this.pokemon.getBattlerIndex(), this.targets[0], this.move));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user