From 6cdf185412f6bb6b557efef8f08cf1ef7d82ff52 Mon Sep 17 00:00:00 2001 From: Jelle Meeus Date: Sat, 17 May 2025 08:36:47 +0200 Subject: [PATCH 01/17] fix(Scripts/Spells): Kil'Jaeden Fire Bloom AoE pet damage (#22133) --- src/server/game/Spells/SpellInfoCorrections.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index 3c3c89609..2f7b918a6 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -4897,8 +4897,10 @@ void SpellMgr::LoadSpellInfoCorrections() spellInfo->Effects[EFFECT_0].RadiusEntry = sSpellRadiusStore.LookupEntry(EFFECT_RADIUS_70_YARDS); }); - // Encapsulate - ApplySpellFix({ 45662 }, [](SpellInfo* spellInfo) + ApplySpellFix({ + 45662, // Encapsulate + 45642 // Fire Bloom + }, [](SpellInfo* spellInfo) { spellInfo->AttributesEx7 |= SPELL_ATTR7_TREAT_AS_NPC_AOE; }); From c3d3eb23de27b4ac2b5d9f75aa1897d01f53eb82 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sat, 17 May 2025 19:07:27 -0300 Subject: [PATCH 02/17] fix(Scripts/SunwellPlateau): Fix Killjaeden text spam (#22139) --- .../scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp index ab5bf805f..534e5de3c 100644 --- a/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp +++ b/src/server/scripts/EasternKingdoms/SunwellPlateau/boss_kiljaeden.cpp @@ -141,6 +141,7 @@ struct npc_kiljaeden_controller : public NullCreatureAI void Reset() override { + scheduler.CancelAll(); instance->SetBossState(DATA_KILJAEDEN, NOT_STARTED); summons.DespawnAll(); ResetOrbs(); From 60d6274261685f8fa676a1d910189abe06f3e492 Mon Sep 17 00:00:00 2001 From: avarishd <46330494+avarishd@users.noreply.github.com> Date: Sun, 18 May 2025 15:33:33 +0300 Subject: [PATCH 03/17] fix(Scripts/Zone): Quest 'Fire At Will!' should give group credit (#22145) --- src/server/scripts/Outland/zone_blades_edge_mountains.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/Outland/zone_blades_edge_mountains.cpp b/src/server/scripts/Outland/zone_blades_edge_mountains.cpp index 638c2bbce..e57bd3602 100644 --- a/src/server/scripts/Outland/zone_blades_edge_mountains.cpp +++ b/src/server/scripts/Outland/zone_blades_edge_mountains.cpp @@ -122,9 +122,9 @@ public: if (Player* player = ObjectAccessor::GetPlayer(*me, PlayerGUID)) { if (GetClosestCreatureWithEntry(me, NPC_SOUTH_GATE, 200.0f)) - player->KilledMonsterCredit(NPC_SOUTH_GATE_CREDIT); + player->RewardPlayerAndGroupAtEvent(NPC_SOUTH_GATE_CREDIT, player); else if (GetClosestCreatureWithEntry(me, NPC_NORTH_GATE, 200.0f)) - player->KilledMonsterCredit(NPC_NORTH_GATE_CREDIT); + player->RewardPlayerAndGroupAtEvent(NPC_NORTH_GATE_CREDIT, player); // complete quest part if (Creature* bunny = GetClosestCreatureWithEntry(me, NPC_EXPLOSION_BUNNY, 200.0f)) bunny->CastSpell(nullptr, SPELL_EXPLOSION, TRIGGERED_NONE); From a8102ab7163b1c3ab2e5eb896d65d949bd8d573e Mon Sep 17 00:00:00 2001 From: Ryan Turner <16946913+TheSCREWEDSoftware@users.noreply.github.com> Date: Sun, 18 May 2025 22:16:56 +0100 Subject: [PATCH 04/17] fix(DB/SAI) - Removes Link in Smart AI for creature Ziggurat Defender (#22137) --- data/sql/updates/pending_db_world/rev_1747490492456641600.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1747490492456641600.sql diff --git a/data/sql/updates/pending_db_world/rev_1747490492456641600.sql b/data/sql/updates/pending_db_world/rev_1747490492456641600.sql new file mode 100644 index 000000000..300123328 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1747490492456641600.sql @@ -0,0 +1,2 @@ +-- Sets the SAI Link to 0 from 1 for Ziggurat Defender (has only 1 cast, nothing to link to) +UPDATE `smart_scripts` SET `link` = 0 WHERE (`source_type` = 0 AND `entryorguid` = 26202 AND `id` = 0); From 0e62559a3ce775d83bd4d84d77020b68bc994c35 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 18 May 2025 21:17:55 +0000 Subject: [PATCH 05/17] chore(DB): import pending files Referenced commit(s): a8102ab7163b1c3ab2e5eb896d65d949bd8d573e --- .../rev_1747490492456641600.sql => db_world/2025_05_18_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1747490492456641600.sql => db_world/2025_05_18_00.sql} (81%) diff --git a/data/sql/updates/pending_db_world/rev_1747490492456641600.sql b/data/sql/updates/db_world/2025_05_18_00.sql similarity index 81% rename from data/sql/updates/pending_db_world/rev_1747490492456641600.sql rename to data/sql/updates/db_world/2025_05_18_00.sql index 300123328..698230119 100644 --- a/data/sql/updates/pending_db_world/rev_1747490492456641600.sql +++ b/data/sql/updates/db_world/2025_05_18_00.sql @@ -1,2 +1,3 @@ +-- DB update 2025_05_15_00 -> 2025_05_18_00 -- Sets the SAI Link to 0 from 1 for Ziggurat Defender (has only 1 cast, nothing to link to) UPDATE `smart_scripts` SET `link` = 0 WHERE (`source_type` = 0 AND `entryorguid` = 26202 AND `id` = 0); From 75d7f4886c3e54350ddafccd382ea28dfb2ebbf0 Mon Sep 17 00:00:00 2001 From: Ryan Turner <16946913+TheSCREWEDSoftware@users.noreply.github.com> Date: Mon, 19 May 2025 12:16:09 +0100 Subject: [PATCH 06/17] fix(DB/Loot) - Dalaran Wizard's Robe no longer drops from un-wanted creatures. (#22091) Co-authored-by: Grimfeather <88028633+grimfeather@users.noreply.github.com> --- .../pending_db_world/rev_1746808346708867700.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1746808346708867700.sql diff --git a/data/sql/updates/pending_db_world/rev_1746808346708867700.sql b/data/sql/updates/pending_db_world/rev_1746808346708867700.sql new file mode 100644 index 000000000..10a321c03 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1746808346708867700.sql @@ -0,0 +1,16 @@ +-- Deletes `Dalaran Wizard's Robe` (5110) from References: `World Drop - White World Drop - NPC Levels` 14-15 (1011415), 15-15 (1011515), 15-16 (1011516), 16-16 (1011616) +DELETE FROM `reference_loot_template` WHERE `Item` = 5110; + +DELETE FROM `creature_loot_template` WHERE `Item` = 5110; +INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES +(1867, 5110, 0, 3, 0, 1, 0, 1, 1, 'Dalaran Apprentice - Dalaran Wizard\'s Robe'), +(1888, 5110, 0, 4, 0, 1, 0, 1, 1, 'Dalaran Watcher - Dalaran Wizard\'s Robe'), +(1889, 5110, 0, 4, 0, 1, 0, 1, 1, 'Dalaran Wizard - Dalaran Wizard\'s Robe'), +(1912, 5110, 0, 3, 0, 1, 0, 1, 1, 'Dalaran Protector - Dalaran Wizard\'s Robe'), +(1913, 5110, 0, 4, 0, 1, 0, 1, 1, 'Dalaran Warder - Dalaran Wizard\'s Robe'), +(1914, 5110, 0, 3, 0, 1, 0, 1, 1, 'Dalaran Mage - Dalaran Wizard\'s Robe'), +(1915, 5110, 0, 4, 0, 1, 0, 1, 1, 'Dalaran Conjuror - Dalaran Wizard\'s Robe'), +(1920, 5110, 0, 1.6, 0, 1, 0, 1, 1, 'Dalaran Spellscribe - Dalaran Wizard\'s Robe'), +(2120, 5110, 0, 1.8, 0, 1, 0, 1, 1, 'Archmage Ataeric - Dalaran Wizard\'s Robe'), +(3577, 5110, 0, 4, 0, 1, 0, 1, 1, 'Dalaran Brewmaster - Dalaran Wizard\'s Robe'), +(3578, 5110, 0, 3, 0, 1, 0, 1, 1, 'Dalaran Miner - Dalaran Wizard\'s Robe'); From a20077eca822da18a5fec00254ab4e3e9f2b684e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 19 May 2025 11:17:16 +0000 Subject: [PATCH 07/17] chore(DB): import pending files Referenced commit(s): 75d7f4886c3e54350ddafccd382ea28dfb2ebbf0 --- .../rev_1746808346708867700.sql => db_world/2025_05_19_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1746808346708867700.sql => db_world/2025_05_19_00.sql} (96%) diff --git a/data/sql/updates/pending_db_world/rev_1746808346708867700.sql b/data/sql/updates/db_world/2025_05_19_00.sql similarity index 96% rename from data/sql/updates/pending_db_world/rev_1746808346708867700.sql rename to data/sql/updates/db_world/2025_05_19_00.sql index 10a321c03..87dd9b4e5 100644 --- a/data/sql/updates/pending_db_world/rev_1746808346708867700.sql +++ b/data/sql/updates/db_world/2025_05_19_00.sql @@ -1,3 +1,4 @@ +-- DB update 2025_05_18_00 -> 2025_05_19_00 -- Deletes `Dalaran Wizard's Robe` (5110) from References: `World Drop - White World Drop - NPC Levels` 14-15 (1011415), 15-15 (1011515), 15-16 (1011516), 16-16 (1011616) DELETE FROM `reference_loot_template` WHERE `Item` = 5110; From 8e68d9a8b47f4ae8146b0e4a43eef53715fcc85e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Mon, 19 May 2025 17:49:15 +0200 Subject: [PATCH 08/17] docs(AUTHORS): add Cross-project Collaboration section (#22034) --- AUTHORS | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/AUTHORS b/AUTHORS index 8c5e802ab..63425cea7 100644 --- a/AUTHORS +++ b/AUTHORS @@ -34,3 +34,22 @@ The third-party libraries have their own way of addressing authorship, and the a a third-party library reflects who did the importing instead of who wrote the code within the commit. The Authors of third-party libraries are not explicitly mentioned, and usually is possible to obtain from the files belonging to the third-party libraries. + +## Cross-project collaboration + +At AzerothCore, we actively promote collaboration with other MaNGOS-based open-source projects that are actively maintained. This also includes cherry-picking commits from relevant projects such as: + +* TrinityCore: https://github.com/trinitycore +* CMaNGOS: https://github.com/cmangos/ +* vMaNGOS: https://github.com/vmangos +* and others + +It is strictly required for any contributor importing code to credit the original author by: +- linking the original PR (or commit) +- adding a [Co-authored-by](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors) line in the PR description + +This will automatically include the original author in our list of [Contributors](https://github.com/azerothcore/azerothcore-wotlk/graphs/contributors). + +If you notice a violation of the above, please report it to the Staff immediately. + +We encourage other projects to adopt similar practices to promote healthy cross-project collaboration and proper attribution. From e7343b0e3c953ea6443f68e26927c77cd72389d9 Mon Sep 17 00:00:00 2001 From: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> Date: Tue, 20 May 2025 03:06:46 -0400 Subject: [PATCH 09/17] fix(DB/Loot): Adjust Thori'dal drop chance. (#22124) --- data/sql/updates/pending_db_world/thoridal-chance.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 data/sql/updates/pending_db_world/thoridal-chance.sql diff --git a/data/sql/updates/pending_db_world/thoridal-chance.sql b/data/sql/updates/pending_db_world/thoridal-chance.sql new file mode 100644 index 000000000..3e0e0b51b --- /dev/null +++ b/data/sql/updates/pending_db_world/thoridal-chance.sql @@ -0,0 +1 @@ +UPDATE `creature_loot_template` SET `Chance` = 6 WHERE `Item` = 34334 AND `Entry` = 25315; From f507df266118587eaff766f29aa5df027353f8d0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 20 May 2025 07:07:51 +0000 Subject: [PATCH 10/17] chore(DB): import pending files Referenced commit(s): e7343b0e3c953ea6443f68e26927c77cd72389d9 --- .../thoridal-chance.sql => db_world/2025_05_20_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/thoridal-chance.sql => db_world/2025_05_20_00.sql} (67%) diff --git a/data/sql/updates/pending_db_world/thoridal-chance.sql b/data/sql/updates/db_world/2025_05_20_00.sql similarity index 67% rename from data/sql/updates/pending_db_world/thoridal-chance.sql rename to data/sql/updates/db_world/2025_05_20_00.sql index 3e0e0b51b..c5e78933a 100644 --- a/data/sql/updates/pending_db_world/thoridal-chance.sql +++ b/data/sql/updates/db_world/2025_05_20_00.sql @@ -1 +1,2 @@ +-- DB update 2025_05_19_00 -> 2025_05_20_00 UPDATE `creature_loot_template` SET `Chance` = 6 WHERE `Item` = 34334 AND `Entry` = 25315; From 70044b71f4a6c4708a2f4ff04597a74d04a91219 Mon Sep 17 00:00:00 2001 From: Tereneckla Date: Wed, 21 May 2025 12:06:59 +0000 Subject: [PATCH 11/17] fix(DB/Spells): Shadow Bolt Volley of Hand of Deceivers on the Kil'jaeden fight stack (#22156) --- data/sql/updates/pending_db_world/rev_1747667082397759252.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1747667082397759252.sql diff --git a/data/sql/updates/pending_db_world/rev_1747667082397759252.sql b/data/sql/updates/pending_db_world/rev_1747667082397759252.sql new file mode 100644 index 000000000..1f3ed1cff --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1747667082397759252.sql @@ -0,0 +1,3 @@ +-- +DELETE FROM `spell_custom_attr` WHERE `spell_id`=45770; +INSERT INTO `spell_custom_attr` (`spell_id`, `attributes`) VALUES (45770, 4194304); From 9bc847d339ff94e87999d0c374ebe2eeece92e0b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 21 May 2025 12:08:03 +0000 Subject: [PATCH 12/17] chore(DB): import pending files Referenced commit(s): 70044b71f4a6c4708a2f4ff04597a74d04a91219 --- .../rev_1747667082397759252.sql => db_world/2025_05_21_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/rev_1747667082397759252.sql => db_world/2025_05_21_00.sql} (76%) diff --git a/data/sql/updates/pending_db_world/rev_1747667082397759252.sql b/data/sql/updates/db_world/2025_05_21_00.sql similarity index 76% rename from data/sql/updates/pending_db_world/rev_1747667082397759252.sql rename to data/sql/updates/db_world/2025_05_21_00.sql index 1f3ed1cff..87e82b445 100644 --- a/data/sql/updates/pending_db_world/rev_1747667082397759252.sql +++ b/data/sql/updates/db_world/2025_05_21_00.sql @@ -1,3 +1,4 @@ +-- DB update 2025_05_20_00 -> 2025_05_21_00 -- DELETE FROM `spell_custom_attr` WHERE `spell_id`=45770; INSERT INTO `spell_custom_attr` (`spell_id`, `attributes`) VALUES (45770, 4194304); From 22b1d072c26133fbb6d53f8b867736c7b4cc9b93 Mon Sep 17 00:00:00 2001 From: Jelle Meeus Date: Thu, 22 May 2025 00:26:28 +0200 Subject: [PATCH 13/17] fix(Core/Player): aura removal logic to equipped "Use" items (#22164) Co-authored-by: itslovelol Co-authored-by: VladimirMangos --- src/server/game/Entities/Player/Player.cpp | 37 ++++------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 435bdadcd..974a6120e 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -7125,37 +7125,26 @@ void Player::ApplyItemEquipSpell(Item* item, bool apply, bool form_change) if (!proto) return; - for (uint8 i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i) + for (auto const& spellData : proto->Spells) { - _Spell const& spellData = proto->Spells[i]; - - // no spell + // no spell if (!spellData.SpellId) continue; - // Spells that should stay on the caster after removing the item. - constexpr std::array spellExceptions = - { - 11826, //Electromagnetic Gigaflux Reactivator - 17490 //Book of the Dead - Summon Skeleton - }; - const auto found = std::find(std::begin(spellExceptions), std::end(spellExceptions), spellData.SpellId); - // wrong triggering type if (apply) { + // Only apply "On Equip" spells if (spellData.SpellTrigger != ITEM_SPELLTRIGGER_ON_EQUIP) - { continue; - } } else { - // If the spell is an exception do not remove it. - if (found != std::end(spellExceptions)) - { + // Do not remove "Use" spells in these special cases: + // 1. During form changes (e.g., druid shapeshifting) + // 2. When the spell comes from an item with negative charges, which means its effect should persist after the item is consumed or removed. + if (spellData.SpellTrigger == ITEM_SPELLTRIGGER_ON_USE && (form_change || spellData.SpellCharges < 0)) continue; - } } // check if it is valid spell @@ -7204,18 +7193,6 @@ void Player::ApplyEquipSpell(SpellInfo const* spellInfo, Item* item, bool apply, RemoveAurasDueToItemSpell(spellInfo->Id, item->GetGUID()); // un-apply all spells, not only at-equipped else RemoveAurasDueToSpell(spellInfo->Id); // un-apply spell (item set case) - - // Xinef: Remove Proc Spells and Summons - for (uint8 i = EFFECT_0; i < MAX_SPELL_EFFECTS; ++i) - { - // Xinef: Remove procs - if (spellInfo->Effects[i].TriggerSpell) - RemoveAurasDueToSpell(spellInfo->Effects[i].TriggerSpell); - - // Xinef: remove minions summoned by item - if (spellInfo->Effects[i].Effect == SPELL_EFFECT_SUMMON) - RemoveAllMinionsByEntry(spellInfo->Effects[i].MiscValue); - } } } From 6864748c9d5069a2a1adac5ec4510962b8e682ca Mon Sep 17 00:00:00 2001 From: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com> Date: Wed, 21 May 2025 18:27:20 -0400 Subject: [PATCH 14/17] fix(DB/SAI): Correct Fireball spell ID used by Wyrmcult Scouts and Zealots. (#22147) --- data/sql/updates/pending_db_world/wyrmcult-fireball.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 data/sql/updates/pending_db_world/wyrmcult-fireball.sql diff --git a/data/sql/updates/pending_db_world/wyrmcult-fireball.sql b/data/sql/updates/pending_db_world/wyrmcult-fireball.sql new file mode 100644 index 000000000..49a932376 --- /dev/null +++ b/data/sql/updates/pending_db_world/wyrmcult-fireball.sql @@ -0,0 +1 @@ +UPDATE `smart_scripts` SET `action_param1` = 9053 WHERE `source_type` = 0 AND `entryorguid` IN (21382, 21637) AND `id` IN (1, 2) AND `action_type` = 11; From a953710d3a562fb5a9c9a062584e75ce112d89b9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 21 May 2025 22:27:31 +0000 Subject: [PATCH 15/17] chore(DB): import pending files Referenced commit(s): 22b1d072c26133fbb6d53f8b867736c7b4cc9b93 --- .../wyrmcult-fireball.sql => db_world/2025_05_21_01.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/wyrmcult-fireball.sql => db_world/2025_05_21_01.sql} (77%) diff --git a/data/sql/updates/pending_db_world/wyrmcult-fireball.sql b/data/sql/updates/db_world/2025_05_21_01.sql similarity index 77% rename from data/sql/updates/pending_db_world/wyrmcult-fireball.sql rename to data/sql/updates/db_world/2025_05_21_01.sql index 49a932376..569408217 100644 --- a/data/sql/updates/pending_db_world/wyrmcult-fireball.sql +++ b/data/sql/updates/db_world/2025_05_21_01.sql @@ -1 +1,2 @@ +-- DB update 2025_05_21_00 -> 2025_05_21_01 UPDATE `smart_scripts` SET `action_param1` = 9053 WHERE `source_type` = 0 AND `entryorguid` IN (21382, 21637) AND `id` IN (1, 2) AND `action_type` = 11; From 1326c2752981dc76e43a8d85ccc0baf91614c06d Mon Sep 17 00:00:00 2001 From: Rocco Silipo <108557877+Rorschach91@users.noreply.github.com> Date: Thu, 22 May 2025 11:33:05 +0200 Subject: [PATCH 16/17] fix (DB/Creature) Kil'Jaeden Sinister Reflections now have 3 seconds of delay before attacking. (#22162) --- .../Sinister_Reflection_delay.sql | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 data/sql/updates/pending_db_world/Sinister_Reflection_delay.sql diff --git a/data/sql/updates/pending_db_world/Sinister_Reflection_delay.sql b/data/sql/updates/pending_db_world/Sinister_Reflection_delay.sql new file mode 100644 index 000000000..2a5b724ac --- /dev/null +++ b/data/sql/updates/pending_db_world/Sinister_Reflection_delay.sql @@ -0,0 +1,50 @@ + +-- Set Attack Delay on spawn and update comments. +UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 25708; + +DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 25708); +INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES +(25708, 0, 0, 1, 54, 0, 100, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Just Summoned - Set Reactstate Passive'), +(25708, 0, 1, 0, 61, 0, 100, 512, 0, 0, 0, 0, 0, 0, 134, 45785, 2, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Just Summoned - Invoker Cast \'Sinister Reflection Clone\''), +(25708, 0, 2, 3, 60, 0, 100, 1, 3000, 3000, 0, 0, 0, 0, 8, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Update - Set Reactstate Aggressive (No Repeat)'), +(25708, 0, 3, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 0, 21, 50, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Update - Start Attacking (No Repeat)'), +(25708, 0, 4, 0, 6, 0, 100, 512, 0, 0, 0, 0, 0, 0, 41, 2000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Just Died - Despawn In 2000 ms'), +(25708, 0, 5, 0, 38, 0, 100, 512, 1, 1, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 1 - Set Event Phase 1'), +(25708, 0, 6, 0, 38, 0, 100, 512, 1, 2, 0, 0, 0, 0, 22, 2, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 2 - Set Event Phase 2'), +(25708, 0, 7, 0, 38, 0, 100, 512, 1, 3, 0, 0, 0, 0, 22, 3, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 3 - Set Event Phase 3'), +(25708, 0, 8, 0, 38, 0, 100, 512, 1, 4, 0, 0, 0, 0, 22, 4, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 4 - Set Event Phase 4'), +(25708, 0, 9, 0, 38, 0, 100, 512, 1, 5, 0, 0, 0, 0, 22, 5, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 5 - Set Event Phase 5'), +(25708, 0, 10, 0, 38, 0, 100, 512, 1, 6, 0, 0, 0, 0, 22, 6, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 6 - Set Event Phase 6'), +(25708, 0, 11, 0, 38, 0, 100, 512, 1, 7, 0, 0, 0, 0, 22, 7, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 7 - Set Event Phase 7'), +(25708, 0, 12, 0, 38, 0, 100, 512, 1, 8, 0, 0, 0, 0, 22, 8, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 8 - Set Event Phase 8'), +(25708, 0, 13, 0, 38, 0, 100, 512, 1, 9, 0, 0, 0, 0, 22, 9, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 9 - Set Event Phase 9'), +(25708, 0, 14, 0, 38, 0, 100, 512, 1, 11, 0, 0, 0, 0, 22, 11, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - On Data Set 1 11 - Set Event Phase 11'), +(25708, 0, 15, 0, 0, 1, 100, 1, 0, 0, 0, 0, 0, 0, 11, 42459, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Dual Wield\' (Phase 1) (No Repeat)'), +(25708, 0, 16, 0, 0, 1, 100, 0, 1000, 5000, 9000, 13000, 0, 0, 11, 17207, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Whirlwind\' (Phase 1)'), +(25708, 0, 17, 0, 0, 2, 100, 0, 1000, 5000, 5000, 8000, 0, 0, 11, 38921, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Holy Shock\' (Phase 2)'), +(25708, 0, 18, 0, 0, 2, 100, 0, 3000, 10000, 15000, 25000, 0, 0, 11, 37369, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Hammer of Justice\' (Phase 2)'), +(25708, 0, 19, 0, 9, 4, 100, 0, 0, 0, 2000, 2000, 5, 30, 11, 16496, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 5-30 Range - Cast \'Shoot\' (Phase 3)'), +(25708, 0, 20, 0, 9, 4, 100, 0, 0, 0, 10000, 15000, 5, 30, 11, 48098, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 5-30 Range - Cast \'Multi-Shot\' (Phase 3)'), +(25708, 0, 21, 0, 9, 4, 100, 0, 0, 0, 15000, 25000, 0, 5, 11, 40652, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 0-5 Range - Cast \'Wing Clip\' (Phase 3)'), +(25708, 0, 22, 0, 9, 4, 100, 512, 0, 0, 0, 0, 0, 20, 21, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 0-20 Range - Disable Combat Movement (Phase 3)'), +(25708, 0, 23, 0, 9, 4, 100, 512, 0, 0, 0, 0, 25, 100, 21, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 25-100 Range - Enable Combat Movement (Phase 3)'), +(25708, 0, 24, 0, 0, 8, 100, 1, 0, 0, 0, 0, 0, 0, 11, 42459, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Dual Wield\' (Phase 4) (No Repeat)'), +(25708, 0, 25, 0, 0, 8, 100, 0, 1000, 3000, 4000, 6000, 0, 0, 11, 45897, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Hemorrhage\' (Phase 4)'), +(25708, 0, 26, 0, 0, 16, 100, 0, 1000, 4000, 4000, 5000, 0, 0, 11, 47077, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Holy Smite\' (Phase 5)'), +(25708, 0, 27, 0, 14, 16, 100, 0, 10000, 40, 10000, 15000, 0, 0, 11, 47079, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Friendly At 10000 Health - Cast \'Renew\' (Phase 5)'), +(25708, 0, 28, 0, 9, 16, 100, 512, 0, 0, 0, 0, 0, 20, 21, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 0-20 Range - Disable Combat Movement (Phase 5)'), +(25708, 0, 29, 0, 9, 16, 100, 512, 0, 0, 0, 0, 25, 100, 21, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 25-100 Range - Enable Combat Movement (Phase 5)'), +(25708, 0, 30, 0, 0, 32, 100, 1, 0, 0, 0, 0, 0, 0, 11, 42459, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Dual Wield\' (Phase 6) (No Repeat)'), +(25708, 0, 31, 0, 0, 32, 100, 0, 1000, 5000, 4000, 6000, 0, 0, 11, 58843, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Plague Strike\' (Phase 6)'), +(25708, 0, 32, 0, 0, 64, 100, 1, 0, 0, 0, 0, 0, 0, 11, 42459, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Dual Wield\' (Phase 7) (No Repeat)'), +(25708, 0, 33, 0, 0, 64, 100, 0, 1000, 5000, 6000, 10000, 0, 0, 11, 47071, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Earth Shock\' (Phase 7)'), +(25708, 0, 34, 0, 0, 128, 100, 0, 1000, 2000, 2000, 3000, 0, 0, 11, 47074, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Fireball\' (Phase 8)'), +(25708, 0, 35, 0, 9, 128, 100, 512, 0, 0, 0, 0, 0, 20, 21, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 0-20 Range - Disable Combat Movement (Phase 8)'), +(25708, 0, 36, 0, 9, 128, 100, 512, 0, 0, 0, 0, 25, 100, 21, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 25-100 Range - Enable Combat Movement (Phase 8)'), +(25708, 0, 37, 0, 0, 256, 100, 0, 1000, 1500, 1500, 2500, 0, 0, 11, 47076, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Shadow Bolt\' (Phase 9)'), +(25708, 0, 38, 0, 0, 256, 100, 0, 4000, 5000, 10000, 12000, 0, 0, 11, 46190, 0, 0, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Curse of Agony\' (Phase 9)'), +(25708, 0, 39, 0, 9, 256, 100, 512, 0, 0, 0, 0, 0, 20, 21, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 0-20 Range - Disable Combat Movement (Phase 9)'), +(25708, 0, 40, 0, 9, 256, 100, 512, 0, 0, 0, 0, 25, 100, 21, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 25-100 Range - Enable Combat Movement (Phase 9)'), +(25708, 0, 41, 0, 0, 1024, 100, 0, 1000, 2000, 2000, 3000, 0, 0, 11, 47072, 0, 0, 0, 0, 0, 5, 30, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - In Combat - Cast \'Moonfire\' (Phase 11)'), +(25708, 0, 42, 0, 9, 1024, 100, 512, 0, 0, 0, 0, 0, 20, 21, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 0-20 Range - Disable Combat Movement (Phase 11)'), +(25708, 0, 43, 0, 9, 1024, 100, 512, 0, 0, 0, 0, 25, 100, 21, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Sinister Reflection - Within 25-100 Range - Enable Combat Movement (Phase 11)'); From eced1b714ff405c782b3faf9d23232bc5cf4f71d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 22 May 2025 09:34:12 +0000 Subject: [PATCH 17/17] chore(DB): import pending files Referenced commit(s): 1326c2752981dc76e43a8d85ccc0baf91614c06d --- .../Sinister_Reflection_delay.sql => db_world/2025_05_22_00.sql} | 1 + 1 file changed, 1 insertion(+) rename data/sql/updates/{pending_db_world/Sinister_Reflection_delay.sql => db_world/2025_05_22_00.sql} (99%) diff --git a/data/sql/updates/pending_db_world/Sinister_Reflection_delay.sql b/data/sql/updates/db_world/2025_05_22_00.sql similarity index 99% rename from data/sql/updates/pending_db_world/Sinister_Reflection_delay.sql rename to data/sql/updates/db_world/2025_05_22_00.sql index 2a5b724ac..74413781b 100644 --- a/data/sql/updates/pending_db_world/Sinister_Reflection_delay.sql +++ b/data/sql/updates/db_world/2025_05_22_00.sql @@ -1,3 +1,4 @@ +-- DB update 2025_05_21_01 -> 2025_05_22_00 -- Set Attack Delay on spawn and update comments. UPDATE `creature_template` SET `AIName` = 'SmartAI' WHERE `entry` = 25708;