diff options
author | SnapperRy <snapperryen@gmail.com> | 2016-09-10 01:13:35 +0200 |
---|---|---|
committer | SnapperRy <snapperryen@gmail.com> | 2016-09-10 01:13:35 +0200 |
commit | 0479f08c3c07c4de3af4d2293b80d690e4bdf646 (patch) | |
tree | ce00f5c3e21cfd1add83495f359c523be56194fe | |
parent | c52566a8881bdcd1cc33279e1a10621648cb664e (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).
-rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index b8c55c0ab64..8db4f26b55e 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 + NPC_ANGRY_MURLOC = 17102 }; class spell_q9452_cast_net: public SpellScriptLoader @@ -1103,7 +1102,8 @@ 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); + 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); } void HandleActiveObject(SpellEffIndex effIndex) |