mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-31 15:47:14 +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 {
|
} else {
|
||||||
$xp=" gained ".$heroxp." XP from the battle";
|
$xp=" gained ".$heroxp." XP from the battle";
|
||||||
}
|
}
|
||||||
$artifact = $database->getOwnArtefactInfo($data['to']);
|
$artifact = reset($database->getOwnArtefactInfo($data['to']));
|
||||||
if (!empty($artifact)) {
|
if (!empty($artifact)) {
|
||||||
if ($type=='3') {
|
if ($type=='3') {
|
||||||
if ($database->canClaimArtifact($data['from'],$artifact['vref'],$artifact['size'],$artifact['type'])) {
|
if ($database->canClaimArtifact($data['from'],$artifact['vref'],$artifact['size'],$artifact['type'])) {
|
||||||
|
|||||||
@@ -7079,7 +7079,7 @@ References: User ID/Message ID, Mode
|
|||||||
SUM(IF(size = '3',1,0)) `unique`
|
SUM(IF(size = '3',1,0)) `unique`
|
||||||
FROM " . TB_PREFIX . "artefacts WHERE owner = " . (int) $uid;
|
FROM " . TB_PREFIX . "artefacts WHERE owner = " . (int) $uid;
|
||||||
$result = mysqli_query( $this->dblink, $q );
|
$result = mysqli_query( $this->dblink, $q );
|
||||||
$artifact = $this->mysqli_fetch_all( $result );
|
$artifact = $this->mysqli_fetch_all( $result )[0];
|
||||||
|
|
||||||
if ( $artifact['totals'] < 3 || $type == 11 ) {
|
if ( $artifact['totals'] < 3 || $type == 11 ) {
|
||||||
$DefenderFields = $this->getResourceLevel( $vref );
|
$DefenderFields = $this->getResourceLevel( $vref );
|
||||||
|
|||||||
Reference in New Issue
Block a user