mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-30 17:44:22 +00:00
596f007139
sendTroops() inlined ~65 lines deciding the catapult targets ctar1/ctar2: the "Rivals great confusion" artefact lookup, the rally-point-level-driven list of invalid target buildings, the troop/level eligibility rules and the Teuton Brewery / artefact adjustments. Move that whole block into resolveCatapultTargets(&$post, $data), which mutates $post['ctar1']/['ctar2'] by reference exactly as before; sendTroops() now calls it before building the attack. None of the block's locals were used afterwards. Behaviour-preserving. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>