Added code to recalculate next attack time after executing a command

#128