From 67fef42c4d35dfe9f52a79e6cb1258cae4af394c Mon Sep 17 00:00:00 2001 From: Soupdoop Date: Tue, 12 Jan 2016 08:29:44 -0500 Subject: [PATCH] Small Bug Fix added a core delay check before trying to build --- RobotPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RobotPlayer.java b/RobotPlayer.java index d8855c3..f59d410 100644 --- a/RobotPlayer.java +++ b/RobotPlayer.java @@ -274,7 +274,7 @@ public void run(){ FancyMessage.sendMessage(1, 1, 1, 3); } RobotType type = RESOURCE_FUNCTIONS.chooseRobotType(); - if(RESOURCE_FUNCTIONS.tryBuild(type)){ //See function in RESOURCE_FUNCTIONS to know what it does + if(rc.isCoreReady() && RESOURCE_FUNCTIONS.tryBuild(type)){ //See function in RESOURCE_FUNCTIONS to know what it does //After building scout, waits a turn, then signals it the location, so it has a good idea of where base is //Also signals the scout which type to become Clock.yield();