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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

1379  {
1380  if (target)
1381  if (InstanceScript* instance = target->GetInstanceScript())
1382  return instance->GetData(DATA_UNBROKEN) != 0;
1383 
1384  return false;
1385  }
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
Definition: ulduar.h:419
Definition: InstanceScript.h:141

+ Here is the call graph for this function:


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