From 0ce96adb7a8ae29a577cce268c8bd3742253cf69 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 6 Oct 2023 20:22:14 +0200 Subject: Core/Objects: Treat areas that have ParentAreaID filled but dont have IsSubzone flag as zones instead of areas --- src/server/game/Conditions/ConditionMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/Conditions') diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 7e35dd31e03..3d049d00b1b 100644 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -2266,7 +2266,7 @@ bool ConditionMgr::isConditionTypeValid(Condition* cond) const return false; } - if (areaEntry->ParentAreaID != 0) + if (areaEntry->ParentAreaID != 0 && areaEntry->GetFlags().HasFlag(AreaFlags::IsSubzone)) { TC_LOG_ERROR("sql.sql", "{} requires to be in area ({}) which is a subzone but zone expected, skipped.", cond->ToString(true), cond->ConditionValue1); return false; -- cgit v1.2.3