Monk of Chaos RequestAcquireSkill stats exploit prevention.

This commit is contained in:
MobiusDevelopment 2020-05-06 12:20:48 +00:00
parent 918b9e030d
commit a50424f6ed
8 changed files with 16 additions and 0 deletions

View File

@ -433,6 +433,8 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final String varName = count == 0 ? REVELATION_VAR_NAMES[0] : REVELATION_VAR_NAMES[1];
player.getVariables().set(varName, skill.getId());
giveSkill(player, trainer, skill);
// Exploit prevention.
SkillData.getInstance().getSkill(1570, 1).applyEffects(player, player);
}
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableRevelationSkills(player, SubclassType.BASECLASS);

View File

@ -433,6 +433,8 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final String varName = count == 0 ? REVELATION_VAR_NAMES[0] : REVELATION_VAR_NAMES[1];
player.getVariables().set(varName, skill.getId());
giveSkill(player, trainer, skill);
// Exploit prevention.
SkillData.getInstance().getSkill(1570, 1).applyEffects(player, player);
}
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableRevelationSkills(player, SubclassType.BASECLASS);

View File

@ -433,6 +433,8 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final String varName = count == 0 ? REVELATION_VAR_NAMES[0] : REVELATION_VAR_NAMES[1];
player.getVariables().set(varName, skill.getId());
giveSkill(player, trainer, skill);
// Exploit prevention.
SkillData.getInstance().getSkill(1570, 1).applyEffects(player, player);
}
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableRevelationSkills(player, SubclassType.BASECLASS);

View File

@ -433,6 +433,8 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final String varName = count == 0 ? REVELATION_VAR_NAMES[0] : REVELATION_VAR_NAMES[1];
player.getVariables().set(varName, skill.getId());
giveSkill(player, trainer, skill);
// Exploit prevention.
SkillData.getInstance().getSkill(1570, 1).applyEffects(player, player);
}
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableRevelationSkills(player, SubclassType.BASECLASS);

View File

@ -383,6 +383,8 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final String varName = count == 0 ? REVELATION_VAR_NAMES[0] : REVELATION_VAR_NAMES[1];
player.getVariables().set(varName, skill.getId());
giveSkill(player, trainer, skill);
// Exploit prevention.
SkillData.getInstance().getSkill(1570, 1).applyEffects(player, player);
}
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableRevelationSkills(player, SubclassType.BASECLASS);

View File

@ -383,6 +383,8 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final String varName = count == 0 ? REVELATION_VAR_NAMES[0] : REVELATION_VAR_NAMES[1];
player.getVariables().set(varName, skill.getId());
giveSkill(player, trainer, skill);
// Exploit prevention.
SkillData.getInstance().getSkill(1570, 1).applyEffects(player, player);
}
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableRevelationSkills(player, SubclassType.BASECLASS);

View File

@ -383,6 +383,8 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final String varName = count == 0 ? REVELATION_VAR_NAMES[0] : REVELATION_VAR_NAMES[1];
player.getVariables().set(varName, skill.getId());
giveSkill(player, trainer, skill);
// Exploit prevention.
SkillData.getInstance().getSkill(1570, 1).applyEffects(player, player);
}
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableRevelationSkills(player, SubclassType.BASECLASS);

View File

@ -383,6 +383,8 @@ public class RequestAcquireSkill implements IClientIncomingPacket
final String varName = count == 0 ? REVELATION_VAR_NAMES[0] : REVELATION_VAR_NAMES[1];
player.getVariables().set(varName, skill.getId());
giveSkill(player, trainer, skill);
// Exploit prevention.
SkillData.getInstance().getSkill(1570, 1).applyEffects(player, player);
}
final List<SkillLearn> skills = SkillTreeData.getInstance().getAvailableRevelationSkills(player, SubclassType.BASECLASS);