From 95648bc26257cbb8b2273b6ca06d6f756b598b46 Mon Sep 17 00:00:00 2001 From: Treeku Date: Tue, 10 Dec 2013 05:44:56 +0000 Subject: [PATCH] Fixed setgodmode --- scripts/commands/setgodmode.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/commands/setgodmode.py b/scripts/commands/setgodmode.py index d8b9647d..d722a103 100644 --- a/scripts/commands/setgodmode.py +++ b/scripts/commands/setgodmode.py @@ -13,12 +13,13 @@ def run(core, actor, target, commandString): commandArgs = commandString.split(' ') command = commandArgs[0] - arg1 = commandArgs[1] - if commandArgs[2]: + if len(commandArgs) > 1: + arg1 = commandArgs[1] + if len(commandArgs) > 2: arg2 = commandArgs[2] - if commandArgs[3]: + if len(commandArgs) > 3: arg3 = commandArgs[3] - if commandArgs[4]: + if len(commandArgs) > 4: arg4 = commandArgs[4] if not command: