Script to calculate the average number of luck falls in a battle