From e7345643b90c04bd54f7cf586c9b9fb2d030d141 Mon Sep 17 00:00:00 2001 From: Bill Meltsner Date: Sat, 24 Mar 2012 20:03:19 -0500 Subject: [PATCH] Correctly detect damaging moves in Color Change --- abilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abilities.js b/abilities.js index 44d2d37b80..f73262626d 100644 --- a/abilities.js +++ b/abilities.js @@ -222,7 +222,7 @@ exports.BattleAbilities = { "ColorChange": { desc: "This Pokemon's type changes according to the type of the last move that hit this Pokemon.", onAfterMoveSecondary: function(target, source, effect) { - if (effect && effect.effectType === 'Move' && target.lastDamage) + if (effect && effect.effectType === 'Move' && effect.category !== 'Status') { target.addVolatile('ColorChange', source, effect); }