From 953c992690512e1ce905e1318b97fc4247a4d7c5 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 24 Apr 2013 11:28:06 +0300 Subject: [PATCH] fix evasion: now is only when normal attack or raid --- GameEngine/Automation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 693ce035..4b332484 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -1026,7 +1026,7 @@ class Automation { $cannotsend = 1; } } - if($evasion == 1 && $maxevasion > 0 && $gold > 1 && $cannotsend == 0){ + if($evasion == 1 && $maxevasion > 0 && $gold > 1 && $cannotsend == 0 && $dataarray[0]['attack_type'] > 2){ $totaltroops = 0; for($i=1;$i<=10;$i++){ $playerunit += $i;