aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-09-14 22:42:47 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-26 21:34:05 +0100
commit87b6b9c27fa5a0f451a3b45e82bdee6c9be38a35 (patch)
tree71e91ea8e91fb9e01faf8b75d0168044b0013924
parent792e414b6165cbd0907e1f518b3fb07623d7e943 (diff)
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)
-rw-r--r--src/server/game/Entities/Creature/TemporarySummon.cpp2
1 files changed, 1 insertions, 1 deletions
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();