From 63741a124a36d7ee82b9cbe1133833eafdf49f09 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Tue, 11 Feb 2025 23:54:44 +0100 Subject: [PATCH] Removing superfluous conditional --- src/data/ability.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 900124449ee..b2f2e46e006 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -1005,10 +1005,6 @@ export class PostDefendPerishSongAbAttr extends PostDefendAbAttr { if (move.checkFlag(MoveFlags.MAKES_CONTACT, attacker, pokemon) && !move.hitsSubstitute(attacker, pokemon)) { if (attacker.getTag(BattlerTagType.PERISH_SONG)) { return false; - } else if (pokemon.getTag(BattlerTagType.PERISH_SONG)) { - if (!simulated) { - attacker.addTag(BattlerTagType.PERISH_SONG, this.turns); - } } else { if (!simulated) { attacker.addTag(BattlerTagType.PERISH_SONG, this.turns);