AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
achievement_thorim_stand_in_the_lightning Class Reference
Inheritance diagram for achievement_thorim_stand_in_the_lightning:
AchievementCriteriaScript ScriptObject

Public Member Functions

 achievement_thorim_stand_in_the_lightning ()
 
bool OnCheck (Player *player, Unit *, uint32) override
 
- Public Member Functions inherited from AchievementCriteriaScript
bool IsDatabaseBound () const override
 
virtual bool OnCheck (Player *, Unit *, uint32)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Additional Inherited Members

- Protected Member Functions inherited from AchievementCriteriaScript
 AchievementCriteriaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ achievement_thorim_stand_in_the_lightning()

achievement_thorim_stand_in_the_lightning::achievement_thorim_stand_in_the_lightning ( )
inline
1769: AchievementCriteriaScript("achievement_thorim_stand_in_the_lightning") {}
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

bool achievement_thorim_stand_in_the_lightning::OnCheck ( Player player,
Unit ,
uint32   
)
inlineoverridevirtual

Reimplemented from AchievementCriteriaScript.

1772 {
1773 if (InstanceScript* instance = player->GetInstanceScript())
1774 if (Creature* cr = ObjectAccessor::GetCreature(*player, instance->GetGuidData(TYPE_THORIM)))
1775 return cr->AI()->GetData(DATA_HIT_BY_LIGHTNING);
1776
1777 return false;
1778 }
@ TYPE_THORIM
Definition: ulduar.h:42
@ DATA_HIT_BY_LIGHTNING
Definition: boss_thorim.cpp:320
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
Definition: Creature.h:43
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
Definition: InstanceScript.h:142

References DATA_HIT_BY_LIGHTNING, ObjectAccessor::GetCreature(), WorldObject::GetInstanceScript(), and TYPE_THORIM.