◆ CheckIfLanceEquipped()
SpellCastResult spell_gen_summon_tournament_mount::CheckIfLanceEquipped |
( |
| ) |
|
|
inlineprivate |
3265 {
3266 if (
GetCaster()->IsInDisallowedMountForm())
3268
3270 {
3273 }
3274
3276 }
@ SPELL_CUSTOM_ERROR_MUST_HAVE_LANCE_EQUIPPED
Definition SharedDefines.h:1203
@ SPELL_FAILED_CUSTOM_ERROR
Definition SharedDefines.h:1121
@ SPELL_CAST_OK
Definition SharedDefines.h:1138
@ SPELL_AURA_MOD_SHAPESHIFT
Definition SpellAuraDefines.h:99
void SetCustomCastResultMessage(SpellCustomErrors result)
Definition SpellScript.cpp:646
Unit * GetCaster()
Definition SpellScript.cpp:401
void RemoveAurasByType(AuraType auraType, ObjectGuid casterGUID=ObjectGuid::Empty, Aura *except=nullptr, bool negative=true, bool positive=true)
Definition Unit.cpp:5142
@ SPELL_LANCE_EQUIPPED
Definition spell_generic.cpp:3238
References SpellScript::GetCaster(), Unit::RemoveAurasByType(), SpellScript::SetCustomCastResultMessage(), SPELL_AURA_MOD_SHAPESHIFT, SPELL_CAST_OK, SPELL_CUSTOM_ERROR_MUST_HAVE_LANCE_EQUIPPED, SPELL_FAILED_CUSTOM_ERROR, and SPELL_LANCE_EQUIPPED.
Referenced by Register().
◆ PrepareSpellScript()
◆ Register()
void spell_gen_summon_tournament_mount::Register |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ Validate()
bool spell_gen_summon_tournament_mount::Validate |
( |
SpellInfo const * |
| ) |
|
|
inlineoverrideprivatevirtual |
The documentation for this class was generated from the following file: