AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
DelayedCastMincharEvent Class Reference
Inheritance diagram for DelayedCastMincharEvent:
BasicEvent

Public Member Functions

 DelayedCastMincharEvent (Creature *trigger, uint32 spellId)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()=default
 
virtual ~BasicEvent ()=default
 
virtual bool Execute (uint64, uint32)
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 
void ScheduleAbort ()
 

Private Attributes

Creature_trigger
 
uint32 _spellId
 

Detailed Description

Constructor & Destructor Documentation

◆ DelayedCastMincharEvent()

DelayedCastMincharEvent::DelayedCastMincharEvent ( Creature trigger,
uint32  spellId 
)
inline
169: _trigger(trigger), _spellId(spellId) {}
Creature * _trigger
Definition: instance_icecrown_citadel.cpp:179
uint32 _spellId
Definition: instance_icecrown_citadel.cpp:180

Member Function Documentation

◆ Execute()

bool DelayedCastMincharEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

172 {
174 _trigger->CastSpell(minchar, _spellId, true);
175 return true;
176 }
@ NPC_INFILTRATOR_MINCHAR_BQ
Definition: icecrown_citadel.h:187
Definition: Creature.h:46
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2394
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:1428

References _spellId, _trigger, Unit::CastSpell(), WorldObject::FindNearestCreature(), and NPC_INFILTRATOR_MINCHAR_BQ.

Member Data Documentation

◆ _spellId

uint32 DelayedCastMincharEvent::_spellId
private

Referenced by Execute().

◆ _trigger

Creature* DelayedCastMincharEvent::_trigger
private

Referenced by Execute().