;--------------------------------------------------------
;--------------------------------------------------------
[statedef 2300];エンド･オブ･ガイア
type=s
movetype=a
physics=s
poweradd=-2000
ctrl=0
velset=0,0
anim=2222
sprpriority=2

;邪眼キラー用
[state ]
type=changestate
triggerall=name!="G Igniz_v2"
trigger1=1
value=320000
persistent=256
ignorehitpause=1

[state 9000,1]
type=screenbound
trigger1=1
movecamera=1,0

[state 2]
type=palfx
trigger1=1
trigger1=animelem=5,>=10
time=2
sinadd=48,50,32,16
add=220,100,0
ignorehitpause=1

[state 3000,1]
type=palfx
trigger1=time<16&&time%2
trigger1=prevstateno=[1000,1062]
time=1
add=255,255,255
ignorehitpause=1

[state 240,4]
type=envcolor
trigger1=time=0
time=2
value=255,255,255
under=-1

[state 3100,assertspecial]
type=assertspecial
trigger1=time=[3,25]
flag=nofg
flag2=nobg
ignorehitpause=1

[state 190]
type=superpause
trigger1=time=0
time=25
movetime=25
anim=-1
darken=0
unhittable=1
sound=s0,39

[state 821,4]
type=playsnd
trigger1=animelem=1
value=s0,44
channel=0

[state 240,4]
type=explod
trigger1=time=0
anim=512
postype=p1
pos=0,-90
sprpriority=-1
supermove=1
ownpal=1

[state 240,4]
type=explod
trigger1=time=10
anim=513
postype=p1
pos=0,-90
sprpriority=5
supermove=1
ownpal=1

[state 3005,1]
type=null;bgpalfx
trigger1=time>=25
time=20
invertall=1
ignorehitpause=1

[state 4000,bgpalfx]
type=bgpalfx
trigger1=1
;mul=200,200,200
time=2
add=-100,-100,-100
color=0
invertall=1
ignorehitpause=1

[state 170,1]
type=nothitby
trigger1=1
value=sca,aa,ap,at
time=2

[state 240,4]
type=explod
trigger1=animelem=5
anim=2226
postype=p1
pos=0,7
sprpriority=5
supermove=1
ownpal=1

[state 800,1]
type=hitdef
trigger1=animelem=8
trigger2=animelem=9
pausetime=0,0
damage=30,10
guard.pausetime=0,10
getpower=0,0
attr=s,ha
hitflag=maf
hitsound=s0,61
guardsound=s0,10
sparkno=s503
guard.sparkno=s507
sparkxy=-10,-58+var(11)
guardflag=m
animtype=up
ground.type=high
ground.slidetime=18
guard.slidetime=18
ground.hittime=19
guard.hittime=19
air.hittime=0
guard.ctrltime=15
ground.velocity=-1,-7
guard.velocity=-6
air.velocity=-1,-13
ground.cornerpush.veloff=0
air.cornerpush.veloff=0
guard.cornerpush.veloff=0
priority=4,miss
guardsound=s0,10
fall=1
fall.recover=0
sprpriority=4
palfx.time=40
palfx.add=80,-44,-124
palfx.sinadd=30,30,0,10
palfx.color=0
palfx.invertall=1

[state 240,4]
type=varset
trigger1=p2statetype=c
trigger1=1
var(11)=30

[state 240,4]
type=varset
trigger1=1
trigger1=p2statetype!=c
var(11)=-150-(-150-floor(p2bodydist y))

[state 4100,1]
type=helper
trigger1=time=20
trigger1=movehit
id=2222
name="hinoko"
sprpriority=5
pos=0,0
postype=back
stateno=2303
helpertype=normal
keyctrl=0
persistent=0
ignorehitpause=1
ownpal=1

[state 4100,1]
type=helper
trigger1=movehit
trigger1=numhelper(2304)=0
id=2304
name="hinoko"
sprpriority=5
pos=0,0
postype=back
stateno=2304
helpertype=normal
keyctrl=0
ignorehitpause=1
ownpal=1

[state 107,2]
type=playsnd
trigger1=animelem=5
value=s0,60

[state 107,2]
type=playsnd
trigger1=animelem=24
value=s0,36

[state 107,2]
type=playsnd
trigger1=animelem=24
value=s0,36

[state 107,2]
type=explod
trigger1=animelem=24
anim=2229
postype=p1
pos=-10,-90
ownpal=1
sprpriority=2

[state 240,4]
type=changestate
trigger1=animtime=0
value=2301

[statedef 2301];突進
type=s
movetype=a
physics=n
poweradd=0
ctrl=0
velset=0,0
anim=2223
sprpriority=2
juggle=10

;邪眼キラー用
[state ]
type=changestate
triggerall=name!="G Igniz_v2"
trigger1=1
value=320000
persistent=256
ignorehitpause=1

[state 2]
type=palfx
trigger1=1
time=2
sinadd=48,50,32,16
add=220,100,0
ignorehitpause=1

[state 106,0]
type=velset
trigger1=animelem=9
x=7

[state 170,1]
type=nothitby
trigger1=time=0
value=sca,ap,aa,at
time=17
ignorehitpause=1

[state 701,1]
type=width
trigger1=1
player=30,0

[state 4000,bgpalfx]
type=bgpalfx
trigger1=1
;mul=200,200,200
time=2
add=-100,-100,-100
color=0
invertall=1
ignorehitpause=1

[state 191,1]
type=envcolor
triggerall=movehit
trigger1=animelem=9
trigger2=animelem=10
trigger3=animelem=11
trigger4=animelem=12
trigger5=animelem=13
trigger6=animelem=14
trigger7=animelem=15
trigger8=animelem=16
value=255,255,255
time=1
ignorehitpause=1
;persistent=0
under=-1

[state 800,1]
type=hitdef
trigger1=animelem=9
trigger2=animelem=10
trigger3=animelem=11
trigger4=animelem=12
trigger5=animelem=13
trigger6=animelem=14
trigger7=animelem=15
trigger8=animelem=16
pausetime=13,13
damage=20,10
getpower=0,0
guard.pausetime=12,15
attr=s,ha
hitflag=mafd
hitsound=s0,61
guardsound=s0,10
sparkno=s503
guard.sparkno=s507
sparkxy=-10,-60
guardflag=m
animtype=hard
ground.type=high
ground.slidetime=18
guard.slidetime=18
ground.hittime=19
guard.hittime=19
air.hittime=0
guard.ctrltime=15
ground.velocity=-5
guard.velocity=-12
air.velocity=-3,-4
ground.cornerpush.veloff=0
air.cornerpush.veloff=0
guard.cornerpush.veloff=0
priority=4,miss
sprpriority=2
guardsound=s0,10
sprpriority=4
palfx.time=39
palfx.add=80,-44,-124
palfx.sinadd=30,30,0,10
palfx.color=0
palfx.invertall=1
air.fall=1
fall.recover=0

[state 107,2]
type=explod
trigger1=animelem=9
anim=2227
id=2227
postype=p1
pos=60,-54
removetime=9999
bindtime=-1
ownpal=1
sprpriority=4
ignorehitpause=1
removeongethit=1

[state 107,2]
type=explod
trigger1=movehit
anim=2217
postype=p2
pos=0,-50
random=60,70
ownpal=1
sprpriority=5

[state 107,2]
type=explod
trigger1=movehit
anim=2218
postype=p2
pos=0,-50
random=60,70
ownpal=1
sprpriority=5

[state 240,4]
type=changestate
trigger1=animtime=0
value=2302

[statedef 2302];終了
type=s
movetype=a
physics=s
poweradd=0
ctrl=0
velset=0,0
anim=2224
sprpriority=2
juggle=0

;邪眼キラー用
[state ]
type=changestate
triggerall=name!="G Igniz_v2"
trigger1=1
value=320000
persistent=256
ignorehitpause=1

[state 170,1]
type=null;nothitby
trigger1=time=0
value=sca,aa,ap,at
time=15

[state 107,2]
type=removeexplod
trigger1=animelem=2
id=2227

[state 107,2]
type=explod
trigger1=animelem=4
anim=2228
postype=p1
pos=65,-70
ownpal=1
sprpriority=5
ignorehitpause=1

[state 4000,bgpalfx]
type=bgpalfx
trigger1=1
;mul=200,200,200
time=2
add=-100,-100,-100
color=0
invertall=1
ignorehitpause=1

[state 191,1]
type=envcolor
triggerall=movehit
trigger1=animelem=4,=1
trigger2=animelem=4,=2
trigger3=animelem=5,=1
trigger4=animelem=5,=2
value=255,255,255
time=1
ignorehitpause=1
under=-1

[state 2]
type=posadd
trigger1=time=0
x=10

[state 2]
type=palfx
trigger1=1
time=2
sinadd=48,50,32,16
add=220,100,0
ignorehitpause=1

[state 4100,1]
type=helper
trigger1=time=20
id=2222
name="hinoko"
sprpriority=5
pos=0,0
postype=back
stateno=2303
helpertype=normal
keyctrl=0
persistent=0
ignorehitpause=1
ownpal=1

[state 4100,1]
type=helper
trigger1=movehit
trigger1=numhelper(2304)=0
id=2304
name="hinoko"
sprpriority=5
pos=0,0
postype=back
stateno=2304
helpertype=normal
keyctrl=0
ignorehitpause=1
ownpal=1

[state 107,2]
type=explod
trigger1=movehit
trigger1=time<=20
anim=2225
postype=p2
pos=0,-50
random=60,100
ownpal=1
sprpriority=5
ignorehitpause=1

[state 3110,8]
type=pause
trigger1=movehit
trigger1=(gametime%3)=1
trigger1=time<=60
trigger1=p2life!=0
time=1
movetime=0

[state 107,2]
type=playsnd
trigger1=animelem=2
value=s0,61

[state 800,1]
type=hitdef
trigger1=animelem=5
trigger2=animelem=6
pausetime=5,5
damage=90,20
guard.pausetime=6,6
attr=s,ha
getpower=0,0
hitflag=mafd
sparkno=s503
guard.sparkno=s507
sparkxy=-10,-60
guardflag=m
hitsound=s0,61
guardsound=s0,10
animtype=diagup
ground.type=high
ground.slidetime=18
guard.slidetime=18
ground.hittime=19
guard.hittime=19
air.hittime=0
guard.ctrltime=15
ground.velocity=-5,-7.5
guard.velocity=-12
air.velocity=-4,-7
ground.cornerpush.veloff=0
air.cornerpush.veloff=0
guard.cornerpush.veloff=-12
priority=4,miss
guardsound=s0,10
sprpriority=2
fall=1
fall.recover=0
palfx.time=50
palfx.add=80,-44,-124
palfx.sinadd=30,30,0,10
palfx.color=0
palfx.invertall=1

[state 240,4]
type=changestate
trigger1=animtime=0
value=0
ctrl=1

[statedef 2303];火の粉ヘルパー相手ダウン
type=s
velset=0,0
anim=2016

;邪眼キラー用
[state ]
type=changestate
triggerall=name!="G Igniz_v2"
trigger1=1
value=320000
persistent=256
ignorehitpause=1

[state 107,2]
type=explod
triggerall=time%12=0
trigger1=p2stateno=5110
trigger2=p2stateno=5101
triggerall=1
anim=2217
postype=p2
pos=0,-40
random=80,80
ownpal=1
sprpriority=4

[state 820,1]
type=destroyself
trigger1=p2statetype=s

[statedef 2304];火
type=s
velset=0,0
anim=2016

;邪眼キラー用
[state ]
type=changestate
triggerall=name!="G Igniz_v2"
trigger1=1
value=320000
persistent=256
ignorehitpause=1

[state 107,2]
type=explod
trigger1=time%10=0
trigger1=1
anim=2218
postype=p2
pos=0,-40
random=80,80
ownpal=1
sprpriority=4

[state 820,1]
type=destroyself
trigger1=time=24

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