740 {
742 if (aurEff->GetAmount() <= 0)
743 {
745 {
746 return;
747 }
748
750
753 {
755 triggerCaster->
CastSpell(target, triggeredSpellInfo,
true, 0, aurEff);
756 }
757 }
758 }
std::uint32_t uint32
Definition: Define.h:107
#define sSpellMgr
Definition: SpellMgr.h:825
@ SPELL_HUNTER_SNIPER_TRAINING_R1
Definition: spell_hunter.cpp:65
@ SPELL_HUNTER_SNIPER_TRAINING_BUFF_R1
Definition: spell_hunter.cpp:66
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:1168
Definition: SpellInfo.h:316
void PreventDefaultAction()
Definition: SpellScript.cpp:985
SpellInfo const * GetSpellInfo() const
Definition: SpellScript.cpp:1005
Unit * GetCaster() const
Definition: SpellScript.cpp:1020
Unit * GetTarget() const
Definition: SpellScript.cpp:1165
uint32 GetId() const
Definition: SpellScript.cpp:1010