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

Public Member Functions

 achievement_smell_saronite ()
 
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_smell_saronite::achievement_smell_saronite ( )
inline
566  : AchievementCriteriaScript("achievement_smell_saronite")
567  {
568  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

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

Implements AchievementCriteriaScript.

571  {
572  if (!target)
573  return false;
574 
575  if (Creature* Vezax = target->ToCreature())
576  if (Vezax->AI()->GetData(DATA_SMELL_SARONITE))
577  return true;
578 
579  return false;
580  }
Definition: Creature.h:467
Creature * ToCreature()
Definition: Object.h:194
Definition: boss_general_vezax.cpp:95

+ Here is the call graph for this function:


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