Scripts/Ulduar: added more cleanup mechanics to Runemaster Molgeim

This commit is contained in:
Ovahlord
2020-10-01 21:00:45 +02:00
parent 82a5ba527e
commit 321a9d2b0a
3 changed files with 11 additions and 4 deletions

View File

@@ -370,6 +370,8 @@ struct boss_runemaster_molgeim : public ScriptedAI
if (_events.IsInPhase(PHASE_THREE))
{
EncounterHelper::CleanupAuras(this, _instance);
_summons.DespawnAll();
me->RemoveAllDynObjects();
_instance->SetBossState(DATA_ASSEMBLY_OF_IRON, DONE);
DoCastAOE(SPELL_KILL_CREDIT, true);
Talk(SAY_MOLGEIM_ENCOUNTER_DEFEATED);

View File

@@ -400,7 +400,11 @@ class instance_ulduar : public InstanceMapScript
case NPC_SANITY_WELL:
creature->SetReactState(REACT_PASSIVE);
break;
case NPC_RUNE_OF_POWER:
if (Creature* molgeim = GetCreature(DATA_RUNEMASTER_MOLGEIM))
if (molgeim->IsAIEnabled)
molgeim->AI()->JustSummoned(creature);
break;
// Algalon
//! These creatures are summoned by something else than Algalon
//! but need to be controlled/despawned by him - so they need to be

View File

@@ -80,9 +80,10 @@ enum UlduarNPCs
NPC_ALGALON = 32871,
// Assembly of Iron
BOSS_STEELBREAKER = 32867,
BOSS_RUNEMASTER_MOLGEIM = 32927,
BOSS_STORMCALLER_BRUNDIR = 32857,
BOSS_STEELBREAKER = 32867,
BOSS_RUNEMASTER_MOLGEIM = 32927,
BOSS_STORMCALLER_BRUNDIR = 32857,
NPC_RUNE_OF_POWER = 33705,
//XT002
NPC_XS013_SCRAPBOT = 33343,