fixed int attack always 0, added instance and constant attack