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 91c0d49c18)
This commit is contained in:
ccrs
2017-08-21 20:28:18 +02:00
committed by Shauren
parent 04c974dbc3
commit 9a5e2b80b3
11 changed files with 31 additions and 31 deletions

View File

@@ -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: