3005 {
3007
3008 switch (effIndex)
3009 {
3011 {
3013
3015 {
3018 break;
3021 break;
3022 default:
3023 return;
3024 }
3025
3026
3029
3031 vehicle->CastSpell(target, spellId, false);
3032 else
3034 break;
3035 }
3038 {
3040 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3041 {
3042 if (
Aura* aura = itr->second->GetBase())
3043 {
3044 SpellInfo const* auraInfo = aura->GetSpellInfo();
3046 {
3048
3050 if (
Aura* defend = rider->GetAura(aura->GetId()))
3052 break;
3053 }
3054 }
3055 }
3056 break;
3057 }
3058 }
3059 }
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:10704
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:702
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1306
@ SPELL_CHARGE_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:2975
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition spell_generic.cpp:2976
@ SPELL_CHARGE_MISS_EFFECT
Definition spell_generic.cpp:2978