Zimdictive
Chieftain
I'd like to implement a small health bonus upon receiving the required XP for the next promotion (i.e. if unit:ExperienceNeeded() == 0) to help units (and hopefully the AI on those occasions they through throw their nearly-promoted unit away on a dumb low-HP attack) survive through to the next turn when they can choose their promotion. But I'm not sure how to monitor units for this information (especially units who are defending rather than attacking) - I thought about subscribing to Events.EndCombatSim to grab the attacking and defending units' IDs - but I'm pretty sure this will only work for combat the player is engaged in, or at least can see, because it's intended to update the UI. Does anyone have any suggestions?
Thanks.
Thanks.