fix: artefacts couldn't be claimed after last db caching optimizations

This commit is contained in:
Martin Ambrus
2017-11-25 19:26:19 +01:00
parent cca9feaded
commit 446e9b5f1d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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'])) {