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

Public Member Functions

 achievement_king_dred ()
 
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_king_dred::achievement_king_dred ( )
inline
284  : AchievementCriteriaScript("achievement_king_dred")
285  {
286  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

289  {
290  if (!target)
291  return false;
292 
293  if (Creature* Dred = target->ToCreature())
294  if (Dred->AI()->GetData(DATA_RAPTORS_KILLED) >= 6)
295  return true;
296 
297  return false;
298  }
Definition: boss_king_dred.cpp:41
Definition: Creature.h:467
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: