diff --git a/scripts/hv-unified.user.js b/scripts/hv-unified.user.js index d6c6ec5..082dd49 100644 --- a/scripts/hv-unified.user.js +++ b/scripts/hv-unified.user.js @@ -3287,7 +3287,7 @@ function initializeBattle() { refreshUI(); updateConfigButton(); // Check if battle ended (completion pane appeared) - if (document.getElementById('pane_completion') && battleLog && !battleLog.summary) { + if (document.getElementById('pane_completion')) { finalizeBattleLog(); } }); diff --git a/scripts/latest.user.js b/scripts/latest.user.js index d6c6ec5..082dd49 100644 --- a/scripts/latest.user.js +++ b/scripts/latest.user.js @@ -3287,7 +3287,7 @@ function initializeBattle() { refreshUI(); updateConfigButton(); // Check if battle ended (completion pane appeared) - if (document.getElementById('pane_completion') && battleLog && !battleLog.summary) { + if (document.getElementById('pane_completion')) { finalizeBattleLog(); } }); diff --git a/src/init.js b/src/init.js index d87b1fb..1eca743 100644 --- a/src/init.js +++ b/src/init.js @@ -88,7 +88,7 @@ function initializeBattle() { refreshUI(); updateConfigButton(); // Check if battle ended (completion pane appeared) - if (document.getElementById('pane_completion') && battleLog && !battleLog.summary) { + if (document.getElementById('pane_completion')) { finalizeBattleLog(); } });