Code Cleanup - Wizards Guild uses ContentAPI now.

This commit is contained in:
NixWigton 2021-08-09 18:41:12 -05:00
parent 0b0f4f81ac
commit 8f9af6b4c4

View file

@ -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;
}