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

Public Member Functions

 achievement_flirt_with_disaster_perf_check ()
 
bool OnCheck (Player *player, Unit *) 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_flirt_with_disaster_perf_check::achievement_flirt_with_disaster_perf_check ( )
inline
268 : AchievementCriteriaScript("achievement_flirt_with_disaster_perf_check") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_flirt_with_disaster_perf_check::OnCheck ( Player player,
Unit  
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

271  {
272  if (!player)
273  return false;
274 
275  if (player->HasAura(AURA_PERFUME_FOREVER) || player->HasAura(AURA_PERFUME_ENCHANTRESS) || player->HasAura(AURA_PERFUME_VICTORY))
276  return true;
277 
278  return false;
279  }
Definition: achievement_scripts.cpp:262
Definition: achievement_scripts.cpp:260
Definition: achievement_scripts.cpp:261

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