TrinityCore
Loading...
Searching...
No Matches
SpellTargetSelector Struct Reference

#include <UnitAICommon.h>

Public Member Functions

 SpellTargetSelector (Unit *caster, uint32 spellId)
 
bool operator() (Unit const *target) const
 

Private Attributes

Unit const * _caster
 
SpellInfo const * _spellInfo
 

Detailed Description

Todo:
Add more checks from Spell::CheckCast

Definition at line 69 of file UnitAICommon.h.

Constructor & Destructor Documentation

◆ SpellTargetSelector()

SpellTargetSelector::SpellTargetSelector ( Unit *  caster,
uint32  spellId 
)

Definition at line 67 of file UnitAICommon.cpp.

References _spellInfo, and ASSERT.

Member Function Documentation

◆ operator()()

Member Data Documentation

◆ _caster

Unit const* SpellTargetSelector::_caster
private

Definition at line 75 of file UnitAICommon.h.

Referenced by operator()().

◆ _spellInfo

SpellInfo const* SpellTargetSelector::_spellInfo
private

Definition at line 76 of file UnitAICommon.h.

Referenced by operator()(), and SpellTargetSelector().


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