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

Public Member Functions

 at_blackrock_stadium ()
 
bool OnTrigger (Player *player, const AreaTriggerEntry *, bool) override
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Additional Inherited Members

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

Constructor & Destructor Documentation

at_blackrock_stadium::at_blackrock_stadium ( )
inline
547 : AreaTriggerScript("at_blackrock_stadium") { }
AreaTriggerScript(const char *name)
Definition: ScriptMgr.cpp:1598

Member Function Documentation

bool at_blackrock_stadium::OnTrigger ( Player player,
const AreaTriggerEntry ,
bool   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

550  {
551  if (player && player->IsAlive())
552  {
553  InstanceScript* instance = player->GetInstanceScript();
554  if (!instance)
555  return false;
556 
557  if (Creature* rend = player->FindNearestCreature(NPC_WARCHIEF_REND_BLACKHAND, 50.0f))
558  {
560  return true;
561  }
562  }
563 
564  return false;
565  }
Definition: blackrock_spire.h:82
Definition: blackrock_spire.h:66
Definition: blackrock_spire.h:84
Definition: Creature.h:467
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2443
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
Definition: InstanceScript.h:141

+ Here is the call graph for this function:


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