Fixed issue #432

+Added an error which warns you if you enter an invalid attack type (a
number greater tha 4 or less than 2)
+Fixed the possibility to spy with attacking troops by hacking the
attack type
+Some clean-up
This commit is contained in:
iopietro
2018-04-16 15:59:05 +02:00
parent bd38ac7fd8
commit e6449d20c6
3 changed files with 28 additions and 24 deletions
+5 -5
View File
@@ -134,7 +134,7 @@ $actionType = "Raid";
<td><img src="img/x.gif" class="unit u42" title="Thorned Warrior" alt="Thorned Warrior"></td>
<td><img src="img/x.gif" class="unit u43" title="Guardsman" alt="Guardsman></td>
<td><img src="img/x.gif" class="unit u43" title="Guardsman" alt="Guardsman"></td>
<td><img src="img/x.gif" class="unit u44" title="Bird of Prey" alt="Bird of Prey"></td>
@@ -315,14 +315,14 @@ $actionType = "Raid";
else if($process['c']=='4')
{
?><tbody class="infos">
<th>Destination:</th>
<td colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>">
<tr>
<th>Destination:</th>
<td> colspan="<?php if($process['t11'] != ''){ echo"11"; }else{ echo"10"; } ?>">
<?PHP
echo"Warning: Catapult will <b>ONLY</b> shoot with a normal attack (they dont shoot with raids!)";
?>
</td>
</td>
</tr>
<?PHP