Fix Protean + charge move interaction

This commit is contained in:
innerthunder 2024-10-06 02:43:37 -07:00
parent d613ffe7a8
commit 4a5db3d9c2

View File

@ -300,6 +300,9 @@ export class MovePhase extends BattlePhase {
/** Queues a {@linkcode MoveChargePhase} for this phase's invoked move. */
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));
}