From 301ad94a16f05c261d7d27fadab8f1b3f89f8235 Mon Sep 17 00:00:00 2001 From: Marty-D Date: Sat, 6 Jun 2015 23:44:26 -0400 Subject: [PATCH] Gen II: Fix Focus Band with confusion damage --- mods/gen2/statuses.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/mods/gen2/statuses.js b/mods/gen2/statuses.js index 9b7f881d40..20fbdab02b 100644 --- a/mods/gen2/statuses.js +++ b/mods/gen2/statuses.js @@ -105,6 +105,19 @@ exports.BattleStatuses = { } else { this.effectData.time = this.random(2, 6); } + }, + onBeforeMove: function (pokemon) { + pokemon.volatiles.confusion.time--; + if (!pokemon.volatiles.confusion.time) { + pokemon.removeVolatile('confusion'); + return; + } + this.add('-activate', pokemon, 'confusion'); + if (this.random(2) === 0) { + return; + } + this.directDamage(this.getDamage(pokemon, pokemon, 40)); + return false; } }, partiallytrapped: {