387 {
389 {
391 for (std::list<TargetInfo>::const_iterator ihit = targetsInfo->begin(); ihit != targetsInfo->end(); ++ihit)
392 if (ihit->missCondition ==
SPELL_MISS_NONE && ihit->targetGUID == target->GetGUID())
394 }
395 }
@ SPELL_MISS_NONE
Definition: SharedDefines.h:1519
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1167
std::list< TargetInfo > * GetUniqueTargetInfo()
Definition: Spell.h:591
Unit * GetExplTargetUnit()
Definition: SpellScript.cpp:433
Spell * GetSpell()
Definition: SpellScript.h:442
Unit * GetCaster()
Definition: SpellScript.cpp:401