Skip to content

Commit

Permalink
Gen 1-2: Fix TOX -> PSN display
Browse files Browse the repository at this point in the history
Because the TOX -> PSN change happened onSwitchIn, it wouldn't display
correctly on the first switch after TOX, requiring two switches to
display correctly.

This corrects the change to onBeforeSwitchIn, where it will display
correctly for the first switch.
  • Loading branch information
Zarel committed Jul 7, 2019
1 parent 6155639 commit b1891ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/mods/gen2/statuses.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ let BattleStatuses = {
onAfterMoveSelf(pokemon) {
this.damage(this.clampIntRange(Math.floor(pokemon.maxhp / 16), 1) * pokemon.volatiles['residualdmg'].counter, pokemon, pokemon);
},
onSwitchIn(pokemon) {
onBeforeSwitchIn(pokemon) {
// Regular poison status and damage after a switchout -> switchin.
pokemon.status = /** @type {ID} */('psn');
},
Expand Down

0 comments on commit b1891ab

Please sign in to comment.