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

Public Member Functions

 DeathPlagueTargetSelector (Unit *caster)
 
bool operator() (WorldObject *object) const
 

Private Attributes

Unit_caster
 

Constructor & Destructor Documentation

DeathPlagueTargetSelector::DeathPlagueTargetSelector ( Unit caster)
inlineexplicit
1854 : _caster(caster) { }
Unit * _caster
Definition: icecrown_citadel.cpp:1871

Member Function Documentation

bool DeathPlagueTargetSelector::operator() ( WorldObject object) const
inline
1857  {
1858  if (object == _caster)
1859  return true;
1860 
1861  if (object->GetTypeId() != TYPEID_PLAYER)
1862  return true;
1863 
1864  if (object->ToUnit()->HasAura(SPELL_RECENTLY_INFECTED) || object->ToUnit()->HasAura(SPELL_DEATH_PLAGUE_AURA))
1865  return true;
1866 
1867  return false;
1868  }
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint32 reqEffMask=0) const
Definition: Unit.cpp:4240
Definition: icecrown_citadel.cpp:107
TypeID GetTypeId() const
Definition: Object.h:113
Definition: ObjectGuid.h:33
Definition: icecrown_citadel.cpp:108
Unit * _caster
Definition: icecrown_citadel.cpp:1871
Unit * ToUnit()
Definition: Object.h:197

+ Here is the call graph for this function:

Member Data Documentation

Unit* DeathPlagueTargetSelector::_caster
private

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