![]() |
TrinityCore
|
Inheritance diagram for spell_dru_travel_form:Static Public Member Functions | |
| static uint32 | GetFormSpellId (Player const *player, Difficulty difficulty, bool requiresOutdoor) |
Static Public Member Functions inherited from SpellScriptBase | |
| static bool | ValidateSpellInfo (std::initializer_list< uint32 > spellIds) |
| template<class T > | |
| static bool | ValidateSpellInfo (T const &spellIds) |
| static bool | ValidateSpellEffect (std::initializer_list< std::pair< uint32, SpellEffIndex > > effects) |
| template<class T > | |
| static bool | ValidateSpellEffect (T const &spellEffects) |
Private Member Functions | |
| bool | Validate (SpellInfo const *) override |
| bool | Load () override |
| void | OnRemove (AuraEffect const *, AuraEffectHandleModes) |
| void | AfterRemove (AuraEffect const *aurEff, AuraEffectHandleModes) |
| void | Register () override |
Static Private Member Functions | |
| static SpellCastResult | CheckLocationForForm (Player const *targetPlayer, Difficulty difficulty, bool requireOutdoors, uint32 spell_id) |
Private Attributes | |
| uint32 | triggeredSpellId = 0 |
Definition at line 2678 of file spell_druid.cpp.
|
inlineprivate |
Definition at line 2707 of file spell_druid.cpp.
References WorldObject::CastSpell(), AuraScript::GetTarget(), SpellScriptBase::m_scriptSpellId, Unit::RemoveAura(), SPELL_DRUID_TRAVEL_FORM, Object::ToPlayer(), and triggeredSpellId.
Referenced by Register().
|
inlinestaticprivate |
Definition at line 2743 of file spell_druid.cpp.
References SpellInfo::CheckLocation(), WorldObject::GetAreaId(), WorldLocation::GetMapId(), WorldObject::GetZoneId(), WorldObject::IsOutdoors(), SPELL_FAILED_ONLY_OUTDOORS, and sSpellMgr.
Referenced by GetFormSpellId().
|
inlinestatic |
Definition at line 2727 of file spell_druid.cpp.
References CheckLocationForForm(), Player::GetSkillValue(), Player::HasSpell(), Unit::IsInCombat(), Unit::IsInWater(), SKILL_RIDING, SPELL_CAST_OK, SPELL_DRUID_FORM_AQUATIC, SPELL_DRUID_FORM_AQUATIC_PASSIVE, SPELL_DRUID_FORM_FLIGHT, SPELL_DRUID_FORM_STAG, and SPELL_DRUID_FORM_SWIFT_FLIGHT.
Referenced by spell_dru_travel_form_dummy_aura::OnApply(), and OnRemove().
|
inlineoverrideprivatevirtual |
Reimplemented from SpellScriptBase.
Definition at line 2685 of file spell_druid.cpp.
References AuraScript::GetCaster(), BaseEntity::GetTypeId(), and TYPEID_PLAYER.
|
inlineprivate |
Definition at line 2690 of file spell_druid.cpp.
References AURA_REMOVE_BY_INTERRUPT, AuraScript::GetCastDifficulty(), GetFormSpellId(), AuraScript::GetTarget(), AuraScript::GetTargetApplication(), SpellScriptBase::m_scriptSpellId, AuraScript::PreventDefaultAction(), and triggeredSpellId.
Referenced by Register().
|
inlineoverrideprivatevirtual |
Implements SpellScriptBase.
Definition at line 2720 of file spell_druid.cpp.
References AuraScript::AfterEffectRemove, AfterRemove(), AURA_EFFECT_HANDLE_REAL, AuraEffectRemoveFn, EFFECT_0, AuraScript::OnEffectRemove, OnRemove(), and SPELL_AURA_MOD_SHAPESHIFT.
|
inlineoverrideprivatevirtual |
Reimplemented from SpellScriptBase.
Definition at line 2680 of file spell_druid.cpp.
References SPELL_DRUID_FORM_AQUATIC, SPELL_DRUID_FORM_AQUATIC_PASSIVE, SPELL_DRUID_FORM_FLIGHT, SPELL_DRUID_FORM_STAG, SPELL_DRUID_FORM_SWIFT_FLIGHT, and SpellScriptBase::ValidateSpellInfo().
|
private |
Definition at line 2753 of file spell_druid.cpp.
Referenced by AfterRemove(), and OnRemove().