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

Member Function Documentation

◆ operator()()

bool EarthenPowerTargetSelector::operator() ( WorldObject target)
inline
685 {
686 if (!target->ToUnit())
687 return true;
688
689 if (!target->ToUnit()->HasAuraWithMechanic(1 << MECHANIC_SNARE))
690 return true;
691
692 return false;
693 }
@ MECHANIC_SNARE
Definition SharedDefines.h:1324
Unit * ToUnit()
Definition Object.h:210
bool HasAuraWithMechanic(uint64 mechanicMask) const
Definition Unit.cpp:6076

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


The documentation for this class was generated from the following file: