Fixed some bugs

+Fixed catapults/rams formula
+Added the trapped troops calculation formula, traps are now distributed
through all troops
This commit is contained in:
iopietro
2018-04-12 21:31:14 +02:00
parent 8d83eaac5d
commit e0c1b6ae5c
4 changed files with 175 additions and 155 deletions
+2 -2
View File
@@ -3576,7 +3576,7 @@ class MYSQLi_DB implements IDbConnection {
)
) as level
FROM
`s1_fdata`
".TB_PREFIX."fdata`
WHERE
vref = $vid
AND
@@ -7196,7 +7196,7 @@ References: User ID/Message ID, Mode
$result = mysqli_query( $this->dblink, $q );
$artifact = $this->mysqli_fetch_all( $result )[0];
if ( $artifact['totals'] < 3 || $type == 11 || $uid == $vuid) {
if ( $artifact['totals'] < 3 || $uid == $vuid) {
$DefenderFields = $this->getResourceLevel( $vref );
$defcanclaim = true;