3166 {
3168
3169 if (!caster)
3170 {
3171 return;
3172 }
3173
3175 {
3178
3180 {
3184 else
3186 break;
3190 else
3192 break;
3193 default:
3194 return;
3195 }
3196 caster->
CastSpell(caster, spell_id,
true);
3197 }
3198 }
std::uint32_t uint32
Definition: Define.h:107
@ MOVE_RUN
Definition: UnitDefines.h:329
@ SPELL_AURA_MOUNTED
Definition: SpellAuraDefines.h:141
@ SPELL_BREWFEST_MOUNT_TRANSFORM_REVERSE
Definition: spell_item.cpp:3147
@ SPELL_MOUNT_RAM_60
Definition: spell_item.cpp:3143
@ SPELL_BREWFEST_MOUNT_TRANSFORM
Definition: spell_item.cpp:3146
@ SPELL_MOUNT_RAM_100
Definition: spell_item.cpp:3142
@ SPELL_MOUNT_KODO_100
Definition: spell_item.cpp:3144
@ SPELL_MOUNT_KODO_60
Definition: spell_item.cpp:3145
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
@ TEAM_HORDE
Definition: SharedDefines.h:761
Player * ToPlayer()
Definition: Object.h:198
Definition: Player.h:1064
TeamId GetTeamId(bool original=false) const
Definition: Player.h:2088
bool HasAuraType(AuraType auraType) const
Definition: Unit.cpp:5676
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
float GetSpeedRate(UnitMoveType mtype) const
Definition: Unit.h:1587
void RemoveAurasByType(AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true)
Definition: Unit.cpp:5081
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
Unit * GetCaster()
Definition: SpellScript.cpp:401