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

Public Member Functions

 achievement_just_cant_get_enough ()
 
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_just_cant_get_enough::achievement_just_cant_get_enough ( )
inline
790 : AchievementCriteriaScript("achievement_just_cant_get_enough") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

793  {
794  if (!target)
795  return false;
796 
797  if (InstanceScript* instance = target->GetInstanceScript())
798  if (instance->GetData(DATA_ABOMINATION_KILLED) >= 18)
799  return true;
800 
801  return false;
802  }
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
Definition: InstanceScript.h:141
Definition: naxxramas.h:57

+ Here is the call graph for this function:


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