diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 60598920..8c92b77b 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -1640,9 +1640,8 @@ class Automation { //counting heroxp $defheroxp=intval($totalheroxp_def/count($DefenderHero)); for ($i=1;$i<=count($DefenderHero);$i++){ - $reinfheroxp = $totalheroxp_def; - $database->modifyHeroXp("experience",$reinfheroxp,$DefenderHero[$i]); - } + $reinfheroxp = $defheroxp; + } } $database->modifyPoints($toF['owner'],'dpall',$totaldead_att );