mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 11:25:11 -06:00
fix oopsies. These don't require retesting since they're just restoring code that was already there.
This commit is contained in:
parent
da4f3acf18
commit
fb326cf08d
2 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue