Author: sveinung
Date: Mon Jun 22 16:10:15 2015
New Revision: 29175

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

See bug #23648

Modified:
    trunk/common/actions.c

Modified: trunk/common/actions.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/actions.c?rev=29175&r1=29174&r2=29175&view=diff
==============================================================================
--- trunk/common/actions.c      (original)
+++ trunk/common/actions.c      Mon Jun 22 16:10:15 2015
@@ -1012,11 +1012,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