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

Public Member Functions

 achievement_intense_cold ()
 
bool OnCheck (Player *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_intense_cold::achievement_intense_cold ( )
inline
271  : AchievementCriteriaScript("achievement_intense_cold")
272  {
273  }
AchievementCriteriaScript(const char *name)
Definition: ScriptMgr.cpp:1658

Member Function Documentation

bool achievement_intense_cold::OnCheck ( Player player,
Unit target 
)
inlineoverridevirtual

Implements AchievementCriteriaScript.

276  {
277  if (!target)
278  return false;
279 
280  GuidList const& _intenseColdList = ENSURE_AI(boss_keristrasza::boss_keristraszaAI, target->ToCreature()->AI())->_intenseColdList;
281  if (!_intenseColdList.empty())
282  for (GuidList::const_iterator itr = _intenseColdList.begin(); itr != _intenseColdList.end(); ++itr)
283  if (player->GetGUID() == *itr)
284  return false;
285 
286  return true;
287  }
Definition: boss_keristrasza.cpp:67
std::list< ObjectGuid > GuidList
Definition: ObjectGuid.h:333
#define ENSURE_AI(a, b)
Definition: ScriptedCreature.h:29
CreatureAI * AI() const
Definition: Creature.h:525
Creature * ToCreature()
Definition: Object.h:194

+ Here is the call graph for this function:


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