From 388ce03ef9f941eb493f7c90a57e3594c98a14d4 Mon Sep 17 00:00:00 2001 From: Shadow Date: Mon, 9 Dec 2013 17:52:10 +0200 Subject: [PATCH] Update db_MYSQL.php --- GameEngine/Database/db_MYSQL.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php index 8fa0b8be..c23bdb93 100644 --- a/GameEngine/Database/db_MYSQL.php +++ b/GameEngine/Database/db_MYSQL.php @@ -3307,9 +3307,14 @@ class MYSQL_DB { return FALSE; } if (($type == 1 && ($villageartifact || $accountartifact)) || (($type == 2 || $type == 3)&& $accountartifact)) { - return TRUE; + if($this->getVillageField($from,"capital")==1) { + $form->addError("error","Ancient Construction Plan cannot kept in capital village"); + return FALSE; + }else{ + return TRUE; + } } else { - $form->addError("error","Level treasury is low. Your hero could not claim the artefact and"); + $form->addError("error","Your level treasury is low. Your hero could not claim the artefact"); return FALSE; } } else {