2874 {
2876
2877 switch (effIndex)
2878 {
2880 {
2882
2884 {
2888 break;
2892 break;
2893 default:
2894 return;
2895 }
2896
2898 rider->CastSpell(target, spellId, false);
2899 else
2901 break;
2902 }
2904 {
2906 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
2907 {
2908 if (
Aura* aura = itr->second->GetBase())
2909 {
2910 SpellInfo const* auraInfo = aura->GetSpellInfo();
2912 {
2914
2916 if (
Aura* defend = rider->GetAura(aura->GetId()))
2918 break;
2919 }
2920 }
2921 }
2922 break;
2923 }
2924 default:
2925 break;
2926 }
2927 }
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_BREAK_SHIELD_DAMAGE_10K
Definition: spell_generic.cpp:2844
@ SPELL_BREAK_SHIELD_TRIGGER_FACTION_MOUNTS
Definition: spell_generic.cpp:2846
@ SPELL_BREAK_SHIELD_TRIGGER_UNK
Definition: spell_generic.cpp:2848
@ SPELL_BREAK_SHIELD_DAMAGE_2K
Definition: spell_generic.cpp:2843
@ SPELL_BREAK_SHIELD_TRIGGER_SUNDERING_THURST
Definition: spell_generic.cpp:2849
@ SPELL_BREAK_SHIELD_TRIGGER_CAMPAING_WARHORSE
Definition: spell_generic.cpp:2847
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_0
Definition: SharedDefines.h:31
@ SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN
Definition: SpellAuraDefines.h:150
@ AURA_REMOVE_BY_ENEMY_SPELL
Definition: SpellAuraDefines.h:394
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition: Unit.h:639
Unit * GetCharmer() const
Definition: Unit.cpp:10608
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
AuraApplicationMap & GetAppliedAuras()
Definition: Unit.h:1304
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