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

Public Member Functions

 achievement_iron_dwarf_medium_rare ()
 
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_iron_dwarf_medium_rare::achievement_iron_dwarf_medium_rare ( )
inline
1132  : AchievementCriteriaScript("achievement_iron_dwarf_medium_rare")
1133  {
1134  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

1137  {
1138  return target && target->IsAIEnabled && target->GetAI()->GetData(DATA_IRON_DWARF_MEDIUM_RARE);
1139  }
bool IsAIEnabled
Definition: Unit.h:2161
Definition: boss_razorscale.cpp:144
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: