global.attack_cycle += 1 if (global.attack_cycle > global.attack_cycle_max) global.attack_cycle = 0