Core/Objects: Treat areas that have ParentAreaID filled but dont have IsSubzone flag as zones instead of areas
Port From (https://github.com/TrinityCore/TrinityCore/commit/0ce96adb7a8ae29a577cce268c8bd3742253cf69)
This commit is contained in:
@@ -331,9 +331,12 @@ namespace Game.Chat
|
||||
{
|
||||
Locale locale = session.GetSessionDbcLocale();
|
||||
areaName = area.AreaName[locale];
|
||||
var zone = CliDB.AreaTableStorage.LookupByKey(area.ParentAreaID);
|
||||
if (zone != null)
|
||||
zoneName = zone.AreaName[locale];
|
||||
if (area.GetFlags().HasFlag(AreaFlags.IsSubzone))
|
||||
{
|
||||
var zone = CliDB.AreaTableStorage.LookupByKey(area.ParentAreaID);
|
||||
if (zone != null)
|
||||
zoneName = zone.AreaName[locale];
|
||||
}
|
||||
}
|
||||
|
||||
Log.outCommand(session.GetAccountId(), $"Command: {cmdStr} [Player: {player.GetName()} ({player.GetGUID()}) (Account: {session.GetAccountId()}) " +
|
||||
|
||||
Reference in New Issue
Block a user