Fix an issue where temp summons were ignoring m_regenHealth.

This commit is contained in:
Aokromes
2017-06-17 11:46:01 +02:00
parent ef2efdae4c
commit 37be43ae8b

View File

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