mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Merge pull request #11761 from MitchesD/misc
Scripts/Spells: fix logic fail in q9874
This commit is contained in:
@@ -0,0 +1 @@
|
||||
UPDATE `creature_template` SET `ScriptName`='' WHERE `entry`=18240;
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user