autoattack: consider the odds of all actions.
commit60bca3d54e0f5f9e7c03acac7ffabef401476f8e
authorsveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Thu, 3 Nov 2016 15:09:45 +0000 (3 15:09 +0000)
committersveinung <sveinung@a0f10bec-cc02-0410-94fc-a9cfff90b4cd>
Thu, 3 Nov 2016 15:09:45 +0000 (3 15:09 +0000)
tree124c438de15469ac42cdf30c87960ca4041b7f1e
parenta84df803a3a0bc1909c9f865551ae9390e898cc1
autoattack: consider the odds of all actions.

An auto attack can result in "Capture Units", "Bombard" or "Attack". What
unit tries to auto attack first is determined by its odds. Consider the odds
of doing any of the actions.

See bug #25253

git-svn-id: svn://svn.gna.org/svn/freeciv/trunk@34359 a0f10bec-cc02-0410-94fc-a9cfff90b4cd
server/unittools.c