Author: sveinung
Date: Mon Jun 22 16:27:22 2015
New Revision: 29177

URL: http://svn.gna.org/viewcvs/freeciv?rev=29177&view=rev
Log:
The attacker always dies in super spy vs super spy

See bug #23648

Modified:
    branches/S2_6/common/actions.c

Modified: branches/S2_6/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/common/actions.c?rev=29177&r1=29176&r2=29177&view=diff
==============================================================================
--- branches/S2_6/common/actions.c      (original)
+++ branches/S2_6/common/actions.c      Mon Jun 22 16:27:22 2015
@@ -838,11 +838,12 @@
   int chance;
 
   /* Superspy always win */
+  if (unit_has_type_flag(pdefender, UTYF_SUPERSPY)) {
+    /* In UTYF_SUPERSPY vs UTYF_SUPERSPY the attacker always dies. */
+    return ACTPROB_IMPOSSIBLE;
+  }
   if (unit_has_type_flag(pattacker, UTYF_SUPERSPY)) {
     return 200;
-  }
-  if (unit_has_type_flag(pdefender, UTYF_SUPERSPY)) {
-    return ACTPROB_IMPOSSIBLE;
   }
 
   /* This target is defenseless */


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to