Index: ai/aiunit.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/ai/aiunit.c,v retrieving revision 1.328 diff -u -r1.328 aiunit.c --- ai/aiunit.c 25 Aug 2004 18:24:18 -0000 1.328 +++ ai/aiunit.c 28 Aug 2004 22:25:53 -0000 @@ -584,7 +584,15 @@ int vuln = unit_def_rating_sq(punit, pdef); int benefit = stack_cost(pdef); int loss = unit_build_shield_cost(punit->type); - + double chance = unit_win_chance(punit, pdef); + + if (chance < 0.001) { + /* Forget it! At least a tiny chance is needed here... */ + UNIT_LOG(LOG_DEBUG, punit, "Rampage: No chance against %s(%d,%d)!", + unit_name(pdef->type), pdef->x, pdef->y); + return 0; + } + attack *= attack; /* If the victim is in the city/fortress, we correct the benefit