Only bots of 1-3 level use AirAttack weapon
authorunc0rr
Thu, 12 Jul 2007 14:43:34 +0000
changeset 554 4f83b3de17c7
parent 553 5478386d935f
child 555 0376fdcc6322
Only bots of 1-3 level use AirAttack weapon
hedgewars/uAIAmmoTests.pas
--- a/hedgewars/uAIAmmoTests.pas	Sun Jul 08 17:16:46 2007 +0000
+++ b/hedgewars/uAIAmmoTests.pas	Thu Jul 12 14:43:34 2007 +0000
@@ -289,6 +289,8 @@
 begin
 ap.ExplR:= 0;
 ap.Time:= 0;
+if (Level > 3) then exit(BadTurn);
+
 ap.AttackPutX:= Targ.X;
 ap.AttackPutY:= Targ.Y;