Core/Creature: regenerate health
There are three possible scenarios regarding regenerating health - db lock and curhealth set to > 0 - db lock and curhealth set to 0 - dynamic lock (set in scripts and such) overriding db lock (cherry picked from commit 91c0d49c188977c3d797f5749b1204612ce50195)
This commit is contained in:
@@ -1953,7 +1953,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
{
|
||||
for (WorldObject* target : targets)
|
||||
if (IsCreature(target))
|
||||
target->ToCreature()->setRegeneratingHealth(e.action.setHealthRegen.regenHealth != 0);
|
||||
target->ToCreature()->SetRegenerateHealth(e.action.setHealthRegen.regenHealth != 0);
|
||||
break;
|
||||
}
|
||||
case SMART_ACTION_SET_ROOT:
|
||||
|
||||
Reference in New Issue
Block a user