whoward69
DLL Minion
Code snippet to make healing units behave as sentry/alert units rather than fortifying units (ie they will wake up if they see an enemy, rather than sitting there taking more damage!)
In CvUnit.cpp
In CvUnit.cpp
Code:
bool bHealCheck = (eActivityType == ACTIVITY_HEAL) && (!isHuman() || IsAutomated() || !IsHurt());
[COLOR="Red"]// Healing units will also awaken if they can see an enemy unit
bHealCheck = bHealCheck || ((eActivityType == ACTIVITY_HEAL) && SentryAlert());[/COLOR]
bool bSentryCheck = (eActivityType == ACTIVITY_SENTRY) && SentryAlert();