Gen 4: Leaf Guard does not prevent Rest

This commit is contained in:
The Immortal 2014-05-31 20:23:43 +04:00
parent 477a4a720b
commit 4ad5c77cd4

View File

@ -8,6 +8,15 @@ exports.BattleAbilities = {
this.add('-setboost', target, 'atk', 12, '[from] ability: Anger Point');
}
},
"leafguard": {
onSetStatus: function (status, target, source, effect) {
if (effect && effect.id === 'rest') {
return;
} else if (this.isWeather('sunnyday')) {
return false;
}
}
},
"lightningrod": {
desc: "During double battles, this Pokemon draws any single-target Electric-type attack to itself. If an opponent uses an Electric-type attack that affects multiple Pokemon, those targets will be hit. This ability does not affect Electric Hidden Power or Judgment.",
shortDesc: "This Pokemon draws Electric moves to itself.",