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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

87  {
88  if (Creature* vehicle = source->GetVehicleCreatureBase())
89  {
90  if (vehicle->GetEntry() == NPC_GLAIVE_THROWER_H || vehicle->GetEntry() == NPC_GLAIVE_THROWER_A)
91  return true;
92  }
93 
94  return false;
95  }
Definition: BattlegroundIC.h:44
Definition: Creature.h:467
Definition: BattlegroundIC.h:43
Creature * GetVehicleCreatureBase() const
Definition: Unit.cpp:14346

+ Here is the call graph for this function:


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