fix attack damage algo