Fixed Revelation skill removal.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user