mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-25 01:32:21 +02:00
Removing superfluous conditional
This commit is contained in:
parent
85342da840
commit
63741a124a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user