fix(Core/Creature): Kill credit, loot and XP lost on creatures spawning below half health. (#26862)
This commit is contained in:
@@ -1771,6 +1771,9 @@ bool Creature::LoadCreatureFromDB(ObjectGuid::LowType spawnId, Map* map, bool ad
|
|||||||
|
|
||||||
SetHealth(m_deathState == DeathState::Alive ? curhealth : 0);
|
SetHealth(m_deathState == DeathState::Alive ? curhealth : 0);
|
||||||
|
|
||||||
|
// SelectLevel() sized the player damage requirement against full health, before curhealth was known
|
||||||
|
ResetPlayerDamageReq();
|
||||||
|
|
||||||
// checked at creature_template loading
|
// checked at creature_template loading
|
||||||
m_defaultMovementType = MovementGeneratorType(data->movementType);
|
m_defaultMovementType = MovementGeneratorType(data->movementType);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user