mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 13:09:50 -04:00
Core/SmartAI: add SMART_ACTION_SET_HEALTH_REGEN (102).
This commit is contained in:
@@ -1965,6 +1965,12 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_SET_HEALTH_REGEN:
|
||||
{
|
||||
if (!me || me->GetTypeId() != TYPEID_UNIT)
|
||||
break;
|
||||
me->setRegeneratingHealth(e.action.setHealthRegen.regenHealth ? true : false);
|
||||
}
|
||||
default:
|
||||
sLog->outError(LOG_FILTER_SQL, "SmartScript::ProcessAction: Entry %d SourceType %u, Event %u, Unhandled Action type %u", e.entryOrGuid, e.GetScriptType(), e.event_id, e.GetActionType());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user