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

Public Member Functions

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

Member Function Documentation

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

Implements AchievementCriteriaScript.

863  {
864  if (!target)
865  return false;
866 
867  if (LanaThelAI* lanaThelAI = CAST_AI(LanaThelAI, target->GetAI()))
868  return !lanaThelAI->WasVampire(source->GetGUID());
869  return false;
870  }
#define CAST_AI(a, b)
Definition: ScriptedCreature.h:28
Definition: boss_blood_queen_lana_thel.cpp:142
UnitAI * GetAI()
Definition: Unit.h:1331

+ Here is the call graph for this function:


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