Removing superfluous conditional

This commit is contained in:
Wlowscha 2025-02-11 23:54:44 +01:00 committed by GitHub
parent 85342da840
commit 63741a124a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);