diff options
author | ShinDarth <borzifrancesco@gmail.com> | 2016-08-15 13:28:53 +0200 |
---|---|---|
committer | ShinDarth <borzifrancesco@gmail.com> | 2016-08-15 13:28:53 +0200 |
commit | f81ec2bee41369fd1c54f37caedad462418b1436 (patch) | |
tree | 7568362d2aa627c9db3daf6b9fa0ae4a484245f5 /src | |
parent | cdc96a7269011b2f3471e4b8d8a979949ce10e34 (diff) |
Fix build
Diffstat (limited to 'src')
-rw-r--r-- | src/scripts/Spells/spell_dk.cpp | 3 |
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) |