mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
DB/Mana-Tombs: Migrate linked_respawn to spawn groups
(cherry picked from commit 4af8548206)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
DELETE FROM `spawn_group_template` WHERE `groupId` BETWEEN 201 AND 203;
|
||||
INSERT INTO `spawn_group_template` (`groupId`,`groupName`,`groupFlags`) VALUES
|
||||
(201,'Auchindoun: Mana-Tombs - Pandemonius',4),
|
||||
(202,'Auchindoun: Mana-Tombs - Tavarok',4),
|
||||
(203,'Auchindoun: Mana-Tombs - Nexus-Prince Shaffar',4);
|
||||
|
||||
DELETE FROM `instance_spawn_groups` WHERE `spawnGroupId` BETWEEN 201 AND 203;
|
||||
INSERT INTO `instance_spawn_groups` (`instanceMapId`,`bossStateId`,`bossStates`,`spawnGroupId`,`flags`) VALUES
|
||||
(557,0,23,201,1),
|
||||
(557,1,23,202,1),
|
||||
(557,2,23,203,1);
|
||||
|
||||
DELETE FROM `spawn_group` WHERE `groupId` BETWEEN 201 AND 203;
|
||||
INSERT INTO `spawn_group` SELECT 201, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=91163 AND `linkType` IN (0,3);
|
||||
INSERT INTO `spawn_group` SELECT 202, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=91161 AND `linkType` IN (0,3);
|
||||
INSERT INTO `spawn_group` SELECT 203, 0, `guid` FROM `linked_respawn` WHERE `linkedGuid`=91162 AND `linkType` IN (0,3);
|
||||
INSERT INTO `spawn_group` (`groupId`,`spawnType`,`spawnId`) VALUES
|
||||
(201,0,91163),
|
||||
(202,0,91161),
|
||||
(203,0,91162);
|
||||
|
||||
DELETE FROM `linked_respawn` WHERE `linkedGuid` IN (91163,91161,91162);
|
||||
@@ -31,6 +31,12 @@ class instance_mana_tombs : public InstanceMapScript
|
||||
SetHeaders(DataHeader);
|
||||
SetBossNumber(EncounterCount);
|
||||
}
|
||||
|
||||
void OnUnitDeath(Unit* unit) override
|
||||
{
|
||||
if (unit->GetEntry() == NPC_TAVAROK)
|
||||
SetBossState(DATA_TAVAROK, DONE);
|
||||
}
|
||||
};
|
||||
|
||||
InstanceScript* GetInstanceScript(InstanceMap* map) const override
|
||||
|
||||
@@ -34,6 +34,11 @@ enum MTDataTypes
|
||||
DATA_YOR = 3
|
||||
};
|
||||
|
||||
enum MTCreatureIds
|
||||
{
|
||||
NPC_TAVAROK = 18343
|
||||
};
|
||||
|
||||
template <class AI, class T>
|
||||
inline AI* GetManaTombsAI(T* obj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user