Core/Objects: Fixup SMSG_UPDATE_OBJECT related refactors
Port From (https://github.com/TrinityCore/TrinityCore/commit/963eb6b80c1231ebaadd29806666c9ae5b79a985)
This commit is contained in:
@@ -3691,19 +3691,6 @@ namespace Game.Entities
|
||||
void SetRespawnCompatibilityMode(bool mode = true) { m_respawnCompatibilityMode = mode; }
|
||||
public bool GetRespawnCompatibilityMode() { return m_respawnCompatibilityMode; }
|
||||
|
||||
public override UpdateFieldFlag GetUpdateFieldFlagsFor(Player target)
|
||||
{
|
||||
UpdateFieldFlag flags = UpdateFieldFlag.None;
|
||||
if (GetOwnerGUID() == target.GetGUID())
|
||||
flags |= UpdateFieldFlag.Owner;
|
||||
|
||||
if (HasDynamicFlag(UnitDynFlags.SpecialInfo))
|
||||
if (HasAuraTypeWithCaster(AuraType.Empathy, target.GetGUID()))
|
||||
flags |= UpdateFieldFlag.Empath;
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
public override void BuildValuesCreate(WorldPacket data, UpdateFieldFlag flags, Player target)
|
||||
{
|
||||
m_objectData.WriteCreate(data, flags, this, target);
|
||||
|
||||
Reference in New Issue
Block a user