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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

722  {
723  if (!target)
724  return false;
725 
726  if (Creature* Brann = target->ToCreature())
727  if (Brann->AI()->GetData(DATA_BRANN_SPARKLIN_NEWS))
728  return true;
729 
730  return false;
731  }
Definition: halls_of_stone.cpp:119
Definition: Creature.h:467
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: