Fix Mist's interaction with Moody.

- thanks bmelts!
This commit is contained in:
Marty-D 2012-10-14 22:53:47 -03:00
parent 4ab7cd8059
commit 192107fc11

View File

@ -7322,7 +7322,7 @@ exports.BattleMovedex = {
effect: {
duration: 5,
onBoost: function(boost, target, source) {
if (source && target === source) return;
if (!source || target === source) return;
for (var i in boost) {
if (boost[i] < 0) {
delete boost[i];