From cb0bd2fe112df8fc439d06dfd39b2375b4a10b66 Mon Sep 17 00:00:00 2001 From: Marty-D Date: Sat, 8 Dec 2012 22:57:14 -0500 Subject: [PATCH] Fix Selfdestruct and Explosion. --- data/scripts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/scripts.js b/data/scripts.js index ae0850180e..1790ad5702 100644 --- a/data/scripts.js +++ b/data/scripts.js @@ -107,7 +107,7 @@ exports.BattleScripts = { if (target.fainted && !canTargetFainted[move.target]) { this.add('-notarget'); this.singleEvent('MoveFail', move, null, target, pokemon, move); - if (move.selfdestruct && move.target === 'adjacent') { + if (move.selfdestruct && move.target === 'allAdjacent') { this.faint(pokemon, pokemon, move); } return true; @@ -117,7 +117,7 @@ exports.BattleScripts = { } if ((move.affectedByImmunities && !target.runImmunity(move.type, true)) || (move.isSoundBased && (pokemon !== target || this.gen <= 4) && !target.runImmunity('sound', true))) { this.singleEvent('MoveFail', move, null, target, pokemon, move); - if (move.selfdestruct && move.target === 'adjacent') { + if (move.selfdestruct && move.target === 'allAdjacent') { this.faint(pokemon, pokemon, move); } return true; @@ -125,7 +125,7 @@ exports.BattleScripts = { if (missed) { this.add('-miss', pokemon); this.singleEvent('MoveFail', move, null, target, pokemon, move); - if (move.selfdestruct && move.target === 'adjacent') { + if (move.selfdestruct && move.target === 'allAdjacent') { this.faint(pokemon, pokemon, move); } return true;