From f567c1ec90d047eea4ff7d8a6cbca10ab5b8ac78 Mon Sep 17 00:00:00 2001 From: Marty-D Date: Thu, 10 Mar 2016 11:25:44 -0500 Subject: [PATCH] Gen IV: Fix Toxic Spikes interaction with Safeguard --- mods/gen4/moves.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/gen4/moves.js b/mods/gen4/moves.js index 7add29ebcc..e45f82b7c8 100644 --- a/mods/gen4/moves.js +++ b/mods/gen4/moves.js @@ -1193,9 +1193,9 @@ exports.BattleMovedex = { if (pokemon.volatiles['substitute']) { return; } else if (this.effectData.layers >= 2) { - pokemon.trySetStatus('tox'); + pokemon.trySetStatus('tox', pokemon.side.foe.active[0]); } else { - pokemon.trySetStatus('psn'); + pokemon.trySetStatus('psn', pokemon.side.foe.active[0]); } }, },