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
 
void AttackStart (Unit *who) 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.
 
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 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 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)
 
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
EventMap events
 
SummonList summons
 
TaskScheduler scheduler
 
- 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_professor_putricideAI()

boss_professor_putricide::boss_professor_putricideAI::boss_professor_putricideAI ( Creature creature)
inline
231 {
232 bCallEvade = false;
233 bEnteredCombat = false;
234 }
@ DATA_PROFESSOR_PUTRICIDE
Definition: icecrown_citadel.h:99
Definition: ScriptedCreature.h:456
bool bEnteredCombat
Definition: boss_professor_putricide.cpp:242
bool bCallEvade
Definition: boss_professor_putricide.cpp:238

References bCallEvade, and bEnteredCombat.

Member Function Documentation

◆ AttackStart()

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

Reimplemented from ScriptedAI.

281 {
284 }
virtual void AttackStart(Unit *)
Definition: UnitAI.cpp:28
InstanceScript *const instance
Definition: ScriptedCreature.h:461
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
Definition: InstanceScript.h:243

References UnitAI::AttackStart(), InstanceScript::CheckRequiredBosses(), DATA_PROFESSOR_PUTRICIDE, and BossAI::instance.

Referenced by UpdateAI().

◆ CanAIAttack()

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

Reimplemented from UnitAI.

287 {
288 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;
289 }
Creature * me
Definition: ScriptedCreature.h:282
bool IsVisible() const
Definition: Unit.h:2127

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

◆ ChangePhase()

void boss_professor_putricide::boss_professor_putricideAI::ChangePhase ( )
inline
677 {
678 uint32 heroicDelay = (IsHeroic() ? 25000 : 0);
679 events.DelayEvents(24000 + heroicDelay, EVENT_GROUP_ABILITIES);
680 me->AttackStop();
681 if (!IsHeroic())
682 {
683 me->CastSpell(me, SPELL_TEAR_GAS, false);
684 events.ScheduleEvent(EVENT_GO_TO_TABLE, 2500ms);
685 }
686 else
687 {
691 // cast variables
692 if (Is25ManRaid())
693 {
694 std::list<Unit*> targetList;
695
696 Map::PlayerList const& pl = me->GetMap()->GetPlayers();
697 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
698 if (Player* p = itr->GetSource())
699 if (!p->IsGameMaster())
700 targetList.push_back(p);
701
702 size_t half = targetList.size() / 2;
703 // half gets ooze variable
704 while (half < targetList.size())
705 {
706 std::list<Unit*>::iterator itr = targetList.begin();
707 advance(itr, urand(0, targetList.size() - 1));
708 (*itr)->CastSpell(*itr, SPELL_OOZE_VARIABLE, true);
709 targetList.erase(itr);
710 }
711 // and half gets gas
712 for (std::list<Unit*>::iterator itr = targetList.begin(); itr != targetList.end(); ++itr)
713 (*itr)->CastSpell(*itr, SPELL_GAS_VARIABLE, true);
714 }
715
717 }
718
719 switch (_phase)
720 {
721 case 1:
722 _phase = 2;
723 events.ScheduleEvent(EVENT_MALLEABLE_GOO, urand(25000, 28000) + heroicDelay, EVENT_GROUP_ABILITIES);
724 events.ScheduleEvent(EVENT_CHOKING_GAS_BOMB, urand(35000, 40000) + heroicDelay, EVENT_GROUP_ABILITIES);
725 break;
726 case 2:
727 _phase = 3;
729 break;
730 default:
731 break;
732 }
733 }
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:137
@ POINT_TABLE_COMBAT
Definition: boss_professor_putricide.cpp:144
@ SPELL_UNSTABLE_EXPERIMENT
Definition: boss_professor_putricide.cpp:65
@ SPELL_OOZE_VARIABLE
Definition: boss_professor_putricide.cpp:74
@ SPELL_GAS_VARIABLE
Definition: boss_professor_putricide.cpp:75
@ SPELL_TEAR_GAS
Definition: boss_professor_putricide.cpp:66
Position const tablePos
Definition: boss_professor_putricide.cpp:149
@ SAY_PHASE_TRANSITION_HEROIC
Definition: boss_professor_putricide.cpp:41
@ EVENT_CHOKING_GAS_BOMB
Definition: boss_professor_putricide.cpp:134
@ EVENT_GO_TO_TABLE
Definition: boss_professor_putricide.cpp:128
@ EVENT_MALLEABLE_GOO
Definition: boss_professor_putricide.cpp:133
@ EVENT_UNSTABLE_EXPERIMENT
Definition: boss_professor_putricide.cpp:127
Talk
Definition: boss_fathomlord_karathress.cpp:23
Definition: LinkedList.h:139
SpellCastResult DoCast(uint32 spellId)
Definition: UnitAI.cpp:178
bool IsHeroic() const
Definition: ScriptedCreature.h:379
bool Is25ManRaid() const
Definition: ScriptedCreature.h:385
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:1046
MotionMaster * GetMotionMaster()
Definition: Unit.h:2262
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:10368
PlayerList const & GetPlayers() const
Definition: Map.h:484
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:586
uint8 _phase
Definition: boss_professor_putricide.cpp:240

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.

399 {
400 if (bChangePhase)
401 return;
402
403 switch (_phase)
404 {
405 case 1:
406 if (HealthAbovePct(80))
407 return;
409 bChangePhase = true;
410 break;
411 case 2:
412 if (HealthAbovePct(35))
413 return;
415 bChangePhase = true;
416 break;
417 default:
418 break;
419 }
420 }
@ REACT_PASSIVE
Definition: Unit.h:1023
bool HealthAbovePct(uint32 pct) const
Definition: ScriptedCreature.h:357
void SetReactState(ReactStates st)
Definition: Creature.h:89
bool bChangePhase
Definition: boss_professor_putricide.cpp:241

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.

472 {
473 switch (action)
474 {
477 break;
480 break;
484 break;
487 break;
490 break;
491 default:
492 break;
493 }
494 }
Position const festergutWatchPos
Definition: boss_professor_putricide.cpp:147
@ POINT_ROTFACE
Definition: boss_professor_putricide.cpp:142
@ POINT_FESTERGUT
Definition: boss_professor_putricide.cpp:141
@ SPELL_RELEASE_GAS_VISUAL
Definition: boss_professor_putricide.cpp:54
Position const rotfaceWatchPos
Definition: boss_professor_putricide.cpp:148
@ SAY_FESTERGUT_GASEOUS_BLIGHT
Definition: boss_professor_putricide.cpp:31
@ ACTION_ROTFACE_COMBAT
Definition: icecrown_citadel.h:520
@ ACTION_FESTERGUT_DEATH
Definition: icecrown_citadel.h:517
@ ACTION_ROTFACE_DEATH
Definition: icecrown_citadel.h:522
@ ACTION_FESTERGUT_GAS
Definition: icecrown_citadel.h:516
@ ACTION_FESTERGUT_COMBAT
Definition: icecrown_citadel.h:515
uint16 sayFestergutDeathTimer
Definition: boss_professor_putricide.cpp:236
uint16 sayRotfaceDeathTimer
Definition: boss_professor_putricide.cpp:237

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.

669 {
671 if (!me->IsInCombat() && me->GetExactDist2d(&p) > 10.0f)
674 }
@ POINT_TABLE
Definition: boss_professor_putricide.cpp:143
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:197
void GetHomePosition(float &x, float &y, float &z, float &ori) const
Definition: Creature.h:330
Definition: Position.h:28
float GetExactDist2d(const float x, const float y) const
Definition: Position.h:166
bool IsInCombat() const
Definition: Unit.h:1688

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.

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

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.

346 {
347 _JustDied();
349
351 DoCastAOE(SPELL_UNHOLY_INFUSION_CREDIT, true); // ReqTargetAura in dbc
352
353 me->CastSpell((Unit*)nullptr, SPELL_MUTATED_PLAGUE_CLEAR, true);
354 }
@ SPELL_UNHOLY_INFUSION_CREDIT
Definition: boss_professor_putricide.cpp:112
@ SPELL_MUTATED_PLAGUE_CLEAR
Definition: boss_professor_putricide.cpp:81
@ SAY_DEATH
Definition: boss_professor_putricide.cpp:48
@ SPELL_SHADOWS_FATE
Definition: icecrown_citadel.h:70
SpellCastResult DoCastAOE(uint32 spellId, bool triggered=false)
Definition: UnitAI.cpp:249
void _JustDied()
Definition: ScriptedCreature.cpp:585
Definition: Unit.h:1290
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5610

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.

298 {
300 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
301 {
302 me->CombatStop();
304 return;
305 }
306
307 bEnteredCombat = true;
309 events.Reset();
310 events.ScheduleEvent(EVENT_BERSERK, 10min);
313 if (IsHeroic())
315
318
319 me->setActive(true);
324 }
@ IN_PROGRESS
Definition: InstanceScript.h:57
Position const homePos
Definition: boss_chromaggus.cpp:69
@ SPELL_OOZE_TANK_PROTECTION
Definition: boss_professor_putricide.cpp:72
@ SAY_AGGRO
Definition: boss_professor_putricide.cpp:39
@ EVENT_SLIME_PUDDLE
Definition: boss_professor_putricide.cpp:126
@ EVENT_UNBOUND_PLAGUE
Definition: boss_professor_putricide.cpp:132
@ EVENT_BERSERK
Definition: boss_professor_putricide.cpp:125
@ DATA_NAUSEA_ACHIEVEMENT
Definition: icecrown_citadel.h:115
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition: CreatureAI.cpp:95
void setActive(bool isActiveObject)
Definition: Object.cpp:1085
void CombatStop(bool includingCast=false)
Definition: Unit.cpp:10401
void RemoveAllAuras()
Definition: Unit.cpp:5239
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:317
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell)
Definition: InstanceScript.cpp:587
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.

357 {
358 if (summon->GetEntry() != 38308 && summon->GetEntry() != 38309 && (!me->IsInCombat() || me->IsInEvadeMode()))
359 {
360 summon->DespawnOrUnsummon(1);
361 return;
362 }
363
364 summons.Summon(summon);
365
366 switch (summon->GetEntry())
367 {
369 // blizzard casts this spell 7 times initially (confirmed in sniff)
370 for (uint8 i = 0; i < 7; ++i)
371 summon->CastSpell(summon, SPELL_GROW, true);
372 return;
373 case NPC_GAS_CLOUD:
374 // no possible aura seen in sniff adding the aurastate
376 summon->CastSpell(summon, SPELL_GASEOUS_BLOAT_PROC, true);
378 break;
380 // no possible aura seen in sniff adding the aurastate
382 summon->CastSpell(summon, SPELL_OOZE_ERUPTION_SEARCH_PERIODIC, true);
384 break;
386 summon->CastSpell(summon, SPELL_CHOKING_GAS_BOMB_PERIODIC, true);
387 summon->CastSpell(summon, SPELL_CHOKING_GAS_EXPLOSION_TRIGGER, true);
388 return;
391 return;
392 }
393
394 if (me->IsInCombat())
395 summon->SetInCombatWithZone();
396 }
std::uint8_t uint8
Definition: Define.h:110
@ SPELL_OOZE_ERUPTION_SEARCH_PERIODIC
Definition: boss_professor_putricide.cpp:97
@ SPELL_CHOKING_GAS_BOMB_PERIODIC
Definition: boss_professor_putricide.cpp:101
@ SPELL_GASEOUS_BLOAT_PROC
Definition: boss_professor_putricide.cpp:89
@ SPELL_GROW
Definition: boss_professor_putricide.cpp:85
@ SPELL_CHOKING_GAS_EXPLOSION_TRIGGER
Definition: boss_professor_putricide.cpp:102
@ NPC_CHOKING_GAS_BOMB
Definition: icecrown_citadel.h:266
@ NPC_VOLATILE_OOZE
Definition: icecrown_citadel.h:265
@ NPC_GAS_CLOUD
Definition: icecrown_citadel.h:264
@ NPC_GROWING_OOZE_PUDDLE
Definition: icecrown_citadel.h:263
@ AURA_STATE_UNKNOWN19
Definition: SharedDefines.h:1283
@ AURA_STATE_UNKNOWN22
Definition: SharedDefines.h:1286
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:90
void SetInCombatWithZone()
Definition: Creature.cpp:2723
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2108
bool IsInEvadeMode() const
Definition: Creature.h:129
uint32 GetEntry() const
Definition: Object.h:109
void ModifyAuraState(AuraStateType flag, bool apply)
Definition: Unit.cpp:10457

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.

340 {
341 if (victim->GetTypeId() == TYPEID_PLAYER)
342 Talk(SAY_KILL);
343 }
@ TYPEID_PLAYER
Definition: ObjectGuid.h:38
@ SAY_KILL
Definition: boss_professor_putricide.cpp:46
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.

292 {
295 }
@ UNIT_FLAG_NOT_SELECTABLE
Definition: Unit.h:473
virtual void MoveInLineOfSight(Unit *)
Definition: CreatureAI.cpp:158
bool HasUnitFlag(UnitFlags flags) const
Definition: Unit.h:1480

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.

423 {
424 if (type != POINT_MOTION_TYPE)
425 return;
426 switch (id)
427 {
428 case POINT_FESTERGUT:
430 {
431 if (c->IsInCombat())
432 {
436 c->CastSpell(c, SPELL_GASEOUS_BLIGHT_LARGE, true, nullptr, nullptr, c->GetGUID());
437 }
438 else
439 {
440 bCallEvade = true;
441 }
442 }
443 break;
444 case POINT_ROTFACE:
446 {
447 if (c->IsInCombat())
448 {
451 }
452 else
453 {
454 bCallEvade = true;
455 }
456 }
457 break;
458 case POINT_TABLE:
461 break;
464 me->GetMotionMaster()->Clear(false);
466 events.ScheduleEvent(EVENT_TABLE_DRINK_STUFF, IsHeroic() ? 25s : 0ms);
467 break;
468 }
469 }
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ POINT_MOTION_TYPE
Definition: MotionMaster.h:46
@ SPELL_GASEOUS_BLIGHT_LARGE
Definition: boss_professor_putricide.cpp:55
@ EVENT_TABLE_DRINK_STUFF
Definition: boss_professor_putricide.cpp:129
@ DATA_ROTFACE
Definition: icecrown_citadel.h:98
@ DATA_FESTERGUT
Definition: icecrown_citadel.h:97
@ EMOTE_STATE_USE_STANDING
Definition: SharedDefines.h:1916
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:20782
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:94
Map * instance
Definition: InstanceScript.h:146
Creature * GetCreature(ObjectGuid const guid)
Definition: Map.cpp:3293
void MoveIdle()
Definition: MotionMaster.cpp:231
void Clear(bool reset=true)
Definition: MotionMaster.h:165
void DoAction(int32 action) override
Definition: boss_professor_putricide.cpp:471

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.

245 {
249 _phase = 1;
250 bChangePhase = false;
251 _Reset();
254
257 }
@ REACT_AGGRESSIVE
Definition: Unit.h:1025
@ UNIT_STAND_STATE_STAND
Definition: Unit.h:53
@ DONE
Definition: InstanceScript.h:59
void _Reset()
Definition: ScriptedCreature.cpp:570
void SetStandState(uint8 state)
Definition: Unit.cpp:16900
void RemoveUnitFlag(UnitFlags flags)
Definition: Unit.h:1482
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:230

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.

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

References _experimentState, and DATA_EXPERIMENT_STAGE.

◆ UpdateAI()

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

Reimplemented from BossAI.

497 {
499 {
500 if (sayFestergutDeathTimer <= diff)
501 {
505 }
506 else
508 }
509 else if (sayRotfaceDeathTimer)
510 {
511 if (sayRotfaceDeathTimer <= diff)
512 {
516 }
517 else
518 sayRotfaceDeathTimer -= diff;
519 }
520 else if (bCallEvade)
521 {
522 bCallEvade = false;
524 return;
525 }
526
527 if (!UpdateVictim())
528 return;
529
530 events.Update(diff);
531
533 return;
534
535 if (bChangePhase)
536 {
537 ChangePhase();
538 bChangePhase = false;
539 return;
540 }
541
542 switch (events.ExecuteEvent())
543 {
544 case EVENT_BERSERK:
547 break;
549 {
550 std::list<Unit*> targets;
551 SelectTargetList(targets, 2, SelectTargetMethod::Random, 0, 0.0f, true);
552 if (!targets.empty())
553 for (std::list<Unit*>::iterator itr = targets.begin(); itr != targets.end(); ++itr)
556 }
557 break;
562 break;
566 break;
568 switch (_phase)
569 {
570 case 2:
571 {
572 SpellInfo const* spell = sSpellMgr->GetSpellInfo(SPELL_CREATE_CONCOCTION);
574 events.ScheduleEvent(EVENT_PHASE_TRANSITION, sSpellMgr->GetSpellForDifficultyFromSpell(spell, me)->CalcCastTime() + 2250);
575 break;
576 }
577 case 3:
578 {
579 SpellInfo const* spell = sSpellMgr->GetSpellInfo(SPELL_GUZZLE_POTIONS);
581 events.ScheduleEvent(EVENT_PHASE_TRANSITION, sSpellMgr->GetSpellForDifficultyFromSpell(spell, me)->CalcCastTime() + 2250);
582 break;
583 }
584 default:
585 break;
586 }
587 break;
589 {
590 switch (_phase)
591 {
592 case 2:
594 me->SetFacingToObject(face);
597 events.ScheduleEvent(EVENT_RESUME_ATTACK, 5500ms);
598 break;
599 case 3:
601 me->SetFacingToObject(face);
604 events.ScheduleEvent(EVENT_RESUME_ATTACK, 8500ms);
605 break;
606 default:
607 break;
608 }
609 }
610 break;
615 // remove Tear Gas
618 if (_phase == 3)
622 break;
624 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, UnboundPlagueTargetSelector(me)))
625 {
626 me->CastSpell(target, SPELL_UNBOUND_PLAGUE, false);
629 }
630 else
631 events.ScheduleEvent(EVENT_UNBOUND_PLAGUE, 3500ms, EVENT_GROUP_ABILITIES);
632 break;
634 if (Is25ManRaid())
635 {
636 std::list<Unit*> targets;
637 SelectTargetList(targets, (IsHeroic() ? 3 : 2), SelectTargetMethod::Random, 0, MalleableGooSelector(me));
638
639 if (!targets.empty())
640 {
642 for (std::list<Unit*>::iterator itr = targets.begin(); itr != targets.end(); ++itr)
643 me->CastSpell(*itr, SPELL_MALLEABLE_GOO, true);
644 }
645 }
646 else
647 {
648 if (Unit* target = SelectTarget(SelectTargetMethod::Random, 1, MalleableGooSelector(me)))
649 {
651 me->CastSpell(target, SPELL_MALLEABLE_GOO, true);
652 }
653 }
654 events.ScheduleEvent(EVENT_MALLEABLE_GOO, 25s, 30s, EVENT_GROUP_ABILITIES);
655 break;
659 events.ScheduleEvent(EVENT_CHOKING_GAS_BOMB, 35s, 40s, EVENT_GROUP_ABILITIES);
660 break;
661 default:
662 break;
663 }
664
666 }
@ UNIT_STAND_STATE_KNEEL
Definition: Unit.h:61
@ UNIT_STATE_CASTING
Definition: Unit.h:340
#define sSpellMgr
Definition: SpellMgr.h:818
@ SPELL_UNBOUND_PLAGUE_SEARCHER
Definition: boss_professor_putricide.cpp:77
@ SPELL_SLIME_PUDDLE_TRIGGER
Definition: boss_professor_putricide.cpp:62
@ SPELL_TEAR_GAS_PERIODIC_TRIGGER
Definition: boss_professor_putricide.cpp:69
@ SPELL_UNBOUND_PLAGUE
Definition: boss_professor_putricide.cpp:76
@ SPELL_TEAR_GAS_CANCEL
Definition: boss_professor_putricide.cpp:68
@ SPELL_CREATE_CONCOCTION
Definition: boss_professor_putricide.cpp:70
@ SPELL_MALLEABLE_GOO
Definition: boss_professor_putricide.cpp:64
@ SPELL_CHOKING_GAS_BOMB
Definition: boss_professor_putricide.cpp:73
@ SPELL_GUZZLE_POTIONS
Definition: boss_professor_putricide.cpp:71
@ EMOTE_MALLEABLE_GOO
Definition: boss_professor_putricide.cpp:44
@ EMOTE_CHOKING_GAS_BOMB
Definition: boss_professor_putricide.cpp:45
@ SAY_TRANSFORM_1
Definition: boss_professor_putricide.cpp:42
@ SAY_FESTERGUT_DEATH
Definition: boss_professor_putricide.cpp:32
@ SAY_ROTFACE_DEATH
Definition: boss_professor_putricide.cpp:36
@ SAY_TRANSFORM_2
Definition: boss_professor_putricide.cpp:43
@ SAY_BERSERK
Definition: boss_professor_putricide.cpp:47
@ EMOTE_UNSTABLE_EXPERIMENT
Definition: boss_professor_putricide.cpp:40
@ EVENT_RESUME_ATTACK
Definition: boss_professor_putricide.cpp:131
@ EVENT_PHASE_TRANSITION
Definition: boss_professor_putricide.cpp:130
@ NPC_TEAR_GAS_TARGET_STALKER
Definition: icecrown_citadel.h:267
@ SPELL_BERSERK2
Definition: icecrown_citadel.h:55
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:40
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:116
Unit * SelectTarget(SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
Definition: UnitAI.cpp:111
@ EVADE_REASON_OTHER
Definition: CreatureAI.h:92
bool UpdateVictim()
Definition: CreatureAI.cpp:269
void DespawnIf(T const &predicate)
Definition: ScriptedCreature.h:99
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2409
void SetFacingToObject(WorldObject *object)
Definition: Unit.cpp:20792
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4835
Unit * GetVictim() const
Definition: Unit.h:1386
bool HasUnitState(const uint32 f) const
Definition: Unit.h:1398
Definition: SpellInfo.h:314
Definition: boss_professor_putricide.cpp:152
Definition: boss_professor_putricide.cpp:182
Definition: boss_professor_putricide.cpp:205
void AttackStart(Unit *who) override
Definition: boss_professor_putricide.cpp:280
void EnterEvadeMode(EvadeReason why) override
Definition: boss_professor_putricide.cpp:668
void ChangePhase()
Definition: boss_professor_putricide.cpp:676

References _phase, 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().