diff options
author | MitchesD <majklprofik@seznam.cz> | 2014-03-21 23:35:19 +0100 |
---|---|---|
committer | MitchesD <majklprofik@seznam.cz> | 2014-03-22 10:04:43 +0100 |
commit | e40d4e6f1680128e3bf7cc4ca0c1c7dbf1074deb (patch) | |
tree | 2c4bfc38fa0c8c8d9d7dcb639a7469403db8d336 | |
parent | 9e99db035f554c8f4954e025f599ef752c1f4e01 (diff) |
Scripts/Spells: fix logic fail in q9874
-rw-r--r-- | sql/updates/world/2014_03_22_00_world_creature_template.sql | 1 | ||||
-rw-r--r-- | src/server/scripts/Spells/spell_quest.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
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); |