788 {
790 {
791 return false;
792 }
793
795
796 bool selectCaster = false;
797
799 {
801 selectCaster = true;
802 }
803
805 {
806 return false;
807 }
808
810
811
813 {
815 {
816 if (
Unit* target = (selectCaster ? eventInfo.
GetActor() : eventInfo.GetActionTarget()))
817 {
819 {
821 }
822 }
823 }
824 }
825
826 return true;
827 }
@ EFFECT_0
Definition SharedDefines.h:31
Definition SpellAuraEffects.h:39
Unit * GetCaster() const
Definition SpellScript.cpp:1020
SpellInfo const * GetTriggerAuraSpell() const
Definition Unit.h:452
Unit * GetActionTarget() const
Definition Unit.h:441
SpellInfo const * GetSpellInfo() const
Definition Unit.cpp:185
int8 GetTriggerAuraEffectIndex() const
Definition Unit.h:453
Unit * GetActor()
Definition Unit.h:440
Definition SpellInfo.h:316
uint32 Id
Definition SpellInfo.h:320
SpellInfo const * _spellInfo
Definition spell_mage.cpp:855
uint8 _ticksModifier
Definition spell_mage.cpp:856