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

;===========================================================================
;[-2 states]

[StateDef -2]

[State -2, Combo Reset]
Type = VarSet
trigger1 = MoveType = H
trigger1 = Stateno != [130, 153]
trigger2 = roundstate != 2
trigger3 = stateno = [150, 155]
trigger4 = stateno = [800, 820]
var(55) = 0

[State -2, Active Defense]
Type = VarSet
triggerall = time >= 0
trigger1 = stateno = 150
trigger2 = stateno = 152
var(55) = 131072
ignorehitpause = 1

[State -2, Active Defense]
Type = VarSet
triggerall = time >= 0
trigger1 = stateno != 200
var(54) = 0
ignorehitpause = 1

[State -2, Taunt]
Type = VarAdd
trigger1 = var(41) > 0
var(41) = -1
ignorehitpause = 1

[State -2, ComboCounter Reset]
Type = VarSet
trigger1 = P2MoveType != H
var(51) = 0

[State -2, Projhit counts toward damage dampner]
Type = VarAdd
trigger1 = var(44) = 15
v = 51
value = 1

[State -2, Damage Dampner]
Type = VarSet
trigger1 = MoveType != A
var(42) = 1

[State -2, ProjPause]
Type = Pause
trigger1 = var(44) % 2
time = 2

[State -2, VarDec]
Type = VarAdd
trigger1 = var(44) > 0
v = 44
value = -1

[State -2, Special Cancel Limiter Reset]
Type = VarSet
trigger1 = movetype != A
var(49) = 2

[State -2, Chain Flag reset]
Type = VarSet
trigger1 = movetype = I
var(54) = 0

[State -2, Check for limit]
Type = VarSet
trigger1 = var(49) = 0
var(55) = var(55) & 57344

[State -2, HitWeak]
type = PlaySnd
triggerall = Time = 1
triggerall = alive
triggerall = Random < 333
trigger1 = movetype = H
trigger1 = anim % 10 = 0
trigger1 = stateno = 5000 || stateno = 5010 || stateno = 5020 || stateno = 5070 || stateno = 5080
value = 5000,0
ignorehitpause = 1
channel = 0

[State -2, HitStrong]
type = PlaySnd
triggerall = Time = 1
triggerall = alive
triggerall = Random < 333
trigger1 = movetype = H
trigger1 = anim % 10 = 2
trigger1 = stateno = 5000 || stateno = 5010 || stateno = 5020 || stateno = 5070 || stateno = 5080
value = 5000,1
ignorehitpause = 1
channel = 0

[State -2, NoAirGuard]
Type = AssertSpecial
trigger1 = 1
flag = noairguard
ignorehitpause= 1

;===========================================================================
;StateDef - 3

[StateDef -3]

[State -3, JuggleVarSet]
Type = VarSet
trigger1 = NumTarget = 0
trigger1 = MoveType != A
trigger2 = (P2MoveType != H)
trigger3 = var(36) > 0 
trigger4 = var(45) = 10
trigger4 = (var(49) > 0) || (var(54) = 3)
var(47) = 15

[State -3, Special Flag Reset]
Type = VarSet
trigger1 = NumTarget = 0
var(40) = 0

[State -3, Special Cancel Time]
Type = VarAdd
trigger1 = var(45) > 0
v = 45
value = -1

[State -3, Counter Juggle Time]
Type = VarAdd
trigger1 = var(36) > 0
v = 36
value = -1
ignorehitpause = 1

[State -3, Debug]
Type = DisplayToClipBoard
trigger1 = 1
text = "fvar(28) : %f, var(51) : %d, var(55): %d, var(47): %d, Var(54): %d"
params = fvar(28), var(51), var(55), var(47), var(54)


