Fixed Revelation skill removal.

This commit is contained in:
MobiusDev
2017-12-07 18:26:09 +00:00
parent c373bc6f68
commit 00a11c037e
29 changed files with 307 additions and 192 deletions

View File

@@ -46,8 +46,8 @@ public final class MonkOfChaos extends AbstractNpcAI
private static final int CHAOS_POMANDER_DUALCLASS = 37375;
private static final String[] REVELATION_VAR_NAMES =
{
"RevelationSkill1",
"RevelationSkill2"
PlayerVariables.REVELATION_SKILL_1_MAIN_CLASS,
PlayerVariables.REVELATION_SKILL_2_MAIN_CLASS,
};
private static final String[] DUALCLASS_REVELATION_VAR_NAMES =
@@ -159,9 +159,9 @@ public final class MonkOfChaos extends AbstractNpcAI
{
player.removeSkill(sk);
player.getVariables().remove(varName);
giveItems(player, chaosPomander, 1);
}
}
giveItems(player, chaosPomander, count);
htmltext = "canceled.html";
break;
}

View File

@@ -51,7 +51,10 @@ public final class SkillTransfer extends AbstractNpcAI
private SkillTransfer()
{
setPlayerProfessionChangeId(this::onProfessionChange);
setOnEnterWorld(Config.SKILL_CHECK_ENABLE);
if (Config.SKILL_CHECK_ENABLE)
{
setOnEnterWorld(Config.SKILL_CHECK_ENABLE);
}
}
public void onProfessionChange(OnPlayerProfessionChange event)