Core: Updated to 11.1.0
Port From (https://github.com/TrinityCore/TrinityCore/commit/23624ed75abc8cbb77bb2e24a08e0836e4c41db5)
This commit is contained in:
@@ -354,9 +354,15 @@ namespace Game
|
||||
[WorldPacketHandler(ClientOpcodes.SetPetSlot)]
|
||||
void HandleSetPetSlot(SetPetSlot setPetSlot)
|
||||
{
|
||||
if (!CheckStableMaster(setPetSlot.StableMaster) || setPetSlot.DestSlot >= (byte)PetSaveMode.LastStableSlot)
|
||||
if (!CheckStableMaster(setPetSlot.StableMaster))
|
||||
{
|
||||
SendPetStableResult(StableResult.InternalError);
|
||||
SendPetStableResult(StableResult.NotStableMaster);
|
||||
return;
|
||||
}
|
||||
|
||||
if (setPetSlot.DestSlot >= (byte)PetSaveMode.LastStableSlot)
|
||||
{
|
||||
SendPetStableResult(StableResult.InvalidSlot);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user