summaryrefslogtreecommitdiff
path: root/src/scripts/Spells/spell_dk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/Spells/spell_dk.cpp')
-rw-r--r--src/scripts/Spells/spell_dk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scripts/Spells/spell_dk.cpp b/src/scripts/Spells/spell_dk.cpp
index 62cc45961e..cd81f36888 100644
--- a/src/scripts/Spells/spell_dk.cpp
+++ b/src/scripts/Spells/spell_dk.cpp
@@ -1319,7 +1319,7 @@ public:
{
if (Unit* target = obj->ToUnit())
{
- if ((target->isDead() || (_allowGhoul && (target->GetEntry() == NPC_DK_GHOUL && target->GetOwnerGUID() == _casterGUID))
+ if ((target->isDead() || (_allowGhoul && target->GetEntry() == NPC_DK_GHOUL && target->GetOwnerGUID() == _casterGUID))
&& !(target->GetCreatureTypeMask() & CREATURE_TYPEMASK_MECHANICAL_OR_ELEMENTAL)
&& target->GetDisplayId() == target->GetNativeDisplayId())
return false;
@@ -1330,6 +1330,7 @@ public:
private:
uint64 _casterGUID;
+ bool _allowGhoul;
};
// 49158 - Corpse Explosion (51325, 51326, 51327, 51328)