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

Public Member Functions

 CorruptTriggers (Unit *caster, uint8 currentLane)
 
bool Execute (uint64, uint32) override
 
- Public Member Functions inherited from BasicEvent
 BasicEvent ()=default
 
virtual ~BasicEvent ()=default
 
virtual bool IsDeletable () const
 
virtual void Abort (uint64)
 
void ScheduleAbort ()
 

Private Attributes

Unit_caster
 
uint8 _currentLane
 

Detailed Description

Constructor & Destructor Documentation

◆ CorruptTriggers()

CorruptTriggers::CorruptTriggers ( Unit caster,
uint8  currentLane 
)
inline
117: _caster(caster), _currentLane(currentLane) { }
Unit * _caster
Definition boss_felmyst.cpp:137
uint8 _currentLane
Definition boss_felmyst.cpp:138

Member Function Documentation

◆ Execute()

bool CorruptTriggers::Execute ( uint64  ,
uint32   
)
inlineoverridevirtual

Reimplemented from BasicEvent.

120 {
121 switch (_currentLane)
122 {
123 case 0: // top
125 break;
126 case 1: // middle
128 break;
129 case 2: // bottom
131 break;
132 }
133 return true;
134 }
@ SPELL_STRAFE_TOP
Definition boss_felmyst.cpp:55
@ SPELL_STRAFE_BOTTOM
Definition boss_felmyst.cpp:57
@ SPELL_STRAFE_MIDDLE
Definition boss_felmyst.cpp:56
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:1178

References _caster, _currentLane, Unit::CastSpell(), SPELL_STRAFE_BOTTOM, SPELL_STRAFE_MIDDLE, and SPELL_STRAFE_TOP.

Member Data Documentation

◆ _caster

Unit* CorruptTriggers::_caster
private

Referenced by Execute().

◆ _currentLane

uint8 CorruptTriggers::_currentLane
private

Referenced by Execute().


The documentation for this class was generated from the following file: