aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index aed06441dd7..d75e7db11fe 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -16328,8 +16328,6 @@ void Unit::SetPhaseMask(uint32 newPhaseMask, bool update)
if (IsInWorld())
{
- RemoveNotOwnSingleTargetAuras(newPhaseMask); // we can lost access to caster or target
-
// modify hostile references for new phasemask, some special cases deal with hostile references themselves
if (GetTypeId() == TYPEID_UNIT || (!ToPlayer()->IsGameMaster() && !ToPlayer()->GetSession()->PlayerLogout()))
{
@@ -16377,6 +16375,8 @@ void Unit::SetPhaseMask(uint32 newPhaseMask, bool update)
if (m_SummonSlot[i])
if (Creature* summon = GetMap()->GetCreature(m_SummonSlot[i]))
summon->SetPhaseMask(newPhaseMask, true);
+
+ RemoveNotOwnSingleTargetAuras(newPhaseMask); // we can lost access to caster or target
}
// Update visibility after phasing pets and summons so they wont despawn