From 56982f9ebabd90acbf0e066d3ec70a3f2d16dfda Mon Sep 17 00:00:00 2001 From: UltraNix <80540499+UltraNix@users.noreply.github.com> Date: Sun, 8 May 2022 10:19:26 +0200 Subject: [PATCH] fix(DB/Quest): Krolmir, Hammer of Storms. (#11661) * fix(DB/Quest): Krolmir, Hammer of Storms. Fixes #11637 * Buildfix. * Update src/server/game/Spells/SpellInfoCorrections.cpp Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> --- .../updates/pending_db_world/rev_1651915141793572500.sql | 9 +++++++++ src/server/game/Spells/SpellInfoCorrections.cpp | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 data/sql/updates/pending_db_world/rev_1651915141793572500.sql diff --git a/data/sql/updates/pending_db_world/rev_1651915141793572500.sql b/data/sql/updates/pending_db_world/rev_1651915141793572500.sql new file mode 100644 index 000000000..cb2e412ba --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1651915141793572500.sql @@ -0,0 +1,9 @@ +-- +UPDATE `smart_scripts` SET `action_type`=85 WHERE `entryorguid`=30105 AND `source_type`=0 AND `id`=1; +DELETE FROM `smart_scripts` WHERE `entryorguid`=30331 AND `source_type`=0; +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`, `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 +(30331,0,0,1,27,0,100,512,0,0,0,0,0,53,1,30331,0,0,0,0,1,0,0,0,0,0,0,0,0,'Jokkum - On Passenger boarded - Start WP'), +(30331,0,1,2,61,0,100,512,0,0,0,0,0,1,0,0,0,0,0,0,23,0,0,0,0,0,0,0,0,'Jokkum - On Passenger boarded - Talk1'), +(30331,0,2,0,61,0,100,512,0,0,0,0,0,18,768,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Jokkum - On Passenger boarded - Set ImmuneNPC/PC'), +(30331,0,3,4,40,0,100,512,30,30331,0,0,0,28,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Jokkum - On way pont 22 - Remove all auras'), +(30331,0,4,0,61,0,100,512,0,0,0,0,0,80,3033100,0,0,0,0,0,1,0,0,0,0,0,0,0,0,'Jokkum - On way pont 22 - Actionlist'); diff --git a/src/server/game/Spells/SpellInfoCorrections.cpp b/src/server/game/Spells/SpellInfoCorrections.cpp index 5a68ba402..cf630937c 100644 --- a/src/server/game/Spells/SpellInfoCorrections.cpp +++ b/src/server/game/Spells/SpellInfoCorrections.cpp @@ -3672,8 +3672,8 @@ void SpellMgr::LoadSpellInfoCorrections() spellInfo->Effects[EFFECT_0].BasePoints = 0; }); - // Krolmir, Hammer of Storms (13010) - ApplySpellFix({ 56606, 56541 }, [](SpellInfo* spellInfo) + // Riding Jokkum + ApplySpellFix({ 56606 }, [](SpellInfo* spellInfo) { spellInfo->Effects[EFFECT_0].BasePoints = 1; });