;===========================================================================
; グレイズ多重化ステート
;===========================================================================
[statedef 119]
type = U
movetype = U
physics = U


;---------------------------------------------------------------------------
;回避結界のジャンプ
[State 50, 1]
type = VarSet
triggerall = var(3) = 50
trigger1 = Time = 0
sysvar(1) = 0

[state 50, 回避結界]
type = ctrlset
triggerall = var(3) = 50
trigger1 = (var(14) & (1073741824)) = (1073741824)
value = 0

[State 50, 2]
type = ChangeAnim
triggerall = var(3) = 50
triggerall = Time = 0
trigger1 = prevstateno != 50
value = ifelse((vel x)=0, 41, ifelse((vel x)>0, 42, 43))

[state 50, ]
type = changeanim
triggerall = var(3) = 50
triggerall = time = 0
trigger1 = prevstateno = 700 || prevstateno = 701
trigger2 = prevstateno = 710 || prevstateno = 711
trigger3 = prevstateno = 2001
trigger4 = prevstateno = 2053
value = 48

[State 50, 3]
type = ChangeAnim
triggerall = var(3) = 50
trigger1 = Vel y > -2
trigger1 = SelfAnimExist(anim + 3)
persistent = 0
value = Anim + 3



;---------------------------------------------------------------------------
DC
[State 241, 音を鳴らす]
type = PlaySnd
trigger1 = animelem = 3
value = 1, 2

[State 241, ヒット定義]
type = HitDef
trigger1 = animelem = 4
attr = A, NA
damage = ceil(fvar(10)*30)
getpower = 200,100
guardflag = HA
priority = 3
pausetime = 12,11
sparkno = -1;S20070
sparkxy = -1;-5,-64
hitsound   = S0,2
guardsound = S2,0
ground.type = High
ground.slidetime = 6
ground.hittime  = 30
air.hittime  = 40
ground.velocity = -4,-2
air.velocity = -2,-3
fall = 1

[state 241, 補正]
type = varset
trigger1 = movehit = 1
fvar(10) = fvar(10)*0.90
ignorehitpause = 1
persistent = 0

[state 241, エフェクト表示]
type = explod
trigger1 = movehit = 1
ID = 241
anim = 20070
postype = p1
pos = floor(fvar(12)),floor(fvar(13))
velocity = 0,0
ownpal = 1
sprpriority = 6
removetime = -2
ignorehitpause = 1
supermovetime = 999
pausemovetime = 999
persistent = 0

[state 241, ]
type = changestate
trigger1 = animtime = 0
value = 242
ctrl = 0



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


