Fix lightcone/relic equipping

This commit is contained in:
Melledy
2024-05-08 02:21:43 -07:00
parent be766a4c43
commit 7c7dac0a69
2 changed files with 7 additions and 1 deletions

View File

@@ -32,6 +32,10 @@ public class AvatarStorage extends BasePlayerManager implements Iterable<GameAva
} }
public GameAvatar getAvatarById(int id) { public GameAvatar getAvatarById(int id) {
if (this.getHeroPaths().containsKey(id)) {
id = GameConstants.TRAILBLAZER_AVATAR_ID;
}
return getAvatars().get(id); return getAvatars().get(id);
} }

View File

@@ -280,6 +280,7 @@ public class GameItem {
.setIsProtected(this.isLocked()) .setIsProtected(this.isLocked())
.setIsDiscarded(this.isDiscarded()) .setIsDiscarded(this.isDiscarded())
.setBaseAvatarId(this.getEquipAvatar()) .setBaseAvatarId(this.getEquipAvatar())
.setEquipAvatarId(this.getEquipAvatar())
.setMainAffixId(this.mainAffix); .setMainAffixId(this.mainAffix);
if (this.subAffixes != null) { if (this.subAffixes != null) {
@@ -300,7 +301,8 @@ public class GameItem {
.setIsProtected(this.isLocked()) .setIsProtected(this.isLocked())
.setPromotion(this.getPromotion()) .setPromotion(this.getPromotion())
.setRank(this.getRank()) .setRank(this.getRank())
.setBaseAvatarId(this.getEquipAvatar()); .setBaseAvatarId(this.getEquipAvatar())
.setEquipAvatarId(this.getEquipAvatar());
return proto; return proto;
} }