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

Public Member Functions

 HighSanityTargetSelector ()
 
bool operator() (WorldObject *object)
 

Constructor & Destructor Documentation

HighSanityTargetSelector::HighSanityTargetSelector ( )
inline
1965 { }

Member Function Documentation

bool HighSanityTargetSelector::operator() ( WorldObject object)
inline
1968  {
1969  if (Unit* unit = object->ToUnit())
1970  if (Aura* sanity = unit->GetAura(SPELL_SANITY))
1971  return sanity->GetStackAmount() <= 40;
1972  return true;
1973  }
Definition: boss_yogg_saron.cpp:108
Definition: SpellAuras.h:116
Definition: Unit.h:1305
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: