From 7d3809330b5f7104b98a400edc87754e2f4f536b Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Mon, 16 May 2022 17:07:55 +0200 Subject: [PATCH] fix(DB/Quest): Fixed quest "Krolmir, Hammer of Storms". (#11742) Fixes #11728 --- .../updates/pending_db_world/rev_1652543986104470300.sql | 4 ++++ src/server/game/Spells/SpellInfoCorrections.cpp | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1652543986104470300.sql diff --git a/data/sql/updates/pending_db_world/rev_1652543986104470300.sql b/data/sql/updates/pending_db_world/rev_1652543986104470300.sql new file mode 100644 index 000000000..7dc551a4a --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1652543986104470300.sql @@ -0,0 +1,4 @@ +-- +DELETE FROM `smart_scripts` WHERE `entryorguid`=30331 AND `source_type`=0 AND `id`=5; +INSERT INTO `smart_scripts` VALUES +(30331,0,5,0,54,0,100,0,0,0,0,0,0,85,56606,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Jokkum - on just summoned - Cast Riding Jokkum'); diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index 98dbaf6e4..65fe6641c 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -4270,6 +4270,12 @@ void SpellMgr::LoadSpellInfoCorrections() spellInfo->DurationEntry = sSpellDurationStore.LookupEntry(21); }); + // Jokkum Summon + ApplySpellFix({ 56541 }, [](SpellInfo* spellInfo) + { + spellInfo->Effects[EFFECT_0].MiscValueB = 844; + }); + for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i) { SpellInfo* spellInfo = mSpellInfoMap[i];