General fixes

+Fixed a bug that didn't permit to raid oasis if
"ADMIN_ALLOW_INCOMING_RAIDS" was set to false
This commit is contained in:
iopietro
2018-05-27 13:21:01 +02:00
parent 5596472f0a
commit 498aaa962a
+1 -1
View File
@@ -802,7 +802,7 @@ class Units {
for($i = 1; $i <= 6; $i++) ${'t'.$i} = $raidList['t'.$i];
$villageOwner = $database->getVillageField($wref, 'owner');
$villageOwner = !$database->isVillageOases($wref) ? $database->getVillageField($wref, 'owner') : 2;
$userAccess = $database->getUserField($villageOwner, 'access', 0);
$userID = $database->getUserField($villageOwner, 'id', 0);