;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
;---------------------------------------------------------------------------
;フィアー・パニッシュメント
;---------------------------------------------------------------------------
;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

[Statedef 2215]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
poweradd= -2000
anim = 9097
ctrl = 0
sprpriority = 99

[State 2215]
type = AssertSpecial
trigger1 = 1
flag = nobg
flag2 = nobardisplay

[State 2215]
type = NotHitBy 
trigger1 = 1
value = SCA

[State 2215]
type = SuperPause
trigger1 = time = 0
time = 32
movetime = 32
anim = -1

[State 2215]
type = Explod
trigger1 = time = 0
anim = 3028
sprpriority = -5
postype = p1
pos = -1,-100
bindtime = 1
supermove = 1
under = 0
ownpal = 1

[State 2215]
type = Explod
trigger1 = Time = 0
anim = 3029
sprpriority = 999
postype = p1
pos = -1,-100
bindtime = 1
supermove = 1
under = 0
ownpal = 1

[State 2215]
type = EnvColor
trigger1 = time = 0
persistent = 0
ignorehitpause = 1
time = 3
value = 255,255,255
under = 2

[State 2215]
type = EnvColor
trigger1 = time = 3
persistent = 0
ignorehitpause = 1
time = 60
value = 0,0,0
under = 2

[State 2215]
type = PlaySnd
trigger1 = Time = 0
value = 3000,3
volume = -50

[State 2215]
type = PlaySnd
trigger1 = Time = 10
value = 181,0

[state 2215]
type = changestate
trigger1 = animtime = 0
value = 2216

;---------------------------------------------------------------------------
; 攻撃
;---------------------------------------------------------------------------

[Statedef 2216]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 9048
sprpriority = 9
ctrl = 0

[State 2215]
type = PlaySnd
trigger1 = Time = 0
value = 9092,0

[State 2215]
type = PlaySnd
trigger1 = Time = 0
value = 9092,1

[State 2215]
type = PlaySnd
trigger1 = Time = 0
value = 9092,2

[State 2217]
type = helper
trigger1 = time = 0
id = 2220
persistent = 1
name = "INSEKI"
pos = 1,-210
postype = back
stateno = 2218
helpertype = normal
keyctrl = 1
scale = 1,1
ownpal = 1
SuperMoveTime = 999999
PauseMoveTime = 999999

[State 2217]
type = EnvColor
trigger1 = time = 0
ignorehitpause = 1
time = 135
value = 0,0,0
under = 2

[State 2215]
type = PlaySnd
trigger1 = Time = 80
value = 2000,1

[state 2216]
type = changestate
trigger1 = time = 130
value = 2217

;---------------------------------------------------------------------------
; 終了
;---------------------------------------------------------------------------

[Statedef 2217]
type    = S
movetype= A
physics = N
velset = 0,0
juggle = 15
anim = 9047
ctrl = 0
sprpriority = 1

[State 2217]
type = AssertSpecial
trigger1 = (GameTime%2) = 1
flag = invisible

[State 2217]
type = AssertSpecial
trigger1 = 1
flag = nobg
flag2 = nobardisplay

[state 2217]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 1

;---------------------------------------------------------------------------
; ヘルパー
;---------------------------------------------------------------------------

[Statedef 2218]
type    = A
movetype= A
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 9091

[State 210]
type = HitDef
trigger1 = time = [0,130]
attr = S, NA
animtype  = hard
damage    = 176,15
getpower = 33,33
guardflag = M
pausetime = 30,30
sparkno = s7002
sparkxy = -10,-77
;hitsound   = s222,0
guardsound = s120,0
guard.sparkno = s7012
ground.type = high
ground.slidetime = 17
ground.hittime  = 17
ground.velocity = -10.5
air.velocity = -2.5,-4
ID = fvar(11)
envshake.time = 8
envshake.ampl = 8

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 9095
id = 9095
scale = 1,1.5
sprpriority = 999999999
postype = back
pos = 1,-90
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add

[State 23000]
type = Explod
trigger1 = Time = 0
anim = 9099
id = 9095
scale = 0.5,0.5
sprpriority = 999999999
postype = back
pos = 0,0
bindtime = -1
supermove = 0
under = 0
ownpal = 1
ontop = 1
trans = add

[state 2217]
type = destroyself
trigger1 = hitcount >= 35
trigger2 = root,stateno != 2216

;---------------------------------------------------------------------------
;壁
;---------------------------------------------------------------------------

[Statedef 2219]
type    = A
movetype= I
physics = N
juggle  = 0
poweradd= 0
velset = 0,0
ctrl = 0
anim = 2320

[state 2219]
type = nothitby
trigger1 = 1
value = SCA

[State 2219]
type = velset
trigger1 = 1
x = IfElse((enemy,movetype != H),4.2,0)

[state 2219]
type = posset
trigger1 = p2Dist X < 0
x = enemy,pos x

[state 2219]
type = posset
trigger1 = p2Dist X > 100
x = enemy,pos x

[state 2219]
type = posadd
trigger1 = pos x = enemy,pos x
x = -10

[State 2219]
type = PlayerPush
trigger1 = 1
value = 1

[state 2219]
type = destroyself
trigger1 = root,stateno != 2216