From fb326cf08d2b038d54f3390a50d92b6a1a563d4e Mon Sep 17 00:00:00 2001 From: Player Name Date: Wed, 29 Jul 2026 22:47:37 +0200 Subject: [PATCH] fix oopsies. These don't require retesting since they're just restoring code that was already there. --- .../src/main/content/global/skill/magic/lunar/HealSpell.java | 2 +- .../content/global/skill/magic/lunar/StatRestoreSpell.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Server/src/main/content/global/skill/magic/lunar/HealSpell.java b/Server/src/main/content/global/skill/magic/lunar/HealSpell.java index 7059385aa..228f92af2 100644 --- a/Server/src/main/content/global/skill/magic/lunar/HealSpell.java +++ b/Server/src/main/content/global/skill/magic/lunar/HealSpell.java @@ -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); diff --git a/Server/src/main/content/global/skill/magic/lunar/StatRestoreSpell.java b/Server/src/main/content/global/skill/magic/lunar/StatRestoreSpell.java index 7915590ba..bd05e85c9 100644 --- a/Server/src/main/content/global/skill/magic/lunar/StatRestoreSpell.java +++ b/Server/src/main/content/global/skill/magic/lunar/StatRestoreSpell.java @@ -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.");