mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 00:06:15 -05:00
Fix Shield Dust blocking secondary effects that didn't affect the ability-holder.
This commit is contained in:
parent
3d74e7034f
commit
094e4e8d66
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user