Scripts/Spells: fix logic fail in q9874

This commit is contained in:
MitchesD
2014-03-21 23:35:19 +01:00
parent 9e99db035f
commit e40d4e6f16
2 changed files with 3 additions and 2 deletions

View File

@@ -0,0 +1 @@
UPDATE `creature_template` SET `ScriptName`='' WHERE `entry`=18240;

View File

@@ -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);