summaryrefslogtreecommitdiff
path: root/src/Game/AI/Query
diff options
context:
space:
mode:
authorMichael Zhao <44533763+Pistonight@users.noreply.github.com>2026-05-31 14:26:22 -0700
committerGitHub <noreply@github.com>2026-05-31 14:26:22 -0700
commit77d70466690bf252d642dbdfa3fa689c00484ae0 (patch)
tree6327a04d99d525904d6dbf9f38674aa4201146c0 /src/Game/AI/Query
parentd10aef2b4fe55fa281572b24576f4cef8fef4c3e (diff)
parent3183601b597bff191f7805f0af18495554ede9e6 (diff)
Merge pull request #170 from Pistonight/fix/new_viking_mismatches
take new viking and update mismatches
Diffstat (limited to 'src/Game/AI/Query')
-rw-r--r--src/Game/AI/Query/queryIsCurrentMainFieldStage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Game/AI/Query/queryIsCurrentMainFieldStage.cpp b/src/Game/AI/Query/queryIsCurrentMainFieldStage.cpp
index ddd0aa88..879bfced 100644
--- a/src/Game/AI/Query/queryIsCurrentMainFieldStage.cpp
+++ b/src/Game/AI/Query/queryIsCurrentMainFieldStage.cpp
@@ -1,6 +1,6 @@
#include "Game/AI/Query/queryIsCurrentMainFieldStage.h"
#include <evfl/Query.h>
-#include "KingSystem/System/StageInfo.h"
+#include "Game/gameScene.h"
namespace uking::query {
@@ -9,7 +9,7 @@ IsCurrentMainFieldStage::IsCurrentMainFieldStage(const InitArg& arg) : ksys::act
IsCurrentMainFieldStage::~IsCurrentMainFieldStage() = default;
int IsCurrentMainFieldStage::doQuery() {
- return ksys::StageInfo::getCurrentMapType() == "MainField";
+ return GameScene::getCurrentMapType() == "MainField";
}
void IsCurrentMainFieldStage::loadParams(const evfl::QueryArg& arg) {}