◆ CheckIfLanceEquipped()
SpellCastResult spell_gen_summon_tournament_mount::CheckIfLanceEquipped |
( |
| ) |
|
|
inlineprivate |
3260 {
3261 if (
GetCaster()->IsInDisallowedMountForm())
3263
3265 {
3268 }
3269
3271 }
@ SPELL_CUSTOM_ERROR_MUST_HAVE_LANCE_EQUIPPED
Definition SharedDefines.h:1214
@ SPELL_FAILED_CUSTOM_ERROR
Definition SharedDefines.h:1132
@ SPELL_CAST_OK
Definition SharedDefines.h:1149
@ 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:5176
@ SPELL_LANCE_EQUIPPED
Definition spell_generic.cpp:3233
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: