Fixed some problems with pets, port from tc1, by krz, thx Frankir.
--HG-- branch : trunk
This commit is contained in:
1 parent
e031df23fc
commit
706718b28c
4 files changed
+18
-3
No files matched your search
@@ -58,6 +58,9 @@ void WorldSession::HandlePetAction( WorldPacket & recv_data )
|
||||
sLog.outError("HandlePetAction.Pet %u isn't pet of player %s.", uint32(GUID_LOPART(guid1)), GetPlayer()->GetName() );
|
||||
return;
|
||||
}
|
||||
|
||||
if (!pet->isAlive())
|
||||
return;
|
||||
|
||||
//TODO: allow control charmed player?
|
||||
if(pet->GetTypeId() == TYPEID_PLAYER && !(flag == ACT_COMMAND && spellid == COMMAND_ATTACK))
|
||||
|
||||
Reference in new issue
Block a user