mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Fixed some bugs and errors
+Part 1 of the starvation refactor, attacking troops will now be killed +Fixed some errors in Units.php, Technology.php, Battle.php and some 16_incomming.tpl -Removed an unused function in Database.php +Fixed a bug that could have destroyed a village after taking an artefact even if it had more than 0 pop
This commit is contained in:
@@ -673,7 +673,7 @@ class Battle {
|
||||
|
||||
}
|
||||
|
||||
$result[6] = pow($rap/$rdp*$moralbonus,$Mfactor);
|
||||
$result[6] = pow($rap/($rdp*$moralbonus > 0 ? $rdp*$moralbonus : 1),$Mfactor);
|
||||
|
||||
$total_att_units = count($units['Att_unit']);
|
||||
$start = intval(($att_tribe-1)*10+1);
|
||||
|
||||
Reference in New Issue
Block a user