From e40d4e6f1680128e3bf7cc4ca0c1c7dbf1074deb Mon Sep 17 00:00:00 2001 From: MitchesD Date: Fri, 21 Mar 2014 23:35:19 +0100 Subject: Scripts/Spells: fix logic fail in q9874 --- sql/updates/world/2014_03_22_00_world_creature_template.sql | 1 + src/server/scripts/Spells/spell_quest.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 sql/updates/world/2014_03_22_00_world_creature_template.sql diff --git a/sql/updates/world/2014_03_22_00_world_creature_template.sql b/sql/updates/world/2014_03_22_00_world_creature_template.sql new file mode 100644 index 00000000000..21409b157c2 --- /dev/null +++ b/sql/updates/world/2014_03_22_00_world_creature_template.sql @@ -0,0 +1 @@ +UPDATE `creature_template` SET `ScriptName`='' WHERE `entry`=18240; diff --git a/src/server/scripts/Spells/spell_quest.cpp b/src/server/scripts/Spells/spell_quest.cpp index cdf32bd94d5..d1b32570795 100644 --- a/src/server/scripts/Spells/spell_quest.cpp +++ b/src/server/scripts/Spells/spell_quest.cpp @@ -903,7 +903,7 @@ class spell_q12659_ahunaes_knife : public SpellScriptLoader enum StoppingTheSpread { NPC_VILLAGER_KILL_CREDIT = 18240, - SPELL_FLAMES = 39199, + SPELL_FLAMES = 39199 }; class spell_q9874_liquid_fire : public SpellScriptLoader @@ -926,7 +926,7 @@ class spell_q9874_liquid_fire : public SpellScriptLoader { Player* caster = GetCaster()->ToPlayer(); if (Creature* target = GetHitCreature()) - if (target && target->HasAura(SPELL_FLAMES)) + if (target && !target->HasAura(SPELL_FLAMES)) { caster->KilledMonsterCredit(NPC_VILLAGER_KILL_CREDIT, 0); target->CastSpell(target, SPELL_FLAMES, true); -- cgit v1.2.3