Added attack cooldown; did several bugfixes (debug log looks pretty clean!); may have done other stuff and forgot