Save avatar in forceConstellationLevel (closes #1881)

This commit is contained in:
AnimeGitB 2022-10-22 12:43:57 +10:30
parent c331a7f288
commit c51f7610b2

View File

@ -809,12 +809,14 @@ public class Avatar {
if (level < 0) { // Special case for resetConst to remove inactive depots too if (level < 0) { // Special case for resetConst to remove inactive depots too
this.talentIdList.clear(); this.talentIdList.clear();
this.recalcStats(); this.recalcStats();
this.save();
return; return;
} }
this.talentIdList.removeAll(this.getTalentIdList()); // Only remove constellations from active depot this.talentIdList.removeAll(this.getTalentIdList()); // Only remove constellations from active depot
for (int i = 0; i < level; i++) for (int i = 0; i < level; i++)
this.unlockConstellation(true); this.unlockConstellation(true);
this.recalcStats(); this.recalcStats();
this.save();
} }
public boolean sendSkillExtraChargeMap() { public boolean sendSkillExtraChargeMap() {