3009 {
3011
3012 switch (effIndex)
3013 {
3015 {
3017
3019 {
3022 break;
3025 break;
3026 default:
3027 return;
3028 }
3029
3030
3033
3035 vehicle->CastSpell(target, spellId, false);
3036 else
3038 break;
3039 }
3042 {
3044 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3045 {
3046 if (
Aura* aura = itr->second->GetBase())
3047 {
3048 SpellInfo const* auraInfo = aura->GetSpellInfo();
3050 {
3052
3054 if (
Aura* defend = rider->GetAura(aura->GetId()))
3056 break;
3057 }
3058 }
3059 }
3060 break;
3061 }
3062 }
3063 }
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:252
Definition SpellAuras.h:87
Definition SpellInfo.h:316
uint32 SpellIconID
Definition SpellInfo.h:380
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition Unit.h:629
Unit * GetCharmer() const
Definition Unit.cpp:10652
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:702
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1304
@ SPELL_CHARGE_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:2979
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition spell_generic.cpp:2980
@ SPELL_CHARGE_MISS_EFFECT
Definition spell_generic.cpp:2982