Fix quest Screecher Spirits.

Closes https://github.com/vmangos/core/issues/1063
This commit is contained in:
ratkosrb
2021-02-19 13:48:27 +02:00
parent dd8926f33e
commit d26eafc377
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -5662,7 +5662,7 @@ void WorldObject::PrintCooldownList(ChatHandler& chat) const
}
// function based on function Unit::CanAttack from 13850 client
bool WorldObject::IsValidAttackTarget(Unit const* target) const
bool WorldObject::IsValidAttackTarget(Unit const* target, bool checkAlive) const
{
ASSERT(target);
@@ -5673,7 +5673,7 @@ bool WorldObject::IsValidAttackTarget(Unit const* target) const
if (FindMap() != target->FindMap())
return false;
if (!target->IsTargetable(true, IsCharmerOrOwnerPlayerOrPlayerItself()))
if (!target->IsTargetable(true, IsCharmerOrOwnerPlayerOrPlayerItself(), false, checkAlive))
return false;
Unit const* pThisUnit = ToUnit();