Hi! I've got a following error after some time playing:
ERROR: JavaScript error: simulation/ai/petra_expert/attackManager.js line 1132
army is not defined
PETRA_EXPERT.AttackManager.prototype.switchDefenseToAttack@simulation/ai/petra_expert/attackManager.js:1132:20
PETRA_EXPERT.DefenseManager.prototype.checkEvents@simulation/ai/petra_expert/defenseManager.js:563:35
PETRA_EXPERT.DefenseManager.prototype.update@simulation/ai/petra_expert/defenseManager.js:23:7
PETRA_EXPERT.HQ.prototype.update@simulation/ai/petra_expert/headquarters.js:3508:22
PETRA_EXPERT.PetraExpertBot.prototype.OnUpdate@simulation/ai/petra_expert/_petraexpertbot.js:118:11
m.BaseAI.prototype.HandleMessage@simulation/ai/common-api/baseAI.js:64:7
The error repeats every game tick. Also, there is a bunch of warnings like these:
WARNING: PlayerID 6 | Petra Expert error in incrementBuilderCounters for structures/iber/civil_centre with count < 0
WARNING: PlayerID 6 | Petra Expert error in incrementBuilderCounters for structures/iber/crannog with count < 0
WARNING: PlayerID 6 | Petra Expert error in incrementBuilderCounters for structures/iber/military_colony with count < 0
WARNING: PlayerID 6 | Petra Expert error in incrementBuilderCounters for structures/iber/house with count < 0
WARNING: PlayerID 6 | Petra Expert error in incrementBuilderCounters for structures/iber/ice_house with count < 0
<... much more like this ...>