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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

1363  {
1364  if (target)
1365  if (Creature* leviathan = target->ToCreature())
1366  if (leviathan->AI()->GetData(DATA_SHUTOUT))
1367  return true;
1368 
1369  return false;
1370  }
Definition: Creature.h:467
Definition: boss_flame_leviathan.cpp:143
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: