58 {
60 return false;
61
62 if (!target)
63 return false;
64
66 return false;
67
69 return false;
70
72 return false;
73
74 if (m_dist < 0.0f && me->IsWithinCombatRange(target, -
m_dist))
75 return false;
76
78 {
80 {
81 if (!target->HasAura(
m_aura))
82 return false;
83 }
84 else
85 {
86 if (target->HasAura(-
m_aura))
87 return false;
88 }
89 }
90
91 return true;
92 }
@ TYPEID_PLAYER
Definition: ObjectGuid.h:38
bool IsWithinCombatRange(Unit const *obj, float dist2compare) const
Definition: Unit.cpp:667
References except, Object::GetTypeId(), Unit::HasAura(), Unit::IsWithinCombatRange(), m_aura, m_dist, m_playerOnly, me, and TYPEID_PLAYER.