mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-15 09:06:08 +00:00
fix: artefacts couldn't be claimed after last db caching optimizations
This commit is contained in:
@@ -2656,7 +2656,7 @@ class Automation {
|
||||
} else {
|
||||
$xp=" gained ".$heroxp." XP from the battle";
|
||||
}
|
||||
$artifact = $database->getOwnArtefactInfo($data['to']);
|
||||
$artifact = reset($database->getOwnArtefactInfo($data['to']));
|
||||
if (!empty($artifact)) {
|
||||
if ($type=='3') {
|
||||
if ($database->canClaimArtifact($data['from'],$artifact['vref'],$artifact['size'],$artifact['type'])) {
|
||||
|
||||
Reference in New Issue
Block a user