mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
Core/Creature: Fix SetSpawnHealth so it cooperates with the colossal hack that is Battleground::AddCreature. *puke*
(cherrypicked from b3b4054eb4)
This commit is contained in:
@@ -1651,12 +1651,8 @@ void Creature::LoadEquipment(int8 id, bool force /*= true*/)
|
||||
|
||||
void Creature::SetSpawnHealth()
|
||||
{
|
||||
if (!m_creatureData)
|
||||
return;
|
||||
|
||||
uint32 curhealth;
|
||||
|
||||
if (!m_regenHealth)
|
||||
if (m_creatureData && !m_regenHealth)
|
||||
{
|
||||
curhealth = m_creatureData->curhealth;
|
||||
if (curhealth)
|
||||
|
||||
Reference in New Issue
Block a user