From 99b59199cb0223b70d38c3728ae5ec36afa2298e Mon Sep 17 00:00:00 2001 From: oleksavr Date: Thu, 13 Feb 2020 15:49:47 -0500 Subject: [PATCH] Update SteelclawGap.py I got infinite loop without it --- Mountain/SteelclawGap/SteelclawGap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Mountain/SteelclawGap/SteelclawGap.py b/Mountain/SteelclawGap/SteelclawGap.py index 0699089..8f3d183 100644 --- a/Mountain/SteelclawGap/SteelclawGap.py +++ b/Mountain/SteelclawGap/SteelclawGap.py @@ -21,6 +21,7 @@ def summonTroops(): def commandTroops(): friends = hero.findFriends() for friendIndex, friend in enumerate(friends): + friendIndex += 1 # Use % to wrap around defendPoints based on friendIndex hero.command(friend, 'defend', defendPoints[friendIndex % len(defendPoints)]) pass