2912 {
2914
2915 switch (effIndex)
2916 {
2918 {
2920
2922 {
2925 break;
2928 break;
2929 default:
2930 return;
2931 }
2932
2933
2936
2938 vehicle->CastSpell(target, spellId, false);
2939 else
2941 break;
2942 }
2945 {
2947 for (Unit::AuraApplicationMap::const_iterator itr = auras.begin(); itr != auras.end(); ++itr)
2948 {
2949 if (
Aura* aura = itr->second->GetBase())
2950 {
2951 SpellInfo const* auraInfo = aura->GetSpellInfo();
2953 {
2955
2957 if (
Aura* defend = rider->GetAura(aura->GetId()))
2959 break;
2960 }
2961 }
2962 }
2963 break;
2964 }
2965 }
2966 }
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:2882
@ SPELL_CHARGE_TRIGGER_TRIAL_CHAMPION
Definition: spell_generic.cpp:2883
@ SPELL_CHARGE_MISS_EFFECT
Definition: spell_generic.cpp:2885
@ EFFECT_1
Definition: SharedDefines.h:31
@ EFFECT_0
Definition: SharedDefines.h:30
@ EFFECT_2
Definition: SharedDefines.h:32
std::multimap< uint32, AuraApplication * > AuraApplicationMap
Definition: Unit.h:1299
Unit * GetCharmer() const
Definition: Unit.cpp:10568
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:1480
AuraApplicationMap & GetAppliedAuras()
Definition: Unit.h:1924
Definition: SpellAuras.h:87
Definition: SpellInfo.h:314
uint32 SpellIconID
Definition: SpellInfo.h:378