Skip to content

Commit

Permalink
Remove redundant Max Guard checks
Browse files Browse the repository at this point in the history
bfa7ff2 added them to Max Guard.
  • Loading branch information
TheImmortal committed Feb 20, 2020
1 parent bfa7ff2 commit 5cb8c6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/moves.js
Original file line number Diff line number Diff line change
Expand Up @@ -14362,7 +14362,6 @@ let BattleMovedex = {
priority: 0,
flags: {authentic: 1, mystery: 1},
onHit(target, source) {
if (target.volatiles['maxguard']) return false;
for (let i in target.boosts) {
// @ts-ignore
source.boosts[i] = target.boosts[i];
Expand Down Expand Up @@ -20089,7 +20088,7 @@ let BattleMovedex = {
priority: 0,
flags: {mystery: 1},
onHit(target, pokemon) {
if (target.volatiles['maxguard'] || !pokemon.transformInto(target)) {
if (!pokemon.transformInto(target)) {
return false;
}
},
Expand Down

0 comments on commit 5cb8c6e

Please sign in to comment.