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

Public Member Functions

 lapseTeleport (Player *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

Player_owner
 

Detailed Description

Constructor & Destructor Documentation

◆ lapseTeleport()

lapseTeleport::lapseTeleport ( Player owner)
inline
1028 : _owner(owner)
1029 {
1030 }
Player * _owner
Definition: boss_kaelthas.cpp:1045

Member Function Documentation

◆ Execute()

bool lapseTeleport::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

1033 {
1036 else if (!_owner->IsBeingTeleported())
1037 {
1040 }
1041 return true;
1042 }
@ SPELL_GRAVITY_LAPSE_KNOCKBACK
Definition: boss_kaelthas.cpp:105
@ SPELL_GRAVITY_LAPSE_AURA
Definition: boss_kaelthas.cpp:106
void AddEvent(BasicEvent *Event, uint64 e_time, bool set_addtime=true)
Definition: EventProcessor.h:103
uint64 CalculateTime(uint64 t_offset) const
Definition: EventProcessor.cpp:159
EventProcessor m_Events
Definition: Object.h:642
bool IsBeingTeleportedNear() const
Definition: Player.h:2091
bool IsBeingTeleported() const
Definition: Player.h:2090
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
Definition: boss_kaelthas.cpp:1026

References _owner, EventProcessor::AddEvent(), EventProcessor::CalculateTime(), Unit::CastSpell(), Player::IsBeingTeleported(), Player::IsBeingTeleportedNear(), WorldObject::m_Events, SPELL_GRAVITY_LAPSE_AURA, and SPELL_GRAVITY_LAPSE_KNOCKBACK.

Member Data Documentation

◆ _owner

Player* lapseTeleport::_owner
private

Referenced by Execute().