Fix build and correct minor codestyle issue.
This commit is contained in:
1 parent
b899f5fc94
commit
b53485e053
2 files changed
+5
-3
No files matched your search
@@ -626,8 +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())
|
||||
|
||||
// unit UNIT_DYNFLAG_TRACK_UNIT should only be sent to caster of SPELL_AURA_MOD_STALKED auras
|
||||
if (Unit const* unit = ToUnit())
|
||||
if (dynamicFlags & UNIT_DYNFLAG_TRACK_UNIT)
|
||||
if (!unit->HasAuraTypeWithCaster(SPELL_AURA_MOD_STALKED, target->GetGUID()))
|
||||
dynamicFlags &= ~UNIT_DYNFLAG_TRACK_UNIT;
|
||||
*data << dynamicFlags;
|
||||
|
||||
Reference in new issue
Block a user