forked from Upstream/mmocore
Fixed issue #794 about passive-skill-need-bound being disabled.
This commit is contained in:
parent
c99caff22d
commit
d1be5cbce7
@ -99,12 +99,12 @@ public class PlayerStats {
|
||||
*/
|
||||
final PassiveSkillMap skillMap = data.getMMOPlayerData().getPassiveSkillMap();
|
||||
|
||||
//if (!MMOCore.plugin.configManager.passiveSkillNeedBound) {
|
||||
// skillMap.removeModifiers("MMOCorePassiveSkill");
|
||||
// for (ClassSkill skill : data.getProfess().getSkills())
|
||||
// if (skill.getSkill().getTrigger().isPassive())
|
||||
// skillMap.addModifier(skill.toPassive(data));
|
||||
//}
|
||||
if (!MMOCore.plugin.configManager.passiveSkillNeedBound) {
|
||||
skillMap.removeModifiers("MMOCorePassiveSkill");
|
||||
for (ClassSkill skill : data.getProfess().getSkills())
|
||||
if (skill.getSkill().getTrigger().isPassive())
|
||||
skillMap.addModifier(skill.toPassive(data));
|
||||
}
|
||||
|
||||
// This updates the player's class SCRIPTS
|
||||
skillMap.removeModifiers("MMOCoreClassScript");
|
||||
|
@ -209,8 +209,7 @@ max-skill-slots: 8
|
||||
|
||||
# When set to true, passive skills must be bound in order to take effect.
|
||||
# When set to false, unlocked skills will take effect right away.
|
||||
# Temporarily disabled.
|
||||
# passive-skill-need-bound: true
|
||||
passive-skill-need-bound: true
|
||||
|
||||
# Fun extra RPG feature that switches the player's hotbar with
|
||||
# the 9 lower row items of his inventory. This allows the player
|
||||
|
Loading…
Reference in New Issue
Block a user