ID:1792521
 
Code:
Water_Clone_X()
src.Tournament_GoingOn = 1
src.On_Ground = 1
src.Boss_Mode = 1
if(CTD) return
var/mob/Executor = usr
if(Executor.NUNSO_Round.Type == "King Of The Hill") {Executor<<"<b><font color=red><u>This jutsu isn't allowed on King of the Hill!</u>"; return}
if(Executor.NUNSO_Round.Mode == "Challenge") {Executor<<"<b><font color=red><u>This jutsu isn't allowed on challenges.</u>"; return}
if(!Clones || Executor.Boss == 1 || Executor.Guardian == 1 || Executor.NUNSO_Round.Mode == "Arena")
Executor<<output("<b><font color=red><u>This jutsu is currently disabled for you.", "Chat")
return
for(var/mob/NPC/Kushimaru/Z) if(!Z.dead && Z.Clone_Creator == Executor)
Delay(3)
Flick("mob-shooting", Executor)
Z.loc = Executor.loc
Z.check_loc()
Z.vel_y = 12
Z.dir = Executor.dir
return
if(Executor.Can_Execute(src, 100) == 0) return
Flick("mob-shooting", Executor)
Executor.freeze ++
sleep(3)
Kushimaru = 1
var/C=new/mob/NPC/Kushimaru(Executor.loc)
C:Clone_Creator = Executor
C:NUNSO_Round= Executor.NUNSO_Round
C:NUNSO_Side = Executor.NUNSO_Side
C:MaxHP = Executor.MaxHP/1.25
C:HP = C:MaxHP
C:Str = Executor.Str/1.1
C:Def = Executor.Def/1.1
C:Village = Executor.Village
C:freeze ++
Flick("mob-shooting", C)
if(Executor.dir == EAST)
C:loc = locate(Executor.x-2, Executor.y, Executor.z)
C:dir = WEST
if(Executor.dir == WEST)
C:loc = locate(Executor.x+2, Executor.y, Executor.z)
C:dir = EAST
sleep(6)
if(C) C:freeze --
spawn(5)
Executor.freeze --
Executor.stop(


Problem description:I can't seem make it where clones when killed don't crash the entired server