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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

3147  {
3148  if (!target)
3149  return false;
3150 
3151  return !target->GetAI()->GetData(DATA_VILE);
3152  }
Definition: boss_the_lich_king.cpp:352
UnitAI * GetAI()
Definition: Unit.h:1331
virtual uint32 GetData(uint32) const
Definition: UnitAI.h:139

+ Here is the call graph for this function:


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