*Update to Mangos 6856. Source: Mangos.
--HG-- branch : trunk
This commit is contained in:
1 parent
1d6e33add4
commit
e26beb36c2
17 files changed
+274
-164
No files matched your search
@@ -112,7 +112,10 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
|
||||
return;
|
||||
|
||||
// not let attack friendly units.
|
||||
if( GetPlayer()->IsFriendlyTo(TargetUnit))
|
||||
if(GetPlayer()->IsFriendlyTo(TargetUnit))
|
||||
return;
|
||||
// Not let attack through obstructions
|
||||
if(!pet->IsWithinLOSInMap(TargetUnit))
|
||||
return;
|
||||
|
||||
if(pet->GetTypeId() != TYPEID_PLAYER)
|
||||
|
||||
Reference in new issue
Block a user