AzerothCore 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
184: _trigger(trigger), _spellId(spellId) {}
Creature * _trigger
Definition: instance_icecrown_citadel.cpp:194
uint32 _spellId
Definition: instance_icecrown_citadel.cpp:195

Member Function Documentation

◆ Execute()

bool DelayedCastMincharEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

187 {
189 _trigger->CastSpell(minchar, _spellId, true);
190 return true;
191 }
@ NPC_INFILTRATOR_MINCHAR_BQ
Definition: icecrown_citadel.h:197
Definition: Creature.h:46
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
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 _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().