From d2cae38c4650a36c974df0d50ba673af211d9d95 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Fri, 22 May 2026 23:12:01 +0200 Subject: [PATCH 1/3] Update half factor for Unity BGE --- sim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sim.cpp b/sim.cpp index 16be9c56..895eeb0a 100644 --- a/sim.cpp +++ b/sim.cpp @@ -1909,9 +1909,9 @@ struct PerformAttack if (__builtin_expect(fd->bg_effects[fd->tapi][PassiveBGE::unity] && coalition_value, false) && can_be_healed(att_status)) { - _DEBUG_MSG(1, "Unity: %s heals itself for %u\n", - status_description(att_status).c_str(), (coalition_value + 1)/2); - att_status->add_hp((coalition_value + 1)/2); + auto value = coalition_value; // No longer the old (coalition_value + 1)/2 per issue #109 + _DEBUG_MSG(1, "Unity: %s heals itself for %u\n", status_description(att_status).c_str(), value ); + att_status->add_hp(value); } } From 2e31b7d07d01f266f457c8199f7853bfa7b079d4 Mon Sep 17 00:00:00 2001 From: Alexander Puck Neuwirth Date: Fri, 22 May 2026 23:23:55 +0200 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- sim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sim.cpp b/sim.cpp index 895eeb0a..d1cd1b83 100644 --- a/sim.cpp +++ b/sim.cpp @@ -1909,9 +1909,9 @@ struct PerformAttack if (__builtin_expect(fd->bg_effects[fd->tapi][PassiveBGE::unity] && coalition_value, false) && can_be_healed(att_status)) { - auto value = coalition_value; // No longer the old (coalition_value + 1)/2 per issue #109 - _DEBUG_MSG(1, "Unity: %s heals itself for %u\n", status_description(att_status).c_str(), value ); - att_status->add_hp(value); + // Unity no longer uses the legacy half-heal scaling (issue #109). + _DEBUG_MSG(1, "Unity: %s heals itself for %u\n", status_description(att_status).c_str(), coalition_value); + att_status->add_hp(coalition_value); } } From a49cc2fb13305766d159fc28ebf4432b83f7b043 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 22 May 2026 21:32:36 +0000 Subject: [PATCH 3/3] Add Unity BGE regression test case Agent-Logs-Url: https://github.com/APN-Pucky/tyrant_optimize/sessions/0b96575c-c882-4843-aee1-954eb3784765 Co-authored-by: APN-Pucky <4533248+APN-Pucky@users.noreply.github.com> --- tests/test_bges.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_bges.csv b/tests/test_bges.csv index 1ca77bd4..f047aa08 100644 --- a/tests/test_bges.csv +++ b/tests/test_bges.csv @@ -3,3 +3,4 @@ Barracus the Traitor, Toxblade Squad,Alpha Cooperator ;Gaia the Purifier, Archmatron's Incisor#2,Alpha Cooperator;Virulence Broodmother Queen, Vile Darter#6,Alpha Cooperator;Barracus the Traitor, Parapet Welder#3,Alpha Cooperator ;Virulence Gaia the Purifier, Virklaw#4,Alpha Cooperator ;Arkadios Ultimate, Semyaza's Disciple#2,Alpha Cooperator;Virulence +Barracus the Traitor, Toxblade Squad,Alpha Cooperator ;Gaia the Purifier, Archmatron's Incisor#2,Alpha Cooperator;Unity