3006 {
3008
3009 switch (effIndex)
3010 {
3012 {
3014
3016 {
3019 break;
3022 break;
3023 default:
3024 return;
3025 }
3026
3027
3030
3032 vehicle->CastSpell(target, spellId, false);
3033 else
3035 break;
3036 }
3039 {
3041 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3042 {
3043 if (
Aura* aura = itr->second->GetBase())
3044 {
3045 SpellInfo const* auraInfo = aura->GetSpellInfo();
3047 {
3049
3051 if (
Aura* defend = rider->GetAura(aura->GetId()))
3053 break;
3054 }
3055 }
3056 }
3057 break;
3058 }
3059 }
3060 }
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:256
Definition SpellAuras.h:87
Definition SpellInfo.h:316
uint32 SpellIconID
Definition SpellInfo.h:380
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition Unit.h:664
Unit * GetCharmer() const
Definition Unit.cpp:10812
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:737
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1366
@ SPELL_CHARGE_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:2976
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition spell_generic.cpp:2977
@ SPELL_CHARGE_MISS_EFFECT
Definition spell_generic.cpp:2979