Core/Creature: enable pet bar for TempSummons with category SUMMON_CATEGORY_PET.

Thanks @ariel- for helping with the research (although I'm two months late).
This commit is contained in:
SnapperRy
2016-09-14 22:42:47 +02:00
committed by GitHub
parent 6913286cb9
commit 025002b907

View File

@@ -324,7 +324,7 @@ Guardian::Guardian(SummonPropertiesEntry const* properties, Unit* owner, bool is
{
memset(m_statFromOwner, 0, sizeof(float)*MAX_STATS);
m_unitTypeMask |= UNIT_MASK_GUARDIAN;
if (properties && properties->Type == SUMMON_TYPE_PET)
if (properties && (properties->Type == SUMMON_TYPE_PET || properties->Category == SUMMON_CATEGORY_PET))
{
m_unitTypeMask |= UNIT_MASK_CONTROLABLE_GUARDIAN;
InitCharmInfo();