Cooldowns only added if they are more than a 1 sec

It's probably not worth it otherwise.
This commit is contained in:
Treeku
2014-04-07 04:15:53 +01:00
parent 580daaa8eb
commit 2fcc4dd24b
+3 -1
View File
@@ -308,7 +308,9 @@ public class CommandService implements INetworkDispatch {
}
public void processCommand(CreatureObject actor, SWGObject target, BaseSWGCommand command, int actionCounter, String commandArgs) {
actor.addCooldown(command.getCooldownGroup(), command.getCooldown());
if (command.getCooldown() > (float) 1) {
actor.addCooldown(command.getCooldownGroup(), command.getCooldown());
}
if (command instanceof CombatCommand) {
processCombatCommand(actor, target, (CombatCommand) command, actionCounter, commandArgs);