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

Public Member Functions

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

Member Function Documentation

bool achievement_bg_ic_resource_glut::OnCheck ( Player source,
Unit  
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

73  {
74  if (source->HasAura(SPELL_OIL_REFINERY) && source->HasAura(SPELL_QUARRY))
75  return true;
76 
77  return false;
78  }
Definition: BattlegroundIC.h:709
Definition: BattlegroundIC.h:710

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