Leo I finally got around to checking your reports, and yes indeed there is many bugs with quick retreat. As it stands currently, QR does nothing.
I spent an hour working on it, and got like 99% of the way - just couldn't get the last bits to work, so I gave up in frustration and reverted all my changes, fuck it until I have more time some day :/
But basically = QR does not change your odds of winning or losing, and it does not reduce your attacks on anyone attacking/defending.
Furthermore, there's another big bug with battle phases - basically, BAS and probably many other modifies (spells and tech) are completely ignored in final battle scores. Initially the 3 phases of battle are generated correctly individually - but with each subsequent phase it rewrites the previous phases numbers to pull basic base stats with no modifiers. It was easy to overlook because when looking at the battle logs each individual phase is reporting the correct stats, you can only discern the issue when looking at the final summaries. I only noticed because I'm using such controlled tests = I sent 100 infantry to test, after fixing Quick Retreat it was correctly halving to 150 attack points, but in the melee phase the stats said it was getting 135 attack points, and I followed the discrepancy to see that 135 is the correct # with modifiers (BAS/tech/etc), but the final summary showed 150, bleh.
So that's all interesting developments lol