3089 {
3091
3092 switch (effIndex)
3093 {
3095 {
3097
3099 {
3102 break;
3105 break;
3106 default:
3107 return;
3108 }
3109
3110
3113
3115 vehicle->CastSpell(target, spellId, false);
3116 else
3118 break;
3119 }
3122 {
3124 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3125 {
3126 if (
Aura* aura = itr->second->GetBase())
3127 {
3128 SpellInfo const* auraInfo = aura->GetSpellInfo();
3130 {
3132
3134 if (
Aura* defend = rider->GetAura(aura->GetId()))
3136 break;
3137 }
3138 }
3139 }
3140 break;
3141 }
3142 }
3143 }
bool roll_chance_f(float chance)
Definition Random.h:57
@ EFFECT_1
Definition SharedDefines.h:32
@ EFFECT_0
Definition SharedDefines.h:31
@ EFFECT_2
Definition SharedDefines.h:33
@ SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN
Definition SpellAuraDefines.h:150
@ AURA_REMOVE_BY_ENEMY_SPELL
Definition SpellAuraDefines.h:394
@ UNIT_FLAG_DISABLE_MOVE
Definition UnitDefines.h:259
Definition SpellAuras.h:87
Definition SpellInfo.h:340
uint32 SpellIconID
Definition SpellInfo.h:404
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition Unit.h:673
Unit * GetCharmer() const
Definition Unit.cpp:7690
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:747
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1383
@ SPELL_CHARGE_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:3059
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition spell_generic.cpp:3060
@ SPELL_CHARGE_MISS_EFFECT
Definition spell_generic.cpp:3062