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

Public Member Functions

 achievement_consumption_junction ()
 
bool OnCheck (Player *, Unit *target) override
 
- Public Member Functions inherited from ScriptObject
const std::string & GetName () const
 

Additional Inherited Members

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

Constructor & Destructor Documentation

achievement_consumption_junction::achievement_consumption_junction ( )
inline
338  : AchievementCriteriaScript("achievement_consumption_junction")
339  {
340  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_consumption_junction::OnCheck ( Player ,
Unit target 
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

343  {
344  if (!target)
345  return false;
346 
347  if (Creature* Trollgore = target->ToCreature())
348  if (Trollgore->AI()->GetData(DATA_CONSUMPTION_JUNCTION))
349  return true;
350 
351  return false;
352  }
Definition: Creature.h:467
Definition: boss_trollgore.cpp:54
Creature * ToCreature()
Definition: Object.h:194

+ Here is the call graph for this function:


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