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
This commit is contained in:
ccrs
2017-08-21 20:28:18 +02:00
parent 5f8ee9a01e
commit 91c0d49c18
10 changed files with 30 additions and 30 deletions
@@ -1900,7 +1900,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: