3013 {
3015
3016 switch (effIndex)
3017 {
3019 {
3021
3023 {
3027 break;
3031 break;
3032 default:
3033 return;
3034 }
3035
3037 rider->CastSpell(target, spellId, false);
3038 else
3040 break;
3041 }
3043 {
3045 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3046 {
3047 if (
Aura* aura = itr->second->GetBase())
3048 {
3049 SpellInfo const* auraInfo = aura->GetSpellInfo();
3051 {
3053
3055 if (
Aura* defend = rider->GetAura(aura->GetId()))
3057 break;
3058 }
3059 }
3060 }
3061 break;
3062 }
3063 default:
3064 break;
3065 }
3066 }
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:7525
boost::container::flat_multimap< uint32, AuraApplication * > AuraApplicationMap
Definition Unit.h:679
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:1378
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1400
@ SPELL_BREAK_SHIELD_DAMAGE_10K
Definition spell_generic.cpp:2983
@ SPELL_BREAK_SHIELD_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:2985
@ SPELL_BREAK_SHIELD_TRIGGER_UNK
Definition spell_generic.cpp:2987
@ SPELL_BREAK_SHIELD_DAMAGE_2K
Definition spell_generic.cpp:2982
@ SPELL_BREAK_SHIELD_TRIGGER_SUNDERING_THURST
Definition spell_generic.cpp:2988
@ SPELL_BREAK_SHIELD_TRIGGER_CAMPAING_WARHORSE
Definition spell_generic.cpp:2986