AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
LeechingThrowSelector Struct Reference

Public Member Functions

 LeechingThrowSelector (WorldObject const *source)
 
bool operator() (Unit *unit) const
 

Private Attributes

WorldObject const * _source
 

Detailed Description

Constructor & Destructor Documentation

◆ LeechingThrowSelector()

LeechingThrowSelector::LeechingThrowSelector ( WorldObject const *  source)
inlineexplicit
174: _source(source) { }
WorldObject const * _source
Definition: boss_fathomlord_karathress.cpp:181

Member Function Documentation

◆ operator()()

bool LeechingThrowSelector::operator() ( Unit unit) const
inline
177 {
178 return unit->getPowerType() == POWER_MANA && _source->GetDistance(unit) < 50.0f;
179 }
@ POWER_MANA
Definition: SharedDefines.h:269
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1245
Powers getPowerType() const
Definition: Unit.h:1473

References _source, WorldObject::GetDistance(), Unit::getPowerType(), and POWER_MANA.

Member Data Documentation

◆ _source

WorldObject const* LeechingThrowSelector::_source
private

Referenced by operator()().