Fix quest Screecher Spirits.
Closes https://github.com/vmangos/core/issues/1063
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user