mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-29 01:05:40 +01:00
Fixed soft/strong skill tree node level requirements not working
This commit is contained in:
parent
d54c314812
commit
953a1e46d1
@ -264,11 +264,11 @@ public abstract class SkillTree implements RegisteredObject {
|
||||
boolean soft = false, hasSoft = false;
|
||||
|
||||
for (ParentInformation parent : node.getParents()) {
|
||||
if (parent.getType() == ParentType.STRONG && playerData.getNodeState(parent.getNode()) != NodeState.UNLOCKED)
|
||||
if (parent.getType() == ParentType.STRONG && playerData.getNodeLevel(parent.getNode()) < parent.getLevel())
|
||||
continue pass4; // Keep the node locked
|
||||
else if (!soft && parent.getType() == ParentType.SOFT) {
|
||||
hasSoft = true;
|
||||
if (playerData.getNodeState(parent.getNode()) == NodeState.UNLOCKED)
|
||||
if (playerData.getNodeLevel(parent.getNode()) >= parent.getLevel())
|
||||
soft = true; // Cannot continue, must check for other strong parents
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user