From bc8c283e89dadb02fe3be2a666d1de08b60e1487 Mon Sep 17 00:00:00 2001 From: Stophles <71789013+Stophles@users.noreply.github.com> Date: Thu, 4 Apr 2024 20:06:55 -0500 Subject: [PATCH] Toxic Spikes update Fixed duplicate code --- src/data/arena-tag.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/data/arena-tag.ts b/src/data/arena-tag.ts index d8adec26840..4a22b25fd9b 100644 --- a/src/data/arena-tag.ts +++ b/src/data/arena-tag.ts @@ -17,21 +17,7 @@ export enum ArenaTagSide { ENEMY } -export abstract class ArenaTag {activateTrap(pokemon: Pokemon): boolean { - if (pokemon.isOfType(Type.POISON) && pokemon.isGrounded()) { - this.neutralized = true; - if (pokemon.scene.arena.removeTag(this.tagType)) { - pokemon.scene.queueMessage(getPokemonMessage(pokemon, ` absorbed the ${this.getMoveName()}!`)); - return true; - } - } - else if (!pokemon.status && pokemon.isGrounded()) { - const toxic = this.layers > 1; - if (pokemon.trySetStatus(!toxic ? StatusEffect.POISON : StatusEffect.TOXIC, true, null, `the ${this.getMoveName()}`)) - return true; - } - return false; - } +export abstract class ArenaTag { public tagType: ArenaTagType; public turnCount: integer; public sourceMove: Moves;