From 7f099f76c8fc8132017f1268ade0274149d7311e Mon Sep 17 00:00:00 2001 From: EmoUsedHM01 <131687820+EmoUsedHM01@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:05:22 +0100 Subject: [PATCH] Updated ElectroShotChargeAttr Moved the Sp Atk boost to be inside the ElectroShotChargeAttr function --- src/data/move.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)