Fixed an artefact bug

+Fixed a bug that prevented the destruction of a village, if it had 0
population with no artefacts inside
+Some clean-up
This commit is contained in:
iopietro
2018-04-08 22:55:33 +02:00
parent a8b474bc01
commit 72fd81b69b
2 changed files with 13 additions and 17 deletions
+2 -10
View File
@@ -7230,16 +7230,8 @@ References: User ID/Message ID, Mode
for ( $i = 19; $i <= 38; $i ++ ) {
if ( $AttackerFields[ 'f' . $i . 't' ] == 27 ) {
$attTresuaryLevel = $AttackerFields[ 'f' . $i ];
if ( $attTresuaryLevel >= 10 ) {
$villageartifact = true;
} else {
$villageartifact = false;
}
if ( $attTresuaryLevel >= 20 ) {
$accountartifact = true;
} else {
$accountartifact = false;
}
$villageartifact = $attTresuaryLevel >= 10;
$accountartifact = $attTresuaryLevel >= 20;
}
}