Calling calculate_damage for AI mode.