aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSnapperRy <snapperryen@gmail.com>2016-09-10 02:20:06 +0200
committerSnapperRy <snapperryen@gmail.com>2016-09-10 02:30:22 +0200
commit2f493430c9f029867eb1699c54de853e06e850d9 (patch)
tree3d9b55cb24e941e05e88722fb3102f7a66744dbb /src
parent0479f08c3c07c4de3af4d2293b80d690e4bdf646 (diff)
Script/Quest: fix and use proper serverside summon spell for quest "Red Snapper - Very Tasty!".
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_quest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp
index 8db4f26b55e..2eca20199b4 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)