2981 {
2983
2984 switch (effIndex)
2985 {
2987 {
2989
2991 {
2995 break;
2999 break;
3000 default:
3001 return;
3002 }
3003
3005 rider->CastSpell(target, spellId, false);
3006 else
3008 break;
3009 }
3011 {
3013 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3014 {
3015 if (
Aura* aura = itr->second->GetBase())
3016 {
3017 SpellInfo const* auraInfo = aura->GetSpellInfo();
3019 {
3021
3023 if (
Aura* defend = rider->GetAura(aura->GetId()))
3025 break;
3026 }
3027 }
3028 }
3029 break;
3030 }
3031 default:
3032 break;
3033 }
3034 }
std::uint32_t uint32
Definition Define.h:107
@ 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
Definition SpellAuras.h:87
Definition SpellInfo.h:340
uint32 SpellIconID
Definition SpellInfo.h:404
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:411
Unit * GetHitUnit()
Definition SpellScript.cpp:448
Unit * GetCaster()
Definition SpellScript.cpp:401
Unit * GetCharmer() const
Definition Unit.cpp:7754
boost::container::flat_multimap< uint32, AuraApplication * > AuraApplicationMap
Definition Unit.h:674
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:1361
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1384
@ SPELL_BREAK_SHIELD_DAMAGE_10K
Definition spell_generic.cpp:2951
@ SPELL_BREAK_SHIELD_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:2953
@ SPELL_BREAK_SHIELD_TRIGGER_UNK
Definition spell_generic.cpp:2955
@ SPELL_BREAK_SHIELD_DAMAGE_2K
Definition spell_generic.cpp:2950
@ SPELL_BREAK_SHIELD_TRIGGER_SUNDERING_THURST
Definition spell_generic.cpp:2956
@ SPELL_BREAK_SHIELD_TRIGGER_CAMPAING_WARHORSE
Definition spell_generic.cpp:2954