*Let pet attack target not in LOS.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-06 20:05:00 -06:00
parent 2823ce5858
commit 2e37eac4c5
+2 -2
View File
@@ -115,8 +115,8 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
if(GetPlayer()->IsFriendlyTo(TargetUnit))
return;
// Not let attack through obstructions
if(!pet->IsWithinLOSInMap(TargetUnit))
return;
//if(!pet->IsWithinLOSInMap(TargetUnit))
// return;
if(pet->GetTypeId() != TYPEID_PLAYER)
{