From 338e3852f9f3b2d0422aa327710d016e9bd4b8f8 Mon Sep 17 00:00:00 2001 From: Shadow Date: Thu, 28 Nov 2013 07:42:07 +0200 Subject: [PATCH] Update Automation.php --- GameEngine/Automation.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index dd515fa0..2eab2221 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -2479,7 +2479,14 @@ class Automation { } } } - }else $info_hero = $hero_pic.",Your hero die but gained ".$heroxp." XP"; + }else { + if ($heroxp == 0) { + $xp=" and no XP from the battle"; + } else { + $xp=" but gained ".$heroxp." XP from the battle"; + } + $info_hero = $hero_pic.",Your hero die ".$xp; + } if($scout){ if ($data['spy'] == 1){