#229
Leftovers (06w3dhn4)
0 ratingsAn item to be held by a Pokémon. The holder's HP is slowly but steadily restored throughout every battle.
Needs reworking, old code caused desync and activated weirdly
old code:
onTurnEnd: (game, mon) => {
if (mon.hp > 0) {
game.monEffect(mon, {absorb: true});
game.updateHP(mon, Math.min(mon.hpTotal(), mon.hp + mon.hpTotal() / 16 | 0));
mon.itemPopup();
}
}