mirror of
https://github.com/Anime-Game-Servers/Grasscutter-Quests.git
synced 2024-11-23 12:39:49 +00:00
[FIX] check currentTalentLevel in unlockConstelations to prevent an exception during force unlock on common traveler
This commit is contained in:
parent
12cc9f5ab1
commit
98c019d831
@ -771,6 +771,9 @@ public class Avatar {
|
|||||||
}
|
}
|
||||||
public boolean unlockConstellation(boolean skipPayment) {
|
public boolean unlockConstellation(boolean skipPayment) {
|
||||||
int currentTalentLevel = this.getCoreProudSkillLevel();
|
int currentTalentLevel = this.getCoreProudSkillLevel();
|
||||||
|
if(currentTalentLevel == -1){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
int talentId = this.skillDepot.getTalents().get(currentTalentLevel);
|
int talentId = this.skillDepot.getTalents().get(currentTalentLevel);
|
||||||
return this.unlockConstellation(talentId, skipPayment);
|
return this.unlockConstellation(talentId, skipPayment);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user