AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_venoxis::boss_venoxisAI Struct Reference
Inheritance diagram for boss_venoxis::boss_venoxisAI:
BossAI ScriptedAI CreatureAI UnitAI

Public Member Functions

 boss_venoxisAI (Creature *creature)
 
void Reset () override
 
void JustDied (Unit *) override
 
void SpawnCobras ()
 
void SetCombatCombras ()
 
void EnterCombat (Unit *) override
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
 ~BossAI () override
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SummonedCreatureDespawnAll () override
 
void UpdateAI (uint32 diff) override
 
virtual void ExecuteEvent (uint32)
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void JustDied (Unit *) override
 
void JustReachedHome () override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 
void UpdateAI (uint32 diff) override
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void MovementInform (uint32, uint32) override
 
void OnPossess (bool)
 
bool IsInRoom (const Position *pos, Axis axis, bool above)
 
void Reset () override
 
void EnterCombat (Unit *) override
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 Cast Spell. More...
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 Play sound. More...
 
void DoPlayMusic (uint32 soundId, bool zone)
 
void DoResetThreat ()
 Reset Threat. More...
 
float DoGetThreat (Unit *unit)
 
void DoModifyThreatPercent (Unit *unit, int32 pct)
 Modify Unit Threat. More...
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 Teleport player. More...
 
void DoTeleportAll (float x, float y, float z, float o)
 Teleport all. More...
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
void SetCombatMovement (bool allowMovement)
 Set Combat Movement. More...
 
bool IsCombatMovementAllowed () const
 
virtual bool CheckEvadeIfOutOfCombatArea () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
const T & DUNGEON_MODE (const T &normal5, const T &heroic10) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25) const
 
PlayerSelectTargetFromPlayerList (float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void EnterCombat (Unit *)
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (Unit *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void UpdateAI (uint32)=0
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectTargetMethod targetType)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Private Attributes

uint8 _inMeleeRange
 
bool _transformed
 
bool _frenzied
 

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
  AXIS_Y
}
 
- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Public Attributes inherited from BossAI
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
Creatureme
 
bool IsFleeing
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _EnterCombat ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
void TeleportCheaters ()
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from BossAI
EventMap events
 
SummonList summons
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_venoxisAI()

boss_venoxis::boss_venoxisAI::boss_venoxisAI ( Creature creature)
inline
95: BossAI(creature, DATA_VENOXIS) { }
@ DATA_VENOXIS
Definition: zulgurub.h:30
Definition: ScriptedCreature.h:424

Member Function Documentation

◆ DamageTaken()

void boss_venoxis::boss_venoxisAI::DamageTaken ( Unit ,
uint32 ,
DamageEffectType  ,
SpellSchoolMask   
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

162 {
163 // check if venoxis is ready to transform
164 if (!_transformed && !HealthAbovePct(50))
165 {
166 _transformed = true;
167 // schedule the event that changes our phase
168 events.ScheduleEvent(EVENT_TRANSFORM, 100);
169 }
170 // we're losing health, bad, go frenzy
171 else if (!_frenzied && !HealthAbovePct(20))
172 {
173 _frenzied = true;
174 events.ScheduleEvent(EVENT_FRENZY, 100);
175 }
176 }
@ EVENT_TRANSFORM
Definition: boss_venoxis.cpp:66
@ EVENT_FRENZY
Definition: boss_venoxis.cpp:71
events
Definition: boss_sartura.cpp:43
bool HealthAbovePct(uint32 pct) const
Definition: ScriptedCreature.h:333
bool _frenzied
Definition: boss_venoxis.cpp:277
bool _transformed
Definition: boss_venoxis.cpp:276

References _frenzied, _transformed, EVENT_FRENZY, EVENT_TRANSFORM, and ScriptedAI::HealthAbovePct().

◆ EnterCombat()

void boss_venoxis::boss_venoxisAI::EnterCombat ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

142 {
143 _EnterCombat();
145 // Always running events
146 events.ScheduleEvent(EVENT_THRASH, 5000);
147 // Phase one events (regular form)
148 events.ScheduleEvent(EVENT_HOLY_NOVA, urand(5000, 15000), 0, PHASE_ONE);
149 events.ScheduleEvent(EVENT_DISPEL_MAGIC, 35000, 0, PHASE_ONE);
150 events.ScheduleEvent(EVENT_HOLY_FIRE, urand(10000,20000), 0, PHASE_ONE);
151 events.ScheduleEvent(EVENT_RENEW, 30000, 0, PHASE_ONE);
152 events.ScheduleEvent(EVENT_HOLY_WRATH, urand(15000, 25000), 0, PHASE_ONE);
153
154 events.SetPhase(PHASE_ONE);
155
156 // Set zone in combat
159 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
@ REACT_AGGRESSIVE
Definition: Unit.h:1025
@ PHASE_ONE
Definition: boss_venoxis.cpp:77
@ EVENT_RENEW
Definition: boss_venoxis.cpp:61
@ EVENT_HOLY_WRATH
Definition: boss_venoxis.cpp:64
@ EVENT_DISPEL_MAGIC
Definition: boss_venoxis.cpp:60
@ EVENT_HOLY_NOVA
Definition: boss_venoxis.cpp:62
@ EVENT_THRASH
Definition: boss_venoxis.cpp:59
@ EVENT_HOLY_FIRE
Definition: boss_venoxis.cpp:63
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition: CreatureAI.cpp:93
Creature * me
Definition: ScriptedCreature.h:267
void _EnterCombat()
Definition: ScriptedCreature.cpp:602
void SetReactState(ReactStates st)
Definition: Creature.h:88
void SetCombatCombras()
Definition: boss_venoxis.cpp:127

References BossAI::_EnterCombat(), CreatureAI::DoZoneInCombat(), EVENT_DISPEL_MAGIC, EVENT_HOLY_FIRE, EVENT_HOLY_NOVA, EVENT_HOLY_WRATH, EVENT_RENEW, EVENT_THRASH, ScriptedAI::me, PHASE_ONE, REACT_AGGRESSIVE, SetCombatCombras(), Creature::SetReactState(), and urand().

◆ JustDied()

void boss_venoxis::boss_venoxisAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

113 {
114 _JustDied();
117 }
@ SAY_VENOXIS_DEATH
Definition: boss_venoxis.cpp:31
Talk
Definition: boss_fathomlord_karathress.cpp:23
void _JustDied()
Definition: ScriptedCreature.cpp:591
void RemoveAllAuras()
Definition: Unit.cpp:6083

References BossAI::_JustDied(), ScriptedAI::me, Unit::RemoveAllAuras(), and SAY_VENOXIS_DEATH.

◆ Reset()

void boss_venoxis::boss_venoxisAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

98 {
99 _Reset();
100 // remove all spells and auras from previous attempts
103 // set some internally used variables to their defaults
104 _inMeleeRange = 0;
105 _transformed = false;
106 _frenzied = false;
107 events.SetPhase(PHASE_ONE);
108
109 SpawnCobras();
110 }
@ REACT_PASSIVE
Definition: Unit.h:1023
void _Reset()
Definition: ScriptedCreature.cpp:579
uint8 _inMeleeRange
Definition: boss_venoxis.cpp:275
void SpawnCobras()
Definition: boss_venoxis.cpp:119

References _frenzied, _inMeleeRange, BossAI::_Reset(), _transformed, ScriptedAI::me, PHASE_ONE, REACT_PASSIVE, Unit::RemoveAllAuras(), Creature::SetReactState(), and SpawnCobras().

◆ SetCombatCombras()

void boss_venoxis::boss_venoxisAI::SetCombatCombras ( )
inline
128 {
129 std::list<Creature*> cobraList;
131
132 if (!cobraList.empty())
133 {
134 for (auto cobras : cobraList)
135 {
136 cobras->SetInCombatWithZone();
137 }
138 }
139 }
@ NPC_RAZZASHI_COBRA
Definition: boss_venoxis.cpp:84
void GetCreatureListWithEntryInGrid(std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2448

References WorldObject::GetCreatureListWithEntryInGrid(), ScriptedAI::me, and NPC_RAZZASHI_COBRA.

Referenced by EnterCombat().

◆ SpawnCobras()

void boss_venoxis::boss_venoxisAI::SpawnCobras ( )
inline
120 {
121 me->SummonCreature(NPC_RAZZASHI_COBRA, -12021.20f, -1719.73f, 39.34f, 0.85f, TEMPSUMMON_CORPSE_DESPAWN);
122 me->SummonCreature(NPC_RAZZASHI_COBRA, -12029.40f, -1714.54f, 39.36f, 0.68f, TEMPSUMMON_CORPSE_DESPAWN);
123 me->SummonCreature(NPC_RAZZASHI_COBRA, -12036.79f, -1704.27f, 40.06f, 0.45f, TEMPSUMMON_CORPSE_DESPAWN);
124 me->SummonCreature(NPC_RAZZASHI_COBRA, -12037.70f, -1694.20f, 39.35f, 0.27f, TEMPSUMMON_CORPSE_DESPAWN);
125 }
@ TEMPSUMMON_CORPSE_DESPAWN
Definition: Object.h:46
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr) const
Definition: Object.cpp:2303

References ScriptedAI::me, NPC_RAZZASHI_COBRA, WorldObject::SummonCreature(), and TEMPSUMMON_CORPSE_DESPAWN.

Referenced by Reset().

◆ UpdateAI()

void boss_venoxis::boss_venoxisAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

179 {
180 if (!UpdateVictim())
181 return;
182
183 events.Update(diff);
184
185 // return back to main code if we're still casting
187 return;
188
189 while (uint32 eventId = events.ExecuteEvent())
190 {
191 switch (eventId)
192 {
193 // thrash is available in all phases
194 case EVENT_THRASH:
195 DoCast(me, SPELL_THRASH, true);
196 events.ScheduleEvent(EVENT_THRASH, urand(10000, 20000));
197 break;
198
199 // troll form spells and Actions (first part)
202 events.ScheduleEvent(EVENT_DISPEL_MAGIC, urand(15000, 20000), 0, PHASE_ONE);
203 break;
204 case EVENT_RENEW:
206 events.ScheduleEvent(EVENT_RENEW, urand(25000, 30000), 0, PHASE_ONE);
207 break;
208 case EVENT_HOLY_WRATH:
209 if (Unit* target = SelectTarget(SelectTargetMethod::MaxThreat))
210 DoCast(target, SPELL_HOLY_WRATH);
211 events.ScheduleEvent(EVENT_HOLY_WRATH, urand(12000, 22000), 0, PHASE_ONE);
212 break;
213 case EVENT_HOLY_FIRE:
214 if (Unit* target = SelectTarget(SelectTargetMethod::Random))
215 DoCast(target, SPELL_HOLY_FIRE);
216 events.ScheduleEvent(EVENT_HOLY_FIRE, urand(10000, 24000), 0, PHASE_ONE);
217 break;
218 case EVENT_HOLY_NOVA:
220 events.ScheduleEvent(EVENT_HOLY_NOVA, urand(10000, 24000), 0, PHASE_ONE);
221 break;
222
223 //
224 // snake form spells and Actions
225 //
226
227 case EVENT_VENOM_SPIT:
228 if (Unit* target = SelectTarget(SelectTargetMethod::Random))
229 DoCast(target, SPELL_VENOM_SPIT);
230 events.ScheduleEvent(EVENT_VENOM_SPIT, urand(5000, 15000), 0, PHASE_TWO);
231 break;
233 if (Unit* target = SelectTarget(SelectTargetMethod::Random))
234 DoCast(target, SPELL_POISON_CLOUD);
235 events.ScheduleEvent(EVENT_POISON_CLOUD, urand(15000, 20000), 0, PHASE_TWO);
236 break;
238 if (Unit* target = SelectTarget(SelectTargetMethod::Random))
240 events.ScheduleEvent(EVENT_PARASITIC_SERPENT, 15000, 0, PHASE_TWO);
241 break;
242 case EVENT_FRENZY:
243 // frenzy at 20% health
244 DoCast(me, SPELL_FRENZY, true);
245 break;
246
247 //
248 // shape and phase-changing
249 //
250
251 case EVENT_TRANSFORM:
252 // shapeshift at 50% health
256
257 // phase two events (snakeform)
258 events.ScheduleEvent(EVENT_VENOM_SPIT, 5000, 0, PHASE_TWO);
259 events.ScheduleEvent(EVENT_POISON_CLOUD, 10000, 0, PHASE_TWO);
260 events.ScheduleEvent(EVENT_PARASITIC_SERPENT, 30000, 0, PHASE_TWO);
261
262 // transformed, start phase two
263 events.SetPhase(PHASE_TWO);
264
265 break;
266 default:
267 break;
268 }
269 }
270
272 }
std::uint32_t uint32
Definition: Define.h:108
@ UNIT_STATE_CASTING
Definition: Unit.h:340
@ SAY_VENOXIS_TRANSFORM
Definition: boss_venoxis.cpp:30
@ SPELL_HOLY_WRATH
Definition: boss_venoxis.cpp:42
@ SPELL_VENOXIS_TRANSFORM
Definition: boss_venoxis.cpp:51
@ SPELL_DISPEL_MAGIC
Definition: boss_venoxis.cpp:38
@ SPELL_HOLY_NOVA
Definition: boss_venoxis.cpp:40
@ SPELL_SUMMON_PARASITIC_SERPENT
Definition: boss_venoxis.cpp:48
@ SPELL_THRASH
Definition: boss_venoxis.cpp:37
@ SPELL_RENEW
Definition: boss_venoxis.cpp:39
@ SPELL_FRENZY
Definition: boss_venoxis.cpp:52
@ SPELL_HOLY_FIRE
Definition: boss_venoxis.cpp:41
@ SPELL_POISON_CLOUD
Definition: boss_venoxis.cpp:44
@ SPELL_VENOM_SPIT
Definition: boss_venoxis.cpp:45
@ PHASE_TWO
Definition: boss_venoxis.cpp:78
@ EVENT_POISON_CLOUD
Definition: boss_venoxis.cpp:68
@ EVENT_PARASITIC_SERPENT
Definition: boss_venoxis.cpp:70
@ EVENT_VENOM_SPIT
Definition: boss_venoxis.cpp:69
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:40
SpellCastResult DoCastSelf(uint32 spellId, bool triggered=false)
Definition: UnitAI.h:323
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
Definition: UnitAI.cpp:111
SpellCastResult DoCast(uint32 spellId)
Definition: UnitAI.cpp:178
bool UpdateVictim()
Definition: CreatureAI.cpp:268
void DoResetThreat()
Reset Threat.
Definition: ScriptedCreature.cpp:403
Definition: Unit.h:1290
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1398

References UnitAI::DoCast(), UnitAI::DoCastSelf(), UnitAI::DoMeleeAttackIfReady(), ScriptedAI::DoResetThreat(), EVENT_DISPEL_MAGIC, EVENT_FRENZY, EVENT_HOLY_FIRE, EVENT_HOLY_NOVA, EVENT_HOLY_WRATH, EVENT_PARASITIC_SERPENT, EVENT_POISON_CLOUD, EVENT_RENEW, EVENT_THRASH, EVENT_TRANSFORM, EVENT_VENOM_SPIT, Unit::HasUnitState(), ScriptedAI::me, PHASE_ONE, PHASE_TWO, SAY_VENOXIS_TRANSFORM, UnitAI::SelectTarget(), SPELL_DISPEL_MAGIC, SPELL_FRENZY, SPELL_HOLY_FIRE, SPELL_HOLY_NOVA, SPELL_HOLY_WRATH, SPELL_POISON_CLOUD, SPELL_RENEW, SPELL_SUMMON_PARASITIC_SERPENT, SPELL_THRASH, SPELL_VENOM_SPIT, SPELL_VENOXIS_TRANSFORM, UNIT_STATE_CASTING, CreatureAI::UpdateVictim(), and urand().

Member Data Documentation

◆ _frenzied

bool boss_venoxis::boss_venoxisAI::_frenzied
private

Referenced by DamageTaken(), and Reset().

◆ _inMeleeRange

uint8 boss_venoxis::boss_venoxisAI::_inMeleeRange
private

Referenced by Reset().

◆ _transformed

bool boss_venoxis::boss_venoxisAI::_transformed
private

Referenced by DamageTaken(), and Reset().