mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-21 18:47:14 +00:00
@@ -1446,7 +1446,7 @@ class MYSQLi_DB implements IDbConnection {
|
|||||||
$o_unit = $this->getUnit($vref, $use_cache);
|
$o_unit = $this->getUnit($vref, $use_cache);
|
||||||
|
|
||||||
for ( $i = 1; $i < 51; $i ++ ) {
|
for ( $i = 1; $i < 51; $i ++ ) {
|
||||||
$troops_o += $o_unit[ $i ];
|
$troops_o += $o_unit[ 'u'.$i ];
|
||||||
}
|
}
|
||||||
|
|
||||||
$troops_o += $o_unit['hero'];
|
$troops_o += $o_unit['hero'];
|
||||||
@@ -1461,7 +1461,7 @@ class MYSQLi_DB implements IDbConnection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self::$oasisTroopsCountCache[$vref] = $troops_o;
|
self::$oasisTroopsCountCache[$vref] = $troops_o;
|
||||||
return self::$oasisTroopsCountCache[$vref];
|
return self::$oasisTroopsCountCache[$vref];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function canConquerOasis($vref, $wref, $use_cache = true) {
|
public function canConquerOasis($vref, $wref, $use_cache = true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user