Core: Updated to 10.2.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/a4a4d010a0e329d4dbd82c0be5feab1fc06c8834)
This commit is contained in:
hondacrx
2024-02-06 13:07:17 -05:00
parent 1d13b710f9
commit d1ad9f662e
23 changed files with 1457 additions and 1337 deletions
+4 -14
View File
@@ -690,14 +690,9 @@ namespace Game.Chat
return false;
}
uint offset = (uint)(area.AreaBit / ActivePlayerData.ExploredZonesBits);
if (offset >= PlayerConst.ExploredZonesSize)
{
handler.SendSysMessage(CypherStrings.BadValue);
return false;
}
int offset = (area.AreaBit / PlayerConst.ExploredZonesBits);
uint val = 1u << (area.AreaBit % ActivePlayerData.ExploredZonesBits);
uint val = 1u << (area.AreaBit % PlayerConst.ExploredZonesBits);
playerTarget.RemoveExploredZones(offset, val);
handler.SendSysMessage(CypherStrings.UnexploreArea);
@@ -1670,14 +1665,9 @@ namespace Game.Chat
return false;
}
uint offset = (uint)(area.AreaBit / ActivePlayerData.ExploredZonesBits);
if (offset >= PlayerConst.ExploredZonesSize)
{
handler.SendSysMessage(CypherStrings.BadValue);
return false;
}
int offset = (area.AreaBit / PlayerConst.ExploredZonesBits);
ulong val = 1ul << (area.AreaBit % ActivePlayerData.ExploredZonesBits);
ulong val = 1ul << (area.AreaBit % PlayerConst.ExploredZonesBits);
playerTarget.AddExploredZones(offset, val);
handler.SendSysMessage(CypherStrings.ExploreArea);