3008 {
3010
3011 switch (effIndex)
3012 {
3014 {
3016
3018 {
3021 break;
3024 break;
3025 default:
3026 return;
3027 }
3028
3029
3032
3034 vehicle->CastSpell(target, spellId, false);
3035 else
3037 break;
3038 }
3041 {
3043 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3044 {
3045 if (
Aura* aura = itr->second->GetBase())
3046 {
3047 SpellInfo const* auraInfo = aura->GetSpellInfo();
3049 {
3051
3053 if (
Aura* defend = rider->GetAura(aura->GetId()))
3055 break;
3056 }
3057 }
3058 }
3059 break;
3060 }
3061 }
3062 }
bool roll_chance_f(float chance)
Definition: Random.h:53
@ UNIT_FLAG_DISABLE_MOVE
Definition: Unit.h:450
@ SPELL_AURA_MOD_DAMAGE_PERCENT_TAKEN
Definition: SpellAuraDefines.h:150
@ AURA_REMOVE_BY_ENEMY_SPELL
Definition: SpellAuraDefines.h:394
@ SPELL_CHARGE_TRIGGER_FACTION_MOUNTS
Definition: spell_generic.cpp:2978
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition: spell_generic.cpp:2979
@ SPELL_CHARGE_MISS_EFFECT
Definition: spell_generic.cpp:2981
@ EFFECT_1
Definition: SharedDefines.h:32
@ EFFECT_0
Definition: SharedDefines.h:31
@ EFFECT_2
Definition: SharedDefines.h:33
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition: Unit.h:1311
Unit * GetCharmer() const
Definition: Unit.cpp:10607
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:1494
AuraApplicationMap & GetAppliedAuras()
Definition: Unit.h:1938
Definition: SpellAuras.h:87
Definition: SpellInfo.h:314
uint32 SpellIconID
Definition: SpellInfo.h:378