From 6cc1773459d330985c52d1585897d7618a92c658 Mon Sep 17 00:00:00 2001 From: Temps Ray Date: Tue, 7 May 2024 16:58:52 -0400 Subject: [PATCH] Fix charge --- src/data/move.ts | 2 +- src/field/pokemon.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/data/move.ts b/src/data/move.ts index af4ce4fa6..e86e3f103 100644 --- a/src/data/move.ts +++ b/src/data/move.ts @@ -4745,7 +4745,7 @@ export function initMoves() { .ignoresVirtual(), new SelfStatusMove(Moves.CHARGE, Type.ELECTRIC, -1, 20, -1, 0, 3) .attr(StatChangeAttr, BattleStat.SPDEF, 1, true) - .attr(AddBattlerTagAttr, BattlerTagType.CHARGED, true, true), + .attr(AddBattlerTagAttr, BattlerTagType.CHARGED, true, false), new StatusMove(Moves.TAUNT, Type.DARK, 100, 20, -1, 0, 3) .unimplemented(), new StatusMove(Moves.HELPING_HAND, Type.NORMAL, -1, 20, -1, 5, 3) diff --git a/src/field/pokemon.ts b/src/field/pokemon.ts index 9ac3aec53..d3a8fafea 100644 --- a/src/field/pokemon.ts +++ b/src/field/pokemon.ts @@ -1320,9 +1320,12 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container { else { let typeBoost = source.findTag(t => t instanceof TypeBoostTag && (t as TypeBoostTag).boostedType === type) as TypeBoostTag; if (typeBoost) { + console.log("AAAAAAAAA"); power.value *= typeBoost.boostValue; if (typeBoost.oneUse) { - this.removeTag(typeBoost.tagType); + console.log(typeBoost.tagType); + console.log(source); + source.removeTag(typeBoost.tagType); } } const arenaAttackTypeMultiplier = this.scene.arena.getAttackTypeMultiplier(type, source.isGrounded());