AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MarkOfNatureTargetSelector Class Reference

Public Member Functions

 MarkOfNatureTargetSelector ()
 
bool operator() (WorldObject *object)
 

Detailed Description

Constructor & Destructor Documentation

◆ MarkOfNatureTargetSelector()

MarkOfNatureTargetSelector::MarkOfNatureTargetSelector ( )
inline
771{ }

Member Function Documentation

◆ operator()()

bool MarkOfNatureTargetSelector::operator() ( WorldObject object)
inline
774 {
775 // return those not tagged or already under the influence of Aura of Nature
776 if (Unit* unit = object->ToUnit())
777 return !(unit->HasAura(SPELL_MARK_OF_NATURE) && !unit->HasAura(SPELL_AURA_OF_NATURE));
778 return true;
779 }
@ SPELL_MARK_OF_NATURE
Definition: boss_emerald_dragons.cpp:57
@ SPELL_AURA_OF_NATURE
Definition: boss_emerald_dragons.cpp:59
Unit * ToUnit()
Definition: Object.h:206
Definition: Unit.h:630

References SPELL_AURA_OF_NATURE, SPELL_MARK_OF_NATURE, and Object::ToUnit().