From faa4fa291ec62994a31e86ebf007e4a573d14c45 Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Sun, 26 Nov 2017 21:41:15 +0100 Subject: [PATCH] fix: oasis can be conquered with animals in it #385 --- GameEngine/Database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GameEngine/Database.php b/GameEngine/Database.php index 00fcba54..eb46c265 100755 --- a/GameEngine/Database.php +++ b/GameEngine/Database.php @@ -1446,7 +1446,7 @@ class MYSQLi_DB implements IDbConnection { $o_unit = $this->getUnit($vref, $use_cache); for ( $i = 1; $i < 51; $i ++ ) { - $troops_o += $o_unit[ $i ]; + $troops_o += $o_unit[ 'u'.$i ]; } $troops_o += $o_unit['hero']; @@ -1461,7 +1461,7 @@ class MYSQLi_DB implements IDbConnection { } self::$oasisTroopsCountCache[$vref] = $troops_o; - return self::$oasisTroopsCountCache[$vref]; + return self::$oasisTroopsCountCache[$vref]; } public function canConquerOasis($vref, $wref, $use_cache = true) {