Core/Misc: Fix static analysis issues
This commit is contained in:
1 parent
21cad46097
commit
5efa54d11c
12 files changed
+27
-27
No files matched your search
@@ -928,7 +928,7 @@ class spell_q9874_liquid_fire : public SpellScriptLoader
|
||||
{
|
||||
Player* caster = GetCaster()->ToPlayer();
|
||||
if (Creature* target = GetHitCreature())
|
||||
if (target && !target->HasAura(SPELL_FLAMES))
|
||||
if (!target->HasAura(SPELL_FLAMES))
|
||||
{
|
||||
caster->KilledMonsterCredit(NPC_VILLAGER_KILL_CREDIT);
|
||||
target->CastSpell(target, SPELL_FLAMES, true);
|
||||
|
||||
Reference in new issue
Block a user