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
 Called at any Damage from any attacker (before damage apply)
 
void MovementInform (uint32 type, uint32 id) override
 
void DoAction (int32 action) override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
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
 Called at any Damage from any attacker (before damage apply)
 
void JustSummoned (Creature *summon) override
 
void SummonedCreatureDespawn (Creature *summon) override
 
void SummonedCreatureDespawnAll () override
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
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)
 
void ScheduleEnrageTimer (uint32 spellId, Milliseconds timer, uint8 textId=0)
 
virtual void ExecuteEvent (uint32)
 
virtual void ScheduleTasks ()
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged.
 
void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER) 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
 Called at any Damage from any attacker (before damage apply)
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith()
 
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 DoTeleportPlayer (Unit *unit, Position pos)
 
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)
 
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
 
void SetInvincibility (bool apply)
 
bool IsInvincible () const
 
void SetAutoAttackAllowed (bool allow)
 
bool IsAutoAttackAllowed () 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)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon.
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At =================================
 
void TriggerAlert (Unit const *who) const
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed.
 
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 *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual void InitializeAI ()
 
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)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following:
 
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.
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat.
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage to any victim (before damage apply)
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal.
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates.
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals.
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations.
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT)
 
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)
 To specify the caster as target if the spell is self-cast.
 
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, bool withTank=true)
 Cast the spell on a random unit from the threat list.
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not 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)
 Called when a summon reaches a waypoint or point movement finished.
 
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
float callForHelpRange
 
InstanceScript *const instance
 
- Public Attributes inherited from ScriptedAI
Creatureme
 

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 ()
 
void _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
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)
 
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 }
Definition ScriptedCreature.h:467
@ DATA_PROFESSOR_PUTRICIDE
Definition icecrown_citadel.h:92
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 }
bool IsVisible() const
Definition Unit.h:1933
Creature * me
Definition ScriptedCreature.h:280

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 std::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:107
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
#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
events
Definition boss_sartura.cpp:43
Definition LinkedList.h:139
Definition MapRefMgr.h:26
iterator begin()
Definition MapRefMgr.h:36
iterator end()
Definition MapRefMgr.h:37
PlayerList const & GetPlayers() const
Definition Map.h:333
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)
The unit will charge the target. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition MotionMaster.cpp:670
Definition Player.h:1082
SpellCastResult DoCast(uint32 spellId)
Definition UnitAI.cpp:177
MotionMaster * GetMotionMaster()
Definition Unit.h:1680
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1178
bool AttackStop()
Force the unit to stop attacking. This will clear UNIT_STATE_MELEE_ATTACKING, Interrupt current spell...
Definition Unit.cpp:10448
Map * GetMap() const
Definition Object.h:536
Talk
Definition hyjal.cpp:82
float GetPositionZ() const
Definition Position.h:123
float GetPositionX() const
Definition Position.h:121
float GetPositionY() const
Definition Position.h:122
bool IsHeroic() const
Definition ScriptedCreature.h:379
bool Is25ManRaid() const
Definition ScriptedCreature.h:385
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

Called at any Damage from any attacker (before damage apply)

Note
It use for recalculation damage or special reaction at damage for attack reaction use AttackedBy called for non DOT damage in Unit::DealDamage also

Reimplemented from UnitAI.

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:548
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition Creature.h:95
bool HealthAbovePct(uint32 pct) const
Definition ScriptedCreature.h:365
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:522
@ ACTION_FESTERGUT_DEATH
Definition icecrown_citadel.h:519
@ ACTION_ROTFACE_DEATH
Definition icecrown_citadel.h:524
@ ACTION_FESTERGUT_GAS
Definition icecrown_citadel.h:518
@ ACTION_FESTERGUT_COMBAT
Definition icecrown_citadel.h:517
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
void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER) override
Definition ScriptedCreature.h:504
void GetHomePosition(float &x, float &y, float &z, float &ori) const
Definition Creature.h:342
bool IsInCombat() const
Definition Unit.h:893
Definition Position.h:27
float GetExactDist2d(const float x, const float y) const
Definition Position.h:170

References BossAI::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
SummonList summons
Definition ScriptedCreature.h:517
Definition ScriptedCreature.h:33
@ NPC_MUTATED_ABOMINATION_25
Definition icecrown_citadel.h:271
@ NPC_MUTATED_ABOMINATION_10
Definition icecrown_citadel.h:270
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 CreatureAI.

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
void _JustDied()
Definition ScriptedCreature.cpp:644
SpellCastResult DoCastAOE(uint32 spellId, bool triggered=false)
Definition UnitAI.cpp:248
Definition Unit.h:636
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:5753
@ SPELL_SHADOWS_FATE
Definition icecrown_citadel.h:63

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 CreatureAI.

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:59
Position const homePos
Definition boss_chromaggus.cpp:71
@ 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
InstanceScript *const instance
Definition ScriptedCreature.h:474
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition CreatureAI.cpp:106
virtual bool SetBossState(uint32 id, EncounterState state)
Definition InstanceScript.cpp:385
void DoRemoveAurasDueToSpellOnPlayers(uint32 spell)
Definition InstanceScript.cpp:683
virtual bool CheckRequiredBosses(uint32, Player const *=nullptr) const
Definition InstanceScript.h:255
void CombatStop(bool includingCast=false)
Definition Unit.cpp:10481
void RemoveAllAuras()
Definition Unit.cpp:5351
void setActive(bool isActiveObject)
Definition Object.cpp:1094
virtual void SetData(uint32, uint32)
Definition ZoneScript.h:52
@ DATA_NAUSEA_ACHIEVEMENT
Definition icecrown_citadel.h:108

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 CreatureAI.

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:109
@ AURA_STATE_UNKNOWN19
Definition SharedDefines.h:1311
@ AURA_STATE_UNKNOWN22
Definition SharedDefines.h:1314
@ 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
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition Creature.cpp:2825
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition Creature.cpp:2177
bool IsInEvadeMode() const
Definition Creature.h:135
uint32 GetEntry() const
Definition Object.h:115
void Summon(Creature const *summon)
Definition ScriptedCreature.h:88
void ModifyAuraState(AuraStateType flag, bool apply)
Definition Unit.cpp:10542
@ NPC_CHOKING_GAS_BOMB
Definition icecrown_citadel.h:268
@ NPC_VOLATILE_OOZE
Definition icecrown_citadel.h:267
@ NPC_GAS_CLOUD
Definition icecrown_citadel.h:266
@ NPC_GROWING_OOZE_PUDDLE
Definition icecrown_citadel.h:265

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 CreatureAI.

335 {
336 if (victim->IsPlayer())
337 Talk(SAY_KILL);
338 }
@ SAY_KILL
Definition boss_professor_putricide.cpp:47
bool IsPlayer() const
Definition Object.h:200

References Object::IsPlayer(), and SAY_KILL.

◆ MoveInLineOfSight()

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

Reimplemented from CreatureAI.

287 {
290 }
@ UNIT_FLAG_NOT_SELECTABLE
Definition UnitDefines.h:275
virtual void MoveInLineOfSight(Unit *)
Definition CreatureAI.cpp:169
bool HasUnitFlag(UnitFlags flags) const
Definition Unit.h:718

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 CreatureAI.

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 }
@ POINT_MOTION_TYPE
Definition MotionMaster.h:48
@ EMOTE_STATE_USE_STANDING
Definition SharedDefines.h:1944
@ UNIT_NPC_EMOTESTATE
Definition UpdateFields.h:140
@ SPELL_GASEOUS_BLIGHT_LARGE
Definition boss_professor_putricide.cpp:56
@ EVENT_TABLE_DRINK_STUFF
Definition boss_professor_putricide.cpp:130
Definition Creature.h:43
ObjectGuid GetGuidData(uint32 type) const override
Definition InstanceScript.cpp:110
Map * instance
Definition InstanceScript.h:149
Creature * GetCreature(ObjectGuid const guid)
Definition Map.cpp:2498
void MoveIdle()
Definition MotionMaster.cpp:232
void Clear(bool reset=true)
Definition MotionMaster.h:167
void SetFacingTo(float ori)
Definition Unit.cpp:20567
void SetUInt32Value(uint16 index, uint32 value)
Definition Unit.cpp:21358
@ DATA_ROTFACE
Definition icecrown_citadel.h:91
@ DATA_FESTERGUT
Definition icecrown_citadel.h:90
float GetOrientation() const
Definition Position.h:124
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(), Unit::SetUInt32Value(), SPELL_GASEOUS_BLIGHT_LARGE, tablePos, and UNIT_NPC_EMOTESTATE.

◆ Reset()

void boss_professor_putricide::boss_professor_putricideAI::Reset ( )
inlineoverridevirtual

Reimplemented from UnitAI.

246 {
250 _phase = 1;
251 bChangePhase = false;
252 _Reset();
255
258 }
@ DONE
Definition InstanceScript.h:61
@ UNIT_STAND_STATE_STAND
Definition UnitDefines.h:32
@ REACT_AGGRESSIVE
Definition Unit.h:550
void _Reset()
Definition ScriptedCreature.cpp:624
EncounterState GetBossState(uint32 id) const
Definition InstanceScript.h:242
void SetStandState(uint8 state)
Definition Unit.cpp:16764
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:720

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  )
inlineoverridevirtual

Use to start attacking a target. Called just before JustEngagedWith()

Implements UnitAI.

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;
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;
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 {
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 }
#define sSpellMgr
Definition SpellMgr.h:825
SelectTargetMethod
Definition UnitAI.h:44
@ UNIT_STAND_STATE_KNEEL
Definition UnitDefines.h:40
@ UNIT_STATE_CASTING
Definition UnitDefines.h:185
@ 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
Definition boss_professor_putricide.cpp:153
@ EVADE_REASON_OTHER
Definition CreatureAI.h:93
bool UpdateVictim()
Definition CreatureAI.cpp:280
Definition SpellInfo.h:316
void DespawnIf(T const &predicate)
Definition ScriptedCreature.h:97
Definition boss_professor_putricide.cpp:183
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)
Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the f...
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
void SetFacingToObject(WorldObject *object)
Definition Unit.cpp:20577
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:4941
Unit * GetVictim() const
Definition Unit.h:862
bool HasUnitState(const uint32 f) const
Definition Unit.h:707
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition Object.cpp:2459
@ NPC_TEAR_GAS_TARGET_STALKER
Definition icecrown_citadel.h:269
@ SPELL_BERSERK2
Definition icecrown_citadel.h:48
Definition boss_professor_putricide.cpp:206
void AttackStart(Unit *) override
Definition ScriptedCreature.cpp:210
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, Random, 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().


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