Commit 50af76e6 authored by talljosh's avatar talljosh

Elephant King level: do not allow infinite duration.

parent 9cde26ab206a
......@@ -21,9 +21,12 @@ class ElephantKingLevel(Level):
halfMapWidth = 1
mapHeight = 2
blockRatio = 0.35
defaultDuration = 360
def __init__(self, duration=None):
super(ElephantKingLevel, self).__init__()
if duration is None:
duration = self.defaultDuration
self.duration = duration
def getTeamToJoin(self, preferredTeam, user, bot):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment