update field after loading AI (#1048)
make the bot know the current situation
This commit is contained in:
@@ -2175,6 +2175,7 @@ end
|
|||||||
function Player:loadAI(data)-- Load AI with params
|
function Player:loadAI(data)-- Load AI with params
|
||||||
self.bot=BOT.new(self,data)
|
self.bot=BOT.new(self,data)
|
||||||
self.bot.data=data
|
self.bot.data=data
|
||||||
|
self.bot:updateField()
|
||||||
end
|
end
|
||||||
--------------------------</Method>--------------------------
|
--------------------------</Method>--------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user