Skip to content

Commit caf0366

Browse files
committed
fix: battle log (again)
1 parent 3351834 commit caf0366

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# UnderScript Changelog
22

3+
## Version 0.63.8 (2025-09-03)
4+
1. Fix battle log (for realsies)
5+
36
## Version 0.63.7 (2025-09-02)
47
1. Fix battle log
58

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.name ?? data.yourSoul;
145+
you.class = window.yourSoul?.name ?? data.yourSoul;
146146
you.rank = data.yourRank;
147147
enemy.level = data.enemyLevel;
148-
enemy.class = data.enemySoul.name ?? data.enemySoul;
148+
enemy.class = window.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)