update attack speed