We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb3f7c1 commit ddb6c6aCopy full SHA for ddb6c6a
src/battle-tooltips.ts
@@ -748,6 +748,22 @@ class BattleTooltips {
748
}
749
if (move.flags.wind) {
750
text += `<p class="movetag">✓ Wind <small>(activates Wind Power and Wind Rider)</small></p>`;
751
+
752
+ // RBY healing move glitch
753
+ if (this.battle.gen === 1 && !toID(this.battle.tier).includes('stadium') &&
754
+ ['recover', 'softboiled', 'rest'].includes(move.id)) {
755
+ const hpValues = [];
756
+ let hp = serverPokemon.maxhp - 255;
757
+ while (hp > 0) {
758
+ hpValues.push(hp);
759
+ if (hpValues.length >= 5) {
760
+ // Reasonable cutoff for custom games
761
+ hpValues.push('...');
762
+ break;
763
+ }
764
+ hp -= 256;
765
766
+ text += `<p>Will fail if HP is ${hpValues.join(', ')}</p>`;
767
768
769
return text;
0 commit comments