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

This commit is contained in:
treeston
2017-06-16 22:28:41 +02:00
parent 24c0580bbf
commit 30ac4f5377

View File

@@ -82,7 +82,11 @@ void HomeMovementGenerator<Creature>::DoFinalize(Creature* owner)
owner->SetWalk(true); owner->SetWalk(true);
owner->LoadCreaturesAddon(); owner->LoadCreaturesAddon();
owner->AI()->JustReachedHome(); owner->AI()->JustReachedHome();
owner->SetSpawnHealth(); if (owner->isRegeneratingHealth() && (owner->IsDungeonBoss() || owner->isWorldBoss()))
{
owner->SetFullHealth();
owner->SetPower(POWER_MANA, owner->GetMaxPower(POWER_MANA));
}
} }
} }