mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-30 09:32:52 +00:00
fix /give avatars - currentTalentLevel cannot be negative (#2132)
This commit is contained in:
parent
4109cb0625
commit
be2eef410a
@ -895,6 +895,7 @@ public class Avatar {
|
|||||||
|
|
||||||
public boolean unlockConstellation(boolean skipPayment) {
|
public boolean unlockConstellation(boolean skipPayment) {
|
||||||
int currentTalentLevel = this.getCoreProudSkillLevel();
|
int currentTalentLevel = this.getCoreProudSkillLevel();
|
||||||
|
if (currentTalentLevel < 0) 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