From f7d8da5a41cf112ac99d1d6edfe0911ce261ccd9 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Mon, 6 Nov 2017 18:49:03 +0100 Subject: [PATCH] fix: Master builder can build above warehouse/granary requirements Closes #290 --- GameEngine/Building.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Building.php b/GameEngine/Building.php index f82ea30f..ff931a1b 100755 --- a/GameEngine/Building.php +++ b/GameEngine/Building.php @@ -784,7 +784,7 @@ class Building { if ($jobs['type'] != 25 AND $jobs['type'] != 26 AND $jobs['type'] != 40) { $resource = $this->resourceRequired($jobs['field'],$jobs['type']); // master builder involved - if ($jobs['master'] != 0) { + if ($jobs['master'] != 0 && $this->meetRequirement($jobs['field'])) { // don't allow master builder to build anything // if we only have 2 gold, since that would take us to -1 gold if ($session->gold > 2) {