mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-11 05:19:01 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user