def do(): # Clear markers marker.clearCommandMarkers() # Get spaces rangeSpaces = getRangeSpaces() aoeSpaces = getAoeSpaces() emptySpaces = getEmptySpaces() coveredSpaces = [] # Add markers for each space, only if that space is uncovered for space in emptySpaces: marker.add(space, 'markerEmpty') coveredSpaces.append(space) for space in aoeSpaces: if space not in coveredSpaces: marker.add(space, 'markerAoe') coveredSpaces.append(space) for space in rangeSpaces: if space not in coveredSpaces: marker.add(space, 'markerRange') coveredSpaces.append(space)
def do(): for move in logic.globalDict['validMove']: space = move['space'] marker.add(space, 'markerMove')