We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4e9642 commit 1e52922Copy full SHA for 1e52922
src/battle-tooltips.ts
@@ -742,6 +742,23 @@ class BattleTooltips {
742
if (move.flags.bullet) {
743
text += `<p class="movetag">✓ Bullet-like <small>(doesn't affect Bulletproof pokemon)</small></p>`;
744
}
745
+
746
+ // RBY healing move glitch
747
+ if (this.battle.gen === 1 && !toID(this.battle.tier).includes('stadium') &&
748
+ ['recover', 'softboiled', 'rest'].includes(move.id)) {
749
+ const hpValues = [];
750
+ let hp = serverPokemon.maxhp - 255;
751
+ while (hp > 0) {
752
+ hpValues.push(hp);
753
+ if (hpValues.length >= 5) {
754
+ // Reasonable cutoff for custom games
755
+ hpValues.push('...');
756
+ break;
757
+ }
758
+ hp -= 256;
759
760
+ text += `<p>Will fail if HP is ${hpValues.join(', ')}</p>`;
761
762
763
return text;
764
0 commit comments