From f97fb5d8d1f56ebc3d332af64b2d0e5eaad26e7b Mon Sep 17 00:00:00 2001 From: atrapalis <104009206+atrapalis@users.noreply.github.com> Date: Sun, 7 Jan 2024 15:30:23 +0000 Subject: [PATCH] fix(DB): Added vanilla Onyxia as a dungeon/instance encounter This fixes a minor issue where 40-man Onyxia was not identified as a dungeon/raid boss by `Creature->IsDungeonBoss()` --- sql/world/base/dungeon_onyxia.sql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sql/world/base/dungeon_onyxia.sql b/sql/world/base/dungeon_onyxia.sql index bbb4586..b8c2b8a 100644 --- a/sql/world/base/dungeon_onyxia.sql +++ b/sql/world/base/dungeon_onyxia.sql @@ -908,6 +908,12 @@ DELETE FROM `mapdifficulty_dbc` WHERE `MapID` = 249; INSERT INTO `mapdifficulty_dbc` (`ID`, `MapID`, `Difficulty`, `RaidDuration`, `MaxPlayers`, `Difficultystring`) VALUES (755, 249, 2, 604800, 40, 'RAID_DIFFICULTY_40PLAYER'); +INSERT INTO `dungeonencounter_dbc` (`ID`, `MapID`, `Difficulty`, `OrderIndex`, `Bit`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `SpellIconID`) VALUES +(895, 249, 2, 0, 0, 'Onyxia', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 16712190, 0); + +INSERT INTO `instance_encounters` (`entry`, `creditType`, `creditEntry`, `lastEncounterDungeon`, `comment`) VALUES +(895, 0, 301000, 0, 'Onyxia (Vanilla)'); + -- Victory for the Alliance - Bolvar or Varian DELETE FROM `creature_questender` WHERE `quest` = 7495; INSERT INTO `creature_questender` (`id`, `quest`) VALUES @@ -1023,4 +1029,4 @@ DELETE FROM `areatrigger_scripts` WHERE `entry` = 2848; INSERT INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES (2848, 'onyxia_entrance_trigger'); -UPDATE `gameobject` SET `spawnMask` = 7 WHERE `map` = 249; \ No newline at end of file +UPDATE `gameobject` SET `spawnMask` = 7 WHERE `map` = 249;