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

Public Member Functions

 boss_mimironAI (Creature *pCreature)
 
void Reset () override
 
void AttackStart (Unit *who) override
 
void JustReachedHome () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void SpellHit (Unit *, SpellInfo const *spellInfo) override
 
void MoveInLineOfSight (Unit *) override
 
void EnterEvadeMode (EvadeReason why) override
 
void JustSummoned (Creature *s) override
 
void SummonedCreatureDespawn (Creature *s) override
 
void ResetGameObjects ()
 
void CloseDoorAndButton ()
 
void SetData (uint32, uint32 value) override
 
uint32 GetData (uint32 id) const 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) More...
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
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. More...
 
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. More...
 
void Talk (uint8 id, Milliseconds delay)
 
WorldObjectGetSummoner () const
 Returns the summoner creature/object, if the creature is a temporary summon. More...
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged. More...
 
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 SummonedCreatureEvade (Creature *)
 
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
 Called when unit is charmed. More...
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
- 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
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 Called when unit is charmed. More...
 
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)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following: More...
 
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. More...
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat. More...
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 Called at any Damage to any victim (before damage apply) More...
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply) More...
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal. More...
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates. More...
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals. More...
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations. More...
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT) More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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

InstanceScriptpInstance
 
EventMap events
 
SummonList summons
 
bool bIsEvading
 
bool hardmode
 
bool berserk
 
bool bAchievProximityMine
 
bool bAchievBombBot
 
bool bAchievRocketStrike
 
uint32 allowedFlameSpreadTime
 
bool changeAllowedFlameSpreadTime
 
uint8 minutesTalkNum
 
uint32 outofCombatTimer
 
- 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 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 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_mimironAI()

boss_mimiron::boss_mimironAI::boss_mimironAI ( Creature pCreature)
inline
285 : ScriptedAI(pCreature), summons(me)
286 {
288 if (!me->IsAlive())
289 if (pInstance)
291 bIsEvading = false;
292 }
@ TYPE_MIMIRON
Definition: ulduar.h:41
@ DONE
Definition: InstanceScript.h:60
Definition: ScriptedCreature.h:190
Creature * me
Definition: ScriptedCreature.h:280
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
bool IsAlive() const
Definition: Unit.h:1654
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
SummonList summons
Definition: boss_mimiron.cpp:296
bool bIsEvading
Definition: boss_mimiron.cpp:297
InstanceScript * pInstance
Definition: boss_mimiron.cpp:294

References bIsEvading, DONE, WorldObject::GetInstanceScript(), Unit::IsAlive(), ScriptedAI::me, pInstance, ZoneScript::SetData(), and TYPE_MIMIRON.

Member Function Documentation

◆ AttackStart()

void boss_mimiron::boss_mimironAI::AttackStart ( Unit who)
inlineoverridevirtual

Reimplemented from ScriptedAI.

328 {
329 if (who)
330 me->Attack(who, true); // skip following
331 }
bool Attack(Unit *victim, bool meleeAttack)
Definition: Unit.cpp:10272

References Unit::Attack(), and ScriptedAI::me.

◆ CloseDoorAndButton()

void boss_mimiron::boss_mimironAI::CloseDoorAndButton ( )
inline
906 {
907 if (pInstance)
908 for( uint16 i = 0; i < 3; ++i )
910 if (GameObject* door = ObjectAccessor::GetGameObject(*me, guid))
911 if (door->GetGoState() != GO_STATE_READY )
912 {
913 door->SetLootState(GO_READY);
914 door->UseDoorOrButton(0, false);
915 }
916
917 if (GameObject* button = me->FindNearestGameObject(GO_BUTTON, 200.0f))
918 if (button->GetGoState() != GO_STATE_ACTIVE )
919 {
920 button->SetLootState(GO_READY);
921 button->UseDoorOrButton(0, false);
922 }
923 }
std::uint16_t uint16
Definition: Define.h:108
@ DATA_GO_MIMIRON_DOOR_1
Definition: ulduar.h:73
@ GO_BUTTON
Definition: boss_mimiron.cpp:114
@ GO_READY
Definition: GameObject.h:111
@ GO_STATE_READY
Definition: GameObjectData.h:690
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:689
GameObject * GetGameObject(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:184
Definition: GameObject.h:120
GameObject * FindNearestGameObject(uint32 entry, float range, bool onlySpawned=false) const
Definition: Object.cpp:2466
Definition: ObjectGuid.h:118
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:98

References DATA_GO_MIMIRON_DOOR_1, WorldObject::FindNearestGameObject(), ObjectAccessor::GetGameObject(), InstanceScript::GetGuidData(), GO_BUTTON, GO_READY, GO_STATE_ACTIVE, GO_STATE_READY, ScriptedAI::me, and pInstance.

Referenced by JustEngagedWith().

◆ EnterEvadeMode()

void boss_mimiron::boss_mimironAI::EnterEvadeMode ( EvadeReason  why)
inlineoverridevirtual

Reimplemented from CreatureAI.

835 {
836 if (bIsEvading)
837 return;
838 bIsEvading = true;
839
840 if (Creature* c = GetLMK2())
841 {
842 c->AI()->EnterEvadeMode(why);
843 }
844 if (Creature* c = GetVX001())
845 {
846 c->AI()->EnterEvadeMode(why);
847 c->DespawnOrUnsummon();
848 }
849 if (Creature* c = GetACU())
850 {
851 c->AI()->EnterEvadeMode(why);
852 c->DespawnOrUnsummon();
853 }
854
855 summons.DoAction(1337); // despawn summons of summons
856
858 me->ExitVehicle();
860
861 bIsEvading = false;
862 }
#define GetACU()
Definition: boss_mimiron.cpp:271
#define GetVX001()
Definition: boss_mimiron.cpp:270
#define GetLMK2()
Definition: boss_mimiron.cpp:269
virtual void EnterEvadeMode(EvadeReason why=EVADE_REASON_OTHER)
Definition: CreatureAI.cpp:208
void DoAction(int32 info, uint16 max=0)
Definition: ScriptedCreature.h:102
Definition: Creature.h:43
void RemoveAllAuras()
Definition: Unit.cpp:5319
void ExitVehicle(Position const *exitPosition=nullptr)
Definition: Unit.cpp:19735

References bIsEvading, SummonList::DoAction(), CreatureAI::EnterEvadeMode(), Unit::ExitVehicle(), GetACU, GetLMK2, GetVX001, ScriptedAI::me, Unit::RemoveAllAuras(), and summons.

Referenced by JustEngagedWith(), SetData(), and UpdateAI().

◆ GetData()

uint32 boss_mimiron::boss_mimironAI::GetData ( uint32  id) const
inlineoverridevirtual

Reimplemented from UnitAI.

974 {
975 switch (id)
976 {
977 case 1:
978 return (hardmode ? 1 : 0);
979 case 2:
980 return (berserk ? 1 : 0);
981 case 10:
983 case 11:
984 return (bAchievProximityMine ? 1 : 0);
985 case 12:
986 return (bAchievBombBot ? 1 : 0);
987 case 13:
988 return (bAchievRocketStrike ? 1 : 0);
989 }
990 return 0;
991 }
bool berserk
Definition: boss_mimiron.cpp:299
bool bAchievRocketStrike
Definition: boss_mimiron.cpp:302
bool hardmode
Definition: boss_mimiron.cpp:298
uint32 allowedFlameSpreadTime
Definition: boss_mimiron.cpp:303
bool bAchievProximityMine
Definition: boss_mimiron.cpp:300
bool bAchievBombBot
Definition: boss_mimiron.cpp:301

References allowedFlameSpreadTime, bAchievBombBot, bAchievProximityMine, bAchievRocketStrike, berserk, and hardmode.

◆ JustEngagedWith()

void boss_mimiron::boss_mimironAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from ScriptedAI.

340 {
341 me->setActive(true);
345 events.Reset();
346
347 if (Creature* c = GetLMK2())
348 {
349 if (c->IsInEvadeMode())
350 {
352 return;
353 }
354 if (!c->IsAlive())
355 c->Respawn();
356
357 me->EnterVehicle(c, 1);
358 }
359 else
360 {
362 return;
363 }
365
366 if (!hardmode)
367 {
369 events.ScheduleEvent(EVENT_SIT_LMK2, 6s);
370 events.ScheduleEvent(EVENT_BERSERK, 15min);
371 }
372 else
373 {
374 events.ScheduleEvent(EVENT_MIMIRON_SAY_HARDMODE, 7s);
375 events.ScheduleEvent(EVENT_BERSERK, Is25ManRaid() ? 10min : 8min);
376
377 events.ScheduleEvent(EVENT_COMPUTER_SAY_INITIATED, 0ms);
378 events.ScheduleEvent(EVENT_COMPUTER_SAY_MINUTES, 3s);
380 for (uint32 i = 0; i < uint32(TALK_COMPUTER_ZERO - minutesTalkNum - 1); ++i)
383 }
384
385 // ensure LMK2 is at proper position
386 if (pInstance)
387 if (Creature* LMK2 = GetLMK2())
388 {
389 LMK2->UpdatePosition(LMK2->GetHomePosition(), true);
390 LMK2->StopMovingOnCurrentPos();
391 }
392
395 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
constexpr auto MINUTE
Definition: Common.h:47
std::uint32_t uint32
Definition: Define.h:107
events
Definition: boss_sartura.cpp:43
Talk
Definition: hyjal.cpp:82
@ EVENT_COMPUTER_SAY_INITIATED
Definition: boss_mimiron.cpp:209
@ EVENT_SIT_LMK2
Definition: boss_mimiron.cpp:152
@ EVENT_MIMIRON_SAY_HARDMODE
Definition: boss_mimiron.cpp:211
@ EVENT_BERSERK
Definition: boss_mimiron.cpp:179
@ EVENT_COMPUTER_SAY_MINUTES
Definition: boss_mimiron.cpp:210
@ TALK_COMPUTER_ZERO
Definition: boss_mimiron.cpp:265
@ TALK_COMPUTER_EIGHT
Definition: boss_mimiron.cpp:257
@ TALK_COMPUTER_TEN
Definition: boss_mimiron.cpp:255
@ SAY_MKII_ACTIVATE
Definition: boss_mimiron.cpp:235
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ UNIT_FLAG_NOT_SELECTABLE
Definition: UnitDefines.h:254
@ EVADE_REASON_OTHER
Definition: CreatureAI.h:93
void DoZoneInCombat(Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
Definition: CreatureAI.cpp:106
bool Is25ManRaid() const
Definition: ScriptedCreature.h:385
void setActive(bool isActiveObject)
Definition: Object.cpp:1094
void EnterVehicle(Unit *base, int8 seatId=-1)
Definition: Unit.cpp:19639
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:713
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
void CloseDoorAndButton()
Definition: boss_mimiron.cpp:905
uint8 minutesTalkNum
Definition: boss_mimiron.cpp:305
void EnterEvadeMode(EvadeReason why) override
Definition: boss_mimiron.cpp:834

References CloseDoorAndButton(), DONE, CreatureAI::DoZoneInCombat(), EnterEvadeMode(), Unit::EnterVehicle(), CreatureAI::EVADE_REASON_OTHER, EVENT_BERSERK, EVENT_COMPUTER_SAY_INITIATED, EVENT_COMPUTER_SAY_MINUTES, EVENT_MIMIRON_SAY_HARDMODE, EVENT_SIT_LMK2, ZoneScript::GetData(), GetLMK2, hardmode, IN_MILLISECONDS, IN_PROGRESS, ScriptedAI::Is25ManRaid(), ScriptedAI::me, MINUTE, minutesTalkNum, pInstance, Unit::RemoveAllAuras(), SAY_MKII_ACTIVATE, WorldObject::setActive(), ZoneScript::SetData(), Unit::SetUnitFlag(), TALK_COMPUTER_EIGHT, TALK_COMPUTER_TEN, TALK_COMPUTER_ZERO, TYPE_MIMIRON, and UNIT_FLAG_NOT_SELECTABLE.

◆ JustReachedHome()

void boss_mimiron::boss_mimironAI::JustReachedHome ( )
inlineoverridevirtual

Reimplemented from CreatureAI.

334 {
335 me->setActive(false);
337 }
virtual void JustReachedHome()
Definition: CreatureAI.h:165

References CreatureAI::JustReachedHome(), ScriptedAI::me, and WorldObject::setActive().

◆ JustSummoned()

void boss_mimiron::boss_mimironAI::JustSummoned ( Creature s)
inlineoverridevirtual

Reimplemented from ScriptedAI.

865 {
866 summons.Summon(s);
867 }
void Summon(Creature const *summon)
Definition: ScriptedCreature.h:88

References SummonList::Summon(), and summons.

◆ MoveInLineOfSight()

void boss_mimiron::boss_mimironAI::MoveInLineOfSight ( Unit )
inlineoverridevirtual

Reimplemented from CreatureAI.

832{}

◆ Reset()

void boss_mimiron::boss_mimironAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

309 {
310 hardmode = false;
311 berserk = false;
312 bAchievProximityMine = false;
313 bAchievBombBot = false;
314 bAchievRocketStrike = false;
319 events.Reset();
322
325 }
@ NOT_STARTED
Definition: InstanceScript.h:57
void DespawnAll(uint32 delay=0)
Definition: ScriptedCreature.cpp:71
void RemoveUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition: Unit.h:714
uint32 outofCombatTimer
Definition: boss_mimiron.cpp:306
void ResetGameObjects()
Definition: boss_mimiron.cpp:874
bool changeAllowedFlameSpreadTime
Definition: boss_mimiron.cpp:304

References allowedFlameSpreadTime, bAchievBombBot, bAchievProximityMine, bAchievRocketStrike, berserk, changeAllowedFlameSpreadTime, SummonList::DespawnAll(), DONE, ZoneScript::GetData(), hardmode, ScriptedAI::me, NOT_STARTED, outofCombatTimer, pInstance, Unit::RemoveUnitFlag(), ResetGameObjects(), ZoneScript::SetData(), summons, TYPE_MIMIRON, and UNIT_FLAG_NOT_SELECTABLE.

◆ ResetGameObjects()

void boss_mimiron::boss_mimironAI::ResetGameObjects ( )
inline
875 {
876 if (pInstance)
877 for( uint16 i = 0; i < 3; ++i )
879 if (GameObject* door = ObjectAccessor::GetGameObject(*me, guid))
880 if (door->GetGoState() != GO_STATE_ACTIVE )
881 {
882 door->SetLootState(GO_READY);
883 door->UseDoorOrButton(0, false);
884 }
885
886 if (GameObject* elevator = me->FindNearestGameObject(GO_MIMIRON_ELEVATOR, 200.0f))
887 {
888 if (elevator->GetGoState() != GO_STATE_ACTIVE )
889 {
890 elevator->SetLootState(GO_READY);
891 elevator->SetByteValue(GAMEOBJECT_BYTES_1, 0, GO_STATE_ACTIVE);
892 }
893 elevator->EnableCollision(false);
894 }
895
896 if (GameObject* button = me->FindNearestGameObject(GO_BUTTON, 200.0f))
897 if (button->GetGoState() != GO_STATE_READY )
898 {
899 button->SetLootState(GO_READY);
900 button->UseDoorOrButton(0, false);
901 button->RemoveGameObjectFlag(GO_FLAG_IN_USE);
902 }
903 }
@ GO_MIMIRON_ELEVATOR
Definition: ulduar.h:226
@ GO_FLAG_IN_USE
Definition: SharedDefines.h:1603
@ GAMEOBJECT_BYTES_1
Definition: UpdateFields.h:404

References DATA_GO_MIMIRON_DOOR_1, WorldObject::FindNearestGameObject(), GAMEOBJECT_BYTES_1, ObjectAccessor::GetGameObject(), InstanceScript::GetGuidData(), GO_BUTTON, GO_FLAG_IN_USE, GO_MIMIRON_ELEVATOR, GO_READY, GO_STATE_ACTIVE, GO_STATE_READY, ScriptedAI::me, and pInstance.

Referenced by Reset().

◆ SetData()

void boss_mimiron::boss_mimironAI::SetData ( uint32  ,
uint32  value 
)
inlineoverridevirtual

Reimplemented from UnitAI.

926 {
927 switch (value) // end of phase 1-3, 4-6 for voltron
928 {
929 case 1:
930 events.ScheduleEvent(EVENT_LMK2_RETREAT_INTERVAL, 5s);
931 break;
932 case 2:
933 events.ScheduleEvent(EVENT_VX001_EMOTESTATE_DEATH, 2500ms);
934 break;
935 case 3:
936 events.ScheduleEvent(EVENT_SAY_ACU_DEAD, 5s);
937 break;
938 case 4:
939 case 5:
940 case 6:
941 {
942 Creature* LMK2 = GetLMK2();
943 Creature* VX001 = GetVX001();
944 Creature* ACU = GetACU();
945 if (!LMK2 || !VX001 || !ACU)
946 {
948 return;
949 }
950
954 if (s1 && s2 && s3 && s1->GetSpellInfo()->Id == SPELL_SELF_REPAIR && s2->GetSpellInfo()->Id == SPELL_SELF_REPAIR && s3->GetSpellInfo()->Id == SPELL_SELF_REPAIR)
955 events.ScheduleEvent(EVENT_FINISH, 0ms);
956 }
957 break;
958 case 7:
959 hardmode = true;
960 break;
961 case 11:
963 break;
964 case 12:
965 bAchievBombBot = true;
966 break;
967 case 13:
968 bAchievRocketStrike = true;
969 break;
970 }
971 }
@ EVENT_FINISH
Definition: boss_mimiron.cpp:175
@ EVENT_SAY_ACU_DEAD
Definition: boss_mimiron.cpp:168
@ EVENT_LMK2_RETREAT_INTERVAL
Definition: boss_mimiron.cpp:154
@ EVENT_VX001_EMOTESTATE_DEATH
Definition: boss_mimiron.cpp:167
@ SPELL_SELF_REPAIR
Definition: boss_mimiron.cpp:88
@ CURRENT_GENERIC_SPELL
Definition: Unit.h:538
Spell * GetCurrentSpell(CurrentSpellTypes spellType) const
Definition: Unit.h:1449
Definition: Spell.h:287
SpellInfo const * GetSpellInfo() const
Definition: Spell.h:579
uint32 Id
Definition: SpellInfo.h:320

References bAchievBombBot, bAchievProximityMine, bAchievRocketStrike, CURRENT_GENERIC_SPELL, EnterEvadeMode(), CreatureAI::EVADE_REASON_OTHER, EVENT_FINISH, EVENT_LMK2_RETREAT_INTERVAL, EVENT_SAY_ACU_DEAD, EVENT_VX001_EMOTESTATE_DEATH, GetACU, Unit::GetCurrentSpell(), GetLMK2, Spell::GetSpellInfo(), GetVX001, hardmode, SpellInfo::Id, and SPELL_SELF_REPAIR.

◆ SpellHit()

void boss_mimiron::boss_mimironAI::SpellHit ( Unit ,
SpellInfo const *  spellInfo 
)
inlineoverridevirtual

Reimplemented from ScriptedAI.

824 {
825 if (spellInfo->Id == SPELL_TELEPORT)
826 {
829 }
830 }
@ EVENT_KEEPER_TELEPORTED
Definition: ulduar.h:296
@ SPELL_TELEPORT
Definition: karazhan.cpp:48
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2178

References Creature::DespawnOrUnsummon(), DONE, EVENT_KEEPER_TELEPORTED, SpellInfo::Id, ScriptedAI::me, pInstance, ZoneScript::SetData(), and SPELL_TELEPORT.

◆ SummonedCreatureDespawn()

void boss_mimiron::boss_mimironAI::SummonedCreatureDespawn ( Creature s)
inlineoverridevirtual

Reimplemented from ScriptedAI.

870 {
871 summons.Despawn(s);
872 }
void Despawn(Creature const *summon)
Definition: ScriptedCreature.h:89

References SummonList::Despawn(), and summons.

◆ UpdateAI()

void boss_mimiron::boss_mimironAI::UpdateAI ( uint32  )
inlineoverridevirtual

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

Reimplemented from ScriptedAI.

398 {
399 if (!me->IsInCombat())
400 {
401 outofCombatTimer += diff;
402 if (outofCombatTimer >= 10000)
403 {
405 if (Creature* c = GetLMK2())
407 }
408 return;
409 }
410
412 if (me->GetExactDist(&p) > 80.0f || !SelectTargetFromPlayerList(150.0f))
413 {
415 return;
416 }
417
418 events.Update(diff);
419
420 switch (events.ExecuteEvent())
421 {
422 case 0:
423 break;
425 if (Creature* computer = me->SummonCreature(NPC_COMPUTER, 2746.7f, 2569.44f, 410.39f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 1000))
426 computer->AI()->Talk(TALK_COMPUTER_INITIATED);
427 break;
429 if (Creature* computer = me->SummonCreature(NPC_COMPUTER, 2746.7f, 2569.44f, 410.39f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 1000))
430 computer->AI()->Talk(minutesTalkNum++);
431 break;
434 events.ScheduleEvent(EVENT_SPAWN_FLAMES_INITIAL, 0ms);
435 events.ScheduleEvent(EVENT_SIT_LMK2, 4s);
436 break;
438 {
441
442 std::vector<Player*> pg;
443 Map::PlayerList const& pl = me->GetMap()->GetPlayers();
444 for( Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr )
445 if (Player* plr = itr->GetSource())
446 if (plr->IsAlive() && plr->GetExactDist2d(me) < 150.0f && !plr->IsGameMaster())
447 pg.push_back(plr);
448
449 for( uint8 i = 0; i < 3; ++i )
450 if (!pg.empty())
451 {
452 uint8 index = urand(0, pg.size() - 1);
453 Player* player = pg[index];
454 float angle = rand_norm() * 2 * M_PI;
455 float z = 364.35f;
456 if (!player->IsWithinLOS(player->GetPositionX() + cos(angle) * 5.0f, player->GetPositionY() + std::sin(angle) * 5.0f, z))
457 {
458 angle = player->GetAngle(2744.65f, 2569.46f);
459 }
460 me->CastSpell(player->GetPositionX() + cos(angle) * 5.0f, player->GetPositionY() + std::sin(angle) * 5.0f, z, SPELL_SUMMON_FLAMES_INITIAL, true);
461 pg.erase(pg.begin() + index);
462 }
463
464 events.Repeat(30s);
465 }
466 break;
467 case EVENT_BERSERK:
468 berserk = true;
470 if (hardmode)
471 me->SummonCreature(33576, 2744.78f, 2569.47f, 364.32f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 120000);
472 events.ScheduleEvent(EVENT_BERSERK_2, 0ms);
473 break;
474 case EVENT_BERSERK_2:
475 {
476 Creature* VX001 = nullptr;
477 Creature* LMK2 = nullptr;
478 Creature* ACU = nullptr;
479 if ((VX001 = GetVX001()))
480 VX001->CastSpell(VX001, SPELL_BERSERK, true);
481 if ((LMK2 = GetLMK2()))
482 LMK2->CastSpell(LMK2, SPELL_BERSERK, true);
483 if ((ACU = GetACU()))
484 ACU->CastSpell(ACU, SPELL_BERSERK, true);
485 events.Repeat(30s);
486 }
487 break;
488 case EVENT_SIT_LMK2:
489 if (Creature* LMK2 = GetLMK2())
490 {
491 me->EnterVehicle(LMK2, 6);
492 events.ScheduleEvent(EVENT_SIT_LMK2_INTERVAL, 2s);
493 break;
494 }
496 break;
498 if (Creature* LMK2 = GetLMK2())
499 {
500 if (hardmode)
501 {
502 LMK2->CastSpell(LMK2, SPELL_EMERGENCY_MODE, true);
503 if (Vehicle* veh = LMK2->GetVehicleKit())
504 if (Unit* cannon = veh->GetPassenger(3))
505 cannon->CastSpell(cannon, SPELL_EMERGENCY_MODE, true);
506 }
507 LMK2->AI()->SetData(1, 1);
508 break;
509 }
511 break;
513 if (Creature* LMK2 = GetLMK2())
514 {
515 me->EnterVehicle(LMK2, 1);
517 LMK2->SetFacingTo(3.58f);
518 events.ScheduleEvent(EVENT_ELEVATOR_INTERVAL_0, 6s);
519 break;
520 }
522 break;
524 if (GameObject* elevator = me->FindNearestGameObject(GO_MIMIRON_ELEVATOR, 100.0f))
525 {
526 elevator->SetLootState(GO_READY);
527 elevator->UseDoorOrButton(0, false);
528 elevator->EnableCollision(false);
529 }
530 events.ScheduleEvent(EVENT_ELEVATOR_INTERVAL_1, 6s);
531 break;
533 if (me->SummonCreature(NPC_VX001, 2744.65f, 2569.46f, 364.40f, 3.14f, TEMPSUMMON_MANUAL_DESPAWN))
534 {
535 if (GameObject* elevator = me->FindNearestGameObject(GO_MIMIRON_ELEVATOR, 100.0f))
536 {
537 elevator->SetLootState(GO_READY);
538 elevator->UseDoorOrButton(0, true);
539 elevator->EnableCollision(false);
540 }
541 events.ScheduleEvent(EVENT_ELEVATOR_INTERVAL_2, 18s);
542 break;
543 }
545 break;
547 if (Creature* VX001 = GetVX001())
548 {
549 me->EnterVehicle(VX001, 0);
550 events.ScheduleEvent(EVENT_SITTING_ON_VX001, 4s);
551 break;
552 }
554 break;
557 events.ScheduleEvent(EVENT_ENTER_VX001, 5s);
558 break;
560 if (Creature* VX001 = GetVX001())
561 {
562 me->EnterVehicle(VX001, 1);
563 events.ScheduleEvent(EVENT_EMOTE_VX001, 2s);
564 break;
565 }
567 break;
569 if (Creature* VX001 = GetVX001())
570 {
572 events.ScheduleEvent(EVENT_VX001_START_FIGHT, 1750ms);
573 break;
574 }
576 break;
578 if (Creature* VX001 = GetVX001())
579 {
580 if (hardmode)
581 VX001->CastSpell(VX001, SPELL_EMERGENCY_MODE, true);
582 VX001->AI()->SetData(1, 2);
584 break;
585 }
587 break;
589 if (Creature* VX001 = GetVX001())
590 {
593 events.ScheduleEvent(EVENT_GET_OUT_VX001, 2500ms);
594 break;
595 }
597 break;
599 if (Creature* VX001 = GetVX001())
600 if (Creature* ACU = me->SummonCreature(NPC_AERIAL_COMMAND_UNIT, 2743.91f, 2568.78f, 391.34f, M_PI, TEMPSUMMON_MANUAL_DESPAWN))
601 {
602 me->EnterVehicle(VX001, 4);
603 float speed = ACU->GetDistance(2737.75f, 2574.22f, 381.34f) / 2.0f;
604 ACU->MonsterMoveWithSpeed(2737.75f, 2574.22f, 381.34f, speed);
605 ACU->SetPosition(2737.75f, 2574.22f, 381.34f, M_PI);
606 events.ScheduleEvent(EVENT_SAY_VX001_DEAD, 2s);
607 break;
608 }
610 break;
614 events.ScheduleEvent(EVENT_ENTER_ACU, 7s);
615 break;
616 case EVENT_ENTER_ACU:
617 if (Creature* ACU = GetACU())
618 {
619 me->EnterVehicle(ACU, 0);
620 events.ScheduleEvent(EVENT_SAY_ACU_ACTIVATE, 6s);
621 break;
622 }
624 break;
627 events.ScheduleEvent(EVENT_ACU_START_ATTACK, 4s);
628 break;
630 if (Creature* ACU = GetACU())
631 {
632 if (hardmode)
633 ACU->CastSpell(ACU, SPELL_EMERGENCY_MODE, true);
634 ACU->AI()->SetData(1, 3);
636 break;
637 }
639 break;
642 events.ScheduleEvent(EVENT_LEVIATHAN_COME_CLOSER, 5s);
643 break;
645 if (Creature* LMK2 = GetLMK2())
646 {
647 LMK2->GetMotionMaster()->MoveCharge(2755.77f, 2574.95f, 364.31f, 21.0f);
648 events.ScheduleEvent(EVENT_VX001_EMOTE_JUMP, 4s);
649 break;
650 }
652 break;
654 {
655 Creature* LMK2 = GetLMK2();
656 Creature* VX001 = GetVX001();
657 if (!VX001 || !LMK2)
658 {
660 return;
661 }
662
663 VX001->SendMeleeAttackStop();
666 events.ScheduleEvent(EVENT_LEVIATHAN_RIDE_MIDDLE, 4800ms);
667 }
668 break;
670 {
671 Creature* VX001 = GetVX001();
672 Creature* LMK2 = GetLMK2();
673 if (!VX001 || !LMK2)
674 {
676 return;
677 }
678
679 LMK2->GetMotionMaster()->MoveCharge(2744.65f, 2569.46f, 364.31f, 21.0f);
682 VX001->EnterVehicle(LMK2, 3);
683 events.ScheduleEvent(EVENT_JOIN_TOGETHER, 3s);
684 }
685 break;
687 {
688 Creature* ACU = GetACU();
689 Creature* VX001 = GetVX001();
690 if (!VX001 || !ACU)
691 {
693 return;
694 }
695
696 ACU->SetDisableGravity(false);
697 ACU->EnterVehicle(VX001, 3);
698 me->EnterVehicle(VX001, 1);
700 events.ScheduleEvent(EVENT_START_PHASE4, 10s);
701 }
702 break;
704 {
705 Creature* VX001 = GetVX001();
706 Creature* LMK2 = GetLMK2();
707 Creature* ACU = GetACU();
708 if (!VX001 || !LMK2 || !ACU)
709 {
711 return;
712 }
713
714 LMK2->AI()->SetData(1, 4);
715 VX001->AI()->SetData(1, 4);
716 ACU->AI()->SetData(1, 4);
717 LMK2->CastSpell(LMK2, SPELL_SELF_REPAIR, true); //LMK2->SetHealth( LMK2->GetMaxHealth()/2 );
718 VX001->CastSpell(VX001, SPELL_SELF_REPAIR, true); //VX001->SetHealth( VX001->GetMaxHealth()/2 );
719 ACU->CastSpell(ACU, SPELL_SELF_REPAIR, true); //ACU->SetHealth( ACU->GetMaxHealth()/2 );
720 if (hardmode)
721 {
722 LMK2->CastSpell(LMK2, SPELL_EMERGENCY_MODE, true);
723 VX001->CastSpell(VX001, SPELL_EMERGENCY_MODE, true);
724 ACU->CastSpell(ACU, SPELL_EMERGENCY_MODE, true);
725 }
727 }
728 break;
729 case EVENT_FINISH:
730 {
731 Creature* LMK2 = GetLMK2();
732 Creature* VX001 = GetVX001();
733 Creature* ACU = GetACU();
734
735 if (!VX001 || !LMK2 || !ACU)
736 return;
737
738 LMK2->GetMotionMaster()->Clear();
739 LMK2->StopMoving();
740 LMK2->InterruptNonMeleeSpells(false);
741 LMK2->AttackStop();
742 LMK2->AI()->SetData(1, 0);
743 LMK2->DespawnOrUnsummon(7000);
745 VX001->InterruptNonMeleeSpells(false);
746 VX001->AttackStop();
747 VX001->AI()->SetData(1, 0);
748 VX001->DespawnOrUnsummon(7000);
750 ACU->InterruptNonMeleeSpells(false);
751 ACU->AttackStop();
752 ACU->AI()->SetData(1, 0);
753 ACU->DespawnOrUnsummon(7000);
755
756 Position exitPos = me->GetPosition();
757 me->_ExitVehicle(&exitPos);
758 me->AttackStop();
760 summons.DoAction(1337); // despawn summons of summons
762 summons.DespawnEntry(33576);
763
765
766 float angle = VX001->GetOrientation();
767 float v_x = me->GetPositionX() + cos(angle) * 10.0f;
768 float v_y = me->GetPositionY() + std::sin(angle) * 10.0f;
769 me->GetMotionMaster()->MoveJump(v_x, v_y, 364.32f, 7.0f, 7.0f);
770
772
773 if (pInstance)
774 for( uint16 i = 0; i < 3; ++i )
776 if (GameObject* door = ObjectAccessor::GetGameObject(*me, guid))
777 if (door->GetGoState() != GO_STATE_ACTIVE )
778 {
779 door->SetLootState(GO_READY);
780 door->UseDoorOrButton(0, false);
781 }
782
783 if (pInstance)
785
786 if (hardmode)
787 if (Creature* computer = me->SummonCreature(NPC_COMPUTER, 2746.7f, 2569.44f, 410.39f, 0.0f, TEMPSUMMON_TIMED_DESPAWN, 1000))
788 computer->AI()->Talk(TALK_COMPUTER_TERMINATED);
789
790 events.Reset();
791 events.ScheduleEvent(EVENT_STAND_UP_FRIENDLY, 6s);
792 }
793 break;
798 events.ScheduleEvent(EVENT_SAY_VOLTRON_DEAD, 4s);
799 break;
803 if (pInstance)
805 // spawn chest
807 {
808 if (GameObject* go = me->SummonGameObject(chestId, 2744.65f, 2569.46f, 364.397f, 0, 0, 0, 0, 0, 0))
809 {
810 go->ReplaceAllGameObjectFlags((GameObjectFlags)0);
811 go->SetLootRecipient(me->GetMap());
812 }
813 }
814 events.ScheduleEvent(EVENT_DISAPPEAR, 9s);
815 break;
816 case EVENT_DISAPPEAR:
819 break;
820 }
821 }
uint32 urand(uint32 min, uint32 max)
Definition: Random.cpp:44
double rand_norm()
Definition: Random.cpp:77
std::uint8_t uint8
Definition: Define.h:109
@ GO_MIMIRON_CHEST
Definition: ulduar.h:186
@ GO_MIMIRON_CHEST_HARD
Definition: ulduar.h:187
@ GO_MIMIRON_CHEST_HERO
Definition: ulduar.h:188
@ GO_MIMIRON_CHEST_HERO_HARD
Definition: ulduar.h:189
@ EVENT_ELEVATOR_INTERVAL_2
Definition: boss_mimiron.cpp:156
@ EVENT_ELEVATOR_INTERVAL_1
Definition: boss_mimiron.cpp:155
@ EVENT_ENTER_VX001
Definition: boss_mimiron.cpp:158
@ EVENT_SPAWN_FLAMES_INITIAL
Definition: boss_mimiron.cpp:212
@ EVENT_VX001_EMOTE_JUMP
Definition: boss_mimiron.cpp:170
@ EVENT_SIT_LMK2_INTERVAL
Definition: boss_mimiron.cpp:153
@ EVENT_SAY_VX001_DEAD
Definition: boss_mimiron.cpp:163
@ EVENT_SITTING_ON_VX001
Definition: boss_mimiron.cpp:157
@ EVENT_SAY_ACU_ACTIVATE
Definition: boss_mimiron.cpp:165
@ EVENT_SAY_VOLTRON_DEAD
Definition: boss_mimiron.cpp:177
@ EVENT_EMOTE_VX001
Definition: boss_mimiron.cpp:159
@ EVENT_ACU_START_ATTACK
Definition: boss_mimiron.cpp:166
@ EVENT_GET_OUT_VX001
Definition: boss_mimiron.cpp:162
@ EVENT_STAND_UP_FRIENDLY
Definition: boss_mimiron.cpp:176
@ EVENT_VX001_START_FIGHT
Definition: boss_mimiron.cpp:160
@ EVENT_LEVIATHAN_COME_CLOSER
Definition: boss_mimiron.cpp:169
@ EVENT_DISAPPEAR
Definition: boss_mimiron.cpp:178
@ EVENT_ELEVATOR_INTERVAL_0
Definition: boss_mimiron.cpp:161
@ EVENT_ENTER_ACU
Definition: boss_mimiron.cpp:164
@ EVENT_START_PHASE4
Definition: boss_mimiron.cpp:174
@ EVENT_JOIN_TOGETHER
Definition: boss_mimiron.cpp:172
@ EVENT_BERSERK_2
Definition: boss_mimiron.cpp:180
@ EVENT_LEVIATHAN_RIDE_MIDDLE
Definition: boss_mimiron.cpp:171
@ NPC_COMPUTER
Definition: boss_mimiron.cpp:100
@ NPC_LEVIATHAN_MKII
Definition: boss_mimiron.cpp:96
@ NPC_VX001
Definition: boss_mimiron.cpp:98
@ NPC_AERIAL_COMMAND_UNIT
Definition: boss_mimiron.cpp:99
@ SPELL_ENTER_VEHICLE_1
Definition: boss_mimiron.cpp:144
@ NPC_FLAMES_INITIAL
Definition: boss_mimiron.cpp:124
@ SPELL_ENTER_VEHICLE_2
Definition: boss_mimiron.cpp:145
@ SPELL_EMERGENCY_MODE
Definition: boss_mimiron.cpp:120
@ SPELL_ENTER_VEHICLE_0
Definition: boss_mimiron.cpp:143
@ SPELL_SUMMON_FLAMES_INITIAL
Definition: boss_mimiron.cpp:123
@ SPELL_ENTER_VEHICLE_4
Definition: boss_mimiron.cpp:146
@ SPELL_SLEEP_VISUAL_2
Definition: boss_mimiron.cpp:90
@ SPELL_BERSERK
Definition: boss_mimiron.cpp:35
@ SPELL_SLEEP_VISUAL_1
Definition: boss_mimiron.cpp:89
@ SAY_AERIAL_ACTIVATE
Definition: boss_mimiron.cpp:241
@ SAY_VX001_ACTIVATE
Definition: boss_mimiron.cpp:238
@ SAY_V07TRON_ACTIVATE
Definition: boss_mimiron.cpp:244
@ SAY_AERIAL_DEATH
Definition: boss_mimiron.cpp:243
@ TALK_COMPUTER_INITIATED
Definition: boss_mimiron.cpp:253
@ SAY_VX001_DEATH
Definition: boss_mimiron.cpp:240
@ SAY_MKII_DEATH
Definition: boss_mimiron.cpp:237
@ SAY_HARDMODE_ON
Definition: boss_mimiron.cpp:234
@ SAY_V07TRON_DEATH
Definition: boss_mimiron.cpp:246
@ TALK_COMPUTER_TERMINATED
Definition: boss_mimiron.cpp:254
@ SAY_BERSERK
Definition: boss_mimiron.cpp:247
@ ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE
Definition: DBCEnums.h:122
@ EMOTE_ONESHOT_CUSTOM_SPELL_02
Definition: SharedDefines.h:1998
@ EMOTE_ONESHOT_EMERGE
Definition: SharedDefines.h:2043
@ EMOTE_STATE_DROWNED
Definition: SharedDefines.h:1978
@ EMOTE_STATE_CUSTOM_SPELL_01
Definition: SharedDefines.h:2010
@ EMOTE_ONESHOT_TALK
Definition: SharedDefines.h:1895
GameObjectFlags
Definition: SharedDefines.h:1602
@ FACTION_FRIENDLY
Definition: SharedDefines.h:201
static First const & RAND(First const &first, Second const &second, Rest const &... rest)
Definition: CreatureAIImpl.h:25
@ TEMPSUMMON_MANUAL_DESPAWN
Definition: Object.h:53
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:48
@ UNIT_NPC_EMOTESTATE
Definition: UpdateFields.h:140
@ REACT_PASSIVE
Definition: Unit.h:548
Seconds GetGameTime()
Definition: GameTime.cpp:38
Definition: LinkedList.h:139
virtual void SetData(uint32, uint32)
Definition: UnitAI.h:214
SpellCastResult DoCastSelf(uint32 spellId, bool triggered=false)
Definition: UnitAI.h:392
void DespawnEntry(uint32 entry)
Definition: ScriptedCreature.cpp:54
const T & RAID_MODE(const T &normal10, const T &normal25) const
Definition: ScriptedCreature.h:404
Player * SelectTargetFromPlayerList(float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
Definition: ScriptedCreature.cpp:571
void SetInCombatWithZone()
Set in combat all units in the dungeon/raid. Affect only units with IsAIEnabled.
Definition: Creature.cpp:2811
bool SetDisableGravity(bool disable, bool packetOnly=false, bool updateAnimationTier=true) override
Enable or disable the creature's fly mode by adding or removing: MOVEMENTFLAG_FLYING....
Definition: Creature.cpp:3205
void GetHomePosition(float &x, float &y, float &z, float &ori) const
Definition: Creature.h:338
void SetPosition(float x, float y, float z, float o)
Definition: Creature.cpp:3154
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition: Creature.h:94
CreatureAI * AI() const
Definition: Creature.h:140
Map * GetMap() const
Definition: Object.h:536
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2366
bool IsWithinLOS(float x, float y, float z, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS) const
Definition: Object.cpp:1337
float GetDistance(WorldObject const *obj) const
Definition: Object.cpp:1256
GameObject * SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
Definition: Object.cpp:2380
Definition: Position.h:27
float GetExactDist(float x, float y, float z) const
Definition: Position.h:177
float GetOrientation() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:116
void GetPosition(float &x, float &y) const
Definition: Position.h:121
float GetPositionY() const
Definition: Position.h:117
float GetAngle(const Position *pos) const
Definition: Position.cpp:78
Definition: Player.h:1081
Definition: Unit.h:630
void SetFacingTo(float ori)
Definition: Unit.cpp:20527
void SetFaction(uint32 faction)
Definition: Unit.cpp:10056
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition: Unit.cpp:4129
MotionMaster * GetMotionMaster()
Definition: Unit.h:1620
void StopMoving()
Definition: Unit.cpp:16650
void _ExitVehicle(Position const *exitPosition=nullptr)
Definition: Unit.cpp:19772
void MonsterMoveWithSpeed(float x, float y, float z, float speed)
Definition: Unit.cpp:529
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:1167
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:4909
void SetUInt32Value(uint16 index, uint32 value)
Definition: Unit.cpp:21316
void SendMeleeAttackStop(Unit *victim=nullptr)
Send to the client SMSG_ATTACKSTOP but doesn't clear UNIT_STATE_MELEE_ATTACKING on server side or int...
Definition: Unit.cpp:3077
void HandleEmoteCommand(uint32 emoteId)
Definition: Unit.cpp:2000
Vehicle * GetVehicleKit() const
Definition: Unit.h:1785
bool AttackStop()
Force the unit to stop attacking. This will clear UNIT_STATE_MELEE_ATTACKING, Interrupt current spell...
Definition: Unit.cpp:10403
bool IsInCombat() const
Definition: Unit.h:884
Definition: Vehicle.h:28
void DoUpdateAchievementCriteria(AchievementCriteriaTypes type, uint32 miscValue1=0, uint32 miscValue2=0, Unit *unit=nullptr)
Definition: InstanceScript.cpp:638
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)
The unit will charge the target. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:670
void MoveJump(Position const &pos, float speedXY, float speedZ, uint32 id=0)
Definition: MotionMaster.h:229
void Clear(bool reset=true)
Definition: MotionMaster.h:167

References Unit::_ExitVehicle(), ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE, Creature::AI(), allowedFlameSpreadTime, Unit::AttackStop(), MapRefMgr::begin(), berserk, Unit::CastSpell(), changeAllowedFlameSpreadTime, MotionMaster::Clear(), DATA_GO_MIMIRON_DOOR_1, SummonList::DespawnAll(), SummonList::DespawnEntry(), Creature::DespawnOrUnsummon(), SummonList::DoAction(), UnitAI::DoCastSelf(), DONE, InstanceScript::DoUpdateAchievementCriteria(), EMOTE_ONESHOT_CUSTOM_SPELL_02, EMOTE_ONESHOT_EMERGE, EMOTE_ONESHOT_TALK, EMOTE_STATE_CUSTOM_SPELL_01, EMOTE_STATE_DROWNED, MapRefMgr::end(), EnterEvadeMode(), Unit::EnterVehicle(), CreatureAI::EVADE_REASON_OTHER, EVENT_ACU_START_ATTACK, EVENT_BERSERK, EVENT_BERSERK_2, EVENT_COMPUTER_SAY_INITIATED, EVENT_COMPUTER_SAY_MINUTES, EVENT_DISAPPEAR, EVENT_ELEVATOR_INTERVAL_0, EVENT_ELEVATOR_INTERVAL_1, EVENT_ELEVATOR_INTERVAL_2, EVENT_EMOTE_VX001, EVENT_ENTER_ACU, EVENT_ENTER_VX001, EVENT_FINISH, EVENT_GET_OUT_VX001, EVENT_JOIN_TOGETHER, EVENT_LEVIATHAN_COME_CLOSER, EVENT_LEVIATHAN_RIDE_MIDDLE, EVENT_LMK2_RETREAT_INTERVAL, EVENT_MIMIRON_SAY_HARDMODE, EVENT_SAY_ACU_ACTIVATE, EVENT_SAY_ACU_DEAD, EVENT_SAY_VOLTRON_DEAD, EVENT_SAY_VX001_DEAD, EVENT_SIT_LMK2, EVENT_SIT_LMK2_INTERVAL, EVENT_SITTING_ON_VX001, EVENT_SPAWN_FLAMES_INITIAL, EVENT_STAND_UP_FRIENDLY, EVENT_START_PHASE4, EVENT_VX001_EMOTE_JUMP, EVENT_VX001_EMOTESTATE_DEATH, EVENT_VX001_START_FIGHT, FACTION_FRIENDLY, WorldObject::FindNearestGameObject(), GetACU, Position::GetAngle(), Position::GetExactDist(), ObjectAccessor::GetGameObject(), GameTime::GetGameTime(), InstanceScript::GetGuidData(), Creature::GetHomePosition(), GetLMK2, WorldObject::GetMap(), Unit::GetMotionMaster(), Position::GetOrientation(), Map::GetPlayers(), Position::GetPosition(), Position::GetPositionX(), Position::GetPositionY(), GetVX001, GO_MIMIRON_CHEST, GO_MIMIRON_CHEST_HARD, GO_MIMIRON_CHEST_HERO, GO_MIMIRON_CHEST_HERO_HARD, GO_MIMIRON_ELEVATOR, GO_READY, GO_STATE_ACTIVE, Unit::HandleEmoteCommand(), hardmode, Unit::InterruptNonMeleeSpells(), Unit::IsInCombat(), WorldObject::IsWithinLOS(), ScriptedAI::me, minutesTalkNum, MotionMaster::MoveCharge(), MotionMaster::MoveJump(), NPC_AERIAL_COMMAND_UNIT, NPC_COMPUTER, NPC_FLAMES_INITIAL, NPC_LEVIATHAN_MKII, NPC_VX001, outofCombatTimer, pInstance, ScriptedAI::RAID_MODE(), RAND(), rand_norm(), REACT_PASSIVE, Unit::RemoveAurasDueToSpell(), Unit::RemoveUnitFlag(), SAY_AERIAL_ACTIVATE, SAY_AERIAL_DEATH, SAY_BERSERK, SAY_HARDMODE_ON, SAY_MKII_DEATH, SAY_V07TRON_ACTIVATE, SAY_V07TRON_DEATH, SAY_VX001_ACTIVATE, SAY_VX001_DEATH, ScriptedAI::SelectTargetFromPlayerList(), Unit::SendMeleeAttackStop(), UnitAI::SetData(), ZoneScript::SetData(), Creature::SetDisableGravity(), Unit::SetFaction(), Creature::SetInCombatWithZone(), Creature::SetReactState(), Unit::SetUInt32Value(), SPELL_BERSERK, SPELL_EMERGENCY_MODE, SPELL_ENTER_VEHICLE_0, SPELL_ENTER_VEHICLE_1, SPELL_ENTER_VEHICLE_2, SPELL_ENTER_VEHICLE_4, SPELL_SELF_REPAIR, SPELL_SLEEP_VISUAL_1, SPELL_SLEEP_VISUAL_2, SPELL_SUMMON_FLAMES_INITIAL, SPELL_TELEPORT, Unit::StopMoving(), WorldObject::SummonCreature(), WorldObject::SummonGameObject(), summons, TALK_COMPUTER_INITIATED, TALK_COMPUTER_TERMINATED, TEMPSUMMON_MANUAL_DESPAWN, TEMPSUMMON_TIMED_DESPAWN, TYPE_MIMIRON, UNIT_FLAG_NOT_SELECTABLE, UNIT_NPC_EMOTESTATE, and urand().

Member Data Documentation

◆ allowedFlameSpreadTime

uint32 boss_mimiron::boss_mimironAI::allowedFlameSpreadTime

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

◆ bAchievBombBot

bool boss_mimiron::boss_mimironAI::bAchievBombBot

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

◆ bAchievProximityMine

bool boss_mimiron::boss_mimironAI::bAchievProximityMine

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

◆ bAchievRocketStrike

bool boss_mimiron::boss_mimironAI::bAchievRocketStrike

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

◆ berserk

bool boss_mimiron::boss_mimironAI::berserk

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

◆ bIsEvading

bool boss_mimiron::boss_mimironAI::bIsEvading

Referenced by boss_mimironAI(), and EnterEvadeMode().

◆ changeAllowedFlameSpreadTime

bool boss_mimiron::boss_mimironAI::changeAllowedFlameSpreadTime

Referenced by Reset(), and UpdateAI().

◆ events

EventMap boss_mimiron::boss_mimironAI::events

◆ hardmode

bool boss_mimiron::boss_mimironAI::hardmode

◆ minutesTalkNum

uint8 boss_mimiron::boss_mimironAI::minutesTalkNum

Referenced by JustEngagedWith(), and UpdateAI().

◆ outofCombatTimer

uint32 boss_mimiron::boss_mimironAI::outofCombatTimer

Referenced by Reset(), and UpdateAI().

◆ pInstance

InstanceScript* boss_mimiron::boss_mimironAI::pInstance

◆ summons

SummonList boss_mimiron::boss_mimironAI::summons