TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
EarthenPowerTargetSelector Class Reference

Public Member Functions

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

Constructor & Destructor Documentation

EarthenPowerTargetSelector::EarthenPowerTargetSelector ( )
inline
406 { }

Member Function Documentation

bool EarthenPowerTargetSelector::operator() ( WorldObject target)
inline
409  {
410  if (!target->ToUnit())
411  return true;
412 
413  if (!target->ToUnit()->HasAuraWithMechanic(1 << MECHANIC_SNARE))
414  return true;
415 
416  return false;
417  }
Definition: SharedDefines.h:1801
bool HasAuraWithMechanic(uint32 mechanicMask) const
Definition: Unit.cpp:4311
Unit * ToUnit()
Definition: Object.h:197

+ Here is the call graph for this function:


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