diff --git a/GrepolisRemoteControl.user.js b/GrepolisRemoteControl.user.js index f27bd63..446b582 100644 --- a/GrepolisRemoteControl.user.js +++ b/GrepolisRemoteControl.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Grepolis Remote Control // @namespace http://tampermonkey.net/ -// @version 3.6.4 +// @version 3.6.5 // @description Polls grepo.haunter-pets.top for remote commands and executes them in-game (Multi-Player) // @author Dimitrios // @match https://*.grepolis.com/game/* @@ -817,10 +817,10 @@ // Auto Bandit Camp: if enabled, attack/claim when ready if (farmSettings.bandit_camp_enabled) { try { - const player_id = uw.Game?.player_id; + // player_id already declared above in pollAndExecute scope const currentTownId = uw.Game?.town_id; if (!player_id || !currentTownId) { - log('⚔️ Bandit Camp: No player_id or town_id found in Game globals.'); + log(`⚔️ Bandit Camp: Missing globals — player_id=${player_id} town_id=${currentTownId}`); } else { // Build hash param — it's embedded in the page URL or game globals const hash = uw.Game?.csrf_token || uw.Game?.h || uw.Game?.hash || '';