mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-26 02:02:20 +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 (move.checkFlag(MoveFlags.MAKES_CONTACT, attacker, pokemon) && !move.hitsSubstitute(attacker, pokemon)) {
|
||||||
if (attacker.getTag(BattlerTagType.PERISH_SONG)) {
|
if (attacker.getTag(BattlerTagType.PERISH_SONG)) {
|
||||||
return false;
|
return false;
|
||||||
} else if (pokemon.getTag(BattlerTagType.PERISH_SONG)) {
|
|
||||||
if (!simulated) {
|
|
||||||
attacker.addTag(BattlerTagType.PERISH_SONG, this.turns);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (!simulated) {
|
if (!simulated) {
|
||||||
attacker.addTag(BattlerTagType.PERISH_SONG, this.turns);
|
attacker.addTag(BattlerTagType.PERISH_SONG, this.turns);
|
||||||
|
Loading…
Reference in New Issue
Block a user