AzerothCore 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
1355: _owner(owner) {}
Creature * _owner
Definition: zone_dragonblight.cpp:1369

Member Function Documentation

◆ Execute()

bool SACActivateEvent::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1358 {
1359 if (!_owner->IsAlive())
1360 return true;
1365 return true;
1366 }
@ REACT_AGGRESSIVE
Definition: Unit.h:550
@ UNIT_FLAG_NOT_SELECTABLE
Definition: UnitDefines.h:254
@ SPELL_SAC_GHOUL_AREA_AURA
Definition: zone_dragonblight.cpp:1006
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:97
MotionMaster * GetMotionMaster()
Definition: Unit.h:1605
bool IsAlive() const
Definition: Unit.h:1151
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:1154
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:827
void MoveRandom(float wanderDistance=0.0f)
Enable a random movement in desired range around the unit. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:242

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