AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
EarthenPowerTargetSelector Class Reference

Public Member Functions

 EarthenPowerTargetSelector ()
 
bool operator() (WorldObject *target)
 

Detailed Description

Constructor & Destructor Documentation

◆ EarthenPowerTargetSelector()

EarthenPowerTargetSelector::EarthenPowerTargetSelector ( )
inline
618{ }

Member Function Documentation

◆ operator()()

bool EarthenPowerTargetSelector::operator() ( WorldObject target)
inline
621 {
622 if (!target->ToUnit())
623 return true;
624
625 if (!target->ToUnit()->HasAuraWithMechanic(1 << MECHANIC_SNARE))
626 return true;
627
628 return false;
629 }
@ MECHANIC_SNARE
Definition: SharedDefines.h:1308
Unit * ToUnit()
Definition: Object.h:200
bool HasAuraWithMechanic(uint32 mechanicMask) const
Definition: Unit.cpp:5704

References Unit::HasAuraWithMechanic(), MECHANIC_SNARE, and Object::ToUnit().