TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
item_gor_dreks_ointment Class Reference

Public Member Functions

 item_gor_dreks_ointment ()
 
bool OnUse (Player *player, Item *item, SpellCastTargets const &targets) override
 
- Public Member Functions inherited from ItemScript
virtual bool OnDummyEffect (Unit *, uint32, SpellEffIndex, Item *)
 
virtual bool OnQuestAccept (Player *, Item *, Quest const *)
 
virtual bool OnExpire (Player *, ItemTemplate const *)
 
virtual bool OnRemove (Player *, Item *)
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Additional Inherited Members

- Protected Member Functions inherited from ItemScript
 ItemScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()
 

Constructor & Destructor Documentation

item_gor_dreks_ointment::item_gor_dreks_ointment ( )
inline
114 : ItemScript("item_gor_dreks_ointment") { }
ItemScript(const char *name)
Definition: ScriptMgr.cpp:1580

Member Function Documentation

bool item_gor_dreks_ointment::OnUse ( Player player,
Item item,
SpellCastTargets const targets 
)
inlineoverridevirtual

Reimplemented from ItemScript.

117  {
118  if (targets.GetUnitTarget() && targets.GetUnitTarget()->GetTypeId() == TYPEID_UNIT &&
119  targets.GetUnitTarget()->GetEntry() == 20748 && !targets.GetUnitTarget()->HasAura(32578))
120  return false;
121 
122  player->SendEquipError(EQUIP_ERR_CLIENT_LOCKED_OUT, item, NULL);
123  return true;
124  }
Definition: ObjectGuid.h:32
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: Item.h:87

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: