made attack power an int