@name FailCake MINE
@inputs Inrange Targetowner Targetenemy GD1 GD2 GD3 Timer
@outputs Red Green Blue Grab1 Grab2 Grab3 Bomb Force Run Reset
@persist 
@trigger all

if(Targetowner == 1){Green = 1}else{Green = 0}
if(Targetenemy == 1){Red = 1}else{Red = 0}
if(Inrange == 1){Run = 1}
Blue = 1
if(Red == 1){Blue = 0}else{Blue = 1}
if(Green == 1){Blue = 0}else{Blue = 1}
if(Green == 1){Blue = 0, Red = 0}
if(Red == 1){Green = 0, Blue = 0}
if(GD1 > 0){Grab1 = 1}else{Grab1 = 0}
if(GD2 > 0){Grab2 = 1}else{Grab2 = 0}
if(GD3 > 0){Grab3 = 1}else{Grab3 = 0}
if(Timer > 0){Grab1 = 0, Grab2 = 0, Grab3 = 0} ## wire to timer :D
if(Timer > 1){Force = 1}else{Force = 0}
if(Timer > 2){Bomb = 1}else{Bomb = 0}
if(Inrange == 0){Reset = 1}else{Reset = 0} ## reset

##PROTECTION SISTEM MUAHAHAHAH##

if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
if(duped()){selfDestructAll()}
