mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 06:07:37 +01:00
Fix build and correct minor codestyle issue.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -332,7 +332,7 @@ void SpellScript::SetExplTargetDest(WorldLocation& loc)
|
||||
m_spell->m_targets.SetDst(loc);
|
||||
}
|
||||
|
||||
Unit* SpellScript::GetExplTargetWorldObject()
|
||||
WorldObject* SpellScript::GetExplTargetWorldObject()
|
||||
{
|
||||
return m_spell->m_targets.GetObjectTarget();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user