2991 {
2993
2994 switch (effIndex)
2995 {
2997 {
2999
3001 {
3005 break;
3009 break;
3010 default:
3011 return;
3012 }
3013
3015 rider->CastSpell(target, spellId, false);
3016 else
3018 break;
3019 }
3021 {
3023 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3024 {
3025 if (
Aura* aura = itr->second->GetBase())
3026 {
3027 SpellInfo const* auraInfo = aura->GetSpellInfo();
3029 {
3031
3033 if (
Aura* defend = rider->GetAura(aura->GetId()))
3035 break;
3036 }
3037 }
3038 }
3039 break;
3040 }
3041 default:
3042 break;
3043 }
3044 }
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:88
Definition SpellInfo.h:340
uint32 SpellIconID
Definition SpellInfo.h:404
SpellInfo const * GetSpellInfo()
Definition SpellScript.cpp:416
Unit * GetHitUnit()
Definition SpellScript.cpp:453
Unit * GetCaster()
Definition SpellScript.cpp:401
Unit * GetCharmer() const
Definition Unit.cpp:7451
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:1359
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1388
@ SPELL_BREAK_SHIELD_DAMAGE_10K
Definition spell_generic.cpp:2961
@ SPELL_BREAK_SHIELD_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:2963
@ SPELL_BREAK_SHIELD_TRIGGER_UNK
Definition spell_generic.cpp:2965
@ SPELL_BREAK_SHIELD_DAMAGE_2K
Definition spell_generic.cpp:2960
@ SPELL_BREAK_SHIELD_TRIGGER_SUNDERING_THURST
Definition spell_generic.cpp:2966
@ SPELL_BREAK_SHIELD_TRIGGER_CAMPAING_WARHORSE
Definition spell_generic.cpp:2964