Merge pull request #6239 from The-Game/master

Core/Spell: Fix unit tracking to not being limited to the caster of SPELL_AURA_MOD_STALKED.
This commit is contained in:
QAston
2012-04-28 04:56:58 -07:00
+4 -1
View File
@@ -626,7 +626,10 @@ void Object::_BuildValuesUpdate(uint8 updatetype, ByteBuffer * data, UpdateMask*
if (!target->isAllowedToLoot(creature))
dynamicFlags &= ~UNIT_DYNFLAG_LOOTABLE;
}
if(dynamicFlags & UNIT_DYNFLAG_TRACK_UNIT)
if (Unit const* unit = ToUnit())
if (!unit->HasAuraTypeWithCaster(SPELL_AURA_MOD_STALKED, target->GetGUID()))
dynamicFlags &= ~UNIT_DYNFLAG_TRACK_UNIT;
*data << dynamicFlags;
}
// FG: pretend that OTHER players in own group are friendly ("blue")