Core/Misc: Defined new summon properties titles
Port From (https://github.com/TrinityCore/TrinityCore/commit/3700e0ef5de95dc79290cd16b5abacdd0d490570)
This commit is contained in:
@@ -199,7 +199,7 @@ namespace Game.Entities
|
||||
if (GetMinionGUID().IsEmpty())
|
||||
SetMinionGUID(minion.GetGUID());
|
||||
|
||||
if (minion.m_Properties != null && minion.m_Properties.Title == SummonType.Minipet)
|
||||
if (minion.m_Properties != null && minion.m_Properties.Title == SummonTitle.Companion)
|
||||
{
|
||||
SetCritterGUID(minion.GetGUID());
|
||||
Player thisPlayer = ToPlayer();
|
||||
@@ -230,7 +230,7 @@ namespace Game.Entities
|
||||
|
||||
m_Controlled.Remove(minion);
|
||||
|
||||
if (minion.m_Properties != null && minion.m_Properties.Title == SummonType.Minipet)
|
||||
if (minion.m_Properties != null && minion.m_Properties.Title == SummonTitle.Companion)
|
||||
{
|
||||
if (GetCritterGUID() == minion.GetGUID())
|
||||
SetCritterGUID(ObjectGuid.Empty);
|
||||
|
||||
Reference in New Issue
Block a user