2900 {
2902
2903 switch (effIndex)
2904 {
2906 {
2908
2910 {
2914 break;
2918 break;
2919 default:
2920 return;
2921 }
2922
2924 rider->CastSpell(target, spellId, false);
2925 else
2927 break;
2928 }
2930 {
2932 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
2933 {
2934 if (
Aura* aura = itr->second->GetBase())
2935 {
2936 SpellInfo const* auraInfo = aura->GetSpellInfo();
2938 {
2940
2942 if (
Aura* defend = rider->GetAura(aura->GetId()))
2944 break;
2945 }
2946 }
2947 }
2948 break;
2949 }
2950 default:
2951 break;
2952 }
2953 }
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN
Definition: SpellAuraDefines.h:150
@ AURA_REMOVE_BY_ENEMY_SPELL
Definition: SpellAuraDefines.h:394
@ SPELL_BREAK_SHIELD_DAMAGE_10K
Definition: spell_generic.cpp:2870
@ SPELL_BREAK_SHIELD_TRIGGER_FACTION_MOUNTS
Definition: spell_generic.cpp:2872
@ SPELL_BREAK_SHIELD_TRIGGER_UNK
Definition: spell_generic.cpp:2874
@ SPELL_BREAK_SHIELD_DAMAGE_2K
Definition: spell_generic.cpp:2869
@ SPELL_BREAK_SHIELD_TRIGGER_SUNDERING_THURST
Definition: spell_generic.cpp:2875
@ SPELL_BREAK_SHIELD_TRIGGER_CAMPAING_WARHORSE
Definition: spell_generic.cpp:2873
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_0
Definition: SharedDefines.h:31
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition: Unit.h:639
Unit * GetCharmer() const
Definition: Unit.cpp:10570
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
AuraApplicationMap & GetAppliedAuras()
Definition: Unit.h:1319
Definition: SpellAuras.h:87
Definition: SpellInfo.h:316
uint32 SpellIconID
Definition: SpellInfo.h:380
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
Unit * GetHitUnit()
Definition: SpellScript.cpp:448
Unit * GetCaster()
Definition: SpellScript.cpp:401