Allow Capital to capture artefact

This commit is contained in:
KFCSpike
2014-01-04 13:40:38 +00:00
parent 2a0703400d
commit 17d042aa22
+6 -5
View File
@@ -3304,12 +3304,13 @@ class MYSQL_DB {
return FALSE; return FALSE;
} }
if (($type == 1 && ($villageartifact || $accountartifact)) || (($type == 2 || $type == 3)&& $accountartifact)){ if (($type == 1 && ($villageartifact || $accountartifact)) || (($type == 2 || $type == 3)&& $accountartifact)){
if($this->getVillageField($from,"capital")==1) {
$form->addError("error","Ancient Construction Plan cannot kept in capital village");
return FALSE;
}else{
return TRUE; 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 { } else {
$form->addError("error","Your level treasury is low. Your hero could not claim the artefact"); $form->addError("error","Your level treasury is low. Your hero could not claim the artefact");
return FALSE; return FALSE;