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

Public Member Functions

 achievement_not_even_a_scratch ()
 
bool OnCheck (Player *source, 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_not_even_a_scratch::achievement_not_even_a_scratch ( )
inline
247 : AchievementCriteriaScript("achievement_not_even_a_scratch") { }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_not_even_a_scratch::OnCheck ( Player source,
Unit target 
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

250  {
251  if (Battleground* bg = source->GetBattleground())
252  return bg->CheckAchievementCriteriaMeet(BG_CRITERIA_CHECK_NOT_EVEN_A_SCRATCH, source, target);
253 
254  return false;
255  }
Definition: Battleground.h:52
Definition: Battleground.h:235

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