*Let pet attack target not in LOS.
--HG-- branch : trunk
This commit is contained in:
@@ -115,8 +115,8 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
|
|||||||
if(GetPlayer()->IsFriendlyTo(TargetUnit))
|
if(GetPlayer()->IsFriendlyTo(TargetUnit))
|
||||||
return;
|
return;
|
||||||
// Not let attack through obstructions
|
// Not let attack through obstructions
|
||||||
if(!pet->IsWithinLOSInMap(TargetUnit))
|
//if(!pet->IsWithinLOSInMap(TargetUnit))
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
if(pet->GetTypeId() != TYPEID_PLAYER)
|
if(pet->GetTypeId() != TYPEID_PLAYER)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user