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

Public Member Functions

 SACActivateEvent (Creature *owner)
 
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_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ SACActivateEvent()

SACActivateEvent::SACActivateEvent ( Creature owner)
inline
1375: _owner(owner) {}
Creature * _owner
Definition: zone_dragonblight.cpp:1389

Member Function Documentation

◆ Execute()

bool SACActivateEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1378 {
1379 if (!_owner->IsAlive())
1380 return true;
1385 return true;
1386 }
@ REACT_AGGRESSIVE
Definition: Unit.h:1025
@ UNIT_FLAG_NOT_SELECTABLE
Definition: Unit.h:473
@ SPELL_SAC_GHOUL_AREA_AURA
Definition: zone_dragonblight.cpp:1026
void SetReactState(ReactStates st)
Definition: Creature.h:88
MotionMaster * GetMotionMaster()
Definition: Unit.h:2258
bool IsAlive() const
Definition: Unit.h:1806
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
void RemoveUnitFlag(UnitFlags flags)
Definition: Unit.h:1481
void MoveRandom(float wanderDistance=0.0f)
Definition: MotionMaster.cpp:238

References _owner, Unit::CastSpell(), Unit::GetMotionMaster(), Unit::IsAlive(), MotionMaster::MoveRandom(), REACT_AGGRESSIVE, Unit::RemoveUnitFlag(), Creature::SetReactState(), SPELL_SAC_GHOUL_AREA_AURA, and UNIT_FLAG_NOT_SELECTABLE.

Member Data Documentation

◆ _owner

Creature* SACActivateEvent::_owner
private

Referenced by Execute().