791 {
793 {
794 return false;
795 }
796
798
799 bool selectCaster = false;
800
802 {
804 selectCaster = true;
805 }
806
808 {
809 return false;
810 }
811
813
814
816 {
818 {
819 if (
Unit* target = (selectCaster ? eventInfo.
GetActor() : eventInfo.GetActionTarget()))
820 {
822 {
824 }
825 }
826 }
827 }
828
829 return true;
830 }
@ EFFECT_0
Definition SharedDefines.h:31
Definition SpellAuraEffects.h:39
Unit * GetCaster() const
Definition SpellScript.cpp:1020
SpellInfo const * GetTriggerAuraSpell() const
Definition Unit.h:451
Unit * GetActionTarget() const
Definition Unit.h:440
SpellInfo const * GetSpellInfo() const
Definition Unit.cpp:184
int8 GetTriggerAuraEffectIndex() const
Definition Unit.h:452
Unit * GetActor()
Definition Unit.h:439
Definition SpellInfo.h:316
uint32 Id
Definition SpellInfo.h:320
SpellInfo const * _spellInfo
Definition spell_mage.cpp:858
uint8 _ticksModifier
Definition spell_mage.cpp:859