Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
SpellTargetSelector Struct Reference

#include <UnitAI.h>

Inheritance diagram for SpellTargetSelector:
Collaboration diagram for SpellTargetSelector:

Public Member Functions

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

Private Attributes

Unit const * _caster
SpellInfo const * _spellInfo

Detailed Description

Todo
Add more checks from Spell::CheckCast

Definition at line 81 of file UnitAI.h.

Constructor & Destructor Documentation

◆ SpellTargetSelector()

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

Definition at line 270 of file UnitAI.cpp.

References _caster, _spellInfo, ASSERT, and sSpellMgr.

Member Function Documentation

◆ operator()()

bool SpellTargetSelector::operator() ( Unit const * target) const

Definition at line 276 of file UnitAI.cpp.

References _caster, _spellInfo, SPELL_CAST_OK, SPELL_RANGE_MELEE, and SPELL_RANGE_RANGED.

Member Data Documentation

◆ _caster

Unit const* SpellTargetSelector::_caster
private

Definition at line 88 of file UnitAI.h.

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

◆ _spellInfo

SpellInfo const* SpellTargetSelector::_spellInfo
private

Definition at line 89 of file UnitAI.h.

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


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