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

Public Member Functions

 VerasEnvenom (Unit &owner, ObjectGuid targetGUID)
 
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

Unit_owner
 
ObjectGuid _targetGUID
 

Detailed Description

Constructor & Destructor Documentation

◆ VerasEnvenom()

VerasEnvenom::VerasEnvenom ( Unit owner,
ObjectGuid  targetGUID 
)
inline
106: _owner(owner), _targetGUID(targetGUID) { }
ObjectGuid _targetGUID
Definition: boss_illidari_council.cpp:122
Unit & _owner
Definition: boss_illidari_council.cpp:121

Member Function Documentation

◆ Execute()

bool VerasEnvenom::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

109 {
111 {
112 target->m_clientGUIDs.insert(_owner.GetGUID());
113 _owner.CastSpell(target, SPELL_ENVENOM, true);
114 target->RemoveAurasDueToSpell(SPELL_DEADLY_POISON);
115 target->m_clientGUIDs.erase(_owner.GetGUID());
116 }
117 return true;
118 }
@ SPELL_ENVENOM
Definition: boss_illidari_council.cpp:72
@ SPELL_DEADLY_POISON
Definition: boss_illidari_council.cpp:71
Player * GetPlayer(Map const *, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:223
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
Definition: Player.h:1064
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 _owner, _targetGUID, Unit::CastSpell(), Object::GetGUID(), ObjectAccessor::GetPlayer(), SPELL_DEADLY_POISON, and SPELL_ENVENOM.

Member Data Documentation

◆ _owner

Unit& VerasEnvenom::_owner
private

Referenced by Execute().

◆ _targetGUID

ObjectGuid VerasEnvenom::_targetGUID
private

Referenced by Execute().