From 9b89458cc8d2933c10a3ec299d977bf83e9f2845 Mon Sep 17 00:00:00 2001 From: SnapperRy Date: Sat, 10 Sep 2016 02:20:06 +0200 Subject: [PATCH] Script/Quest: fix and use proper serverside summon spell for quest "Red Snapper - Very Tasty!". --- sql/updates/world/3.3.5/2016_09_10_00_world.sql | 2 ++ src/server/scripts/Spells/spell_quest.cpp | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 sql/updates/world/3.3.5/2016_09_10_00_world.sql diff --git a/sql/updates/world/3.3.5/2016_09_10_00_world.sql b/sql/updates/world/3.3.5/2016_09_10_00_world.sql new file mode 100644 index 00000000000..5bd420007f7 --- /dev/null +++ b/sql/updates/world/3.3.5/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 0246056874e..e67bac4a992 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -1079,7 +1079,7 @@ enum RedSnapperVeryTasty { ITEM_RED_SNAPPER = 23614, SPELL_CAST_NET = 29866, - NPC_ANGRY_MURLOC = 17102 + SPELL_FISHED_UP_MURLOC = 29869 }; class spell_q9452_cast_net: public SpellScriptLoader @@ -1102,8 +1102,7 @@ class spell_q9452_cast_net: public SpellScriptLoader if (roll_chance_i(66)) caster->AddItem(ITEM_RED_SNAPPER, 1); else - if (Creature* murloc = caster->SummonCreature(NPC_ANGRY_MURLOC, caster->GetPositionX()+5, caster->GetPositionY()+5, caster->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, MINUTE * IN_MILLISECONDS)) - murloc->AI()->AttackStart(caster); + caster->CastSpell(caster, SPELL_FISHED_UP_MURLOC, true); } void HandleActiveObject(SpellEffIndex effIndex)