Merge branch 'mace' into 'master'

Void mace now consumes runes correctly

See merge request 2009scape/2009scape!342
This commit is contained in:
Ceikry 2021-11-29 02:01:52 +00:00
commit b1b3ff06dd
2 changed files with 5 additions and 5 deletions

View file

@ -61,4 +61,5 @@
- Animations for passing through Isafdar Dense Forest added
- Implement Wire Traps, Leaf Traps, and Stick Traps in Isafdar
- Quest point cape/hood no longer unequip on login if wearing QP hood
- Random Event Genie lamps now scale exp correctly
- Random Event Genie lamps now scale exp correctly
- Void mace now consumes runes correctly

View file

@ -18,6 +18,7 @@ import core.game.node.item.Item;
import core.game.world.update.flag.context.Animation;
import core.game.world.update.flag.context.Graphics;
import core.plugin.Plugin;
import org.rs09.consts.Items;
/**
* Handles the god spells.
@ -131,10 +132,8 @@ public final class GodSpells extends CombatSpell {
p.sendMessage("You need to cast " + NAMES[index] + " " + (100 - p.getSavedData().getActivityData().getGodCasts()[index]) + " more times inside the Mage Arena.");
return false;
}
if (staffId == 8841 && index == 1) {// Void Knight Mace
return true;
}
if (staffId != required) {
if (staffId != required && !(index == 1 && staffId == Items.VOID_KNIGHT_MACE_8841)) {
if (message) {
((Player) caster).getPacketDispatch().sendMessage("You need to wear a " + ItemDefinition.forId(required).getName() + " to cast this spell.");
}