TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
WebTargetSelector Struct Reference

Public Member Functions

 WebTargetSelector (Unit *maexxna)
 
bool operator() (Unit const *target) const
 

Private Attributes

const Unit_maexxna
 

Constructor & Destructor Documentation

WebTargetSelector::WebTargetSelector ( Unit maexxna)
inline
74 : _maexxna(maexxna) {}
const Unit * _maexxna
Definition: boss_maexxna.cpp:85

Member Function Documentation

bool WebTargetSelector::operator() ( Unit const target) const
inline
76  {
77  if (_maexxna->GetVictim() == target) // never target tank
78  return false;
79  if (target->HasAura(SPELL_WEB_WRAP)) // never target targets that are already webbed
80  return false;
81  return true;
82  }
Definition: boss_maexxna.cpp:26
Unit * GetVictim() const
Definition: Unit.h:1379
const Unit * _maexxna
Definition: boss_maexxna.cpp:85

+ Here is the call graph for this function:

Member Data Documentation

const Unit* WebTargetSelector::_maexxna
private

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