Skip to content

Commit e9ac5b3

Browse files
committed
fix(battlelog): use proper soul path
1 parent f132be5 commit e9ac5b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base/game/battleLog.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ eventManager.on('GameStart', function battleLogger() {
142142
monsters[card.id] = card;
143143
});
144144
you.level = data.yourLevel;
145-
you.class = data.yourSoul;
145+
you.class = data.yourSoul.name ?? data.yourSoul;
146146
you.rank = data.yourRank;
147147
enemy.level = data.enemyLevel;
148-
enemy.class = data.enemySoul;
148+
enemy.class = data.enemySoul.name ?? data.enemySoul;
149149
enemy.rank = data.enemyRank;
150150
// yourArtifacts, yourAvatar {id, image, name, rarity, ucpCost}, division, oldDivision, profileSkin {id, name, image, ucpCost}
151151
debug({ you, enemy }, 'debugging.game');

0 commit comments

Comments
 (0)