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

Public Member Functions

 item_incendiary_explosives ()
 
bool OnUse (Player *player, Item *item, SpellCastTargets const &) 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_incendiary_explosives::item_incendiary_explosives ( )
inline
134 : ItemScript("item_incendiary_explosives") { }
ItemScript(const char *name)
Definition: ScriptMgr.cpp:1580

Member Function Documentation

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

Reimplemented from ItemScript.

137  {
138  if (player->FindNearestCreature(26248, 15) || player->FindNearestCreature(26249, 15))
139  return false;
140  else
141  {
142  player->SendEquipError(EQUIP_ERR_OUT_OF_RANGE, item, NULL);
143  return true;
144  }
145  }
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: Item.h:73

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