Mark damage-weakening berries as having been eaten (#780)

This commit is contained in:
urkerab
2016-10-08 01:44:56 +01:00
committed by Marty-D
parent 970e51072b
commit 53c3ad77e7

View File

@@ -4339,6 +4339,7 @@ var Battle = (function () {
actions += '' + poke.getName() + ' ate its ' + item.name + '!';
this.lastmove = item.id;
} else if (kwargs.weaken) {
poke.prevItemEffect = 'eaten';
actions += 'The ' + item.name + ' weakened the damage to ' + poke.getLowerName() + '!';
this.lastmove = item.id;
} else if (effect.id) switch (effect.id) {