AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
boss_professor_putricide::boss_professor_putricideAI Struct Reference
Inheritance diagram for boss_professor_putricide::boss_professor_putricideAI:
BossAI ScriptedAI CreatureAI UnitAI

Public Member Functions

 boss_professor_putricideAI (Creature *creature)
 
void Reset () override
 
uint32 GetData (uint32 type) const override
 
void SetData (uint32 id, uint32 data) override
 
bool CanAIAttack (Unit const *target) const override
 
void MoveInLineOfSight (Unit *who) override
 
void JustEngagedWith (Unit *who) override
 Called for reaction when initially engaged.
 
void JustReachedHome () override
 
void KilledUnit (Unit *victim) override
 
void JustDied (Unit *) override
 
void JustSummoned (Creature *summon) override
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 
void MovementInform (uint32 type, uint32 id) override
 
void DoAction (int32 action) override
 
void UpdateAI (uint32 diff) override
 
void EnterEvadeMode (EvadeReason why) override
 
void ChangePhase ()
 
- Public Member Functions inherited from BossAI
 BossAI (Creature *creature, uint32 bossId)
 
 ~BossAI () override
 
bool CanRespawn () override
 
void DamageTaken (Unit *attacker, uint32 &damage, DamageEffectType damagetype, SpellSchoolMask damageSchoolMask) override
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SummonedCreatureDespawnAll () override
 
void UpdateAI (uint32 diff) override
 
void ScheduleHealthCheckEvent (uint32 healthPct, std::function< void()> exec)
 Executes a function once the creature reaches the defined health point percent.
 
void ScheduleHealthCheckEvent (std::initializer_list< uint8 > healthPct, std::function< void()> exec)
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
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 JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
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)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoPlayMusic (uint32 soundId, bool zone)
 
void DoAddThreat (Unit *unit, float amount)
 
void DoModifyThreatByPercent (Unit *unit, int32 pct)
 
void DoResetThreat (Unit *unit)
 
void DoResetThreatList ()
 
float DoGetThreat (Unit *unit)
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportAll (float x, float y, float z, float o)
 
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 IsUniqueTimedEventDone (uint32 id) const
 
void SetUniqueTimedEventDone (uint32 id)
 
void ResetUniqueTimedEvent (uint32 id)
 
void ClearUniqueTimedEventsDone ()
 
void ScheduleTimedEvent (Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleUniqueTimedEvent (Milliseconds timer, std::function< void()> exec, uint32 uniqueId)
 
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)
 
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, Milliseconds delay=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged.
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
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 ==================
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields =======================================
 
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, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 Called when the unit enters combat (NOTE: Creature engage logic should NOT be here, but in JustEngagedWith, which happens once threat is established!)
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 
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)
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the max threat target, which may not always be the current victim.
 
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
 

Public Attributes

uint16 sayFestergutDeathTimer
 
uint16 sayRotfaceDeathTimer
 
bool bCallEvade
 
uint8 _experimentState
 
uint8 _phase
 
bool bChangePhase
 
bool bEnteredCombat
 
- Public Attributes inherited from BossAI
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
Creatureme
 
bool IsFleeing
 

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 ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from BossAI
void _Reset ()
 
void _JustEngagedWith ()
 
void _JustDied ()
 
void _JustReachedHome ()
 
bool _ProccessHealthCheckEvent (uint8 healthPct, uint32 damage, std::function< void()> exec) const
 
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
SummonList summons
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ boss_professor_putricideAI()

boss_professor_putricide::boss_professor_putricideAI::boss_professor_putricideAI ( Creature creature)
inline
232 {
233 bCallEvade = false;
234 bEnteredCombat = false;
235 }
@ DATA_PROFESSOR_PUTRICIDE
Definition: icecrown_citadel.h:100
Definition: ScriptedCreature.h:469
bool bEnteredCombat
Definition: boss_professor_putricide.cpp:243
bool bCallEvade
Definition: boss_professor_putricide.cpp:239

References bCallEvade, and bEnteredCombat.

Member Function Documentation

◆ CanAIAttack()

bool boss_professor_putricide::boss_professor_putricideAI::CanAIAttack ( Unit const *  target) const
inlineoverridevirtual

Reimplemented from UnitAI.

282 {
283 return me->IsVisible() && target->GetPositionZ() > 388.0f && target->GetPositionZ() < 410.0f && target->GetPositionY() > 3157.1f && target->GetExactDist2dSq(4356.0f, 3211.0f) < 80.0f * 80.0f;
284 }
Creature * me
Definition: ScriptedCreature.h:282
bool IsVisible() const
Definition: Unit.h:2141

References Position::GetExactDist2dSq(), Position::GetPositionY(), Position::GetPositionZ(), Unit::IsVisible(), and ScriptedAI::me.

◆ ChangePhase()

void boss_professor_putricide::boss_professor_putricideAI::ChangePhase ( )
inline
672 {
673 uint32 heroicDelay = (IsHeroic() ? 25000 : 0);
674 events.DelayEvents(24000 + heroicDelay, EVENT_GROUP_ABILITIES);
675 me->AttackStop();
676 if (!IsHeroic())
677 {
678 me->CastSpell(me, SPELL_TEAR_GAS, false);
679 events.ScheduleEvent(EVENT_GO_TO_TABLE, 2500ms);
680 }
681 else
682 {
686 // cast variables
687 if (Is25ManRaid())
688 {
689 std::list<Unit*> targetList;
690
691 Map::PlayerList const& pl = me->GetMap()->GetPlayers();
692 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
693 if (Player* p = itr->GetSource())
694 if (!p->IsGameMaster())
695 targetList.push_back(p);
696
697 size_t half = targetList.size() / 2;
698 // half gets ooze variable
699 while (half < targetList.size())
700 {
701 std::list<Unit*>::iterator itr = targetList.begin();
702 advance(itr, urand(0, targetList.size() - 1));
703 (*itr)->CastSpell(*itr, SPELL_OOZE_VARIABLE, true);
704 targetList.erase(itr);
705 }
706 // and half gets gas
707 for (std::list<Unit*>::iterator itr = targetList.begin(); itr != targetList.end(); ++itr)
708 (*itr)->CastSpell(*itr, SPELL_GAS_VARIABLE, true);
709 }
710
712 }
713
714 switch (_phase)
715 {
716 case 1:
717 _phase = 2;
718 events.ScheduleEvent(EVENT_MALLEABLE_GOO, urand(25000, 28000) + heroicDelay, EVENT_GROUP_ABILITIES);
719 events.ScheduleEvent(EVENT_CHOKING_GAS_BOMB, urand(35000, 40000) + heroicDelay, EVENT_GROUP_ABILITIES);
720 break;
721 case 2:
722 _phase = 3;
724 break;
725 default:
726 break;
727 }
728 }
std::uint32_t uint32
Definition: Define.h:108
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
events
Definition: boss_sartura.cpp:43
#define EVENT_GROUP_ABILITIES
Definition: boss_professor_putricide.cpp:138
@ POINT_TABLE_COMBAT
Definition: boss_professor_putricide.cpp:145
@ SPELL_UNSTABLE_EXPERIMENT
Definition: boss_professor_putricide.cpp:66
@ SPELL_OOZE_VARIABLE
Definition: boss_professor_putricide.cpp:75
@ SPELL_GAS_VARIABLE
Definition: boss_professor_putricide.cpp:76
@ SPELL_TEAR_GAS
Definition: boss_professor_putricide.cpp:67
Position const tablePos
Definition: boss_professor_putricide.cpp:150
@ SAY_PHASE_TRANSITION_HEROIC
Definition: boss_professor_putricide.cpp:42
@ EVENT_CHOKING_GAS_BOMB
Definition: boss_professor_putricide.cpp:135
@ EVENT_GO_TO_TABLE
Definition: boss_professor_putricide.cpp:129
@ EVENT_MALLEABLE_GOO
Definition: boss_professor_putricide.cpp:134
@ EVENT_UNSTABLE_EXPERIMENT
Definition: boss_professor_putricide.cpp:128
Talk
Definition: boss_fathomlord_karathress.cpp:25
Definition: LinkedList.h:139
SpellCastResult DoCast(uint32 spellId)
Definition: UnitAI.cpp:177
bool IsHeroic() const
Definition: ScriptedCreature.h:391
bool Is25ManRaid() const
Definition: ScriptedCreature.h:397
Map * GetMap() const
Definition: Object.h:517
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
Definition: Player.h:1056
MotionMaster * GetMotionMaster()
Definition: Unit.h:2276
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:1169
bool AttackStop()
Definition: Unit.cpp:10407
PlayerList const & GetPlayers() const
Definition: Map.h:485
Definition: MapRefMgr.h:26
iterator begin()
Definition: MapRefMgr.h:36
iterator end()
Definition: MapRefMgr.h:37
void MoveCharge(float x, float y, float z, float speed=SPEED_CHARGE, uint32 id=EVENT_CHARGE, const Movement::PointsArray *path=nullptr, bool generatePath=false, float orientation=0.0f, ObjectGuid targetGUID=ObjectGuid::Empty)
Definition: MotionMaster.cpp:628
uint8 _phase
Definition: boss_professor_putricide.cpp:241

References _phase, Unit::AttackStop(), MapRefMgr::begin(), Unit::CastSpell(), UnitAI::DoCast(), MapRefMgr::end(), EVENT_CHOKING_GAS_BOMB, EVENT_GO_TO_TABLE, EVENT_GROUP_ABILITIES, EVENT_MALLEABLE_GOO, EVENT_UNSTABLE_EXPERIMENT, WorldObject::GetMap(), Unit::GetMotionMaster(), Map::GetPlayers(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), ScriptedAI::Is25ManRaid(), ScriptedAI::IsHeroic(), ScriptedAI::me, MotionMaster::MoveCharge(), POINT_TABLE_COMBAT, SAY_PHASE_TRANSITION_HEROIC, SPELL_GAS_VARIABLE, SPELL_OOZE_VARIABLE, SPELL_TEAR_GAS, SPELL_UNSTABLE_EXPERIMENT, tablePos, and urand().

Referenced by UpdateAI().

◆ DamageTaken()

void boss_professor_putricide::boss_professor_putricideAI::DamageTaken ( Unit ,
uint32 ,
DamageEffectType  ,
SpellSchoolMask   
)
inlineoverridevirtual

Reimplemented from BossAI.

394 {
395 if (bChangePhase)
396 return;
397
398 switch (_phase)
399 {
400 case 1:
401 if (HealthAbovePct(80))
402 return;
404 bChangePhase = true;
405 break;
406 case 2:
407 if (HealthAbovePct(35))
408 return;
410 bChangePhase = true;
411 break;
412 default:
413 break;
414 }
415 }
@ REACT_PASSIVE
Definition: Unit.h:1035
bool HealthAbovePct(uint32 pct) const
Definition: ScriptedCreature.h:369
void SetReactState(ReactStates st)
Definition: Creature.h:90
bool bChangePhase
Definition: boss_professor_putricide.cpp:242

References _phase, bChangePhase, ScriptedAI::HealthAbovePct(), ScriptedAI::me, REACT_PASSIVE, and Creature::SetReactState().

◆ DoAction()

void boss_professor_putricide::boss_professor_putricideAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

467 {
468 switch (action)
469 {
472 break;
475 break;
479 break;
482 break;
485 break;
486 default:
487 break;
488 }
489 }
Position const festergutWatchPos
Definition: boss_professor_putricide.cpp:148
@ POINT_ROTFACE
Definition: boss_professor_putricide.cpp:143
@ POINT_FESTERGUT
Definition: boss_professor_putricide.cpp:142
@ SPELL_RELEASE_GAS_VISUAL
Definition: boss_professor_putricide.cpp:55
Position const rotfaceWatchPos
Definition: boss_professor_putricide.cpp:149
@ SAY_FESTERGUT_GASEOUS_BLIGHT
Definition: boss_professor_putricide.cpp:32
@ ACTION_ROTFACE_COMBAT
Definition: icecrown_citadel.h:528
@ ACTION_FESTERGUT_DEATH
Definition: icecrown_citadel.h:525
@ ACTION_ROTFACE_DEATH
Definition: icecrown_citadel.h:530
@ ACTION_FESTERGUT_GAS
Definition: icecrown_citadel.h:524
@ ACTION_FESTERGUT_COMBAT
Definition: icecrown_citadel.h:523
uint16 sayFestergutDeathTimer
Definition: boss_professor_putricide.cpp:237
uint16 sayRotfaceDeathTimer
Definition: boss_professor_putricide.cpp:238

References ACTION_FESTERGUT_COMBAT, ACTION_FESTERGUT_DEATH, ACTION_FESTERGUT_GAS, ACTION_ROTFACE_COMBAT, ACTION_ROTFACE_DEATH, UnitAI::DoCast(), festergutWatchPos, Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), ScriptedAI::me, MotionMaster::MoveCharge(), POINT_FESTERGUT, POINT_ROTFACE, rotfaceWatchPos, SAY_FESTERGUT_GASEOUS_BLIGHT, sayFestergutDeathTimer, sayRotfaceDeathTimer, and SPELL_RELEASE_GAS_VISUAL.

Referenced by MovementInform().

◆ EnterEvadeMode()

void boss_professor_putricide::boss_professor_putricideAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

664 {
666 if (!me->IsInCombat() && me->GetExactDist2d(&p) > 10.0f)
669 }
@ POINT_TABLE
Definition: boss_professor_putricide.cpp:144
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:196
void GetHomePosition(float &x, float &y, float &z, float &ori) const
Definition: Creature.h:332
Definition: Position.h:28
float GetExactDist2d(const float x, const float y) const
Definition: Position.h:166
bool IsInCombat() const
Definition: Unit.h:1702

References CreatureAI::EnterEvadeMode(), Position::GetExactDist2d(), Creature::GetHomePosition(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::IsInCombat(), ScriptedAI::me, MotionMaster::MoveCharge(), POINT_TABLE, and tablePos.

Referenced by UpdateAI().

◆ GetData()

uint32 boss_professor_putricide::boss_professor_putricideAI::GetData ( uint32  type) const
inlineoverridevirtual

Reimplemented from UnitAI.

261 {
262 switch (type)
263 {
265 return (uint32)_experimentState;
266 case DATA_PHASE:
267 return (uint32)_phase;
268 case DATA_ABOMINATION:
269 return (uint32)(const_cast<SummonList*>(&summons)->HasEntry(NPC_MUTATED_ABOMINATION_10) || const_cast<SummonList*>(&summons)->HasEntry(NPC_MUTATED_ABOMINATION_25));
270 }
271
272 return 0;
273 }
@ DATA_PHASE
Definition: boss_professor_putricide.cpp:119
@ DATA_ABOMINATION
Definition: boss_professor_putricide.cpp:120
@ DATA_EXPERIMENT_STAGE
Definition: boss_professor_putricide.cpp:118
@ NPC_MUTATED_ABOMINATION_25
Definition: icecrown_citadel.h:277
@ NPC_MUTATED_ABOMINATION_10
Definition: icecrown_citadel.h:276
Definition: ScriptedCreature.h:35
SummonList summons
Definition: ScriptedCreature.h:510
uint8 _experimentState
Definition: boss_professor_putricide.cpp:240

References _experimentState, _phase, DATA_ABOMINATION, DATA_EXPERIMENT_STAGE, DATA_PHASE, NPC_MUTATED_ABOMINATION_10, NPC_MUTATED_ABOMINATION_25, and BossAI::summons.

◆ JustDied()

void boss_professor_putricide::boss_professor_putricideAI::JustDied ( Unit )
inlineoverridevirtual

Reimplemented from BossAI.

341 {
342 _JustDied();
344
346 DoCastAOE(SPELL_UNHOLY_INFUSION_CREDIT, true); // ReqTargetAura in dbc
347
348 me->CastSpell((Unit*)nullptr, SPELL_MUTATED_PLAGUE_CLEAR, true);
349 }
@ SPELL_UNHOLY_INFUSION_CREDIT
Definition: boss_professor_putricide.cpp:113
@ SPELL_MUTATED_PLAGUE_CLEAR
Definition: boss_professor_putricide.cpp:82
@ SAY_DEATH
Definition: boss_professor_putricide.cpp:49
@ SPELL_SHADOWS_FATE
Definition: icecrown_citadel.h:71
SpellCastResult DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:248
void _JustDied()
Definition: ScriptedCreature.cpp:620
Definition: Unit.h:1302
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5636

References BossAI::_JustDied(), Unit::CastSpell(), UnitAI::DoCastAOE(), Unit::HasAura(), ScriptedAI::Is25ManRaid(), ScriptedAI::me, SAY_DEATH, SPELL_MUTATED_PLAGUE_CLEAR, SPELL_SHADOWS_FATE, and SPELL_UNHOLY_INFUSION_CREDIT.

◆ JustEngagedWith()

void boss_professor_putricide::boss_professor_putricideAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from BossAI.

293 {
295 if (!instance->CheckRequiredBosses(DATA_PROFESSOR_PUTRICIDE, who->ToPlayer()) || me->GetExactDist2d(&homePos) > 10.0f || !me->IsVisible()) // check home position because during festergut/rotface fight, trigger missile after their death can trigger putricide combat
296 {
297 me->CombatStop();
299 return;
300 }
301
302 bEnteredCombat = true;
304 events.Reset();
305 events.ScheduleEvent(EVENT_BERSERK, 10min);
308 if (IsHeroic())
310
313
314 me->setActive(true);
319 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
Position const homePos
Definition: boss_chromaggus.cpp:72
@ SPELL_OOZE_TANK_PROTECTION
Definition: boss_professor_putricide.cpp:73
@ SAY_AGGRO
Definition: boss_professor_putricide.cpp:40
@ EVENT_SLIME_PUDDLE
Definition: boss_professor_putricide.cpp:127
@ EVENT_UNBOUND_PLAGUE
Definition: boss_professor_putricide.cpp:133
@ EVENT_BERSERK
Definition: boss_professor_putricide.cpp:126
@ DATA_NAUSEA_ACHIEVEMENT
Definition: icecrown_citadel.h:116
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition: CreatureAI.cpp:94
InstanceScript *const instance
Definition: ScriptedCreature.h:474
void setActive(bool isActiveObject)
Definition: Object.cpp:1085
void CombatStop(bool includingCast=false)
Definition: Unit.cpp:10440
void RemoveAllAuras()
Definition: Unit.cpp:5259
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:350
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell)
Definition: InstanceScript.cpp:638
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
Definition: InstanceScript.h:244
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:53

References bEnteredCombat, Unit::CastSpell(), InstanceScript::CheckRequiredBosses(), Unit::CombatStop(), DATA_NAUSEA_ACHIEVEMENT, DATA_PROFESSOR_PUTRICIDE, InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), CreatureAI::DoZoneInCombat(), EVENT_BERSERK, EVENT_GROUP_ABILITIES, EVENT_SLIME_PUDDLE, EVENT_UNBOUND_PLAGUE, EVENT_UNSTABLE_EXPERIMENT, Position::GetExactDist2d(), Creature::GetHomePosition(), homePos, IN_PROGRESS, BossAI::instance, ScriptedAI::IsHeroic(), Unit::IsVisible(), ScriptedAI::me, Unit::RemoveAllAuras(), SAY_AGGRO, WorldObject::setActive(), InstanceScript::SetBossState(), ZoneScript::SetData(), SPELL_GAS_VARIABLE, SPELL_OOZE_TANK_PROTECTION, SPELL_OOZE_VARIABLE, and Object::ToPlayer().

◆ JustReachedHome()

void boss_professor_putricide::boss_professor_putricideAI::JustReachedHome ( )
inlineoverridevirtual

◆ JustSummoned()

void boss_professor_putricide::boss_professor_putricideAI::JustSummoned ( Creature summon)
inlineoverridevirtual

Reimplemented from BossAI.

352 {
353 if (summon->GetEntry() != 38308 && summon->GetEntry() != 38309 && (!me->IsInCombat() || me->IsInEvadeMode()))
354 {
355 summon->DespawnOrUnsummon(1);
356 return;
357 }
358
359 summons.Summon(summon);
360
361 switch (summon->GetEntry())
362 {
364 // blizzard casts this spell 7 times initially (confirmed in sniff)
365 for (uint8 i = 0; i < 7; ++i)
366 summon->CastSpell(summon, SPELL_GROW, true);
367 return;
368 case NPC_GAS_CLOUD:
369 // no possible aura seen in sniff adding the aurastate
371 summon->CastSpell(summon, SPELL_GASEOUS_BLOAT_PROC, true);
373 break;
375 // no possible aura seen in sniff adding the aurastate
377 summon->CastSpell(summon, SPELL_OOZE_ERUPTION_SEARCH_PERIODIC, true);
379 break;
381 summon->CastSpell(summon, SPELL_CHOKING_GAS_BOMB_PERIODIC, true);
382 summon->CastSpell(summon, SPELL_CHOKING_GAS_EXPLOSION_TRIGGER, true);
383 return;
386 return;
387 }
388
389 if (me->IsInCombat())
390 summon->SetInCombatWithZone();
391 }
std::uint8_t uint8
Definition: Define.h:110
@ SPELL_OOZE_ERUPTION_SEARCH_PERIODIC
Definition: boss_professor_putricide.cpp:98
@ SPELL_CHOKING_GAS_BOMB_PERIODIC
Definition: boss_professor_putricide.cpp:102
@ SPELL_GASEOUS_BLOAT_PROC
Definition: boss_professor_putricide.cpp:90
@ SPELL_GROW
Definition: boss_professor_putricide.cpp:86
@ SPELL_CHOKING_GAS_EXPLOSION_TRIGGER
Definition: boss_professor_putricide.cpp:103
@ NPC_CHOKING_GAS_BOMB
Definition: icecrown_citadel.h:274
@ NPC_VOLATILE_OOZE
Definition: icecrown_citadel.h:273
@ NPC_GAS_CLOUD
Definition: icecrown_citadel.h:272
@ NPC_GROWING_OOZE_PUDDLE
Definition: icecrown_citadel.h:271
@ AURA_STATE_UNKNOWN19
Definition: SharedDefines.h:1311
@ AURA_STATE_UNKNOWN22
Definition: SharedDefines.h:1314
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:90
void SetInCombatWithZone()
Definition: Creature.cpp:2732
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2117
bool IsInEvadeMode() const
Definition: Creature.h:130
uint32 GetEntry() const
Definition: Object.h:109
void ModifyAuraState(AuraStateType flag, bool apply)
Definition: Unit.cpp:10496

References AURA_STATE_UNKNOWN19, AURA_STATE_UNKNOWN22, Unit::CastSpell(), Creature::DespawnOrUnsummon(), Object::GetEntry(), Unit::IsInCombat(), Creature::IsInEvadeMode(), ScriptedAI::me, Unit::ModifyAuraState(), NPC_CHOKING_GAS_BOMB, NPC_GAS_CLOUD, NPC_GROWING_OOZE_PUDDLE, NPC_MUTATED_ABOMINATION_10, NPC_MUTATED_ABOMINATION_25, NPC_VOLATILE_OOZE, REACT_PASSIVE, Creature::SetInCombatWithZone(), Creature::SetReactState(), SPELL_CHOKING_GAS_BOMB_PERIODIC, SPELL_CHOKING_GAS_EXPLOSION_TRIGGER, SPELL_GASEOUS_BLOAT_PROC, SPELL_GROW, SPELL_OOZE_ERUPTION_SEARCH_PERIODIC, SummonList::Summon(), and BossAI::summons.

◆ KilledUnit()

void boss_professor_putricide::boss_professor_putricideAI::KilledUnit ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

335 {
336 if (victim->GetTypeId() == TYPEID_PLAYER)
337 Talk(SAY_KILL);
338 }
@ TYPEID_PLAYER
Definition: ObjectGuid.h:38
@ SAY_KILL
Definition: boss_professor_putricide.cpp:47
TypeID GetTypeId() const
Definition: Object.h:121

References Object::GetTypeId(), SAY_KILL, and TYPEID_PLAYER.

◆ MoveInLineOfSight()

void boss_professor_putricide::boss_professor_putricideAI::MoveInLineOfSight ( Unit who)
inlineoverridevirtual

Reimplemented from CreatureAI.

287 {
290 }
@ UNIT_FLAG_NOT_SELECTABLE
Definition: Unit.h:473
virtual void MoveInLineOfSight(Unit *)
Definition: CreatureAI.cpp:157
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:1494

References Unit::HasUnitFlag(), ScriptedAI::me, CreatureAI::MoveInLineOfSight(), and UNIT_FLAG_NOT_SELECTABLE.

◆ MovementInform()

void boss_professor_putricide::boss_professor_putricideAI::MovementInform ( uint32  type,
uint32  id 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

418 {
419 if (type != POINT_MOTION_TYPE)
420 return;
421 switch (id)
422 {
423 case POINT_FESTERGUT:
425 {
426 if (c->IsInCombat())
427 {
431 c->CastSpell(c, SPELL_GASEOUS_BLIGHT_LARGE, true, nullptr, nullptr, c->GetGUID());
432 }
433 else
434 {
435 bCallEvade = true;
436 }
437 }
438 break;
439 case POINT_ROTFACE:
441 {
442 if (c->IsInCombat())
443 {
446 }
447 else
448 {
449 bCallEvade = true;
450 }
451 }
452 break;
453 case POINT_TABLE:
456 break;
459 me->GetMotionMaster()->Clear(false);
461 events.ScheduleEvent(EVENT_TABLE_DRINK_STUFF, IsHeroic() ? 25s : 0ms);
462 break;
463 }
464 }
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ POINT_MOTION_TYPE
Definition: MotionMaster.h:46
@ SPELL_GASEOUS_BLIGHT_LARGE
Definition: boss_professor_putricide.cpp:56
@ EVENT_TABLE_DRINK_STUFF
Definition: boss_professor_putricide.cpp:130
@ DATA_ROTFACE
Definition: icecrown_citadel.h:99
@ DATA_FESTERGUT
Definition: icecrown_citadel.h:98
@ EMOTE_STATE_USE_STANDING
Definition: SharedDefines.h:1944
Definition: Creature.h:46
void SetUInt32Value(uint16 index, uint32 value)
Definition: Object.cpp:650
float GetOrientation() const
Definition: Position.h:120
void SetFacingTo(float ori)
Definition: Unit.cpp:20884
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:94
Map * instance
Definition: InstanceScript.h:147
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3307
void MoveIdle()
Definition: MotionMaster.cpp:232
void Clear(bool reset=true)
Definition: MotionMaster.h:165
void DoAction(int32 action) override
Definition: boss_professor_putricide.cpp:466

References ACTION_FESTERGUT_GAS, bCallEvade, MotionMaster::Clear(), DATA_FESTERGUT, DATA_ROTFACE, DoAction(), EMOTE_STATE_USE_STANDING, EVENT_TABLE_DRINK_STUFF, festergutWatchPos, Map::GetCreature(), InstanceScript::GetGuidData(), Unit::GetMotionMaster(), Position::GetOrientation(), IN_PROGRESS, BossAI::instance, InstanceScript::instance, ScriptedAI::IsHeroic(), ScriptedAI::me, MotionMaster::MoveIdle(), POINT_FESTERGUT, POINT_MOTION_TYPE, POINT_ROTFACE, POINT_TABLE, POINT_TABLE_COMBAT, rotfaceWatchPos, InstanceScript::SetBossState(), Unit::SetFacingTo(), Object::SetUInt32Value(), SPELL_GASEOUS_BLIGHT_LARGE, tablePos, and UNIT_NPC_EMOTESTATE.

◆ Reset()

void boss_professor_putricide::boss_professor_putricideAI::Reset ( )
inlineoverridevirtual

Reimplemented from BossAI.

246 {
250 _phase = 1;
251 bChangePhase = false;
252 _Reset();
255
258 }
@ REACT_AGGRESSIVE
Definition: Unit.h:1037
@ UNIT_STAND_STATE_STAND
Definition: Unit.h:53
@ DONE
Definition: InstanceScript.h:60
void _Reset()
Definition: ScriptedCreature.cpp:604
void SetStandState(uint8 state)
Definition: Unit.cpp:16994
void RemoveUnitFlag(UnitFlags flags)
Definition: Unit.h:1496
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:231

References _experimentState, _phase, BossAI::_Reset(), bChangePhase, DATA_FESTERGUT, DATA_ROTFACE, DONE, InstanceScript::GetBossState(), BossAI::instance, ScriptedAI::me, REACT_AGGRESSIVE, Unit::RemoveUnitFlag(), sayFestergutDeathTimer, sayRotfaceDeathTimer, Creature::SetReactState(), Unit::SetStandState(), UNIT_FLAG_NOT_SELECTABLE, and UNIT_STAND_STATE_STAND.

◆ SetData()

void boss_professor_putricide::boss_professor_putricideAI::SetData ( uint32  id,
uint32  data 
)
inlineoverridevirtual

Reimplemented from UnitAI.

276 {
277 if (id == DATA_EXPERIMENT_STAGE)
278 _experimentState = (data ? 1 : 0);
279 }

References _experimentState, and DATA_EXPERIMENT_STAGE.

◆ UpdateAI()

void boss_professor_putricide::boss_professor_putricideAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from BossAI.

492 {
494 {
495 if (sayFestergutDeathTimer <= diff)
496 {
500 }
501 else
503 }
504 else if (sayRotfaceDeathTimer)
505 {
506 if (sayRotfaceDeathTimer <= diff)
507 {
511 }
512 else
513 sayRotfaceDeathTimer -= diff;
514 }
515 else if (bCallEvade)
516 {
517 bCallEvade = false;
519 return;
520 }
521
522 if (!UpdateVictim())
523 return;
524
525 events.Update(diff);
526
528 return;
529
530 if (bChangePhase)
531 {
532 ChangePhase();
533 bChangePhase = false;
534 return;
535 }
536
537 switch (events.ExecuteEvent())
538 {
539 case EVENT_BERSERK:
542 break;
544 {
545 std::list<Unit*> targets;
546 SelectTargetList(targets, 2, SelectTargetMethod::Random, 0, 0.0f, true);
547 if (!targets.empty())
548 for (std::list<Unit*>::iterator itr = targets.begin(); itr != targets.end(); ++itr)
551 }
552 break;
557 break;
561 break;
563 switch (_phase)
564 {
565 case 2:
566 {
567 SpellInfo const* spell = sSpellMgr->GetSpellInfo(SPELL_CREATE_CONCOCTION);
569 events.ScheduleEvent(EVENT_PHASE_TRANSITION, sSpellMgr->GetSpellForDifficultyFromSpell(spell, me)->CalcCastTime() + 2250);
570 break;
571 }
572 case 3:
573 {
574 SpellInfo const* spell = sSpellMgr->GetSpellInfo(SPELL_GUZZLE_POTIONS);
576 events.ScheduleEvent(EVENT_PHASE_TRANSITION, sSpellMgr->GetSpellForDifficultyFromSpell(spell, me)->CalcCastTime() + 2250);
577 break;
578 }
579 default:
580 break;
581 }
582 break;
584 {
585 switch (_phase)
586 {
587 case 2:
589 me->SetFacingToObject(face);
592 events.ScheduleEvent(EVENT_RESUME_ATTACK, 5500ms);
593 break;
594 case 3:
596 me->SetFacingToObject(face);
599 events.ScheduleEvent(EVENT_RESUME_ATTACK, 8500ms);
600 break;
601 default:
602 break;
603 }
604 }
605 break;
610 // remove Tear Gas
613 if (_phase == 3)
617 break;
619 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, UnboundPlagueTargetSelector(me)))
620 {
621 me->CastSpell(target, SPELL_UNBOUND_PLAGUE, false);
624 }
625 else
626 events.ScheduleEvent(EVENT_UNBOUND_PLAGUE, 3500ms, EVENT_GROUP_ABILITIES);
627 break;
629 if (Is25ManRaid())
630 {
631 std::list<Unit*> targets;
632 SelectTargetList(targets, (IsHeroic() ? 3 : 2), SelectTargetMethod::Random, 0, MalleableGooSelector(me));
633
634 if (!targets.empty())
635 {
637 for (std::list<Unit*>::iterator itr = targets.begin(); itr != targets.end(); ++itr)
638 me->CastSpell(*itr, SPELL_MALLEABLE_GOO, true);
639 }
640 }
641 else
642 {
643 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 1, MalleableGooSelector(me)))
644 {
646 me->CastSpell(target, SPELL_MALLEABLE_GOO, true);
647 }
648 }
649 events.ScheduleEvent(EVENT_MALLEABLE_GOO, 25s, 30s, EVENT_GROUP_ABILITIES);
650 break;
654 events.ScheduleEvent(EVENT_CHOKING_GAS_BOMB, 35s, 40s, EVENT_GROUP_ABILITIES);
655 break;
656 default:
657 break;
658 }
659
661 }
@ UNIT_STAND_STATE_KNEEL
Definition: Unit.h:61
@ UNIT_STATE_CASTING
Definition: Unit.h:340
#define sSpellMgr
Definition: SpellMgr.h:825
@ SPELL_UNBOUND_PLAGUE_SEARCHER
Definition: boss_professor_putricide.cpp:78
@ SPELL_SLIME_PUDDLE_TRIGGER
Definition: boss_professor_putricide.cpp:63
@ SPELL_TEAR_GAS_PERIODIC_TRIGGER
Definition: boss_professor_putricide.cpp:70
@ SPELL_UNBOUND_PLAGUE
Definition: boss_professor_putricide.cpp:77
@ SPELL_TEAR_GAS_CANCEL
Definition: boss_professor_putricide.cpp:69
@ SPELL_CREATE_CONCOCTION
Definition: boss_professor_putricide.cpp:71
@ SPELL_MALLEABLE_GOO
Definition: boss_professor_putricide.cpp:65
@ SPELL_CHOKING_GAS_BOMB
Definition: boss_professor_putricide.cpp:74
@ SPELL_GUZZLE_POTIONS
Definition: boss_professor_putricide.cpp:72
@ EMOTE_MALLEABLE_GOO
Definition: boss_professor_putricide.cpp:45
@ EMOTE_CHOKING_GAS_BOMB
Definition: boss_professor_putricide.cpp:46
@ SAY_TRANSFORM_1
Definition: boss_professor_putricide.cpp:43
@ SAY_FESTERGUT_DEATH
Definition: boss_professor_putricide.cpp:33
@ SAY_ROTFACE_DEATH
Definition: boss_professor_putricide.cpp:37
@ SAY_TRANSFORM_2
Definition: boss_professor_putricide.cpp:44
@ SAY_BERSERK
Definition: boss_professor_putricide.cpp:48
@ EMOTE_UNSTABLE_EXPERIMENT
Definition: boss_professor_putricide.cpp:41
@ EVENT_RESUME_ATTACK
Definition: boss_professor_putricide.cpp:132
@ EVENT_PHASE_TRANSITION
Definition: boss_professor_putricide.cpp:131
@ NPC_TEAR_GAS_TARGET_STALKER
Definition: icecrown_citadel.h:275
@ SPELL_BERSERK2
Definition: icecrown_citadel.h:56
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:39
void SelectTargetList(std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition: UnitAI.cpp:115
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition: UnitAI.cpp:110
@ EVADE_REASON_OTHER
Definition: CreatureAI.h:94
bool UpdateVictim()
Definition: CreatureAI.cpp:268
void DespawnIf(T const &predicate)
Definition: ScriptedCreature.h:99
void AttackStart(Unit *) override
Definition: ScriptedCreature.cpp:210
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2434
void SetFacingToObject(WorldObject *object)
Definition: Unit.cpp:20894
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4855
Unit * GetVictim() const
Definition: Unit.h:1398
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1410
Definition: SpellInfo.h:314
Definition: boss_professor_putricide.cpp:153
Definition: boss_professor_putricide.cpp:183
Definition: boss_professor_putricide.cpp:206
void EnterEvadeMode(EvadeReason why) override
Definition: boss_professor_putricide.cpp:663
void ChangePhase()
Definition: boss_professor_putricide.cpp:671

References _phase, ScriptedAI::AttackStart(), bCallEvade, bChangePhase, Unit::CastSpell(), ChangePhase(), SummonList::DespawnIf(), UnitAI::DoCast(), UnitAI::DoCastAOE(), UnitAI::DoMeleeAttackIfReady(), InstanceScript::DoRemoveAurasDueToSpellOnPlayers(), EMOTE_CHOKING_GAS_BOMB, EMOTE_MALLEABLE_GOO, EMOTE_UNSTABLE_EXPERIMENT, EnterEvadeMode(), CreatureAI::EVADE_REASON_OTHER, EVENT_BERSERK, EVENT_CHOKING_GAS_BOMB, EVENT_GO_TO_TABLE, EVENT_GROUP_ABILITIES, EVENT_MALLEABLE_GOO, EVENT_PHASE_TRANSITION, EVENT_RESUME_ATTACK, EVENT_SLIME_PUDDLE, EVENT_TABLE_DRINK_STUFF, EVENT_UNBOUND_PLAGUE, EVENT_UNSTABLE_EXPERIMENT, WorldObject::FindNearestCreature(), Unit::GetMotionMaster(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::GetVictim(), Unit::HasUnitState(), BossAI::instance, ScriptedAI::Is25ManRaid(), ScriptedAI::IsHeroic(), ScriptedAI::me, MotionMaster::MoveCharge(), NPC_TEAR_GAS_TARGET_STALKER, POINT_TABLE_COMBAT, REACT_AGGRESSIVE, Unit::RemoveAurasDueToSpell(), SAY_BERSERK, SAY_FESTERGUT_DEATH, SAY_ROTFACE_DEATH, SAY_TRANSFORM_1, SAY_TRANSFORM_2, sayFestergutDeathTimer, sayRotfaceDeathTimer, UnitAI::SelectTarget(), UnitAI::SelectTargetList(), Unit::SetFacingToObject(), Creature::SetReactState(), Unit::SetStandState(), SPELL_BERSERK2, SPELL_CHOKING_GAS_BOMB, SPELL_CREATE_CONCOCTION, SPELL_GAS_VARIABLE, SPELL_GUZZLE_POTIONS, SPELL_MALLEABLE_GOO, SPELL_OOZE_VARIABLE, SPELL_SLIME_PUDDLE_TRIGGER, SPELL_TEAR_GAS_CANCEL, SPELL_TEAR_GAS_PERIODIC_TRIGGER, SPELL_UNBOUND_PLAGUE, SPELL_UNBOUND_PLAGUE_SEARCHER, SPELL_UNSTABLE_EXPERIMENT, sSpellMgr, BossAI::summons, tablePos, UNIT_STAND_STATE_KNEEL, UNIT_STAND_STATE_STAND, UNIT_STATE_CASTING, and CreatureAI::UpdateVictim().

Member Data Documentation

◆ _experimentState

uint8 boss_professor_putricide::boss_professor_putricideAI::_experimentState

Referenced by GetData(), Reset(), and SetData().

◆ _phase

uint8 boss_professor_putricide::boss_professor_putricideAI::_phase

◆ bCallEvade

bool boss_professor_putricide::boss_professor_putricideAI::bCallEvade

◆ bChangePhase

bool boss_professor_putricide::boss_professor_putricideAI::bChangePhase

Referenced by DamageTaken(), Reset(), and UpdateAI().

◆ bEnteredCombat

bool boss_professor_putricide::boss_professor_putricideAI::bEnteredCombat

◆ sayFestergutDeathTimer

uint16 boss_professor_putricide::boss_professor_putricideAI::sayFestergutDeathTimer

Referenced by DoAction(), Reset(), and UpdateAI().

◆ sayRotfaceDeathTimer

uint16 boss_professor_putricide::boss_professor_putricideAI::sayRotfaceDeathTimer

Referenced by DoAction(), Reset(), and UpdateAI().