Added temp combat command null check

This commit is contained in:
Treeku
2014-06-17 17:09:08 +01:00
parent 2e363e720f
commit 5f6762a9f3
+5
View File
@@ -451,6 +451,11 @@ public class CommandService implements INetworkDispatch {
}
public void processCombatCommand(CreatureObject attacker, SWGObject target, CombatCommand command, int actionCounter, String commandArgs) {
if (target == null) {
System.err.println("ProcessCombatCommand: Target is null");
return;
}
if (FileUtilities.doesFileExist("scripts/commands/combat/" + command.getCommandName() + ".py")) {
core.scriptService.callScript("scripts/commands/combat/", command.getCommandName(), "setup", core, attacker, target, command);
}