Fix build

This commit is contained in:
ShinDarth
2016-08-15 13:28:53 +02:00
parent cdc96a7269
commit f81ec2bee4

View File

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