From 46faa7dab09f41ee99c3237e055cdf50e3f11bd9 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 16 Jun 2012 20:41:18 +0300 Subject: [PATCH] fix rat problem in report --- GameEngine/Automation.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 474896ef..ec360722 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -1292,7 +1292,11 @@ class Automation { if(count($database->getEnforceVillage($data['to'],0)) > 0) { foreach($database->getEnforceVillage($data['to'],0) as $enforce) { $life=''; $notlife=''; $wrong='0'; + if($enforce['from'] != 0){ $tribe = $database->getUserField($database->getVillageField($enforce['from'],"owner"),"tribe",0); + }else{ + $tribe = 4; + } $start = ($tribe-1)*10+1; if($tribe == 1){ $rom='1'; } else if($tribe == 2){ $ger='1'; }else if($tribe == 3){ $gal='1'; }else if($tribe == 4){ $nat='1'; } else { $natar='1'; }