I'm wondering how you implemented the transition from Headhunter to berserker when the upgrade is finished.
Did you use a game trigger ? Or some other mechanism?
Also looking at the code I think that the Troll Regeneration upgrade doesn't have the effect of setting the regeneration to 1.5 (I think it just doesn't do anything).
Thanks in advance!
Headhunter -> Berserker is done by the ability "Berserker Upgrade"(not the research ability), it's actually us the same mech as the war3 one.
"Berserker Upgrade" is a hidden abilities that would morph the unit into a berserker, its a auto morph ability.
But this ability has a requirement, that "need Berserker Upgrade tech researched". So actually it always morph the headhunter, just need tech.
And the Troll Regeneration... wow, that's a actual bug:(
Hard to believe this things is missed for so long. Will fix it.
Troll Regeneration should fixed in the latest update.