Skip to content

Commit

Permalink
Fix main character skills being reset when entering battle
Browse files Browse the repository at this point in the history
  • Loading branch information
Melledy committed May 8, 2024
1 parent dcab611 commit 6c5c7d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/emu/lunarcore/game/avatar/GameAvatar.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,8 @@ public BattleAvatar toBattleProto(PlayerLineup lineup, int index) {
.setWorldLevel(this.getOwner().getWorldLevel());

// Skill tree
if (!this.isHero()) {
for (var skill : getSkills().entrySet()) {
proto.addSkilltreeList(AvatarSkillTree.newInstance().setPointId(skill.getKey()).setLevel(skill.getValue()));
}
for (var skill : getSkills().entrySet()) {
proto.addSkilltreeList(AvatarSkillTree.newInstance().setPointId(skill.getKey()).setLevel(skill.getValue()));
}

// Build equips
Expand Down

0 comments on commit 6c5c7d8

Please sign in to comment.