fix oopsies. These don't require retesting since they're just restoring code that was already there.

This commit is contained in:
Player Name 2026-07-29 22:47:37 +02:00
parent da4f3acf18
commit fb326cf08d
2 changed files with 5 additions and 2 deletions

View file

@ -112,7 +112,7 @@ public final class HealSpell extends MagicSpell {
playGlobalAudio(o.getLocation(), Sounds.LUNAR_HEAL_OTHER_INDIVIDUAL_2892);
o.graphics(GRAPHICS);
} else {
if (!super.meetsRequirements(player, true, true)) {
if (!super.meetsRequirements(player, true, true)) {
return false;
}
int percentage = (int) Math.ceil(player.getSkills().getLifepoints() * 0.75);

View file

@ -45,7 +45,10 @@ public class StatRestoreSpell extends MagicSpell {
final Player player = ((Player) entity);
Item item = ((Item) target);
player.getInterfaceManager().setViewedTab(6);
if (Consumables.getConsumableById(item.getId()) == null) {
player.getPacketDispatch().sendMessage("You can only cast this spell on a potion.");
return false;
}
final Potion potion = (Potion) Consumables.getConsumableById(item.getId()).getConsumable();
if (potion == null) {
player.getPacketDispatch().sendMessage("You can only cast this spell on a potion.");