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
107: _owner(owner), _targetGUID(targetGUID) { }
ObjectGuid _targetGUID
Definition: boss_illidari_council.cpp:123
Unit & _owner
Definition: boss_illidari_council.cpp:122

Member Function Documentation

◆ Execute()

bool VerasEnvenom::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

110 {
112 {
113 target->m_clientGUIDs.insert(_owner.GetGUID());
114 _owner.CastSpell(target, SPELL_ENVENOM, true);
115 target->RemoveAurasDueToSpell(SPELL_DEADLY_POISON);
116 target->m_clientGUIDs.erase(_owner.GetGUID());
117 }
118 return true;
119 }
@ SPELL_ENVENOM
Definition: boss_illidari_council.cpp:73
@ SPELL_DEADLY_POISON
Definition: boss_illidari_council.cpp:72
Player * GetPlayer(Map const *, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:220
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
Definition: Player.h:1081
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:1167

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().