;-------------------------------------------------------------------------------
;This checks to make sure this edit is not stolen and also manages a few other things.
;Kyurem-CMD-Helper
[statedef 485000]
type = U
ctrl = 0

[state IM,Anim]
type = ChangeAnim
trigger1 = Anim != 1
trigger2 = AnimElemTime(2)
trigger3 = AnimElemNo(1) != 1
value = 1
IgnoreHitPause = 1

[State IM,AS]
type = AssertSpecial
trigger1 = 1
flag = invisible
flag2 = noshadow
flag3 = nostandguard
ignorehitpause = 1

[State IM,nothitby]
type = HitBy
trigger1 = 1
value =
time = -1
ignorehitpause = 1

[State IM,nothitby]
type = HitBy
trigger1 = 1
value2 =
time = -1
ignorehitpause = 1

[State IM,Pos]
type = PosSet
trigger1 = 1
x = root,pos x
y = 53418
ignorehitpause = 1

[state IM,IDSync]
type = ParentVarSet
trigger1 = parent,ID = root,ID
trigger1 = TeamSide = root,TeamSide
v = 30
value = ID
ignorehitpause = 1

[state ]
type = Destroyself
trigger1 = root,alive = 0

[State ]
type = varadd
triggerall = roundstate != [3,4]
triggerall = gametime%10 = 0
trigger1 = root,var(1) != 0 ;|| root,var(41) != 0
;trigger1 = root,sysfvar(1) = 1
var(55) = 1

[State VAR RESET]
type = varset
trigger1 = roundstate = [3,4]
var(50) = 0

[state ]
type = PlaySnd
triggerall = !NumExplod(144052)
trigger1 = var(50) = 1
value = 4850,0
ignorehitpause = 1

;----------------------------------------------

[State 0, DisplayToClipboard]
type = DisplayToClipboard
trigger1 = 1
text = "DEF File Check = %d,var(48):%d,ID:%d,var(49):%d,var(50):%d"
params = var(45),var(48),var(30),var(49),var(50) ;var(30),var(50)
ignorehitpause = 0

[state AI Enabled]
type = Explod
triggerall = !NumExplod(144052)
triggerall = 1
trigger1 = var(50) = 1
anim = 144052
id = 144052
postype = left
pos = (root,ScreenPos x),((root,Pos Y)-(root,Pos Y))-((root,Const(size.head.pos.y)+20)*(root,const(size.yscale)*2))
vel = 0,-0.2
scale = 0.5, 0.5
facing = 1
bindtime = 1
supermovetime = -1
pausemovetime = -1
removetime = -2
ownpal = 1
sprpriority = 5
removeongethit = 0
supermovetime = 99999999
pausemovetime = 99999999