AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_manticron_cube Class Reference
Inheritance diagram for go_manticron_cube:
GameObjectScript ScriptObject UpdatableScript< GameObject >

Public Member Functions

 go_manticron_cube ()
 
bool OnGossipHello (Player *player, GameObject *) override
 
- Public Member Functions inherited from GameObjectScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, GameObject *)
 
virtual bool OnGossipSelect (Player *, GameObject *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool OnQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, GameObject *)
 
virtual void OnDestroyed (GameObject *, Player *)
 
virtual void OnDamaged (GameObject *, Player *)
 
virtual void OnModifyHealth (GameObject *, Unit *, int32 &, SpellInfo const *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) 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 ()
 
- Public Member Functions inherited from UpdatableScript< GameObject >
virtual void OnUpdate (GameObject *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from GameObjectScript
 GameObjectScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ go_manticron_cube()

go_manticron_cube::go_manticron_cube ( )
inline
415: GameObjectScript("go_manticron_cube") { }
Definition: GameObjectScript.h:25

Member Function Documentation

◆ OnGossipHello()

bool go_manticron_cube::OnGossipHello ( Player player,
GameObject  
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

418 {
420 return true;
421
422 if (Creature* trigger = player->FindNearestCreature(NPC_HELLFIRE_RAID_TRIGGER, 10.0f))
423 trigger->CastSpell(nullptr, SPELL_SHADOW_GRASP_VISUAL);
424
425 player->CastSpell((Unit*)nullptr, SPELL_SHADOW_GRASP, true);
426 return true;
427 }
@ NPC_HELLFIRE_RAID_TRIGGER
Definition: magtheridons_lair.h:41
@ SPELL_SHADOW_GRASP
Definition: boss_magtheridon.cpp:54
@ SPELL_SHADOW_GRASP_VISUAL
Definition: boss_magtheridon.cpp:55
@ SPELL_MIND_EXHAUSTION
Definition: boss_magtheridon.cpp:57
Definition: Creature.h:46
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
Definition: Unit.h:630
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168

References Unit::CastSpell(), WorldObject::FindNearestCreature(), Unit::HasAura(), NPC_HELLFIRE_RAID_TRIGGER, SPELL_MIND_EXHAUSTION, SPELL_SHADOW_GRASP, and SPELL_SHADOW_GRASP_VISUAL.