From 87b6b9c27fa5a0f451a3b45e82bdee6c9be38a35 Mon Sep 17 00:00:00 2001 From: SnapperRy Date: Wed, 14 Sep 2016 22:42:47 +0200 Subject: 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). (cherry picked from commit 025002b90789e3f506e072e68cfa68c90eef296a) --- src/server/game/Entities/Creature/TemporarySummon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Entities/Creature/TemporarySummon.cpp b/src/server/game/Entities/Creature/TemporarySummon.cpp index 9980ff4fb35..c31cec6dee3 100644 --- a/src/server/game/Entities/Creature/TemporarySummon.cpp +++ b/src/server/game/Entities/Creature/TemporarySummon.cpp @@ -331,7 +331,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(); -- cgit v1.2.3