From 6c5c7d880142397fd128184535f8074a6a82080f Mon Sep 17 00:00:00 2001 From: Melledy <121644117+Melledy@users.noreply.github.com> Date: Wed, 8 May 2024 05:02:00 -0700 Subject: [PATCH] Fix main character skills being reset when entering battle --- src/main/java/emu/lunarcore/game/avatar/GameAvatar.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/emu/lunarcore/game/avatar/GameAvatar.java b/src/main/java/emu/lunarcore/game/avatar/GameAvatar.java index c93f09952..64de9b64f 100644 --- a/src/main/java/emu/lunarcore/game/avatar/GameAvatar.java +++ b/src/main/java/emu/lunarcore/game/avatar/GameAvatar.java @@ -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