From 094e4e8d662d796c2ae4f72ff80d9129c7f59f0c Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Mon, 14 May 2012 18:12:02 -0400 Subject: [PATCH] Fix Shield Dust blocking secondary effects that didn't affect the ability-holder. --- abilities.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/abilities.js b/abilities.js index 8ed04d8502..d4e38ff235 100644 --- a/abilities.js +++ b/abilities.js @@ -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",