mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Fix an issue where temp summons were ignoring m_regenHealth. (Hi Keader.)
(cherry picked from commit 30ac4f5377)
This commit is contained in:
@@ -82,7 +82,11 @@ void HomeMovementGenerator<Creature>::DoFinalize(Creature* owner)
|
||||
owner->SetWalk(true);
|
||||
owner->LoadCreaturesAddon();
|
||||
owner->AI()->JustReachedHome();
|
||||
owner->SetSpawnHealth();
|
||||
if (owner->isRegeneratingHealth() && (owner->IsDungeonBoss() || owner->isWorldBoss()))
|
||||
{
|
||||
owner->SetFullHealth();
|
||||
owner->SetPower(POWER_MANA, owner->GetMaxPower(POWER_MANA));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user