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

[statedef 10000]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10000
value = 10000
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 5000,9 + 1 * (random%5) 
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 801,0
channel = -1
volume = 150
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
trigger2 = animelemtime(5) = 10
trigger3 = animelemtime(5) = 20
trigger4 = animelemtime(5) = 30
trigger5 = animelemtime(5) = 40
value = 11,1
channel = -1
volume = 150
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
trigger2 = animelemtime(5) = 10
trigger3 = animelemtime(5) = 20
trigger4 = animelemtime(5) = 30
trigger5 = animelemtime(5) = 40
value = 801,1
channel = -1
volume = 150
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

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

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
name = "vortices_1"
postype = p1
pos = 0,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 10
name = "vortices_2"
postype = p1
pos = -75,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 10
name = "vortices_3"
postype = p1
pos = 75,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 20
name = "vortices_4"
postype = p1
pos = -150,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 20
name = "vortices_5"
postype = p1
pos = 150,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 30
name = "vortices_6"
postype = p1
pos = -225,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 30
name = "vortices_7"
postype = p1
pos = 225,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 40
name = "vortices_6"
postype = p1
pos = -300,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 40
name = "vortices_7"
postype = p1
pos = 300,0
stateno = 10010
ownpal = 1
id = 10010
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 10100]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10100
value = 10100
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(4) = 0
value = 5000,15 + 1 * (random%2) 
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(4) = 0
value = 1050,0
channel = -1
volume = 200
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(4) = 0
value = 1150,0
channel = -1
volume = 200
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

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

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(4) = 0
postype = p1
pos = 0,-65
stateno = 10110
ownpal = 1
id = 10110
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(4) = 2
postype = p1
pos = 0,-165
stateno = 10110
ownpal = 1
id = 10110
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(4) = 2
postype = p1
pos = 0,35
stateno = 10110
ownpal = 1
id = 10110
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 10200]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10200
value = 10200
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
value = 5000,5
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
value = 1100,1
channel = -1
volume = 200
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

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

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
id = 10210
persistent = 1
pos = 0,-65
postype = p1
stateno = 10210
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 10300]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10300
value = 10300
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
value = 5000,19
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
value = 211,0
channel = -1
volume = 200
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

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

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(5) = 0
id = 10305
persistent = 1
pos = 0,-65
postype = p1
stateno = 10305
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 10400]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10400
value = 10400
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
value = 5000,23 + (random%2) 
channel = 0
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
value = 2000,4
channel = -1
volume = 200
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
value = 2100,3
channel = -1
volume = 150
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

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

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
id = 10410
persistent = 1
pos = 0,-65
postype = p1
stateno = 10410
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(6) = 2
id = 10410
persistent = 1
pos = -10,-115
postype = p1
stateno = 10410
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(6) = 2
id = 10410
persistent = 1
pos = -10,-15
postype = p1
stateno = 10410
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(6) = 4
id = 10410
persistent = 1
pos = -20,-145
postype = p1
stateno = 10410
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
trigger1 = animelemtime(6) = 4
id = 10410
persistent = 1
pos = -20,-15
postype = p1
stateno = 10410
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

-------------------------------------------------------------------------------

[statedef 10500]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10500
value = 10500
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
value = 5000,4
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

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

[state ]
type = helper
triggerall = !ishelper
triggerall = alive
trigger1 = animelemtime(6) = 0
id = 10510
pos = 0,0
postype = p2
stateno = 10510
helpertype = player
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 10600]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10600
value = 10600
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(1) = 0
value = 4000,0 + (random%1)
channel = -1
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
value = 10000,3
channel = -1
volume = 200
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
value = 10000,4
channel = -1
volume = 200
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
value = 5000,6
channel = 0
volume = 300
freqmul = 0.8
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 100
value = 5000,7
channel = 0
volume = 300
freqmul = 0.8
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 200
value = 5000,8
channel = 0
volume = 300
freqmul = 0.8
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
trigger2 = animelemtime(6) = 300
value = 32500,0
channel = -1
volume = 300
ignorehitpause = 1

[state ]
type = bgpalfx
triggerall = !ishelper
trigger1 = animelem = 5 , >= 0
trigger1 = animelem = 6 , < 0
time = 340
mul = 0,0,0
color = 0
ignorehitpause = 1

[state ]
type = envshake
trigger1 = animelem = 5 , >= 0
trigger1 = animelem = 6 , < 0
time = 340
freq = 120
ampl = 4
phase = 0
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = 1
flag = nobg
flag2 = nofg
flag3 = globalnoshadow
ignorehitpause = 1

[state ]
type = lifeset
triggerall = !ishelper
trigger1 = life = 0
value = 50
ignorehitpause = 1

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

[state ]
type = explod
triggerall = !ishelper
triggerall = numexplod(10601) = 0
trigger1 = animelemtime(6) = 0
anim = 10601
id = 10601
postype = p1
pos = 0,0
bindtime = -1
ontop = 0
sprpriority = 1
scale = 1,1
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
trigger2 = animelemtime(6) = 300
anim = 32520
id = 32520
postype = p1
pos = -33,-112
bindtime = -1
ontop = 0
sprpriority = 2
scale = 0.4,0.4
trans = sub
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
trigger1 = animelemtime(6) = 0
trigger2 = animelemtime(6) = 300
anim = 32520
id = 32520
postype = p1
pos = -33,-112
bindtime = -1
ontop = 0
sprpriority = 2
scale = 0.55,0.55
supermovetime = 2147483648
pausemovetime = 2147483648
ignorehitpause = 1






[state ]
type = explod
triggerall = !ishelper
triggerall = (gametime % 2) = 0
trigger1 = animelemtime(5) >= 0
trigger1 = animelemtime(7) <= 0
anim = 10201
sprpriority = 3
postype = p1
pos = -33,-112
random = 15,15
facing = -1
ownpal = 1
scale = 0.7,0.7
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
trigger1 = animelemtime(5) >= 0
trigger1 = animelemtime(7) <= 0
anim = 10010
sprpriority = 2
postype = p1
pos = -33,-112
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.5,0.5
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
trigger1 = animelemtime(5) >= 0
trigger1 = animelemtime(7) <= 0
anim = 10010
sprpriority = 2
postype = p1
pos = -33,-112
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.5,0.5
trans = sub
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1

[state ]
type = explod
triggerall = !ishelper
trigger1 = animelemtime(5) >= 0
trigger1 = animelemtime(7) <= 0
anim = 10010
sprpriority = 2
postype = p1
pos = -33,-112
random = 10,10
vel = -1 + (random%4),-1 + (random%4)
facing = -1
ownpal = 1
scale = 0.3,0.3
supermovetime  =  2147483648
pausemovetime  =  2147483648
ignorehitpause = 1


























[state ]
type = helper
triggerall = !ishelper
triggerall = animelemtime(6) = [20,320]
trigger1 = (gametime % 20) = 0
trigger2 = (gametime % 20) = 7
trigger3 = (gametime % 20) = 14
id = 10610
persistent = 1
pos = -33,-112
postype = p1
stateno = 10610
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
triggerall = animelemtime(6) = [20,320]
trigger1 = (gametime % 22) = 0
trigger2 = (gametime % 22) = 7
trigger3 = (gametime % 22) = 14
id = 10620
persistent = 1
pos = -33,-112
postype = p1
stateno = 10610
helpertype = player
keyctrl = 0
ownpal = 1
pausemovetime = 999999999999
supermovetime = 999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
triggerall = animelemtime(6) = [20,320]
trigger1 = (gametime % 26) = 0
id = 10820
pos = -33,-112
postype = p1
stateno = 10820
helpertype = player
keyctrl = 0
ownpal = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

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

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno = 1
trigger1 = animelemtime(5) >= 0
trigger1 = animelemtime(7) <= 0
trigger1 = (gametime%25) = 0
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

[state ]
type = projectile
triggerall = !ishelper
triggerall = alive
triggerall = enemy,alive
triggerall = palno != 1
trigger1 = 1
projanim = 999999
damage = 25
attr = S,NA
hitflag = MAF
animtype = back
getpower = 0,0
givepower = 0,0
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause=1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 10700]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10700
value = 10700
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(4) = 0
value = 5000,17 +(random%3)
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
ignorehitpause = 1

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

[state ]
type = helper
triggerall = !ishelper
triggerall = alive
trigger1 = animelemtime(4) = 0
id = 10710
pos = 160,-60
postype = back
stateno = 10710
helpertype = player
size.xscale = 2
size.yscale = 2
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

[state ]
type = helper
triggerall = !ishelper
triggerall = alive
trigger1 = animelemtime(4) = 10
id = 10720
pos = 160,-60
postype = back
stateno = 10710
helpertype = player
size.xscale = 2.2
size.yscale = 2.2
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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

[statedef 10800]
movehitpersist = 1
hitdefpersist = 1

[state ]
type = changestate
trigger1 = name != "Unconscious"
value = 5150
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
trigger1 = ishelper
value = 999999999
persistent = 256
ignorehitpause = 1

[state ]
type = changeanim
triggerall = !ishelper
trigger1 = anim != 10800
value = 10800
ignorehitpause = 1

[state ]
type = statetypeset
trigger1 = !ishelper
statetype = s
movetype = a
physics = n
ignorehitpause = 1

[state ]
type = velset
trigger1 = !ishelper
x = 0
y = 0
ignorehitpause = 1

[state ]
type = ctrlset
trigger1 = !ishelper
value = 0
ignorehitpause = 1

[state ]
type = varadd
triggerall = !ishelper
triggerall = enemy,name != "E-Fairy"
trigger1 = animelemtime(1) = 0
sysvar(3) = 200
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(8) = 0
value = 5000,6 + (random % 3)
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
channel = 0
ignorehitpause = 1

[state ]
type = playsnd
triggerall = !ishelper
trigger1 = animelemtime(8) = 0
value = 10000,6
volume = 300
freqmul = 1.0 - 0.1 * (random%3)
channel = -1
ignorehitpause = 1

[state ]
type = envshake
trigger1 = animelem = 7 , >= 0
trigger1 = animelem = 8 , < 0
time = 270
freq = 120
ampl = 4
phase = 0
ignorehitpause = 1

[state ]
type = assertspecial
trigger1 = 1
flag = nobg
flag2 = nofg
flag3 = globalnoshadow
ignorehitpause = 1

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

[state ]
type = helper
triggerall = !ishelper
triggerall = alive
trigger1 = animelemtime(8) = 0
id = 10810
pos = 0,-60
postype = p1
stateno = 10810
helpertype = player
size.xscale = 1
size.yscale = 1
supermovetime = 9999999999999
pausemovetime = 9999999999999
ignorehitpause = 1

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

[state ]
type = selfstate
triggerall = !ishelper
trigger1 = animtime = 0
value = 0
ctrl = 1
persistent = 256
ignorehitpause = 1

[state ]
type = changestate
triggerall = !ishelper
trigger1 = alive
value = 120
ignorehitpause = 1

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