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:
@@ -1841,7 +1841,7 @@ namespace Game.AI
|
||||
return false;
|
||||
}
|
||||
|
||||
if (areaEntry.ParentAreaID != 0)
|
||||
if (areaEntry.ParentAreaID != 0 && areaEntry.GetFlags().HasFlag(AreaFlags.IsSubzone))
|
||||
{
|
||||
Log.outError(LogFilter.Sql, $"SmartAIMgr: {e} uses subzone (ID: {e.Action.overrideLight.zoneId}) instead of zone, skipped.");
|
||||
return false;
|
||||
@@ -1870,7 +1870,7 @@ namespace Game.AI
|
||||
return false;
|
||||
}
|
||||
|
||||
if (areaEntry.ParentAreaID != 0)
|
||||
if (areaEntry.ParentAreaID != 0 && areaEntry.GetFlags().HasFlag(AreaFlags.IsSubzone))
|
||||
{
|
||||
Log.outError(LogFilter.Sql, $"SmartAIMgr: {e} uses subzone (ID: {e.Action.overrideWeather.zoneId}) instead of zone, skipped.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user