From f2753429f998bb2150e3ebb83fb95579b7cd5d08 Mon Sep 17 00:00:00 2001 From: Shadow Date: Sat, 23 Nov 2013 17:38:01 +0200 Subject: [PATCH] Update Automation.php --- GameEngine/Automation.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 );