3007 {
3009
3010 switch (effIndex)
3011 {
3013 {
3015
3017 {
3020 break;
3023 break;
3024 default:
3025 return;
3026 }
3027
3028
3031
3033 vehicle->CastSpell(target, spellId, false);
3034 else
3036 break;
3037 }
3040 {
3042 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3043 {
3044 if (
Aura* aura = itr->second->GetBase())
3045 {
3046 SpellInfo const* auraInfo = aura->GetSpellInfo();
3048 {
3050
3052 if (
Aura* defend = rider->GetAura(aura->GetId()))
3054 break;
3055 }
3056 }
3057 }
3058 break;
3059 }
3060 }
3061 }
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:1368
@ SPELL_CHARGE_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:2977
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition spell_generic.cpp:2978
@ SPELL_CHARGE_MISS_EFFECT
Definition spell_generic.cpp:2980