fix: give hero points to spend by the actual number of levels he got

This commit is contained in:
Martin Ambrus
2017-11-25 16:28:28 +01:00
parent 1169b4febb
commit ec234579cc
+2 -2
View File
@@ -4605,10 +4605,10 @@ class Automation {
$modes[] = null;
}
// add 5 points, if we're below level 100
// add as many points as needed, if we're below level 100
if ($scorePoints) {
$columns[] = 'points';
$columnValues[] = 5;
$columnValues[] = (5 * ($newLevel - $herolevel));
$modes[] = 1;
}