Fixed an hero bug

The experience was distributed incorrectly if the defender(s)/attacker had more than 1 hero
This commit is contained in:
Pietro
2018-04-03 01:44:27 +02:00
committed by GitHub
parent 09ec695997
commit a749d74dfb
2 changed files with 193 additions and 183 deletions
+1 -1
View File
@@ -5883,7 +5883,7 @@ References: User ID/Message ID, Mode
function modifyHeroXp($column,$value,$heroid) {
list($column,$value,$heroid) = $this->escape_input($column,(int) $value,(int) $heroid);
$q = "UPDATE ".TB_PREFIX."hero SET $column = $column + $value WHERE uid=$heroid";
$q = "UPDATE ".TB_PREFIX."hero SET $column = $column + $value WHERE heroid=$heroid";
return mysqli_query($this->dblink,$q);
}