Core: Updated to 11.1.0
Port From (https://github.com/TrinityCore/TrinityCore/commit/23624ed75abc8cbb77bb2e24a08e0836e4c41db5)
This commit is contained in:
@@ -995,6 +995,7 @@ namespace Game
|
||||
|
||||
AuctionHelloResponse auctionHelloResponse = new();
|
||||
auctionHelloResponse.Auctioneer = guid;
|
||||
auctionHelloResponse.AuctionHouseID = ahEntry.Id;
|
||||
auctionHelloResponse.OpenForBusiness = true;
|
||||
SendPacket(auctionHelloResponse);
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace Game
|
||||
foreach (var requirement in Global.ObjectMgr.GetRaceUnlockRequirements())
|
||||
{
|
||||
EnumCharactersResult.RaceUnlock raceUnlock = new();
|
||||
raceUnlock.RaceID = requirement.Key;
|
||||
raceUnlock.RaceID = (sbyte)requirement.Key;
|
||||
raceUnlock.HasUnlockedLicense = (byte)GetAccountExpansion() >= requirement.Value.Expansion;
|
||||
raceUnlock.HasUnlockedAchievement = requirement.Value.AchievementId != 0 && (WorldConfig.GetBoolValue(WorldCfg.CharacterCreatingDisableAlliedRaceAchievementRequirement)
|
||||
/* || HasAccountAchievement(requirement.second.AchievementId)*/);
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace Game
|
||||
break;
|
||||
}
|
||||
case ItemCollectionType.TransmogSetFavorite:
|
||||
case ItemCollectionType.WarbandScene:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@@ -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