mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 03:53:48 +00:00
fix(Scripts/MoltenCore): Majordomus improvements: (#9232)
Magic Reflection/Damage Shield should be usable on adds. Adds should not despawn on boss defeat. Fixes #9120
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1637182861061114100');
|
||||||
|
|
||||||
|
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry` IN (20619,21075);
|
||||||
|
INSERT INTO `conditions` VALUES
|
||||||
|
(13,1,20619,0,0,31,0,3,11663,0,0,0,0,'','Magic Reflection targets Flamewaker Healer'),
|
||||||
|
(13,1,20619,0,1,31,0,3,11664,0,0,0,0,'','Magic Reflection targets Flamewaker Elite'),
|
||||||
|
(13,1,21075,0,0,31,0,3,11663,0,0,0,0,'','Damage Shield targets Flamewaker Healer'),
|
||||||
|
(13,1,21075,0,1,31,0,3,11664,0,0,0,0,'','Damage Shield targets Flamewaker Elite');
|
||||||
|
|
||||||
|
UPDATE `creature_summon_groups` SET `summonType`=7 WHERE `summonerId`=12018 AND `groupid`=1;
|
||||||
@@ -256,18 +256,7 @@ public:
|
|||||||
}
|
}
|
||||||
else if (!remainingAdds)
|
else if (!remainingAdds)
|
||||||
{
|
{
|
||||||
if (!static_minionsGUIDS.empty())
|
static_minionsGUIDS.clear();
|
||||||
{
|
|
||||||
for (ObjectGuid const& guid : static_minionsGUIDS)
|
|
||||||
{
|
|
||||||
if (Creature* minion = ObjectAccessor::GetCreature(*me, guid))
|
|
||||||
{
|
|
||||||
minion->DespawnOrUnsummon();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static_minionsGUIDS.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
instance->SetBossState(DATA_MAJORDOMO_EXECUTUS, DONE);
|
instance->SetBossState(DATA_MAJORDOMO_EXECUTUS, DONE);
|
||||||
events.CancelEventGroup(PHASE_COMBAT);
|
events.CancelEventGroup(PHASE_COMBAT);
|
||||||
|
|||||||
Reference in New Issue
Block a user