Fix an issue where temp summons were ignoring m_regenHealth.
Port From (https://github.com/TrinityCore/TrinityCore/commit/ec9fbaceb057e5beb8dda066b2c4773abe3dba7e)
This commit is contained in:
@@ -47,7 +47,11 @@ namespace Game.AI
|
||||
owner.SetWalk(true);
|
||||
owner.LoadCreaturesAddon();
|
||||
owner.GetAI().JustReachedHome();
|
||||
owner.SetSpawnHealth();
|
||||
if (owner.IsRegeneratingHealth())
|
||||
{
|
||||
owner.SetFullHealth();
|
||||
owner.SetPower(PowerType.Mana, owner.GetMaxPower(PowerType.Mana));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user