3010 {
3012
3013 switch (effIndex)
3014 {
3016 {
3018
3020 {
3023 break;
3026 break;
3027 default:
3028 return;
3029 }
3030
3031
3034
3036 vehicle->CastSpell(target, spellId, false);
3037 else
3039 break;
3040 }
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 }
3064 }
bool roll_chance_f(float chance)
Definition Random.h:54
@ 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:645
Unit * GetCharmer() const
Definition Unit.cpp:10653
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:718
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1313
@ SPELL_CHARGE_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:2980
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition spell_generic.cpp:2981
@ SPELL_CHARGE_MISS_EFFECT
Definition spell_generic.cpp:2983