Fix an issue where temp summons were ignoring m_regenHealth. (Hi Keader.)

(cherry picked from commit 30ac4f5377)
This commit is contained in:
treeston
2017-06-16 22:28:41 +02:00
committed by Carbenium
parent 29db04c3c9
commit ec9fbaceb0

View File

@@ -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));
}
}
}