mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
ae0ab66099
Extract the "kill other defence in village" block (reinforcement casualties) into a new private method applyReinforcementCasualties(): compute each reinforcement's dead units/hero, persist them (modifyEnforce), notify the reinforcing players, and delete fully-wiped reinforcements. Dead counts are accumulated into $alldead and dead heroes into $DefenderHeroesDeadArray (both passed by reference); the tribe-presence flags (rom/ger/gal/nat/natar) are returned to the caller. Pure behaviour-preserving extraction. Also drops two dead recomputations of $totalsend_att/$totaldead_att that sat inside the loop and were immediately overwritten right after it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>