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

Public Member Functions

 UnchainedMagicTargetSelector ()
 
bool operator() (WorldObject *object) const
 

Constructor & Destructor Documentation

UnchainedMagicTargetSelector::UnchainedMagicTargetSelector ( )
inline
1127 { }

Member Function Documentation

bool UnchainedMagicTargetSelector::operator() ( WorldObject object) const
inline
1130  {
1131  if (Unit* unit = object->ToUnit())
1132  return unit->getPowerType() != POWER_MANA;
1133  return true;
1134  }
Definition: Unit.h:1305
Unit * ToUnit()
Definition: Object.h:197
Definition: SharedDefines.h:248

+ Here is the call graph for this function:


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