X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.py;h=f34358a846b66835958d1ff4bdcb587d3ff59b1f;hp=e79dd5b58d4d8ec3daa65b6eba15f84e808bfe75;hb=42fe10c4211be90df7ad867ce88255693a3f4b63;hpb=9023547111577e2cda6f4d88fdff7303b3cfc726;ds=sidebyside diff --git a/sst.py b/sst.py index e79dd5b..f34358a 100755 --- a/sst.py +++ b/sst.py @@ -1801,6 +1801,9 @@ def hittem(hits): skip(1) kk = 0 for wham in hits: + if not kk < len(game.enemies): + # Should never happen. + break if wham == 0: continue dustfac = randreal(0.9, 1.0) @@ -1832,7 +1835,6 @@ def hittem(hits): finish(FWON) if game.alldone: return - kk -= 1 # don't do the increment continue else: # decide whether or not to emasculate klingon if kpow > 0 and withprob(0.9) and kpow <= randreal(0.4, 0.8)*kpini: