3167 {
3169
3170 if (!caster)
3171 {
3172 return;
3173 }
3174
3176 {
3179
3181 {
3185 else
3187 break;
3191 else
3193 break;
3194 default:
3195 return;
3196 }
3197 caster->
CastSpell(caster, spell_id,
true);
3198 }
3199 }
std::uint32_t uint32
Definition: Define.h:107
@ SPELL_BREWFEST_MOUNT_TRANSFORM_REVERSE
Definition: spell_item.cpp:3148
@ SPELL_MOUNT_RAM_60
Definition: spell_item.cpp:3144
@ SPELL_BREWFEST_MOUNT_TRANSFORM
Definition: spell_item.cpp:3147
@ SPELL_MOUNT_RAM_100
Definition: spell_item.cpp:3143
@ SPELL_MOUNT_KODO_100
Definition: spell_item.cpp:3145
@ SPELL_MOUNT_KODO_60
Definition: spell_item.cpp:3146
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
@ TEAM_HORDE
Definition: SharedDefines.h:761
@ SPELL_AURA_MOUNTED
Definition: SpellAuraDefines.h:141
@ MOVE_RUN
Definition: UnitDefines.h:329
Player * ToPlayer()
Definition: Object.h:201
Definition: Player.h:1081
TeamId GetTeamId(bool original=false) const
Definition: Player.h:2108
bool HasMountedAura() const
Definition: Unit.h:1660
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:1167
float GetSpeedRate(UnitMoveType mtype) const
Definition: Unit.h:1601
void RemoveAurasByType(AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true)
Definition: Unit.cpp:5110
SpellInfo const * GetSpellInfo()
Definition: SpellScript.cpp:411
Unit * GetCaster()
Definition: SpellScript.cpp:401