aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-09-10 01:13:35 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-26 15:39:00 +0100
commit1bb998f4068ac2b0612c3edadbe8af07430071f0 (patch)
tree7cc78800015084f69a8a6e828e8fbb88b2db526d
parent117b45d76883244c3452be175faa2d4dcd722390 (diff)
Script/Quest: replace wrong test spell used for quest "Red Snapper - Very Tasty!" with actual summoning.
The spell does not appear in sniffs, and the summoned NPC's spawn time was far too short to be appropriate (15 seconds). (cherry picked from commit 0479f08c3c07c4de3af4d2293b80d690e4bdf646) Script/Quest: fix and use proper serverside summon spell for quest "Red Snapper - Very Tasty!". (cherry picked from commit 2f493430c9f029867eb1699c54de853e06e850d9)
-rw-r--r--sql/updates/world/master/2017_02_26_05_world_2016_09_10_00_world.sql2
-rw-r--r--src/server/scripts/Spells/spell_quest.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/sql/updates/world/master/2017_02_26_05_world_2016_09_10_00_world.sql b/sql/updates/world/master/2017_02_26_05_world_2016_09_10_00_world.sql
new file mode 100644
index 00000000000..106c46b7f42
--- /dev/null
+++ b/sql/updates/world/master/2017_02_26_05_world_2016_09_10_00_world.sql
@@ -0,0 +1,2 @@
+--
+-- UPDATE `spell_dbc` SET `Effect1`=28, `EffectMiscValueB1`=64 WHERE `Id`=29869;
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index 9bcc8759c2a..a68c2bab31b 100644
--- a/src/server/scripts/Spells/spell_quest.cpp
+++ b/src/server/scripts/Spells/spell_quest.cpp
@@ -1078,9 +1078,8 @@ class spell_q14112_14145_chum_the_water: public SpellScriptLoader
enum RedSnapperVeryTasty
{
ITEM_RED_SNAPPER = 23614,
-
SPELL_CAST_NET = 29866,
- SPELL_NEW_SUMMON_TEST = 49214
+ SPELL_FISHED_UP_MURLOC = 29869
};
class spell_q9452_cast_net: public SpellScriptLoader
@@ -1103,7 +1102,7 @@ class spell_q9452_cast_net: public SpellScriptLoader
if (roll_chance_i(66))
caster->AddItem(ITEM_RED_SNAPPER, 1);
else
- caster->CastSpell(caster, SPELL_NEW_SUMMON_TEST, true);
+ caster->CastSpell(caster, SPELL_FISHED_UP_MURLOC, true);
}
void HandleActiveObject(SpellEffIndex effIndex)