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

Member Function Documentation

◆ operator()()

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

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