hedgewars/uAIAmmoTests.pas
changeset 15686 034955e721a1
parent 15685 78e383fff605
child 15687 326b024a24e3
--- a/hedgewars/uAIAmmoTests.pas	Mon Jul 06 01:46:22 2020 +0200
+++ b/hedgewars/uAIAmmoTests.pas	Mon Jul 06 11:10:27 2020 +0200
@@ -1509,11 +1509,16 @@
 
 ap.ExplR:= 0;
 ap.Time:= 0;
-if (GameFlags and gfInfAttack) = 0 then
-    ap.Power:= max(min(500 * heal - 500, 10000), 10)
+if (Level >= 4) then
+    // slow resurrect
+    ap.Power:= max(512 * heal - 512, 10)
 else
-    // Shorter attack duration in inf attack because the clock is ticking!
-    ap.Power:= max(min(500 * heal - 500, 3000), 10);
+    // fast resurrect
+    ap.Power:= max(16 * heal - 16, 10);
+
+// Time limit
+ap.Power:= min(ap.Power, 5000)
+
 ap.Angle:= 0;
 
 rate:= RateResurrector(Me);