mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 15:17:27 +01:00
Core/Creature: Fix SetSpawnHealth so it cooperates with the colossal hack that is Battleground::AddCreature. *puke*
This commit is contained in:
@@ -1552,12 +1552,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