Core/Creature: regenerate health
Port From (https://github.com/TrinityCore/TrinityCore/commit/9a5e2b80b39d3c0a466aec1ab3a6dbccf938f570)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user