Core/Creatures: Set melee sheath as default only for creatures that do not have creature_addon data

This commit is contained in:
Shauren
2012-04-18 12:44:56 +02:00
parent 1be4027a90
commit bec761a3e0

View File

@@ -357,8 +357,9 @@ bool Creature::UpdateEntry(uint32 Entry, uint32 team, const CreatureData* data)
m_regenHealth = cInfo->RegenHealth;
// creatures always have melee weapon ready if any
SetSheath(SHEATH_STATE_MELEE);
// creatures always have melee weapon ready if any unless specified otherwise
if (!GetCreatureAddon())
SetSheath(SHEATH_STATE_MELEE);
SelectLevel(GetCreatureTemplate());
if (team == HORDE)