writes attack used and damage