TrinityCore
Loading...
Searching...
No Matches
HighSanityTargetSelector Class Reference

Public Member Functions

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

Detailed Description

Definition at line 2008 of file boss_yogg_saron.cpp.

Constructor & Destructor Documentation

◆ HighSanityTargetSelector()

HighSanityTargetSelector::HighSanityTargetSelector ( )
inline

Definition at line 2011 of file boss_yogg_saron.cpp.

2011{ }

Member Function Documentation

◆ operator()()

bool HighSanityTargetSelector::operator() ( WorldObject object)
inline

Definition at line 2013 of file boss_yogg_saron.cpp.

2014 {
2015 if (Unit* unit = object->ToUnit())
2016 if (Aura* sanity = unit->GetAura(SPELL_SANITY))
2017 return sanity->GetStackAmount() <= 40;
2018 return true;
2019 }
@ SPELL_SANITY
static Unit * ToUnit(Object *o)
Definition: Object.h:212
Definition: Unit.h:747
+ Here is the call graph for this function:

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