[FIX] check currentTalentLevel in unlockConstelations to prevent an exception during force unlock on common traveler

This commit is contained in:
hartie95 2023-01-09 10:41:57 +01:00
parent 12cc9f5ab1
commit 98c019d831

View File

@ -771,6 +771,9 @@ public class Avatar {
}
public boolean unlockConstellation(boolean skipPayment) {
int currentTalentLevel = this.getCoreProudSkillLevel();
if(currentTalentLevel == -1){
return false;
}
int talentId = this.skillDepot.getTalents().get(currentTalentLevel);
return this.unlockConstellation(talentId, skipPayment);
}