Core/Handlers: Change/add some extra output in error-logs for PetHandler and SpellHandler
--HG-- branch : trunk
This commit is contained in:
@@ -68,16 +68,17 @@ void WorldSession::HandlePetAction(WorldPacket & recv_data)
|
|||||||
|
|
||||||
// used also for charmed creature
|
// used also for charmed creature
|
||||||
Unit* pet= ObjectAccessor::GetUnit(*_player, guid1);
|
Unit* pet= ObjectAccessor::GetUnit(*_player, guid1);
|
||||||
sLog->outDetail("HandlePetAction.Pet %u flag is %u, spellid is %u, target %u.", uint32(GUID_LOPART(guid1)), uint32(flag), spellid, uint32(GUID_LOPART(guid2)));
|
sLog->outDetail("HandlePetAction: Pet %u - flag: %u, spellid: %u, target: %u.", uint32(GUID_LOPART(guid1)), uint32(flag), spellid, uint32(GUID_LOPART(guid2)));
|
||||||
|
|
||||||
if (!pet)
|
if (!pet)
|
||||||
{
|
{
|
||||||
sLog->outError("Pet %u not exist.", uint32(GUID_LOPART(guid1)));
|
sLog->outError("HandlePetAction: Pet (GUID: %u) doesn't exist for player '%s'", uint32(GUID_LOPART(guid1)), GetPlayer()->GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pet != GetPlayer()->GetFirstControlled())
|
if (pet != GetPlayer()->GetFirstControlled())
|
||||||
{
|
{
|
||||||
sLog->outError("HandlePetAction.Pet %u isn't pet of player %s.", uint32(GUID_LOPART(guid1)), GetPlayer()->GetName());
|
sLog->outError("HandlePetAction: Pet (GUID: %u) does not belong to player '%s'", uint32(GUID_LOPART(guid1)), GetPlayer()->GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -468,13 +468,13 @@ void WorldSession::HandlePetCancelAuraOpcode(WorldPacket& recvPacket)
|
|||||||
|
|
||||||
if (!pet)
|
if (!pet)
|
||||||
{
|
{
|
||||||
sLog->outError("Pet %u not exist.", uint32(GUID_LOPART(guid)));
|
sLog->outError("HandlePetCancelAura: Attempt to cancel an aura for non-existant pet %u by player '%s'", uint32(GUID_LOPART(guid)), GetPlayer()->GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pet != GetPlayer()->GetGuardianPet() && pet != GetPlayer()->GetCharm())
|
if (pet != GetPlayer()->GetGuardianPet() && pet != GetPlayer()->GetCharm())
|
||||||
{
|
{
|
||||||
sLog->outError("HandlePetCancelAura.Pet %u isn't pet of player %s", uint32(GUID_LOPART(guid)),GetPlayer()->GetName());
|
sLog->outError("HandlePetCancelAura: Pet %u is not a pet of player '%s'", uint32(GUID_LOPART(guid)), GetPlayer()->GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user