update field after loading AI (#1048)

make the bot know the current situation
This commit is contained in:
Imple Lee
2023-11-17 01:00:55 +08:00
committed by GitHub
parent 486eaeae52
commit 529b8d453d

View File

@@ -2175,6 +2175,7 @@ end
function Player:loadAI(data)-- Load AI with params
self.bot=BOT.new(self,data)
self.bot.data=data
self.bot:updateField()
end
--------------------------</Method>--------------------------