--[[

霊夢、魔理沙のフレームを確認して分かったのは、導入5F程度は認識しないとするといい点
単純に見えないので。

▲
ガードは予防的ガードと確認的ガードがある
確認的ガードは、率直に見てからガードする行為だ
一方で、予防的ガードとは、見てからガードが間に合わないために、予めガードにつながる行動をしておくこと

まず、確認的ガードを実装する

霊夢：
立,屈,空,6D,飛:180,115,45-180,140,45-190
S5A:6f,100x60-140
L5A:4f,240x80-110
6A:4f,150x20-160
6Ah:,150x20-160
2A:6f,40-240x40
3A:4f,110x180
3Ah:,100x40
DA:3f,130x90-130
J5A:7f,45-145x30-130
J6A:8f,0-130x70-150
J2A:9f,30-130x-15-125
J8A:7f,20-105x85-205
5B:5f,110x100
6B:5f,90x160
2B:11f,80x0
J5B/J6B:4f,80x120
J2B:4f,60x80
DB:4f,100x40
5C/6C:9f,40x120
2C:3f,10x0
J5C:60x100
J2C:1f,60x80
DC:5f,120x-20-220

魔理沙：
立,屈,空,6D,飛:170,120,40-175,115,40-135
S5A:4f,90x90-130
L5A:5f,90x60-150
6A:5f,85x20-140
6Ah:,95x10-160
2A:6f,140x25
3A:7f,210x55
3Ah:,240x60
DA:4f,130x60-110
J5A:8f,15-110x35-110
J6A:5f,30-185x55-170
J6Ah:,80x110
J2A:5f,20-105x-70-20
J2Ah:,30x0
J8A:7f,30-95x125-225/30-80x165-250
5B:5f,100x100
6B:5f,90x130
2B:5f,90x70
J5B:5f,70x120
J2B:5f,70x90
DB:5f,180x60-150
5C:5f,40x80
6C:5f,40x80
2C:7f,80x180
J5C:5f,40x110
J6C:5f,40x110
J2C:9f,30x30
DC:7f,75-160x140-220/120-210x160

咲夜：
立,屈,空,6D,飛:200,110,40-185,115,35-135
S5A:6f,95x90-150
L5A:7f,160x90-130
6A:7f,20-150x30
2A:30-190x35
3A:150x40-215/155x60-240
3Ah:150x40-215/155x60-240
DA:160x90-130
J5A:30-140x35-115
J6A:30-170x85-130/50-90x50-160
J2A:25-90x10-115
J8A:25-120x140-260
DB:30-220x90-120
DC:80-190x20-190

アリス：
立,屈,空,6D,飛:190,130,50-185,130,20-140
S5A:80x20-70
L5A:160-280x20-140
6A:200-340x80-110
2A:105x-5-25
3A:220x120/////180x260(80*80*6)
DA:90x40-120
J5A:30-130x40-90
J6A:30-170x85-130/50-90x50-160
J2A:25-90x10-115
J8A:25-120x140-260
DB:30-220x90-120
DC:80-190x20-190


--]]
--汎用中下段ガード。基本は行動に対して後退入れ込み。下段のみ抽出して反応。通常射撃も同じく下段で受ける(けどメンドウだから今回は省き)。フラグを抜けてくるものは別個に対応

	elseif enemy_act>=300 and --打撃、射撃、スキル、スペル、シスカをすべてフィルタ
	dis<=500 and
	weather~=13 and --台風をフィルタ
	get_special_data(0,10)<=20 and --無念無想をフィルタ
	(get_fflags(1,64) or get_aflags(1,8192) or get_aflags(1,16384) or get_aflags(1,32768)) and --被ＣＨ、空中攻撃判定、中段判定、下段判定をフィルタ
	(
	(enemy_char== 0 and (enemy_act==303 or (enemy_act==304 and enemy_allframe>=20) or enemy_act==408 or enemy_act==541 or enemy_act==565 or enemy_act==566)) or
	(enemy_char== 1 and (enemy_act==303 or enemy_act==304)) or
	(enemy_char== 2 and (enemy_act==302 or enemy_act==303)) or
	(enemy_char== 3 and (enemy_act==300 or enemy_act==303 or enemy_act==305 or enemy_act==320 or enemy_act==321 or enemy_act==330 or enemy_act==418 or enemy_act==610)) or
	(enemy_char== 4 and (enemy_act==303 or enemy_act==304 or enemy_act==305)) or
	(enemy_char== 5 and (enemy_act==300 or enemy_act==303 or enemy_act==304 or enemy_act==311 or enemy_act==320 or enemy_act==322 or enemy_act==330 or enemy_act==408 or ((enemy_act==540 or enemy_act==541)and ey==0) or enemy_act==545 or enemy_act==546)) or
	(enemy_char== 6 and (enemy_act==300 or enemy_act==301 or enemy_act==303 or enemy_act==304)) or
	(enemy_char== 7 and (enemy_act==303 or enemy_act==304 or enemy_act==311)) or 
	(enemy_char== 8 and (enemy_act==301 or enemy_act==303 or enemy_act==304 or enemy_act==418 or enemy_act==565 or enemy_act==566)) or 
	(enemy_char== 9 and (enemy_act==303 or enemy_act==304 or enemy_act==311 or enemy_act==402 or enemy_act==408 or enemy_act==510 or enemy_act==511 or enemy_act==525 or enemy_act==526)) or 
	(enemy_char==10 and (enemy_act==303 or enemy_act==304 or enemy_act==311 or enemy_act==408)) or
	(enemy_char==11 and (enemy_act==303 or enemy_act==304 or enemy_act==311)) or 
	(enemy_char==12 and (enemy_act==302 or enemy_act==303 or enemy_act==408)) or 
	(enemy_char==13 and (enemy_act==303 or enemy_act==304)) or 
	(enemy_char==14 and (enemy_act==303 or enemy_act==320 or enemy_act==322 or enemy_act==408 or enemy_act==505 or enemy_act==560 or enemy_act==561)) or 
	(enemy_char==15 and (enemy_act==301 or enemy_act==303 or enemy_act==304)) or 
	(enemy_char==16 and (enemy_act==303 or enemy_act==304 or enemy_act==418)) or 
	(enemy_char==17 and (enemy_act==303 or enemy_act==304 or enemy_act==418 or enemy_act==540 or enemy_act==541)) or 
	(enemy_char==18 and (enemy_act==302 or enemy_act==303 or enemy_act==321 or enemy_act==510 or enemy_act==511)) or 
	(enemy_char==19 and (enemy_act==300 or enemy_act==301 or enemy_act==303 or enemy_act==309 or enemy_act==320 or enemy_act==330))
	) and weather~=13 then --下段判定をフィルタ
		key_resetEX();
		print("下段条件確認　⇒　しゃがみガード　　　　　-");
		key_on(d_back);
		
	elseif dis<=500 and get_special_data(0,10)<=20 and (
	(enemy_char== 0 and ((enemy_act==300 and enemy_frame<=9) or (enemy_act==320 and enemy_frame<=8) or (enemy_act==330 and enemy_frame<=9))) or
	(enemy_char== 1 and ((enemy_act==300 and enemy_frame<=8) or (enemy_act==320 and enemy_frame<=8) or (enemy_act==330 and enemy_frame<=8))) or
	(enemy_char== 2 and ((enemy_act==300 and enemy_frame<=9) or (enemy_act==320 and enemy_frame<=8) or (enemy_act==330 and enemy_frame<=9))) or
	(enemy_char== 3 and ((enemy_act==300 and enemy_frame<=11) or (enemy_act==320 and enemy_frame<=10) or (enemy_act==330 and enemy_frame<=11))) or
	(enemy_char== 5 and ((enemy_act==300 and enemy_frame<=9) or (enemy_act==303 and enemy_frame<=10) or (enemy_act==320 and enemy_frame<=9) or (enemy_act==330 and enemy_frame<=9))) or
	(enemy_char== 6 and ((enemy_act==300 and enemy_frame<=9) or (enemy_act==320 and enemy_frame<=9) or (enemy_act==330 and enemy_frame<=9))) or
	(enemy_char== 8 and ((enemy_act==300 and enemy_frame<=11) or (enemy_act==303 and enemy_frame<=10) or (enemy_act==320 and enemy_frame<=11) or (enemy_act==330 and enemy_frame<=11))) or
	(enemy_char==10 and ((enemy_act==300 and enemy_frame<=8) or (enemy_act==303 and enemy_frame<=8) or (enemy_act==320 and enemy_frame<=8) or (enemy_act==330 and enemy_frame<=8))) or
	(enemy_char==11 and ((enemy_act==300 and enemy_frame<=8) or (enemy_act==303 and enemy_frame<=9) or (enemy_act==320 and enemy_frame<=9) or (enemy_act==330 and enemy_frame<=8))) or
	(enemy_char==12 and ((enemy_act==303 and enemy_frame<=10) or (enemy_act==305 and enemy_frame<=15))) or
	(enemy_char==13 and ((enemy_act==320 and enemy_frame<=12))) or
	(enemy_char==15 and ((enemy_act==300 and enemy_frame<=8) or (enemy_act==303 and enemy_frame<=8) or (enemy_act==330 and enemy_frame<=8))) or
	(enemy_char==16 and ((enemy_act==300 and enemy_frame<=7) or (enemy_act==303 and enemy_frame<=6) or (enemy_act==320 and enemy_frame<=7) or (enemy_act==330 and enemy_frame<=7))) or
	(enemy_char==17 and ((enemy_act==300 and enemy_frame<=7) or (enemy_act==303 and enemy_frame<=8) or (enemy_act==320 and enemy_frame<=7) or (enemy_act==330 and enemy_frame<=7))) or
	(enemy_char==19 and ((enemy_act==300 and enemy_frame<=8) or (enemy_act==302 and enemy_allframe<=14) or (enemy_act==320 and enemy_frame<=9) or (enemy_act==330 and enemy_frame<=8)))
	) and weather~=13 then --フラグを抜けてくるものをフィルタ
		key_resetEX();
		print("フラグ抜け　⇒　しゃがみガード　　　　　-");
		key_on(d_back);
		
