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
619{ }

Member Function Documentation

◆ operator()()

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

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