mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-23 10:26:42 +08:00
General fixes
+Fixed a bug that permitted to attack occupied oasis (even through the farmlist) even if the oasis' owner was banned +Rewritten some code in Units.php, for a better errors handling +Fixed some errors that could have showed sometimes +Fixed a bug that didn't permit to send an attack under certain circumstances +Villages/oasis with X = 0 or Y = 0 as a coordinates, can now be raided +You are now be able to send resources with the merchants, at villages with X = 0 or Y = 0 as a coordinates
This commit is contained in:
@@ -13,8 +13,7 @@ if($session->access == BANNED){
|
||||
$opt = $database->getAlliPermissions($session->uid, $aid);
|
||||
$displayarray = $database->getUserArray($session->uid, 1);
|
||||
$forumcat = $database->ForumCat(htmlspecialchars($displayarray['alliance']));
|
||||
|
||||
$forumcat = array_merge($forumcat,
|
||||
$forumcat = array_merge(!empty($forumcat) ? $forumcat : [],
|
||||
$session->sharedForums['alliance'],
|
||||
$session->sharedForums['confederation'],
|
||||
$session->sharedForums['closed']);
|
||||
|
||||
Reference in New Issue
Block a user