Fix Shield Dust blocking secondary effects that didn't affect the ability-holder.

This commit is contained in:
Bill Meltsner 2012-05-14 18:12:02 -04:00
parent 3d74e7034f
commit 094e4e8d66

View File

@ -1698,11 +1698,9 @@ exports.BattleAbilities = {
},
"shielddust": {
desc: "If the opponent uses a move that has secondary effects that affect this Pokemon in addition to damage, the move's secondary effects will not trigger. (For example, an Ice Beam will lose its 10% chance to freeze this Pokemon.)",
onTryHit: function(target, source, move) {
if (move.secondaries) {
this.debug('Shield Dust remove secondary');
delete move.secondaries;
}
onTrySecondaryHit: function() {
this.debug('Shield Dust prevent secondary');
return null;
},
id: "shielddust",
name: "Shield Dust",