mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-14 08:36:09 +00:00
+15
-10
@@ -2405,16 +2405,21 @@ if($data['t11'] > 0){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$artifact = $database->getOwnArtefactInfo($data['to']);
|
global $form;
|
||||||
if ($artifact['vref'] == $data['to']) {
|
if ($heroxp == 0) {
|
||||||
if ($database->canClaimArtifact($data['from'],$artifact['vref'],$artifact['size'],$artifact['type'])) {
|
$xp=" no XP from the battle";
|
||||||
$database->claimArtefact($data['from'],$data['to'],$database->getVillageField($data['from'],"owner"));
|
} else {
|
||||||
$info_chief = $hero_pic.",Your hero is carrying home a artefact and gained ".$heroxp." XP from the battle";
|
$xp=" gained ".$heroxp." XP from the battle";
|
||||||
} else {
|
}
|
||||||
$info_chief = $hero_pic.",Your hero could not claim the artefact and gained ".$heroxp." XP from the battle";
|
$artifact = $database->getOwnArtefactInfo($data['to']);
|
||||||
|
if (!empty($artifact)) {
|
||||||
}
|
if ($database->canClaimArtifact($data['from'],$artifact['vref'],$artifact['size'],$artifact['type'])) {
|
||||||
}
|
$database->claimArtefact($data['from'],$data['to'],$database->getVillageField($data['from'],"owner"));
|
||||||
|
$info_chief = $hero_pic.",Your hero is carrying home a artefact and".$xp;
|
||||||
|
} else {
|
||||||
|
$info_chief = $hero_pic.",".$form->getError("error").$xp;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user