fix(Core/Creature): Kill credit, loot and XP lost on creatures spawning below half health. (#26862)

This commit is contained in:
Rocco Silipo
2026-08-02 08:16:51 +02:00
committed by GitHub
parent a4f52cf083
commit 386125adfa
@@ -1771,6 +1771,9 @@ bool Creature::LoadCreatureFromDB(ObjectGuid::LowType spawnId, Map* map, bool ad
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
m_defaultMovementType = MovementGeneratorType(data->movementType);