Track status-causing items in tooltips

If Flame Orb or Toxic Orb activate, PS will now show the known item
in tooltips.

As a side effect, this also fixes the Flame Orb / Toxic Orb message
not appearing correctly in replays.
This commit is contained in:
Guangcong Luo
2016-04-11 05:36:12 -04:00
parent 6234d2a58d
commit 45fd9e80ac

View File

@@ -4067,7 +4067,8 @@ var Battle = (function () {
this.resultAnim(ofpoke, effect.name, 'ability');
this.message('', "<small>[" + ofpoke.getName(true) + "'s " + effect.name + "!]</small>");
ofpoke.markAbility(effect);
} else if (effect.exists) {
} else if (effect.effectType === 'Item') {
(ofpoke || poke).item = effect.name;
effectMessage = " by the " + effect.name;
}