mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 18:44:21 +00:00
Allow Capital to capture artefact
This commit is contained in:
@@ -3303,13 +3303,14 @@ class MYSQL_DB {
|
||||
$form->addError("error","Max num. of great/unique artefacts. Your hero could not claim the artefact and");
|
||||
return FALSE;
|
||||
}
|
||||
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;
|
||||
}
|
||||
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","Your level treasury is low. Your hero could not claim the artefact");
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user