We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b01c150 commit c5c44c4Copy full SHA for c5c44c4
play.pokemonshowdown.com/src/battle-tooltips.ts
@@ -761,6 +761,19 @@ class BattleTooltips {
761
if (move.flags.wind) {
762
text += `<p class="movetag">✓ Wind <small>(activates Wind Power and Wind Rider)</small></p>`;
763
}
764
+ // RBY healing move glitch
765
+ if (this.battle.gen === 1 && !toID(this.battle.tier).includes('stadium') &&
766
+ ['recover', 'softboiled', 'rest'].includes(move.id)) {
767
+ const hpValues = [];
768
+ let hp = serverPokemon.maxhp - 255;
769
+ if (hp > 0 && hp % 256 !== 0) {
770
+ hpValues.push(hp);
771
+ if (hp - 256 > 0) {
772
+ hpValues.push(hp - 256);
773
+ }
774
775
+ if (hpValues.length) text += `<p>Will fail if HP is ${hpValues.join(', ')}</p>`;
776
777
778
return text;
779
0 commit comments