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

Public Member Functions

 at_sunwell_madrigosa ()
 
bool _OnTrigger (Player *player, AreaTrigger const *) override
 
- Public Member Functions inherited from OnlyOnceAreaTriggerScript
bool OnTrigger (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 OnlyOnceAreaTriggerScript
virtual bool _OnTrigger (Player *, AreaTrigger const *)=0
 
void ResetAreaTriggerDone (InstanceScript *, uint32)
 
void ResetAreaTriggerDone (Player const *, AreaTrigger const *)
 
- 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_sunwell_madrigosa()

at_sunwell_madrigosa::at_sunwell_madrigosa ( )
inline
443: OnlyOnceAreaTriggerScript("at_sunwell_madrigosa") {}
Definition: AreaTriggerScript.h:36

Member Function Documentation

◆ _OnTrigger()

bool at_sunwell_madrigosa::_OnTrigger ( Player player,
AreaTrigger const *   
)
inlineoverridevirtual

Implements OnlyOnceAreaTriggerScript.

446 {
447 if (InstanceScript* instance = player->GetInstanceScript())
448 if (!instance->IsBossDone(DATA_BRUTALLUS))
449 if (Creature* creature = instance->GetCreature(DATA_MADRIGOSA))
450 creature->AI()->DoAction(ACTION_START_EVENT);
451
452 return true;
453 }
@ DATA_BRUTALLUS
Definition: sunwell_plateau.h:30
@ DATA_MADRIGOSA
Definition: sunwell_plateau.h:43
@ ACTION_START_EVENT
Definition: boss_brutallus.cpp:62
Definition: Creature.h:43
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
Definition: InstanceScript.h:142

References ACTION_START_EVENT, DATA_BRUTALLUS, DATA_MADRIGOSA, and WorldObject::GetInstanceScript().