Core/Creature: regenerate health

Port From (https://github.com/TrinityCore/TrinityCore/commit/9a5e2b80b39d3c0a466aec1ab3a6dbccf938f570)
This commit is contained in:
hondacrx
2020-08-24 19:19:13 -04:00
parent 35c13d69ca
commit 8b6c86d568
6 changed files with 17 additions and 21 deletions
@@ -47,11 +47,7 @@ namespace Game.AI
owner.SetWalk(true);
owner.LoadCreaturesAddon();
owner.GetAI().JustReachedHome();
if (owner.IsRegeneratingHealth())
{
owner.SetFullHealth();
owner.SetPower(PowerType.Mana, owner.GetMaxPower(PowerType.Mana));
}
owner.SetSpawnHealth();
}
}