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

Public Member Functions

 at_cthun_center ()
 
bool OnTrigger (Player *player, AreaTrigger const *) override
 
- Public Member Functions inherited from AreaTriggerScript
bool IsDatabaseBound () const override
 
virtual bool OnTrigger (Player *, AreaTrigger const *)
 
- 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 AreaTriggerScript
 AreaTriggerScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ at_cthun_center()

at_cthun_center::at_cthun_center ( )
inline
913: AreaTriggerScript("at_cthun_center") { }
Definition: AreaTriggerScript.h:24

Member Function Documentation

◆ OnTrigger()

bool at_cthun_center::OnTrigger ( Player player,
AreaTrigger const *   
)
inlineoverridevirtual

Reimplemented from AreaTriggerScript.

916 {
917 if (InstanceScript* instance = player->GetInstanceScript())
918 if (Creature* cthun = instance->GetCreature(DATA_CTHUN))
919 if (cthun->IsAlive())
920 cthun->CastSpell(player, SPELL_SPIT_OUT, true);
921
922 return true;
923 }
@ SPELL_SPIT_OUT
Definition: boss_cthun.cpp:71
@ DATA_CTHUN
Definition: temple_of_ahnqiraj.h:36
Definition: Creature.h:46
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: InstanceScript.h:142

References DATA_CTHUN, WorldObject::GetInstanceScript(), and SPELL_SPIT_OUT.