diff --git a/src/data/move.ts b/src/data/move.ts index d5b0124b285..5eb9f0aaeb2 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -1223,6 +1223,8 @@ export class SunlightChargeAttr extends ChargeAttr { export class ElectroShotChargeAttr extends ChargeAttr { constructor() { super(ChargeAnim.ELECTRO_SHOT_CHARGING, 'absorbed electricity!', null, true); + // Add the StatChangeAttr functionality here so it always applies first + this.attr(StatChangeAttr, BattleStat.SPATK, 1, true); } apply(user: Pokemon, target: Pokemon, move: Move, args: any[]): Promise { @@ -5246,7 +5248,6 @@ export function initMoves() { .attr(HighCritAttr) .makesContact(false), new AttackMove(Moves.ELECTRO_SHOT, "Electro Shot", Type.ELECTRIC, MoveCategory.SPECIAL, 130, 100, 10, "The user gathers electricity on the first turn, boosting its Sp. Atk stat, then fires a high-voltage shot on the next turn. The shot will be fired immediately in rain.", 100, 0, 9) - .attr(StatChangeAttr, BattleStat.SPATK, 1, true) // Raises stat before attacking .attr(ElectroShotChargeAttr) .ignoresVirtual(), new AttackMove(Moves.TERA_STARSTORM, "Tera Starstorm (P)", Type.NORMAL, MoveCategory.SPECIAL, 120, 100, 5, "With the power of its crystals, the user bombards and eliminates the target. When used by Terapagos in its Stellar Form, this move damages all opposing Pokémon.", -1, 0, 9)