3035 {
3037
3038 switch (effIndex)
3039 {
3041 {
3043
3045 {
3048 break;
3051 break;
3052 default:
3053 return;
3054 }
3055
3056
3059
3061 vehicle->CastSpell(target, spellId, false);
3062 else
3064 break;
3065 }
3068 {
3070 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
3071 {
3072 if (
Aura* aura = itr->second->GetBase())
3073 {
3074 SpellInfo const* auraInfo = aura->GetSpellInfo();
3076 {
3078
3080 if (
Aura* defend = rider->GetAura(aura->GetId()))
3082 break;
3083 }
3084 }
3085 }
3086 break;
3087 }
3088 }
3089 }
bool roll_chance_f(float chance)
Definition: Random.h:53
@ UNIT_FLAG_DISABLE_MOVE
Definition: UnitDefines.h:231
@ 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:3005
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition: spell_generic.cpp:3006
@ SPELL_CHARGE_MISS_EFFECT
Definition: spell_generic.cpp:3008
@ 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:639
Unit * GetCharmer() const
Definition: Unit.cpp:10570
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:682
AuraApplicationMap & GetAppliedAuras()
Definition: Unit.h:1319
Definition: SpellAuras.h:87
Definition: SpellInfo.h:316
uint32 SpellIconID
Definition: SpellInfo.h:380