![]() |
TrinityCore
|
Inheritance diagram for item_only_for_flight:Public Member Functions | |
| item_only_for_flight () | |
| bool | OnUse (Player *player, Item *item, SpellCastTargets const &, ObjectGuid castId) override |
Public Member Functions inherited from ItemScript | |
| ~ItemScript () | |
| virtual bool | OnQuestAccept (Player *player, Item *item, Quest const *quest) |
| virtual bool | OnExpire (Player *player, ItemTemplate const *proto) |
| virtual bool | OnRemove (Player *player, Item *item) |
| virtual bool | OnCastItemCombatSpell (Player *player, Unit *victim, SpellInfo const *spellInfo, Item *item) |
Public Member Functions inherited from ScriptObject | |
| ScriptObject (ScriptObject const &right)=delete | |
| ScriptObject (ScriptObject &&right)=delete | |
| ScriptObject & | operator= (ScriptObject const &right)=delete |
| ScriptObject & | operator= (ScriptObject &&right)=delete |
| std::string const & | GetName () const |
Additional Inherited Members | |
Protected Member Functions inherited from ItemScript | |
| ItemScript (char const *name) noexcept | |
Protected Member Functions inherited from ScriptObject | |
| ScriptObject (char const *name) noexcept | |
| virtual | ~ScriptObject () |
Definition at line 50 of file item_scripts.cpp.
|
inline |
Definition at line 53 of file item_scripts.cpp.
|
inlineoverridevirtual |
Reimplemented from ItemScript.
Definition at line 55 of file item_scripts.cpp.
References EQUIP_ERR_CLIENT_LOCKED_OUT, WorldObject::GetAreaId(), Map::GetDifficultyID(), Object::GetEntry(), WorldObject::GetMap(), WorldObject::GetZoneId(), Unit::IsInFlight(), Spell::SendCastResult(), Player::SendEquipError(), SPELL_ARCANE_CHARGES, SPELL_FAILED_NOT_ON_GROUND, and sSpellMgr.