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

Public Member Functions

 achievement_flame_leviathan_unbroken ()
 
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_flame_leviathan_unbroken()

achievement_flame_leviathan_unbroken::achievement_flame_leviathan_unbroken ( )
inline
2012: AchievementCriteriaScript("achievement_flame_leviathan_unbroken") {}
Definition: AchievementCriteriaScript.h:24

Member Function Documentation

◆ OnCheck()

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

Reimplemented from AchievementCriteriaScript.

2015 {
2016 if (player->GetInstanceScript())
2018 return true;
2019 return false;
2020 }
@ DATA_UNBROKEN_ACHIEVEMENT
Definition: ulduar.h:59
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:52

References DATA_UNBROKEN_ACHIEVEMENT, ZoneScript::GetData(), and WorldObject::GetInstanceScript().