aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKillyana <morphone1@gmail.com>2020-01-27 02:49:36 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-20 23:52:52 +0100
commitac4df1d8564e7691e538ce0dfd56287ed11ec714 (patch)
tree7fa459fe1f2c32517c74606ebd90c864bc74517f
parenta463e7f1bd08bb7941aea7572943bf570db67091 (diff)
Spell/Script: Fix Prison chain for Unworty Initiate
Closes #24089 The spell 54613 is not used in the game (cherry picked from commit 0ec2a5fd745c7bd12e96f1870689ce52751b467a)
-rw-r--r--sql/updates/world/master/2021_12_20_35_world_2020_01_27_00_world.sql4
-rw-r--r--src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/sql/updates/world/master/2021_12_20_35_world_2020_01_27_00_world.sql b/sql/updates/world/master/2021_12_20_35_world_2020_01_27_00_world.sql
new file mode 100644
index 00000000000..8ec78bc039e
--- /dev/null
+++ b/sql/updates/world/master/2021_12_20_35_world_2020_01_27_00_world.sql
@@ -0,0 +1,4 @@
+--
+DELETE FROM `disables` WHERE `sourceType`=0 AND `entry` IN (54612);
+INSERT INTO `disables` (`sourceType`, `entry`, `flags`, `params_0`, `params_1`, `comment`) VALUES
+(0, 54612, 64, '', '', 'Chained Peasant (Chest) LOS');
diff --git a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
index 517882927e0..6b6343e9830 100644
--- a/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
+++ b/src/server/scripts/EasternKingdoms/ScarletEnclave/chapter1.cpp
@@ -43,8 +43,7 @@
enum UnworthyInitiate
{
- SPELL_SOUL_PRISON_CHAIN_SELF = 54612,
- SPELL_SOUL_PRISON_CHAIN = 54613,
+ SPELL_SOUL_PRISON_CHAIN = 54612,
SPELL_DK_INITIATE_VISUAL = 51519,
SPELL_ICY_TOUCH = 52372,
@@ -170,7 +169,6 @@ public:
phase = PHASE_TO_EQUIP;
me->SetStandState(UNIT_STAND_STATE_STAND);
- me->RemoveAurasDueToSpell(SPELL_SOUL_PRISON_CHAIN_SELF);
me->RemoveAurasDueToSpell(SPELL_SOUL_PRISON_CHAIN);
float z;