Item use check

This commit is contained in:
Yunfan Li
2024-02-14 01:01:28 +08:00
parent 21e9e2e2aa
commit a1903ad888
6 changed files with 26 additions and 7 deletions

View File

@@ -56,6 +56,9 @@ bool FollowAction::isUseful()
return false;
}
Formation* formation = AI_VALUE(Formation*, "formation");
if (!formation) {
return false;
}
std::string const target = formation->GetTargetName();
Unit* fTarget = nullptr;