3090 {
3092
3093 switch (effIndex)
3094 {
3096 {
3098
3100 {
3103 break;
3106 break;
3107 default:
3108 return;
3109 }
3110
3111
3114
3116 vehicle->CastSpell(target, spellId, false);
3117 else
3119 break;
3120 }
3123 {
3125 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3126 {
3127 if (
Aura* aura = itr->second->GetBase())
3128 {
3129 SpellInfo const* auraInfo = aura->GetSpellInfo();
3131 {
3133
3135 if (
Aura* defend = rider->GetAura(aura->GetId()))
3137 break;
3138 }
3139 }
3140 }
3141 break;
3142 }
3143 }
3144 }
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:259
Definition SpellAuras.h:87
Definition SpellInfo.h:316
uint32 SpellIconID
Definition SpellInfo.h:380
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition Unit.h:673
Unit * GetCharmer() const
Definition Unit.cpp:7629
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:747
AuraApplicationMap & GetAppliedAuras()
Definition Unit.h:1383
@ SPELL_CHARGE_TRIGGER_FACTION_MOUNTS
Definition spell_generic.cpp:3060
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition spell_generic.cpp:3061
@ SPELL_CHARGE_MISS_EFFECT
Definition spell_generic.cpp:3063