forked from 2009Scape/Server
Merge branch 'wiz_guild_fix' into 'master'
Code Cleanup - Wizards Guild uses ContentAPI now. See merge request 2009scape/2009scape!221
This commit is contained in:
commit
24b2fd7e6a
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package core.game.content.activity.guild;
|
||||
|
||||
import api.ContentAPI;
|
||||
import core.cache.def.impl.NPCDefinition;
|
||||
import core.cache.def.impl.SceneryDefinition;
|
||||
import core.game.content.dialogue.DialoguePlugin;
|
||||
|
|
@ -60,7 +61,7 @@ public final class WizardGuildPlugin extends OptionHandler {
|
|||
switch (id) {
|
||||
case 1600:
|
||||
case 1601:
|
||||
if (player.getSkills().getLevel(Skills.MAGIC) < 66) {
|
||||
if (ContentAPI.getDynLevel(player, Skills.MAGIC) < 66) {
|
||||
player.getDialogueInterpreter().sendDialogue("You need a Magic level of at least 66 to enter.");
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue