From bc7d9b5226bd3ea0539f946f9d1363bac2cb9135 Mon Sep 17 00:00:00 2001 From: Naim Date: Sat, 19 Apr 2025 09:00:11 -0300 Subject: [PATCH] update unofficial scripts --- goat/c504700084.lua | 2 +- unofficial/c100000000.lua | 10 ++--- unofficial/c100000002.lua | 2 +- unofficial/c100000003.lua | 2 +- unofficial/c100000004.lua | 2 +- unofficial/c100000005.lua | 2 +- unofficial/c100000006.lua | 2 +- unofficial/c100000007.lua | 2 +- unofficial/c100000008.lua | 2 +- unofficial/c100000009.lua | 2 +- unofficial/c100000010.lua | 4 +- unofficial/c100000012.lua | 4 +- unofficial/c100000013.lua | 6 +-- unofficial/c100000014.lua | 8 ++-- unofficial/c100000015.lua | 2 +- unofficial/c100000020.lua | 6 +-- unofficial/c100000021.lua | 4 +- unofficial/c100000022.lua | 4 +- unofficial/c100000024.lua | 2 +- unofficial/c100000025.lua | 2 +- unofficial/c100000027.lua | 2 +- unofficial/c100000029.lua | 2 +- unofficial/c100000030.lua | 2 +- unofficial/c100000031.lua | 2 +- unofficial/c100000032.lua | 2 +- unofficial/c100000034.lua | 2 +- unofficial/c100000035.lua | 2 +- unofficial/c100000036.lua | 2 +- unofficial/c100000037.lua | 2 +- unofficial/c100000038.lua | 6 +-- unofficial/c100000039.lua | 8 ++-- unofficial/c100000040.lua | 4 +- unofficial/c100000042.lua | 6 +-- unofficial/c100000043.lua | 4 +- unofficial/c100000044.lua | 4 +- unofficial/c100000045.lua | 4 +- unofficial/c100000046.lua | 4 +- unofficial/c100000047.lua | 4 +- unofficial/c100000048.lua | 6 +-- unofficial/c100000049.lua | 4 +- unofficial/c100000050.lua | 4 +- unofficial/c100000051.lua | 4 +- unofficial/c100000052.lua | 4 +- unofficial/c100000053.lua | 4 +- unofficial/c100000054.lua | 4 +- unofficial/c100000055.lua | 6 +-- unofficial/c100000056.lua | 4 +- unofficial/c100000057.lua | 4 +- unofficial/c100000058.lua | 4 +- unofficial/c100000059.lua | 4 +- unofficial/c100000060.lua | 4 +- unofficial/c100000061.lua | 6 +-- unofficial/c100000062.lua | 4 +- unofficial/c100000063.lua | 6 +-- unofficial/c100000064.lua | 4 +- unofficial/c100000065.lua | 4 +- unofficial/c100000066.lua | 6 +-- unofficial/c100000067.lua | 6 +-- unofficial/c100000068.lua | 12 ++--- unofficial/c100000069.lua | 2 +- unofficial/c100000070.lua | 2 +- unofficial/c100000072.lua | 2 +- unofficial/c100000073.lua | 2 +- unofficial/c100000075.lua | 2 +- unofficial/c100000076.lua | 2 +- unofficial/c100000078.lua | 4 +- unofficial/c100000079.lua | 6 +-- unofficial/c100000080.lua | 2 +- unofficial/c100000081.lua | 2 +- unofficial/c100000083.lua | 2 +- unofficial/c100000084.lua | 2 +- unofficial/c100000085.lua | 2 +- unofficial/c100000086.lua | 2 +- unofficial/c100000087.lua | 4 +- unofficial/c100000088.lua | 8 ++-- unofficial/c100000089.lua | 2 +- unofficial/c100000090.lua | 6 +-- unofficial/c100000091.lua | 10 ++--- unofficial/c100000092.lua | 2 +- unofficial/c100000093.lua | 4 +- unofficial/c100000094.lua | 4 +- unofficial/c100000096.lua | 2 +- unofficial/c100000097.lua | 2 +- unofficial/c100000098.lua | 2 +- unofficial/c100000099.lua | 8 ++-- unofficial/c100000100.lua | 2 +- unofficial/c100000101.lua | 2 +- unofficial/c100000103.lua | 2 +- unofficial/c100000104.lua | 2 +- unofficial/c100000105.lua | 2 +- unofficial/c100000106.lua | 2 +- unofficial/c100000107.lua | 6 +-- unofficial/c100000108.lua | 6 +-- unofficial/c100000109.lua | 2 +- unofficial/c100000110.lua | 4 +- unofficial/c100000111.lua | 2 +- unofficial/c100000113.lua | 4 +- unofficial/c100000114.lua | 4 +- unofficial/c100000115.lua | 6 +-- unofficial/c100000116.lua | 2 +- unofficial/c100000117.lua | 2 +- unofficial/c100000118.lua | 2 +- unofficial/c100000119.lua | 6 +-- unofficial/c100000120.lua | 6 +-- unofficial/c100000121.lua | 8 ++-- unofficial/c100000122.lua | 12 ++--- unofficial/c100000136.lua | 2 +- unofficial/c100000137.lua | 2 +- unofficial/c100000138.lua | 2 +- unofficial/c100000139.lua | 2 +- unofficial/c100000140.lua | 2 +- unofficial/c100000141.lua | 2 +- unofficial/c100000142.lua | 2 +- unofficial/c100000143.lua | 2 +- unofficial/c100000144.lua | 2 +- unofficial/c100000145.lua | 2 +- unofficial/c100000146.lua | 2 +- unofficial/c100000149.lua | 2 +- unofficial/c100000150.lua | 4 +- unofficial/c100000151.lua | 2 +- unofficial/c100000152.lua | 6 +-- unofficial/c100000153.lua | 4 +- unofficial/c100000154.lua | 2 +- unofficial/c100000155.lua | 2 +- unofficial/c100000156.lua | 2 +- unofficial/c100000157.lua | 2 +- unofficial/c100000158.lua | 2 +- unofficial/c100000160.lua | 2 +- unofficial/c100000162.lua | 2 +- unofficial/c100000163.lua | 2 +- unofficial/c100000166.lua | 4 +- unofficial/c100000167.lua | 2 +- unofficial/c100000168.lua | 2 +- unofficial/c100000169.lua | 2 +- unofficial/c100000170.lua | 2 +- unofficial/c100000171.lua | 2 +- unofficial/c100000172.lua | 8 ++-- unofficial/c100000173.lua | 2 +- unofficial/c100000174.lua | 2 +- unofficial/c100000175.lua | 2 +- unofficial/c100000176.lua | 2 +- unofficial/c100000177.lua | 2 +- unofficial/c100000178.lua | 2 +- unofficial/c100000179.lua | 2 +- unofficial/c100000180.lua | 2 +- unofficial/c100000181.lua | 2 +- unofficial/c100000182.lua | 2 +- unofficial/c100000183.lua | 2 +- unofficial/c100000186.lua | 4 +- unofficial/c100000187.lua | 2 +- unofficial/c100000188.lua | 2 +- unofficial/c100000189.lua | 2 +- unofficial/c100000191.lua | 2 +- unofficial/c100000192.lua | 2 +- unofficial/c100000193.lua | 3 +- unofficial/c100000194.lua | 2 +- unofficial/c100000195.lua | 2 +- unofficial/c100000196.lua | 2 +- unofficial/c100000197.lua | 2 +- unofficial/c100000198.lua | 4 +- unofficial/c100000199.lua | 4 +- unofficial/c100000200.lua | 2 +- unofficial/c100000209.lua | 6 +-- unofficial/c100000210.lua | 4 +- unofficial/c100000211.lua | 4 +- unofficial/c100000212.lua | 2 +- unofficial/c100000218.lua | 2 +- unofficial/c100000219.lua | 2 +- unofficial/c100000220.lua | 2 +- unofficial/c100000221.lua | 6 +-- unofficial/c100000222.lua | 6 +-- unofficial/c100000224.lua | 2 +- unofficial/c100000225.lua | 6 +-- unofficial/c100000226.lua | 2 +- unofficial/c100000227.lua | 2 +- unofficial/c100000228.lua | 2 +- unofficial/c100000233.lua | 2 +- unofficial/c100000234.lua | 2 +- unofficial/c100000235.lua | 2 +- unofficial/c100000237.lua | 2 +- unofficial/c100000238.lua | 2 +- unofficial/c100000239.lua | 2 +- unofficial/c100000241.lua | 4 +- unofficial/c100000242.lua | 4 +- unofficial/c100000243.lua | 2 +- unofficial/c100000244.lua | 2 +- unofficial/c100000245.lua | 4 +- unofficial/c100000246.lua | 12 ++--- unofficial/c100000247.lua | 2 +- unofficial/c100000248.lua | 2 +- unofficial/c100000250.lua | 4 +- unofficial/c100000251.lua | 8 ++-- unofficial/c100000252.lua | 6 +-- unofficial/c100000253.lua | 10 ++--- unofficial/c100000254.lua | 8 ++-- unofficial/c100000255.lua | 2 +- unofficial/c100000256.lua | 2 +- unofficial/c100000257.lua | 14 +++--- unofficial/c100000258.lua | 2 +- unofficial/c100000260.lua | 2 +- unofficial/c100000261.lua | 2 +- unofficial/c100000263.lua | 2 +- unofficial/c100000264.lua | 2 +- unofficial/c100000265.lua | 2 +- unofficial/c100000270.lua | 2 +- unofficial/c100000271.lua | 2 +- unofficial/c100000272.lua | 4 +- unofficial/c100000274.lua | 2 +- unofficial/c100000275.lua | 2 +- unofficial/c100000276.lua | 4 +- unofficial/c100000277.lua | 4 +- unofficial/c100000278.lua | 2 +- unofficial/c100000280.lua | 2 +- unofficial/c100000281.lua | 2 +- unofficial/c100000282.lua | 2 +- unofficial/c100000285.lua | 2 +- unofficial/c100000286.lua | 2 +- unofficial/c100000287.lua | 6 +-- unofficial/c100000290.lua | 2 +- unofficial/c100000291.lua | 2 +- unofficial/c100000293.lua | 2 +- unofficial/c100000295.lua | 4 +- unofficial/c100000296.lua | 2 +- unofficial/c100000297.lua | 2 +- unofficial/c100000301.lua | 8 ++-- unofficial/c100000302.lua | 2 +- unofficial/c100000303.lua | 2 +- unofficial/c100000307.lua | 2 +- unofficial/c100000308.lua | 6 +-- unofficial/c100000309.lua | 4 +- unofficial/c100000312.lua | 2 +- unofficial/c100000315.lua | 2 +- unofficial/c100000316.lua | 2 +- unofficial/c100000317.lua | 2 +- unofficial/c100000318.lua | 14 +++--- unofficial/c100000320.lua | 2 +- unofficial/c100000321.lua | 3 +- unofficial/c100000322.lua | 2 +- unofficial/c100000323.lua | 2 +- unofficial/c100000330.lua | 6 +-- unofficial/c100000331.lua | 6 +-- unofficial/c100000332.lua | 6 +-- unofficial/c100000333.lua | 7 ++- unofficial/c100000335.lua | 2 +- unofficial/c100000336.lua | 2 +- unofficial/c100000343.lua | 2 +- unofficial/c100000344.lua | 2 +- unofficial/c100000345.lua | 2 +- unofficial/c100000346.lua | 2 +- unofficial/c100000347.lua | 2 +- unofficial/c100000348.lua | 2 +- unofficial/c100000349.lua | 2 +- unofficial/c100000350.lua | 2 +- unofficial/c100000351.lua | 2 +- unofficial/c100000355.lua | 2 +- unofficial/c100000360.lua | 2 +- unofficial/c100000361.lua | 2 +- unofficial/c100000363.lua | 2 +- unofficial/c100000364.lua | 2 +- unofficial/c100000365.lua | 2 +- unofficial/c100000370.lua | 2 +- unofficial/c100000380.lua | 2 +- unofficial/c100000381.lua | 2 +- unofficial/c100000382.lua | 2 +- unofficial/c100000383.lua | 2 +- unofficial/c100000384.lua | 2 +- unofficial/c100000390.lua | 4 +- unofficial/c100000391.lua | 6 +-- unofficial/c100000410.lua | 4 +- unofficial/c100000411.lua | 2 +- unofficial/c100000412.lua | 4 +- unofficial/c100000413.lua | 8 ++-- unofficial/c100000414.lua | 2 +- unofficial/c100000430.lua | 2 +- unofficial/c100000431.lua | 2 +- unofficial/c100000432.lua | 2 +- unofficial/c100000440.lua | 2 +- unofficial/c100000441.lua | 2 +- unofficial/c100000442.lua | 2 +- unofficial/c100000444.lua | 4 +- unofficial/c100000445.lua | 2 +- unofficial/c100000471.lua | 4 +- unofficial/c100000474.lua | 2 +- unofficial/c100000475.lua | 4 +- unofficial/c100000478.lua | 8 ++-- unofficial/c100000481.lua | 2 +- unofficial/c100000483.lua | 2 +- unofficial/c100000488.lua | 9 ++-- unofficial/c100000490.lua | 2 +- unofficial/c100000498.lua | 2 +- unofficial/c100000501.lua | 6 +-- unofficial/c100000502.lua | 6 +-- unofficial/c100000503.lua | 4 +- unofficial/c100000504.lua | 4 +- unofficial/c100000505.lua | 4 +- unofficial/c100000506.lua | 6 +-- unofficial/c100000507.lua | 6 +-- unofficial/c100000508.lua | 4 +- unofficial/c100000509.lua | 4 +- unofficial/c100000510.lua | 4 +- unofficial/c100000511.lua | 4 +- unofficial/c100000512.lua | 2 +- unofficial/c100000520.lua | 6 +-- unofficial/c100000523.lua | 4 +- unofficial/c100000524.lua | 4 +- unofficial/c100000526.lua | 4 +- unofficial/c100000527.lua | 4 +- unofficial/c100000528.lua | 4 +- unofficial/c100000529.lua | 4 +- unofficial/c100000530.lua | 2 +- unofficial/c100000531.lua | 6 +-- unofficial/c100000532.lua | 4 +- unofficial/c100000533.lua | 2 +- unofficial/c100000535.lua | 4 +- unofficial/c100000536.lua | 2 +- unofficial/c100000537.lua | 9 ++-- unofficial/c100000538.lua | 2 +- unofficial/c100000539.lua | 4 +- unofficial/c100000541.lua | 8 ++-- unofficial/c100000542.lua | 8 ++-- unofficial/c100000543.lua | 2 +- unofficial/c100000544.lua | 2 +- unofficial/c100000545.lua | 2 +- unofficial/c100000547.lua | 2 +- unofficial/c100000548.lua | 8 ++-- unofficial/c100000549.lua | 3 +- unofficial/c100000550.lua | 10 ++--- unofficial/c100000551.lua | 2 +- unofficial/c100000552.lua | 6 +-- unofficial/c100000554.lua | 2 +- unofficial/c100000555.lua | 6 +-- unofficial/c100000557.lua | 2 +- unofficial/c100000560.lua | 2 +- unofficial/c100000561.lua | 2 +- unofficial/c100000562.lua | 2 +- unofficial/c100000563.lua | 2 +- unofficial/c100000565.lua | 2 +- unofficial/c100000570.lua | 2 +- unofficial/c100000571.lua | 2 +- unofficial/c100000581.lua | 4 +- unofficial/c100000582.lua | 4 +- unofficial/c100000600.lua | 4 +- unofficial/c100000601.lua | 4 +- unofficial/c100000602.lua | 6 +-- unofficial/c100000603.lua | 2 +- unofficial/c100000604.lua | 2 +- unofficial/c100000633.lua | 2 +- unofficial/c100000650.lua | 2 +- unofficial/c100000651.lua | 2 +- unofficial/c100000652.lua | 2 +- unofficial/c100000653.lua | 2 +- unofficial/c100000654.lua | 2 +- unofficial/c100000655.lua | 2 +- unofficial/c100000656.lua | 2 +- unofficial/c100000657.lua | 8 ++-- unofficial/c100000658.lua | 8 ++-- unofficial/c100000659.lua | 8 ++-- unofficial/c100000660.lua | 8 ++-- unofficial/c100000661.lua | 8 ++-- unofficial/c100000662.lua | 8 ++-- unofficial/c100000663.lua | 8 ++-- unofficial/c100000664.lua | 2 +- unofficial/c100001001.lua | 2 +- unofficial/c100001002.lua | 2 +- unofficial/c100001003.lua | 2 +- unofficial/c100001004.lua | 2 +- unofficial/c100001005.lua | 2 +- unofficial/c100001006.lua | 2 +- unofficial/c100002001.lua | 2 +- unofficial/c100002002.lua | 6 +-- unofficial/c100003002.lua | 2 +- unofficial/c100003003.lua | 2 +- unofficial/c100003004.lua | 2 +- unofficial/c100004001.lua | 8 ++-- unofficial/c100004002.lua | 8 ++-- unofficial/c100004003.lua | 2 +- unofficial/c100005001.lua | 8 ++-- unofficial/c100005002.lua | 2 +- unofficial/c100006001.lua | 6 +-- unofficial/c100008001.lua | 2 +- unofficial/c100010001.lua | 4 +- unofficial/c100100001.lua | 8 ++-- unofficial/c100100002.lua | 2 +- unofficial/c100100003.lua | 2 +- unofficial/c100100004.lua | 2 +- unofficial/c100100005.lua | 2 +- unofficial/c100100006.lua | 2 +- unofficial/c100100007.lua | 4 +- unofficial/c100100008.lua | 2 +- unofficial/c100100009.lua | 2 +- unofficial/c100100010.lua | 2 +- unofficial/c100100011.lua | 8 ++-- unofficial/c100100012.lua | 2 +- unofficial/c100100013.lua | 2 +- unofficial/c100100014.lua | 2 +- unofficial/c100100015.lua | 2 +- unofficial/c100100016.lua | 2 +- unofficial/c100100017.lua | 4 +- unofficial/c100100018.lua | 4 +- unofficial/c100100019.lua | 2 +- unofficial/c100100020.lua | 2 +- unofficial/c100100021.lua | 2 +- unofficial/c100100022.lua | 2 +- unofficial/c100100023.lua | 2 +- unofficial/c100100024.lua | 4 +- unofficial/c100100025.lua | 2 +- unofficial/c100100026.lua | 2 +- unofficial/c100100027.lua | 2 +- unofficial/c100100028.lua | 2 +- unofficial/c100100029.lua | 2 +- unofficial/c100100030.lua | 2 +- unofficial/c100100031.lua | 2 +- unofficial/c100100032.lua | 2 +- unofficial/c100100033.lua | 2 +- unofficial/c100100034.lua | 2 +- unofficial/c100100035.lua | 2 +- unofficial/c100100036.lua | 2 +- unofficial/c100100037.lua | 2 +- unofficial/c100100038.lua | 2 +- unofficial/c100100039.lua | 2 +- unofficial/c100100040.lua | 2 +- unofficial/c100100041.lua | 2 +- unofficial/c100100042.lua | 2 +- unofficial/c100100043.lua | 2 +- unofficial/c100100044.lua | 2 +- unofficial/c100100045.lua | 2 +- unofficial/c100100046.lua | 2 +- unofficial/c100100047.lua | 2 +- unofficial/c100100048.lua | 2 +- unofficial/c100100049.lua | 2 +- unofficial/c100100050.lua | 2 +- unofficial/c100100051.lua | 4 +- unofficial/c100100052.lua | 2 +- unofficial/c100100054.lua | 2 +- unofficial/c100100055.lua | 2 +- unofficial/c100100056.lua | 2 +- unofficial/c100100057.lua | 2 +- unofficial/c100100058.lua | 2 +- unofficial/c100100059.lua | 2 +- unofficial/c100100060.lua | 2 +- unofficial/c100100061.lua | 2 +- unofficial/c100100062.lua | 2 +- unofficial/c100100063.lua | 2 +- unofficial/c100100064.lua | 2 +- unofficial/c100100065.lua | 2 +- unofficial/c100100066.lua | 2 +- unofficial/c100100067.lua | 2 +- unofficial/c100100068.lua | 4 +- unofficial/c100100069.lua | 2 +- unofficial/c100100070.lua | 2 +- unofficial/c100100071.lua | 2 +- unofficial/c100100072.lua | 8 ++-- unofficial/c100100073.lua | 2 +- unofficial/c100100074.lua | 4 +- unofficial/c100100075.lua | 2 +- unofficial/c100100076.lua | 2 +- unofficial/c100100077.lua | 2 +- unofficial/c100100078.lua | 2 +- unofficial/c100100079.lua | 2 +- unofficial/c100100080.lua | 2 +- unofficial/c100100081.lua | 4 +- unofficial/c100100082.lua | 2 +- unofficial/c100100083.lua | 2 +- unofficial/c100100084.lua | 4 +- unofficial/c100100091.lua | 2 +- unofficial/c100100100.lua | 2 +- unofficial/c100100101.lua | 2 +- unofficial/c100100102.lua | 2 +- unofficial/c100100103.lua | 2 +- unofficial/c100100104.lua | 2 +- unofficial/c100100105.lua | 2 +- unofficial/c100100106.lua | 2 +- unofficial/c100100107.lua | 2 +- unofficial/c100100108.lua | 2 +- unofficial/c100100109.lua | 2 +- unofficial/c100100110.lua | 2 +- unofficial/c100100111.lua | 2 +- unofficial/c100100112.lua | 2 +- unofficial/c100100113.lua | 2 +- unofficial/c100100114.lua | 2 +- unofficial/c100100115.lua | 2 +- unofficial/c100100116.lua | 2 +- unofficial/c100100117.lua | 2 +- unofficial/c100100119.lua | 2 +- unofficial/c100100120.lua | 2 +- unofficial/c100100121.lua | 2 +- unofficial/c100100122.lua | 2 +- unofficial/c100100123.lua | 2 +- unofficial/c100100124.lua | 2 +- unofficial/c100100125.lua | 2 +- unofficial/c100100126.lua | 2 +- unofficial/c100100127.lua | 2 +- unofficial/c100100128.lua | 2 +- unofficial/c100100129.lua | 2 +- unofficial/c100100130.lua | 2 +- unofficial/c100100131.lua | 2 +- unofficial/c100100132.lua | 2 +- unofficial/c100100133.lua | 10 ++--- unofficial/c100100150.lua | 4 +- unofficial/c100100151.lua | 4 +- unofficial/c100100152.lua | 4 +- unofficial/c100100153.lua | 2 +- unofficial/c100100154.lua | 6 +-- unofficial/c100100155.lua | 2 +- unofficial/c100100500.lua | 2 +- unofficial/c100100501.lua | 2 +- unofficial/c100100502.lua | 2 +- unofficial/c100100503.lua | 2 +- unofficial/c100100504.lua | 2 +- unofficial/c100100505.lua | 2 +- unofficial/c100100506.lua | 2 +- unofficial/c100100508.lua | 2 +- unofficial/c100100509.lua | 2 +- unofficial/c100100510.lua | 2 +- unofficial/c100100511.lua | 6 +-- unofficial/c100100512.lua | 2 +- unofficial/c100100513.lua | 2 +- unofficial/c100100514.lua | 2 +- unofficial/c100100515.lua | 2 +- unofficial/c100100516.lua | 2 +- unofficial/c100100517.lua | 2 +- unofficial/c100100518.lua | 2 +- unofficial/c100100519.lua | 8 ++-- unofficial/c100100520.lua | 2 +- unofficial/c100100521.lua | 2 +- unofficial/c100100522.lua | 2 +- unofficial/c100100525.lua | 4 +- unofficial/c100100700.lua | 2 +- unofficial/c100101000.lua | 2 +- unofficial/c100101001.lua | 2 +- unofficial/c100101002.lua | 2 +- unofficial/c100101003.lua | 2 +- unofficial/c110000000.lua | 2 +- unofficial/c110000010.lua | 4 +- unofficial/c110000011.lua | 4 +- unofficial/c110000012.lua | 4 +- unofficial/c110000099.lua | 2 +- unofficial/c110000100.lua | 2 +- unofficial/c110000101.lua | 2 +- unofficial/c110000102.lua | 3 +- unofficial/c110000103.lua | 2 +- unofficial/c110000104.lua | 2 +- unofficial/c110000105.lua | 2 +- unofficial/c110000106.lua | 2 +- unofficial/c110000107.lua | 2 +- unofficial/c110000108.lua | 2 +- unofficial/c110000109.lua | 2 +- unofficial/c110000110.lua | 2 +- unofficial/c110000111.lua | 2 +- unofficial/c110000112.lua | 2 +- unofficial/c110000113.lua | 2 +- unofficial/c110000115.lua | 2 +- unofficial/c110000116.lua | 2 +- unofficial/c110000117.lua | 2 +- unofficial/c110000120.lua | 2 +- unofficial/c111008301.lua | 4 +- unofficial/c111009401.lua | 2 +- unofficial/c111011002.lua | 6 +-- unofficial/c111011401.lua | 2 +- unofficial/c111011501.lua | 4 +- unofficial/c111011802.lua | 6 +-- unofficial/c111011803.lua | 2 +- unofficial/c111011901.lua | 2 +- unofficial/c111011903.lua | 2 +- unofficial/c111011904.lua | 4 +- unofficial/c111011905.lua | 2 +- unofficial/c111011906.lua | 2 +- unofficial/c111012401.lua | 4 +- unofficial/c111203901.lua | 2 +- unofficial/c111203902.lua | 2 +- unofficial/c111215001.lua | 2 +- unofficial/c111217602.lua | 4 +- unofficial/c111302501.lua | 2 +- unofficial/c111310102.lua | 2 +- unofficial/c120000016.lua | 2 +- unofficial/c140000075.lua | 2 +- unofficial/c140000076.lua | 2 +- unofficial/c140000082.lua | 2 +- unofficial/c140000083.lua | 4 +- unofficial/c140000122.lua | 2 +- unofficial/c140000131.lua | 2 +- unofficial/c150000000.lua | 2 +- unofficial/c150000001.lua | 2 +- unofficial/c150000002.lua | 2 +- unofficial/c150000003.lua | 2 +- unofficial/c150000004.lua | 2 +- unofficial/c150000005.lua | 4 +- unofficial/c150000006.lua | 2 +- unofficial/c150000009.lua | 2 +- unofficial/c150000010.lua | 2 +- unofficial/c150000011.lua | 2 +- unofficial/c150000012.lua | 2 +- unofficial/c150000013.lua | 2 +- unofficial/c150000014.lua | 2 +- unofficial/c150000015.lua | 2 +- unofficial/c150000017.lua | 2 +- unofficial/c150000018.lua | 2 +- unofficial/c150000019.lua | 2 +- unofficial/c150000020.lua | 2 +- unofficial/c150000021.lua | 2 +- unofficial/c150000022.lua | 2 +- unofficial/c150000023.lua | 2 +- unofficial/c150000024.lua | 2 +- unofficial/c150000025.lua | 2 +- unofficial/c150000026.lua | 2 +- unofficial/c150000027.lua | 2 +- unofficial/c150000028.lua | 2 +- unofficial/c150000030.lua | 2 +- unofficial/c150000031.lua | 2 +- unofficial/c150000033.lua | 2 +- unofficial/c150000034.lua | 2 +- unofficial/c150000035.lua | 2 +- unofficial/c150000037.lua | 2 +- unofficial/c150000039.lua | 2 +- unofficial/c150000040.lua | 2 +- unofficial/c150000041.lua | 2 +- unofficial/c150000042.lua | 2 +- unofficial/c150000044.lua | 2 +- unofficial/c150000047.lua | 2 +- unofficial/c150000048.lua | 2 +- unofficial/c150000049.lua | 2 +- unofficial/c150000050.lua | 2 +- unofficial/c150000051.lua | 2 +- unofficial/c150000054.lua | 2 +- unofficial/c150000055.lua | 2 +- unofficial/c150000059.lua | 2 +- unofficial/c150000060.lua | 2 +- unofficial/c150000061.lua | 2 +- unofficial/c150000062.lua | 2 +- unofficial/c150000063.lua | 2 +- unofficial/c150000064.lua | 2 +- unofficial/c150000065.lua | 10 ++--- unofficial/c150000066.lua | 2 +- unofficial/c150000067.lua | 2 +- unofficial/c150000068.lua | 2 +- unofficial/c150000069.lua | 2 +- unofficial/c150000070.lua | 2 +- unofficial/c150000071.lua | 2 +- unofficial/c150000072.lua | 2 +- unofficial/c150000073.lua | 2 +- unofficial/c150000074.lua | 2 +- unofficial/c150000076.lua | 2 +- unofficial/c150000078.lua | 2 +- unofficial/c150000079.lua | 6 +-- unofficial/c150000080.lua | 8 ++-- unofficial/c150000081.lua | 2 +- unofficial/c150000082.lua | 2 +- unofficial/c150000083.lua | 2 +- unofficial/c150000084.lua | 4 +- unofficial/c150000085.lua | 2 +- unofficial/c150000086.lua | 2 +- unofficial/c150000087.lua | 6 +-- unofficial/c150000088.lua | 2 +- unofficial/c150000090.lua | 2 +- unofficial/c150000091.lua | 5 +-- unofficial/c150000092.lua | 2 +- unofficial/c150000094.lua | 4 +- unofficial/c150000095.lua | 4 +- unofficial/c150000096.lua | 2 +- unofficial/c150000097.lua | 2 +- unofficial/c150000098.lua | 2 +- unofficial/c150000099.lua | 2 +- unofficial/c150000100.lua | 2 +- unofficial/c150000101.lua | 2 +- unofficial/c150000102.lua | 2 +- unofficial/c150000103.lua | 2 +- unofficial/c150000104.lua | 2 +- unofficial/c150000105.lua | 8 ++-- unofficial/c150000106.lua | 8 ++-- unofficial/c150000107.lua | 2 +- unofficial/c150000108.lua | 4 +- unofficial/c150000109.lua | 2 +- unofficial/c150000110.lua | 2 +- unofficial/c150000111.lua | 2 +- unofficial/c151000000.lua | 8 ++-- unofficial/c151000003.lua | 8 ++-- unofficial/c151000005.lua | 4 +- unofficial/c151000007.lua | 2 +- unofficial/c151000015.lua | 4 +- unofficial/c151000019.lua | 4 +- unofficial/c151000020.lua | 6 +-- unofficial/c151000021.lua | 4 +- unofficial/c151000022.lua | 2 +- unofficial/c151000024.lua | 2 +- unofficial/c151000025.lua | 6 +-- unofficial/c151000026.lua | 2 +- unofficial/c151000027.lua | 8 ++-- unofficial/c151000028.lua | 2 +- unofficial/c151000029.lua | 6 +-- unofficial/c151000033.lua | 8 ++-- unofficial/c151000041.lua | 2 +- unofficial/c151000043.lua | 8 ++-- unofficial/c151000049.lua | 2 +- unofficial/c151000051.lua | 8 ++-- unofficial/c151000052.lua | 4 +- unofficial/c151000054.lua | 2 +- unofficial/c151000056.lua | 2 +- unofficial/c151000057.lua | 2 +- unofficial/c151000058.lua | 4 +- unofficial/c151999999.lua | 2 +- unofficial/c152000000.lua | 4 +- unofficial/c152000001.lua | 2 +- unofficial/c152000002.lua | 6 +-- unofficial/c152000003.lua | 2 +- unofficial/c152000004.lua | 2 +- unofficial/c152000005.lua | 8 ++-- unofficial/c152000006.lua | 2 +- unofficial/c152000007.lua | 2 +- unofficial/c152000008.lua | 2 +- unofficial/c152000009.lua | 8 ++-- unofficial/c152000010.lua | 2 +- unofficial/c152000011.lua | 2 +- unofficial/c152000012.lua | 2 +- unofficial/c152000013.lua | 2 +- unofficial/c152000014.lua | 2 +- unofficial/c152000015.lua | 2 +- unofficial/c152000018.lua | 2 +- unofficial/c153000000.lua | 2 +- unofficial/c153000001.lua | 2 +- unofficial/c153000002.lua | 2 +- unofficial/c153000003.lua | 2 +- unofficial/c153000004.lua | 2 +- unofficial/c153000005.lua | 2 +- unofficial/c153000007.lua | 2 +- unofficial/c153000008.lua | 2 +- unofficial/c153000009.lua | 2 +- unofficial/c153000010.lua | 4 +- unofficial/c153000011.lua | 6 +-- unofficial/c153000012.lua | 2 +- unofficial/c153000013.lua | 2 +- unofficial/c153000014.lua | 2 +- unofficial/c153000015.lua | 2 +- unofficial/c153000016.lua | 2 +- unofficial/c153000017.lua | 2 +- unofficial/c153000018.lua | 2 +- unofficial/c153999999.lua | 2 +- unofficial/c170000112.lua | 2 +- unofficial/c170000113.lua | 2 +- unofficial/c170000115.lua | 2 +- unofficial/c170000116.lua | 8 ++-- unofficial/c170000117.lua | 4 +- unofficial/c170000119.lua | 2 +- unofficial/c170000120.lua | 2 +- unofficial/c170000122.lua | 2 +- unofficial/c170000123.lua | 2 +- unofficial/c170000126.lua | 8 ++-- unofficial/c170000128.lua | 4 +- unofficial/c170000149.lua | 2 +- unofficial/c170000150.lua | 2 +- unofficial/c170000151.lua | 4 +- unofficial/c170000152.lua | 4 +- unofficial/c170000153.lua | 2 +- unofficial/c170000154.lua | 2 +- unofficial/c170000155.lua | 2 +- unofficial/c170000157.lua | 2 +- unofficial/c170000166.lua | 8 ++-- unofficial/c170000167.lua | 16 +++---- unofficial/c170000168.lua | 2 +- unofficial/c170000169.lua | 2 +- unofficial/c170000172.lua | 2 +- unofficial/c170000173.lua | 2 +- unofficial/c170000174.lua | 4 +- unofficial/c170000194.lua | 2 +- unofficial/c170000196.lua | 2 +- unofficial/c170000197.lua | 2 +- unofficial/c170000201.lua | 4 +- unofficial/c170000202.lua | 2 +- unofficial/c170000203.lua | 10 ++--- unofficial/c170000204.lua | 6 +-- unofficial/c170000207.lua | 2 +- unofficial/c170000210.lua | 4 +- unofficial/c171000111.lua | 2 +- unofficial/c200000000.lua | 4 +- unofficial/c200000002.lua | 4 +- unofficial/c200000003.lua | 2 +- unofficial/c200000004.lua | 4 +- unofficial/c316000124.lua | 8 ++-- unofficial/c344000000.lua | 3 +- unofficial/c344000001.lua | 2 +- unofficial/c420.lua | 2 +- unofficial/c450000000.lua | 2 +- unofficial/c450000001.lua | 2 +- unofficial/c450000103.lua | 2 +- unofficial/c450000110.lua | 2 +- unofficial/c450000111.lua | 2 +- unofficial/c450000112.lua | 2 +- unofficial/c450000130.lua | 2 +- unofficial/c450000348.lua | 8 ++-- unofficial/c450000349.lua | 4 +- unofficial/c450000350.lua | 2 +- unofficial/c450000351.lua | 2 +- unofficial/c450000352.lua | 2 +- unofficial/c450000353.lua | 2 +- unofficial/c450000354.lua | 2 +- unofficial/c450000357.lua | 2 +- unofficial/c450000410.lua | 2 +- unofficial/c500000006.lua | 2 +- unofficial/c500000008.lua | 2 +- unofficial/c500000051.lua | 2 +- unofficial/c500000140.lua | 6 +-- unofficial/c500000141.lua | 2 +- unofficial/c500000142.lua | 2 +- unofficial/c500000143.lua | 2 +- unofficial/c500000147.lua | 2 +- unofficial/c500000149.lua | 2 +- unofficial/c500000152.lua | 2 +- unofficial/c500008302.lua | 2 +- unofficial/c500008902.lua | 2 +- unofficial/c500313101.lua | 2 +- unofficial/c500314601.lua | 2 +- unofficial/c500314701.lua | 2 +- unofficial/c501000000.lua | 2 +- unofficial/c501000001.lua | 2 +- unofficial/c501000002.lua | 2 +- unofficial/c501000003.lua | 2 +- unofficial/c501000004.lua | 2 +- unofficial/c501000005.lua | 2 +- unofficial/c501000006.lua | 2 +- unofficial/c501000007.lua | 2 +- unofficial/c501000008.lua | 2 +- unofficial/c501000009.lua | 2 +- unofficial/c501000010.lua | 2 +- unofficial/c501000011.lua | 2 +- unofficial/c501000012.lua | 2 +- unofficial/c501000013.lua | 2 +- unofficial/c501000014.lua | 2 +- unofficial/c501000015.lua | 2 +- unofficial/c501000016.lua | 2 +- unofficial/c501000017.lua | 2 +- unofficial/c501000018.lua | 2 +- unofficial/c501000019.lua | 2 +- unofficial/c501000078.lua | 2 +- unofficial/c501000079.lua | 2 +- unofficial/c501000080.lua | 2 +- unofficial/c501000081.lua | 2 +- unofficial/c501000082.lua | 2 +- unofficial/c501000083.lua | 2 +- unofficial/c501000084.lua | 2 +- unofficial/c501000085.lua | 2 +- unofficial/c511000001.lua | 2 +- unofficial/c511000002.lua | 2 +- unofficial/c511000003.lua | 2 +- unofficial/c511000004.lua | 2 +- unofficial/c511000005.lua | 4 +- unofficial/c511000006.lua | 2 +- unofficial/c511000007.lua | 8 ++-- unofficial/c511000008.lua | 2 +- unofficial/c511000010.lua | 3 +- unofficial/c511000011.lua | 4 +- unofficial/c511000012.lua | 2 +- unofficial/c511000013.lua | 2 +- unofficial/c511000014.lua | 2 +- unofficial/c511000015.lua | 2 +- unofficial/c511000016.lua | 2 +- unofficial/c511000017.lua | 2 +- unofficial/c511000018.lua | 2 +- unofficial/c511000019.lua | 6 +-- unofficial/c511000021.lua | 2 +- unofficial/c511000022.lua | 2 +- unofficial/c511000023.lua | 2 +- unofficial/c511000024.lua | 2 +- unofficial/c511000026.lua | 2 +- unofficial/c511000027.lua | 2 +- unofficial/c511000028.lua | 2 +- unofficial/c511000029.lua | 2 +- unofficial/c511000030.lua | 4 +- unofficial/c511000031.lua | 2 +- unofficial/c511000032.lua | 2 +- unofficial/c511000035.lua | 4 +- unofficial/c511000036.lua | 2 +- unofficial/c511000037.lua | 2 +- unofficial/c511000038.lua | 2 +- unofficial/c511000039.lua | 2 +- unofficial/c511000040.lua | 2 +- unofficial/c511000041.lua | 2 +- unofficial/c511000043.lua | 2 +- unofficial/c511000044.lua | 2 +- unofficial/c511000046.lua | 4 +- unofficial/c511000047.lua | 6 +-- unofficial/c511000048.lua | 2 +- unofficial/c511000050.lua | 2 +- unofficial/c511000051.lua | 2 +- unofficial/c511000052.lua | 2 +- unofficial/c511000053.lua | 6 +-- unofficial/c511000054.lua | 2 +- unofficial/c511000055.lua | 2 +- unofficial/c511000056.lua | 2 +- unofficial/c511000059.lua | 2 +- unofficial/c511000060.lua | 2 +- unofficial/c511000061.lua | 6 +-- unofficial/c511000062.lua | 2 +- unofficial/c511000065.lua | 2 +- unofficial/c511000067.lua | 2 +- unofficial/c511000069.lua | 2 +- unofficial/c511000070.lua | 2 +- unofficial/c511000071.lua | 4 +- unofficial/c511000076.lua | 2 +- unofficial/c511000079.lua | 2 +- unofficial/c511000080.lua | 2 +- unofficial/c511000082.lua | 2 +- unofficial/c511000084.lua | 2 +- unofficial/c511000085.lua | 6 +-- unofficial/c511000086.lua | 2 +- unofficial/c511000087.lua | 2 +- unofficial/c511000088.lua | 2 +- unofficial/c511000089.lua | 2 +- unofficial/c511000090.lua | 2 +- unofficial/c511000091.lua | 16 +++---- unofficial/c511000092.lua | 2 +- unofficial/c511000093.lua | 2 +- unofficial/c511000094.lua | 2 +- unofficial/c511000096.lua | 2 +- unofficial/c511000098.lua | 2 +- unofficial/c511000099.lua | 2 +- unofficial/c511000100.lua | 8 ++-- unofficial/c511000103.lua | 2 +- unofficial/c511000105.lua | 2 +- unofficial/c511000106.lua | 2 +- unofficial/c511000108.lua | 2 +- unofficial/c511000109.lua | 2 +- unofficial/c511000110.lua | 2 +- unofficial/c511000111.lua | 2 +- unofficial/c511000112.lua | 2 +- unofficial/c511000116.lua | 2 +- unofficial/c511000117.lua | 4 +- unofficial/c511000118.lua | 2 +- unofficial/c511000119.lua | 4 +- unofficial/c511000121.lua | 2 +- unofficial/c511000122.lua | 2 +- unofficial/c511000123.lua | 4 +- unofficial/c511000124.lua | 10 ++--- unofficial/c511000125.lua | 2 +- unofficial/c511000126.lua | 2 +- unofficial/c511000127.lua | 2 +- unofficial/c511000128.lua | 2 +- unofficial/c511000129.lua | 3 +- unofficial/c511000130.lua | 2 +- unofficial/c511000131.lua | 2 +- unofficial/c511000132.lua | 8 ++-- unofficial/c511000133.lua | 2 +- unofficial/c511000134.lua | 4 +- unofficial/c511000135.lua | 2 +- unofficial/c511000136.lua | 2 +- unofficial/c511000137.lua | 2 +- unofficial/c511000141.lua | 2 +- unofficial/c511000142.lua | 2 +- unofficial/c511000143.lua | 2 +- unofficial/c511000145.lua | 2 +- unofficial/c511000146.lua | 10 ++--- unofficial/c511000148.lua | 24 +++++----- unofficial/c511000150.lua | 4 +- unofficial/c511000151.lua | 2 +- unofficial/c511000152.lua | 8 ++-- unofficial/c511000153.lua | 2 +- unofficial/c511000154.lua | 2 +- unofficial/c511000155.lua | 2 +- unofficial/c511000158.lua | 2 +- unofficial/c511000160.lua | 2 +- unofficial/c511000161.lua | 2 +- unofficial/c511000162.lua | 2 +- unofficial/c511000165.lua | 2 +- unofficial/c511000167.lua | 2 +- unofficial/c511000168.lua | 2 +- unofficial/c511000169.lua | 12 ++--- unofficial/c511000170.lua | 2 +- unofficial/c511000171.lua | 2 +- unofficial/c511000172.lua | 4 +- unofficial/c511000173.lua | 2 +- unofficial/c511000174.lua | 2 +- unofficial/c511000175.lua | 2 +- unofficial/c511000176.lua | 2 +- unofficial/c511000177.lua | 4 +- unofficial/c511000179.lua | 2 +- unofficial/c511000182.lua | 2 +- unofficial/c511000184.lua | 4 +- unofficial/c511000185.lua | 2 +- unofficial/c511000188.lua | 2 +- unofficial/c511000189.lua | 2 +- unofficial/c511000190.lua | 2 +- unofficial/c511000191.lua | 2 +- unofficial/c511000197.lua | 2 +- unofficial/c511000198.lua | 2 +- unofficial/c511000201.lua | 2 +- unofficial/c511000202.lua | 2 +- unofficial/c511000203.lua | 2 +- unofficial/c511000204.lua | 10 ++--- unofficial/c511000205.lua | 2 +- unofficial/c511000206.lua | 2 +- unofficial/c511000207.lua | 2 +- unofficial/c511000208.lua | 2 +- unofficial/c511000209.lua | 6 +-- unofficial/c511000210.lua | 2 +- unofficial/c511000212.lua | 2 +- unofficial/c511000215.lua | 2 +- unofficial/c511000217.lua | 2 +- unofficial/c511000218.lua | 2 +- unofficial/c511000219.lua | 2 +- unofficial/c511000220.lua | 2 +- unofficial/c511000223.lua | 2 +- unofficial/c511000225.lua | 4 +- unofficial/c511000226.lua | 2 +- unofficial/c511000227.lua | 2 +- unofficial/c511000230.lua | 8 ++-- unofficial/c511000231.lua | 8 ++-- unofficial/c511000232.lua | 8 ++-- unofficial/c511000233.lua | 8 ++-- unofficial/c511000234.lua | 4 +- unofficial/c511000239.lua | 2 +- unofficial/c511000240.lua | 2 +- unofficial/c511000241.lua | 2 +- unofficial/c511000242.lua | 2 +- unofficial/c511000243.lua | 2 +- unofficial/c511000244.lua | 22 ++++----- unofficial/c511000246.lua | 2 +- unofficial/c511000247.lua | 2 +- unofficial/c511000248.lua | 2 +- unofficial/c511000250.lua | 2 +- unofficial/c511000251.lua | 2 +- unofficial/c511000252.lua | 2 +- unofficial/c511000253.lua | 2 +- unofficial/c511000255.lua | 2 +- unofficial/c511000258.lua | 2 +- unofficial/c511000260.lua | 2 +- unofficial/c511000261.lua | 2 +- unofficial/c511000262.lua | 2 +- unofficial/c511000263.lua | 2 +- unofficial/c511000264.lua | 2 +- unofficial/c511000265.lua | 2 +- unofficial/c511000266.lua | 2 +- unofficial/c511000267.lua | 2 +- unofficial/c511000268.lua | 2 +- unofficial/c511000269.lua | 10 ++--- unofficial/c511000270.lua | 2 +- unofficial/c511000271.lua | 2 +- unofficial/c511000272.lua | 2 +- unofficial/c511000273.lua | 2 +- unofficial/c511000274.lua | 2 +- unofficial/c511000275.lua | 4 +- unofficial/c511000276.lua | 4 +- unofficial/c511000277.lua | 6 +-- unofficial/c511000278.lua | 2 +- unofficial/c511000279.lua | 2 +- unofficial/c511000280.lua | 2 +- unofficial/c511000281.lua | 2 +- unofficial/c511000284.lua | 4 +- unofficial/c511000285.lua | 2 +- unofficial/c511000288.lua | 4 +- unofficial/c511000289.lua | 2 +- unofficial/c511000290.lua | 4 +- unofficial/c511000291.lua | 2 +- unofficial/c511000293.lua | 6 +-- unofficial/c511000294.lua | 4 +- unofficial/c511000295.lua | 14 +++--- unofficial/c511000296.lua | 10 ++--- unofficial/c511000297.lua | 2 +- unofficial/c511000298.lua | 2 +- unofficial/c511000299.lua | 3 +- unofficial/c511000300.lua | 2 +- unofficial/c511000301.lua | 2 +- unofficial/c511000302.lua | 2 +- unofficial/c511000303.lua | 4 +- unofficial/c511000304.lua | 4 +- unofficial/c511000305.lua | 2 +- unofficial/c511000306.lua | 3 +- unofficial/c511000307.lua | 2 +- unofficial/c511000308.lua | 8 ++-- unofficial/c511000309.lua | 2 +- unofficial/c511000310.lua | 4 +- unofficial/c511000311.lua | 4 +- unofficial/c511000312.lua | 2 +- unofficial/c511000314.lua | 4 +- unofficial/c511000316.lua | 2 +- unofficial/c511000317.lua | 4 +- unofficial/c511000318.lua | 2 +- unofficial/c511000319.lua | 2 +- unofficial/c511000320.lua | 2 +- unofficial/c511000321.lua | 2 +- unofficial/c511000322.lua | 2 +- unofficial/c511000323.lua | 2 +- unofficial/c511000326.lua | 2 +- unofficial/c511000328.lua | 2 +- unofficial/c511000330.lua | 2 +- unofficial/c511000331.lua | 2 +- unofficial/c511000332.lua | 2 +- unofficial/c511000333.lua | 2 +- unofficial/c511000334.lua | 2 +- unofficial/c511000335.lua | 4 +- unofficial/c511000336.lua | 4 +- unofficial/c511000337.lua | 2 +- unofficial/c511000338.lua | 2 +- unofficial/c511000339.lua | 2 +- unofficial/c511000340.lua | 2 +- unofficial/c511000341.lua | 2 +- unofficial/c511000342.lua | 2 +- unofficial/c511000343.lua | 2 +- unofficial/c511000344.lua | 4 +- unofficial/c511000345.lua | 6 +-- unofficial/c511000346.lua | 2 +- unofficial/c511000347.lua | 2 +- unofficial/c511000348.lua | 2 +- unofficial/c511000349.lua | 2 +- unofficial/c511000350.lua | 2 +- unofficial/c511000351.lua | 2 +- unofficial/c511000352.lua | 2 +- unofficial/c511000353.lua | 2 +- unofficial/c511000355.lua | 2 +- unofficial/c511000356.lua | 2 +- unofficial/c511000357.lua | 6 +-- unofficial/c511000359.lua | 2 +- unofficial/c511000360.lua | 2 +- unofficial/c511000361.lua | 2 +- unofficial/c511000362.lua | 2 +- unofficial/c511000363.lua | 2 +- unofficial/c511000364.lua | 2 +- unofficial/c511000365.lua | 2 +- unofficial/c511000367.lua | 2 +- unofficial/c511000369.lua | 8 ++-- unofficial/c511000370.lua | 2 +- unofficial/c511000373.lua | 10 ++--- unofficial/c511000374.lua | 6 +-- unofficial/c511000375.lua | 4 +- unofficial/c511000377.lua | 2 +- unofficial/c511000378.lua | 2 +- unofficial/c511000379.lua | 2 +- unofficial/c511000380.lua | 2 +- unofficial/c511000381.lua | 8 ++-- unofficial/c511000382.lua | 2 +- unofficial/c511000384.lua | 2 +- unofficial/c511000385.lua | 2 +- unofficial/c511000386.lua | 2 +- unofficial/c511000387.lua | 2 +- unofficial/c511000389.lua | 2 +- unofficial/c511000390.lua | 2 +- unofficial/c511000391.lua | 2 +- unofficial/c511000392.lua | 2 +- unofficial/c511000393.lua | 2 +- unofficial/c511000395.lua | 2 +- unofficial/c511000396.lua | 2 +- unofficial/c511000397.lua | 2 +- unofficial/c511000400.lua | 2 +- unofficial/c511000401.lua | 2 +- unofficial/c511000402.lua | 2 +- unofficial/c511000403.lua | 2 +- unofficial/c511000404.lua | 2 +- unofficial/c511000406.lua | 2 +- unofficial/c511000407.lua | 2 +- unofficial/c511000411.lua | 2 +- unofficial/c511000412.lua | 2 +- unofficial/c511000413.lua | 2 +- unofficial/c511000414.lua | 2 +- unofficial/c511000415.lua | 2 +- unofficial/c511000416.lua | 2 +- unofficial/c511000417.lua | 2 +- unofficial/c511000418.lua | 2 +- unofficial/c511000421.lua | 2 +- unofficial/c511000422.lua | 2 +- unofficial/c511000423.lua | 2 +- unofficial/c511000424.lua | 2 +- unofficial/c511000427.lua | 2 +- unofficial/c511000428.lua | 2 +- unofficial/c511000429.lua | 2 +- unofficial/c511000430.lua | 4 +- unofficial/c511000431.lua | 8 ++-- unofficial/c511000434.lua | 2 +- unofficial/c511000436.lua | 2 +- unofficial/c511000437.lua | 2 +- unofficial/c511000438.lua | 2 +- unofficial/c511000439.lua | 2 +- unofficial/c511000440.lua | 4 +- unofficial/c511000441.lua | 2 +- unofficial/c511000442.lua | 2 +- unofficial/c511000443.lua | 2 +- unofficial/c511000444.lua | 2 +- unofficial/c511000445.lua | 8 ++-- unofficial/c511000446.lua | 2 +- unofficial/c511000447.lua | 2 +- unofficial/c511000448.lua | 2 +- unofficial/c511000449.lua | 2 +- unofficial/c511000450.lua | 2 +- unofficial/c511000451.lua | 2 +- unofficial/c511000453.lua | 2 +- unofficial/c511000454.lua | 10 ++--- unofficial/c511000455.lua | 2 +- unofficial/c511000456.lua | 2 +- unofficial/c511000457.lua | 2 +- unofficial/c511000458.lua | 2 +- unofficial/c511000460.lua | 2 +- unofficial/c511000461.lua | 4 +- unofficial/c511000462.lua | 2 +- unofficial/c511000463.lua | 2 +- unofficial/c511000465.lua | 2 +- unofficial/c511000466.lua | 2 +- unofficial/c511000467.lua | 2 +- unofficial/c511000468.lua | 4 +- unofficial/c511000469.lua | 2 +- unofficial/c511000470.lua | 2 +- unofficial/c511000471.lua | 4 +- unofficial/c511000472.lua | 2 +- unofficial/c511000474.lua | 2 +- unofficial/c511000477.lua | 2 +- unofficial/c511000478.lua | 2 +- unofficial/c511000479.lua | 2 +- unofficial/c511000480.lua | 6 +-- unofficial/c511000481.lua | 2 +- unofficial/c511000482.lua | 4 +- unofficial/c511000483.lua | 4 +- unofficial/c511000484.lua | 4 +- unofficial/c511000485.lua | 4 +- unofficial/c511000486.lua | 4 +- unofficial/c511000487.lua | 2 +- unofficial/c511000488.lua | 2 +- unofficial/c511000489.lua | 2 +- unofficial/c511000491.lua | 4 +- unofficial/c511000492.lua | 4 +- unofficial/c511000493.lua | 4 +- unofficial/c511000494.lua | 2 +- unofficial/c511000495.lua | 2 +- unofficial/c511000496.lua | 2 +- unofficial/c511000497.lua | 2 +- unofficial/c511000499.lua | 6 +-- unofficial/c511000500.lua | 2 +- unofficial/c511000502.lua | 2 +- unofficial/c511000503.lua | 4 +- unofficial/c511000504.lua | 2 +- unofficial/c511000505.lua | 2 +- unofficial/c511000506.lua | 2 +- unofficial/c511000508.lua | 2 +- unofficial/c511000510.lua | 2 +- unofficial/c511000511.lua | 2 +- unofficial/c511000512.lua | 4 +- unofficial/c511000513.lua | 4 +- unofficial/c511000515.lua | 4 +- unofficial/c511000519.lua | 2 +- unofficial/c511000520.lua | 2 +- unofficial/c511000521.lua | 2 +- unofficial/c511000522.lua | 2 +- unofficial/c511000523.lua | 2 +- unofficial/c511000524.lua | 2 +- unofficial/c511000525.lua | 2 +- unofficial/c511000526.lua | 6 +-- unofficial/c511000527.lua | 2 +- unofficial/c511000531.lua | 2 +- unofficial/c511000532.lua | 6 +-- unofficial/c511000533.lua | 2 +- unofficial/c511000534.lua | 2 +- unofficial/c511000535.lua | 2 +- unofficial/c511000536.lua | 2 +- unofficial/c511000537.lua | 2 +- unofficial/c511000538.lua | 2 +- unofficial/c511000539.lua | 4 +- unofficial/c511000540.lua | 2 +- unofficial/c511000541.lua | 2 +- unofficial/c511000543.lua | 2 +- unofficial/c511000544.lua | 8 ++-- unofficial/c511000545.lua | 2 +- unofficial/c511000546.lua | 2 +- unofficial/c511000548.lua | 2 +- unofficial/c511000549.lua | 2 +- unofficial/c511000550.lua | 2 +- unofficial/c511000551.lua | 2 +- unofficial/c511000552.lua | 2 +- unofficial/c511000553.lua | 2 +- unofficial/c511000554.lua | 2 +- unofficial/c511000555.lua | 2 +- unofficial/c511000556.lua | 2 +- unofficial/c511000557.lua | 2 +- unofficial/c511000558.lua | 2 +- unofficial/c511000561.lua | 2 +- unofficial/c511000577.lua | 2 +- unofficial/c511000578.lua | 6 +-- unofficial/c511000579.lua | 2 +- unofficial/c511000580.lua | 2 +- unofficial/c511000581.lua | 2 +- unofficial/c511000582.lua | 2 +- unofficial/c511000583.lua | 2 +- unofficial/c511000584.lua | 4 +- unofficial/c511000585.lua | 6 +-- unofficial/c511000587.lua | 2 +- unofficial/c511000589.lua | 7 ++- unofficial/c511000592.lua | 2 +- unofficial/c511000593.lua | 4 +- unofficial/c511000594.lua | 2 +- unofficial/c511000595.lua | 4 +- unofficial/c511000596.lua | 2 +- unofficial/c511000597.lua | 8 ++-- unofficial/c511000598.lua | 4 +- unofficial/c511000599.lua | 6 +-- unofficial/c511000600.lua | 2 +- unofficial/c511000601.lua | 4 +- unofficial/c511000602.lua | 4 +- unofficial/c511000603.lua | 2 +- unofficial/c511000604.lua | 2 +- unofficial/c511000605.lua | 4 +- unofficial/c511000606.lua | 2 +- unofficial/c511000607.lua | 2 +- unofficial/c511000609.lua | 2 +- unofficial/c511000610.lua | 12 ++--- unofficial/c511000611.lua | 2 +- unofficial/c511000612.lua | 2 +- unofficial/c511000613.lua | 2 +- unofficial/c511000614.lua | 2 +- unofficial/c511000615.lua | 2 +- unofficial/c511000616.lua | 2 +- unofficial/c511000617.lua | 2 +- unofficial/c511000618.lua | 2 +- unofficial/c511000619.lua | 2 +- unofficial/c511000620.lua | 2 +- unofficial/c511000621.lua | 2 +- unofficial/c511000622.lua | 2 +- unofficial/c511000623.lua | 2 +- unofficial/c511000624.lua | 2 +- unofficial/c511000625.lua | 2 +- unofficial/c511000626.lua | 2 +- unofficial/c511000627.lua | 2 +- unofficial/c511000629.lua | 2 +- unofficial/c511000630.lua | 2 +- unofficial/c511000631.lua | 2 +- unofficial/c511000632.lua | 2 +- unofficial/c511000633.lua | 2 +- unofficial/c511000635.lua | 2 +- unofficial/c511000636.lua | 2 +- unofficial/c511000637.lua | 2 +- unofficial/c511000638.lua | 2 +- unofficial/c511000639.lua | 2 +- unofficial/c511000640.lua | 2 +- unofficial/c511000641.lua | 4 +- unofficial/c511000642.lua | 2 +- unofficial/c511000643.lua | 2 +- unofficial/c511000644.lua | 2 +- unofficial/c511000645.lua | 2 +- unofficial/c511000646.lua | 2 +- unofficial/c511000647.lua | 2 +- unofficial/c511000648.lua | 2 +- unofficial/c511000649.lua | 2 +- unofficial/c511000650.lua | 2 +- unofficial/c511000651.lua | 2 +- unofficial/c511000652.lua | 2 +- unofficial/c511000653.lua | 2 +- unofficial/c511000655.lua | 2 +- unofficial/c511000656.lua | 2 +- unofficial/c511000657.lua | 2 +- unofficial/c511000658.lua | 2 +- unofficial/c511000659.lua | 2 +- unofficial/c511000660.lua | 4 +- unofficial/c511000661.lua | 4 +- unofficial/c511000662.lua | 6 +-- unofficial/c511000664.lua | 4 +- unofficial/c511000665.lua | 2 +- unofficial/c511000666.lua | 2 +- unofficial/c511000667.lua | 2 +- unofficial/c511000668.lua | 2 +- unofficial/c511000669.lua | 2 +- unofficial/c511000670.lua | 2 +- unofficial/c511000671.lua | 2 +- unofficial/c511000672.lua | 2 +- unofficial/c511000673.lua | 2 +- unofficial/c511000674.lua | 8 ++-- unofficial/c511000676.lua | 4 +- unofficial/c511000677.lua | 4 +- unofficial/c511000678.lua | 4 +- unofficial/c511000679.lua | 8 ++-- unofficial/c511000680.lua | 2 +- unofficial/c511000682.lua | 4 +- unofficial/c511000683.lua | 6 +-- unofficial/c511000684.lua | 2 +- unofficial/c511000685.lua | 2 +- unofficial/c511000686.lua | 2 +- unofficial/c511000687.lua | 2 +- unofficial/c511000688.lua | 2 +- unofficial/c511000690.lua | 2 +- unofficial/c511000691.lua | 2 +- unofficial/c511000692.lua | 2 +- unofficial/c511000693.lua | 2 +- unofficial/c511000694.lua | 4 +- unofficial/c511000695.lua | 2 +- unofficial/c511000697.lua | 4 +- unofficial/c511000698.lua | 2 +- unofficial/c511000699.lua | 2 +- unofficial/c511000700.lua | 4 +- unofficial/c511000701.lua | 2 +- unofficial/c511000702.lua | 2 +- unofficial/c511000703.lua | 2 +- unofficial/c511000704.lua | 2 +- unofficial/c511000705.lua | 2 +- unofficial/c511000706.lua | 2 +- unofficial/c511000707.lua | 2 +- unofficial/c511000708.lua | 2 +- unofficial/c511000709.lua | 2 +- unofficial/c511000710.lua | 2 +- unofficial/c511000711.lua | 2 +- unofficial/c511000712.lua | 2 +- unofficial/c511000713.lua | 2 +- unofficial/c511000714.lua | 2 +- unofficial/c511000715.lua | 2 +- unofficial/c511000717.lua | 2 +- unofficial/c511000718.lua | 2 +- unofficial/c511000719.lua | 2 +- unofficial/c511000720.lua | 2 +- unofficial/c511000721.lua | 2 +- unofficial/c511000722.lua | 2 +- unofficial/c511000723.lua | 2 +- unofficial/c511000724.lua | 2 +- unofficial/c511000726.lua | 2 +- unofficial/c511000727.lua | 2 +- unofficial/c511000728.lua | 2 +- unofficial/c511000729.lua | 2 +- unofficial/c511000730.lua | 2 +- unofficial/c511000731.lua | 2 +- unofficial/c511000732.lua | 2 +- unofficial/c511000733.lua | 2 +- unofficial/c511000734.lua | 4 +- unofficial/c511000735.lua | 2 +- unofficial/c511000736.lua | 2 +- unofficial/c511000737.lua | 2 +- unofficial/c511000738.lua | 4 +- unofficial/c511000740.lua | 2 +- unofficial/c511000743.lua | 2 +- unofficial/c511000744.lua | 6 +-- unofficial/c511000745.lua | 2 +- unofficial/c511000746.lua | 2 +- unofficial/c511000747.lua | 2 +- unofficial/c511000748.lua | 2 +- unofficial/c511000749.lua | 2 +- unofficial/c511000750.lua | 2 +- unofficial/c511000751.lua | 4 +- unofficial/c511000752.lua | 2 +- unofficial/c511000753.lua | 4 +- unofficial/c511000754.lua | 2 +- unofficial/c511000755.lua | 2 +- unofficial/c511000756.lua | 2 +- unofficial/c511000757.lua | 2 +- unofficial/c511000758.lua | 2 +- unofficial/c511000759.lua | 4 +- unofficial/c511000760.lua | 6 +-- unofficial/c511000761.lua | 2 +- unofficial/c511000762.lua | 2 +- unofficial/c511000763.lua | 2 +- unofficial/c511000764.lua | 2 +- unofficial/c511000765.lua | 6 +-- unofficial/c511000767.lua | 2 +- unofficial/c511000769.lua | 2 +- unofficial/c511000770.lua | 4 +- unofficial/c511000772.lua | 2 +- unofficial/c511000773.lua | 2 +- unofficial/c511000774.lua | 8 ++-- unofficial/c511000775.lua | 6 +-- unofficial/c511000776.lua | 2 +- unofficial/c511000777.lua | 4 +- unofficial/c511000778.lua | 2 +- unofficial/c511000779.lua | 2 +- unofficial/c511000780.lua | 4 +- unofficial/c511000781.lua | 4 +- unofficial/c511000782.lua | 4 +- unofficial/c511000783.lua | 4 +- unofficial/c511000784.lua | 2 +- unofficial/c511000785.lua | 4 +- unofficial/c511000786.lua | 2 +- unofficial/c511000787.lua | 2 +- unofficial/c511000788.lua | 6 +-- unofficial/c511000789.lua | 2 +- unofficial/c511000790.lua | 4 +- unofficial/c511000791.lua | 4 +- unofficial/c511000792.lua | 2 +- unofficial/c511000793.lua | 6 +-- unofficial/c511000794.lua | 2 +- unofficial/c511000795.lua | 2 +- unofficial/c511000796.lua | 2 +- unofficial/c511000797.lua | 2 +- unofficial/c511000798.lua | 2 +- unofficial/c511000799.lua | 2 +- unofficial/c511000800.lua | 2 +- unofficial/c511000801.lua | 2 +- unofficial/c511000803.lua | 4 +- unofficial/c511000804.lua | 2 +- unofficial/c511000805.lua | 2 +- unofficial/c511000806.lua | 2 +- unofficial/c511000807.lua | 6 +-- unofficial/c511000808.lua | 2 +- unofficial/c511000809.lua | 6 +-- unofficial/c511000810.lua | 2 +- unofficial/c511000811.lua | 2 +- unofficial/c511000812.lua | 2 +- unofficial/c511000813.lua | 2 +- unofficial/c511000814.lua | 2 +- unofficial/c511000815.lua | 2 +- unofficial/c511000816.lua | 2 +- unofficial/c511000817.lua | 8 ++-- unofficial/c511000826.lua | 2 +- unofficial/c511000828.lua | 4 +- unofficial/c511000829.lua | 2 +- unofficial/c511000830.lua | 2 +- unofficial/c511000831.lua | 2 +- unofficial/c511000832.lua | 2 +- unofficial/c511000833.lua | 2 +- unofficial/c511000834.lua | 2 +- unofficial/c511000835.lua | 2 +- unofficial/c511000836.lua | 6 +-- unofficial/c511000837.lua | 3 +- unofficial/c511000838.lua | 4 +- unofficial/c511000839.lua | 2 +- unofficial/c511000840.lua | 2 +- unofficial/c511000841.lua | 2 +- unofficial/c511000842.lua | 2 +- unofficial/c511000843.lua | 2 +- unofficial/c511000844.lua | 2 +- unofficial/c511000846.lua | 2 +- unofficial/c511000847.lua | 2 +- unofficial/c511000848.lua | 2 +- unofficial/c511000849.lua | 2 +- unofficial/c511000850.lua | 2 +- unofficial/c511000851.lua | 2 +- unofficial/c511000852.lua | 2 +- unofficial/c511000853.lua | 2 +- unofficial/c511000855.lua | 2 +- unofficial/c511000856.lua | 2 +- unofficial/c511000857.lua | 2 +- unofficial/c511000858.lua | 2 +- unofficial/c511000859.lua | 2 +- unofficial/c511000860.lua | 4 +- unofficial/c511000861.lua | 2 +- unofficial/c511000862.lua | 2 +- unofficial/c511000863.lua | 2 +- unofficial/c511000864.lua | 2 +- unofficial/c511000865.lua | 2 +- unofficial/c511000866.lua | 2 +- unofficial/c511000867.lua | 2 +- unofficial/c511000869.lua | 2 +- unofficial/c511000870.lua | 2 +- unofficial/c511000871.lua | 2 +- unofficial/c511000872.lua | 2 +- unofficial/c511000873.lua | 6 +-- unofficial/c511000874.lua | 2 +- unofficial/c511000875.lua | 4 +- unofficial/c511000876.lua | 4 +- unofficial/c511000877.lua | 2 +- unofficial/c511000878.lua | 2 +- unofficial/c511000880.lua | 2 +- unofficial/c511000881.lua | 2 +- unofficial/c511000883.lua | 2 +- unofficial/c511000884.lua | 2 +- unofficial/c511000885.lua | 2 +- unofficial/c511000886.lua | 4 +- unofficial/c511000887.lua | 4 +- unofficial/c511000888.lua | 2 +- unofficial/c511000889.lua | 2 +- unofficial/c511000890.lua | 2 +- unofficial/c511000892.lua | 2 +- unofficial/c511000894.lua | 2 +- unofficial/c511000895.lua | 2 +- unofficial/c511000896.lua | 2 +- unofficial/c511000897.lua | 2 +- unofficial/c511000898.lua | 2 +- unofficial/c511000899.lua | 2 +- unofficial/c511000900.lua | 2 +- unofficial/c511000901.lua | 2 +- unofficial/c511000902.lua | 2 +- unofficial/c511000903.lua | 2 +- unofficial/c511000904.lua | 2 +- unofficial/c511000905.lua | 4 +- unofficial/c511000906.lua | 2 +- unofficial/c511000907.lua | 2 +- unofficial/c511000908.lua | 2 +- unofficial/c511000909.lua | 2 +- unofficial/c511000910.lua | 2 +- unofficial/c511000912.lua | 2 +- unofficial/c511000913.lua | 2 +- unofficial/c511000914.lua | 8 ++-- unofficial/c511000915.lua | 2 +- unofficial/c511000917.lua | 2 +- unofficial/c511000918.lua | 2 +- unofficial/c511000919.lua | 6 +-- unofficial/c511000920.lua | 2 +- unofficial/c511000922.lua | 2 +- unofficial/c511000923.lua | 2 +- unofficial/c511000925.lua | 2 +- unofficial/c511000926.lua | 2 +- unofficial/c511000927.lua | 2 +- unofficial/c511000928.lua | 2 +- unofficial/c511000929.lua | 2 +- unofficial/c511000930.lua | 2 +- unofficial/c511000931.lua | 2 +- unofficial/c511000932.lua | 6 +-- unofficial/c511000934.lua | 4 +- unofficial/c511000935.lua | 2 +- unofficial/c511000936.lua | 2 +- unofficial/c511000937.lua | 2 +- unofficial/c511000938.lua | 2 +- unofficial/c511000939.lua | 2 +- unofficial/c511000940.lua | 2 +- unofficial/c511000941.lua | 2 +- unofficial/c511000942.lua | 2 +- unofficial/c511000943.lua | 2 +- unofficial/c511000944.lua | 2 +- unofficial/c511000945.lua | 2 +- unofficial/c511000946.lua | 2 +- unofficial/c511000947.lua | 2 +- unofficial/c511000949.lua | 2 +- unofficial/c511000950.lua | 2 +- unofficial/c511000951.lua | 2 +- unofficial/c511000952.lua | 2 +- unofficial/c511000953.lua | 2 +- unofficial/c511000955.lua | 2 +- unofficial/c511000956.lua | 4 +- unofficial/c511000957.lua | 2 +- unofficial/c511000958.lua | 2 +- unofficial/c511000959.lua | 2 +- unofficial/c511000960.lua | 2 +- unofficial/c511000961.lua | 2 +- unofficial/c511000962.lua | 2 +- unofficial/c511000965.lua | 8 ++-- unofficial/c511000966.lua | 2 +- unofficial/c511000967.lua | 6 +-- unofficial/c511000968.lua | 4 +- unofficial/c511000969.lua | 2 +- unofficial/c511000970.lua | 2 +- unofficial/c511000971.lua | 2 +- unofficial/c511000972.lua | 2 +- unofficial/c511000973.lua | 2 +- unofficial/c511000974.lua | 2 +- unofficial/c511000975.lua | 2 +- unofficial/c511000976.lua | 2 +- unofficial/c511000977.lua | 2 +- unofficial/c511000978.lua | 2 +- unofficial/c511000979.lua | 2 +- unofficial/c511000980.lua | 2 +- unofficial/c511000981.lua | 4 +- unofficial/c511000982.lua | 2 +- unofficial/c511000983.lua | 2 +- unofficial/c511000984.lua | 2 +- unofficial/c511000985.lua | 6 +-- unofficial/c511000986.lua | 2 +- unofficial/c511000987.lua | 4 +- unofficial/c511000988.lua | 2 +- unofficial/c511000989.lua | 2 +- unofficial/c511000990.lua | 2 +- unofficial/c511000992.lua | 2 +- unofficial/c511000993.lua | 6 +-- unofficial/c511000994.lua | 2 +- unofficial/c511000995.lua | 2 +- unofficial/c511000996.lua | 4 +- unofficial/c511000997.lua | 2 +- unofficial/c511000998.lua | 2 +- unofficial/c511000999.lua | 2 +- unofficial/c511001000.lua | 2 +- unofficial/c511001003.lua | 2 +- unofficial/c511001004.lua | 2 +- unofficial/c511001005.lua | 4 +- unofficial/c511001006.lua | 2 +- unofficial/c511001010.lua | 2 +- unofficial/c511001013.lua | 2 +- unofficial/c511001014.lua | 10 ++--- unofficial/c511001015.lua | 6 +-- unofficial/c511001016.lua | 2 +- unofficial/c511001017.lua | 2 +- unofficial/c511001018.lua | 2 +- unofficial/c511001019.lua | 2 +- unofficial/c511001020.lua | 2 +- unofficial/c511001021.lua | 2 +- unofficial/c511001022.lua | 2 +- unofficial/c511001023.lua | 6 +-- unofficial/c511001024.lua | 6 +-- unofficial/c511001025.lua | 2 +- unofficial/c511001026.lua | 2 +- unofficial/c511001027.lua | 5 +-- unofficial/c511001028.lua | 2 +- unofficial/c511001029.lua | 2 +- unofficial/c511001030.lua | 2 +- unofficial/c511001031.lua | 2 +- unofficial/c511001032.lua | 2 +- unofficial/c511001033.lua | 7 ++- unofficial/c511001034.lua | 5 +-- unofficial/c511001035.lua | 2 +- unofficial/c511001036.lua | 2 +- unofficial/c511001037.lua | 2 +- unofficial/c511001038.lua | 2 +- unofficial/c511001040.lua | 2 +- unofficial/c511001041.lua | 2 +- unofficial/c511001042.lua | 4 +- unofficial/c511001043.lua | 6 +-- unofficial/c511001044.lua | 4 +- unofficial/c511001045.lua | 2 +- unofficial/c511001048.lua | 6 +-- unofficial/c511001049.lua | 2 +- unofficial/c511001050.lua | 2 +- unofficial/c511001051.lua | 2 +- unofficial/c511001052.lua | 2 +- unofficial/c511001055.lua | 4 +- unofficial/c511001056.lua | 2 +- unofficial/c511001057.lua | 2 +- unofficial/c511001058.lua | 2 +- unofficial/c511001059.lua | 2 +- unofficial/c511001060.lua | 4 +- unofficial/c511001061.lua | 4 +- unofficial/c511001062.lua | 2 +- unofficial/c511001063.lua | 2 +- unofficial/c511001064.lua | 2 +- unofficial/c511001065.lua | 2 +- unofficial/c511001066.lua | 4 +- unofficial/c511001067.lua | 2 +- unofficial/c511001068.lua | 2 +- unofficial/c511001069.lua | 4 +- unofficial/c511001070.lua | 6 +-- unofficial/c511001071.lua | 14 +++--- unofficial/c511001072.lua | 4 +- unofficial/c511001073.lua | 4 +- unofficial/c511001074.lua | 10 ++--- unofficial/c511001075.lua | 2 +- unofficial/c511001077.lua | 2 +- unofficial/c511001078.lua | 8 ++-- unofficial/c511001079.lua | 2 +- unofficial/c511001080.lua | 2 +- unofficial/c511001081.lua | 2 +- unofficial/c511001082.lua | 2 +- unofficial/c511001083.lua | 2 +- unofficial/c511001084.lua | 2 +- unofficial/c511001085.lua | 2 +- unofficial/c511001086.lua | 2 +- unofficial/c511001087.lua | 2 +- unofficial/c511001088.lua | 2 +- unofficial/c511001089.lua | 2 +- unofficial/c511001090.lua | 2 +- unofficial/c511001091.lua | 2 +- unofficial/c511001092.lua | 2 +- unofficial/c511001093.lua | 2 +- unofficial/c511001094.lua | 2 +- unofficial/c511001095.lua | 2 +- unofficial/c511001096.lua | 2 +- unofficial/c511001097.lua | 2 +- unofficial/c511001098.lua | 2 +- unofficial/c511001100.lua | 2 +- unofficial/c511001101.lua | 6 +-- unofficial/c511001102.lua | 2 +- unofficial/c511001103.lua | 2 +- unofficial/c511001104.lua | 2 +- unofficial/c511001105.lua | 6 +-- unofficial/c511001106.lua | 4 +- unofficial/c511001108.lua | 6 +-- unofficial/c511001109.lua | 2 +- unofficial/c511001111.lua | 4 +- unofficial/c511001112.lua | 2 +- unofficial/c511001113.lua | 2 +- unofficial/c511001114.lua | 4 +- unofficial/c511001115.lua | 2 +- unofficial/c511001116.lua | 2 +- unofficial/c511001117.lua | 2 +- unofficial/c511001118.lua | 4 +- unofficial/c511001119.lua | 2 +- unofficial/c511001120.lua | 2 +- unofficial/c511001121.lua | 2 +- unofficial/c511001122.lua | 2 +- unofficial/c511001123.lua | 2 +- unofficial/c511001124.lua | 2 +- unofficial/c511001125.lua | 2 +- unofficial/c511001127.lua | 8 ++-- unofficial/c511001129.lua | 2 +- unofficial/c511001130.lua | 2 +- unofficial/c511001131.lua | 2 +- unofficial/c511001132.lua | 4 +- unofficial/c511001134.lua | 2 +- unofficial/c511001135.lua | 4 +- unofficial/c511001136.lua | 2 +- unofficial/c511001137.lua | 2 +- unofficial/c511001138.lua | 8 ++-- unofficial/c511001139.lua | 2 +- unofficial/c511001140.lua | 2 +- unofficial/c511001141.lua | 2 +- unofficial/c511001142.lua | 2 +- unofficial/c511001143.lua | 2 +- unofficial/c511001144.lua | 2 +- unofficial/c511001145.lua | 2 +- unofficial/c511001147.lua | 2 +- unofficial/c511001148.lua | 2 +- unofficial/c511001149.lua | 4 +- unofficial/c511001151.lua | 2 +- unofficial/c511001152.lua | 2 +- unofficial/c511001153.lua | 2 +- unofficial/c511001155.lua | 2 +- unofficial/c511001156.lua | 2 +- unofficial/c511001158.lua | 2 +- unofficial/c511001159.lua | 2 +- unofficial/c511001160.lua | 4 +- unofficial/c511001161.lua | 2 +- unofficial/c511001162.lua | 2 +- unofficial/c511001164.lua | 2 +- unofficial/c511001166.lua | 2 +- unofficial/c511001167.lua | 2 +- unofficial/c511001168.lua | 2 +- unofficial/c511001169.lua | 2 +- unofficial/c511001170.lua | 2 +- unofficial/c511001171.lua | 2 +- unofficial/c511001172.lua | 2 +- unofficial/c511001173.lua | 2 +- unofficial/c511001174.lua | 2 +- unofficial/c511001175.lua | 2 +- unofficial/c511001176.lua | 2 +- unofficial/c511001177.lua | 2 +- unofficial/c511001178.lua | 4 +- unofficial/c511001179.lua | 2 +- unofficial/c511001180.lua | 4 +- unofficial/c511001181.lua | 2 +- unofficial/c511001182.lua | 2 +- unofficial/c511001183.lua | 2 +- unofficial/c511001184.lua | 2 +- unofficial/c511001185.lua | 2 +- unofficial/c511001186.lua | 2 +- unofficial/c511001187.lua | 6 +-- unofficial/c511001188.lua | 4 +- unofficial/c511001189.lua | 2 +- unofficial/c511001190.lua | 2 +- unofficial/c511001191.lua | 2 +- unofficial/c511001192.lua | 2 +- unofficial/c511001193.lua | 4 +- unofficial/c511001194.lua | 2 +- unofficial/c511001195.lua | 2 +- unofficial/c511001196.lua | 4 +- unofficial/c511001197.lua | 2 +- unofficial/c511001198.lua | 2 +- unofficial/c511001199.lua | 2 +- unofficial/c511001200.lua | 2 +- unofficial/c511001201.lua | 2 +- unofficial/c511001202.lua | 2 +- unofficial/c511001203.lua | 2 +- unofficial/c511001204.lua | 2 +- unofficial/c511001205.lua | 2 +- unofficial/c511001206.lua | 2 +- unofficial/c511001207.lua | 2 +- unofficial/c511001208.lua | 2 +- unofficial/c511001209.lua | 2 +- unofficial/c511001210.lua | 2 +- unofficial/c511001211.lua | 3 +- unofficial/c511001212.lua | 3 +- unofficial/c511001213.lua | 2 +- unofficial/c511001214.lua | 2 +- unofficial/c511001218.lua | 2 +- unofficial/c511001219.lua | 8 ++-- unofficial/c511001220.lua | 2 +- unofficial/c511001221.lua | 2 +- unofficial/c511001222.lua | 2 +- unofficial/c511001223.lua | 2 +- unofficial/c511001224.lua | 2 +- unofficial/c511001225.lua | 2 +- unofficial/c511001226.lua | 2 +- unofficial/c511001227.lua | 2 +- unofficial/c511001228.lua | 2 +- unofficial/c511001229.lua | 2 +- unofficial/c511001230.lua | 2 +- unofficial/c511001231.lua | 2 +- unofficial/c511001232.lua | 2 +- unofficial/c511001234.lua | 8 ++-- unofficial/c511001235.lua | 2 +- unofficial/c511001236.lua | 2 +- unofficial/c511001237.lua | 2 +- unofficial/c511001238.lua | 2 +- unofficial/c511001239.lua | 2 +- unofficial/c511001240.lua | 2 +- unofficial/c511001241.lua | 2 +- unofficial/c511001242.lua | 2 +- unofficial/c511001243.lua | 2 +- unofficial/c511001244.lua | 2 +- unofficial/c511001245.lua | 2 +- unofficial/c511001246.lua | 6 +-- unofficial/c511001247.lua | 2 +- unofficial/c511001248.lua | 2 +- unofficial/c511001249.lua | 4 +- unofficial/c511001250.lua | 2 +- unofficial/c511001251.lua | 2 +- unofficial/c511001252.lua | 2 +- unofficial/c511001253.lua | 2 +- unofficial/c511001254.lua | 4 +- unofficial/c511001255.lua | 2 +- unofficial/c511001256.lua | 2 +- unofficial/c511001257.lua | 4 +- unofficial/c511001258.lua | 2 +- unofficial/c511001259.lua | 2 +- unofficial/c511001260.lua | 2 +- unofficial/c511001261.lua | 2 +- unofficial/c511001262.lua | 4 +- unofficial/c511001263.lua | 2 +- unofficial/c511001265.lua | 2 +- unofficial/c511001266.lua | 2 +- unofficial/c511001267.lua | 2 +- unofficial/c511001268.lua | 2 +- unofficial/c511001269.lua | 2 +- unofficial/c511001270.lua | 2 +- unofficial/c511001271.lua | 6 +-- unofficial/c511001272.lua | 2 +- unofficial/c511001273.lua | 6 +-- unofficial/c511001274.lua | 2 +- unofficial/c511001275.lua | 4 +- unofficial/c511001277.lua | 2 +- unofficial/c511001278.lua | 2 +- unofficial/c511001279.lua | 8 ++-- unofficial/c511001280.lua | 2 +- unofficial/c511001281.lua | 2 +- unofficial/c511001282.lua | 4 +- unofficial/c511001283.lua | 2 +- unofficial/c511001284.lua | 2 +- unofficial/c511001286.lua | 4 +- unofficial/c511001287.lua | 6 +-- unofficial/c511001289.lua | 8 ++-- unofficial/c511001290.lua | 2 +- unofficial/c511001291.lua | 2 +- unofficial/c511001292.lua | 4 +- unofficial/c511001293.lua | 2 +- unofficial/c511001294.lua | 2 +- unofficial/c511001295.lua | 6 +-- unofficial/c511001296.lua | 2 +- unofficial/c511001297.lua | 2 +- unofficial/c511001298.lua | 2 +- unofficial/c511001300.lua | 2 +- unofficial/c511001304.lua | 2 +- unofficial/c511001305.lua | 2 +- unofficial/c511001306.lua | 2 +- unofficial/c511001307.lua | 2 +- unofficial/c511001308.lua | 2 +- unofficial/c511001309.lua | 2 +- unofficial/c511001310.lua | 2 +- unofficial/c511001315.lua | 2 +- unofficial/c511001316.lua | 2 +- unofficial/c511001317.lua | 2 +- unofficial/c511001322.lua | 2 +- unofficial/c511001324.lua | 2 +- unofficial/c511001325.lua | 2 +- unofficial/c511001326.lua | 2 +- unofficial/c511001327.lua | 2 +- unofficial/c511001328.lua | 4 +- unofficial/c511001329.lua | 2 +- unofficial/c511001331.lua | 2 +- unofficial/c511001333.lua | 2 +- unofficial/c511001334.lua | 2 +- unofficial/c511001335.lua | 2 +- unofficial/c511001336.lua | 2 +- unofficial/c511001337.lua | 6 +-- unofficial/c511001338.lua | 6 +-- unofficial/c511001340.lua | 2 +- unofficial/c511001341.lua | 2 +- unofficial/c511001342.lua | 2 +- unofficial/c511001343.lua | 2 +- unofficial/c511001344.lua | 2 +- unofficial/c511001345.lua | 2 +- unofficial/c511001346.lua | 4 +- unofficial/c511001347.lua | 6 +-- unofficial/c511001348.lua | 2 +- unofficial/c511001349.lua | 2 +- unofficial/c511001351.lua | 2 +- unofficial/c511001352.lua | 2 +- unofficial/c511001353.lua | 2 +- unofficial/c511001355.lua | 4 +- unofficial/c511001356.lua | 2 +- unofficial/c511001357.lua | 2 +- unofficial/c511001358.lua | 2 +- unofficial/c511001359.lua | 2 +- unofficial/c511001360.lua | 2 +- unofficial/c511001361.lua | 2 +- unofficial/c511001362.lua | 2 +- unofficial/c511001363.lua | 2 +- unofficial/c511001364.lua | 2 +- unofficial/c511001366.lua | 2 +- unofficial/c511001367.lua | 2 +- unofficial/c511001368.lua | 2 +- unofficial/c511001369.lua | 2 +- unofficial/c511001370.lua | 4 +- unofficial/c511001371.lua | 2 +- unofficial/c511001372.lua | 2 +- unofficial/c511001373.lua | 2 +- unofficial/c511001374.lua | 2 +- unofficial/c511001376.lua | 4 +- unofficial/c511001377.lua | 2 +- unofficial/c511001378.lua | 2 +- unofficial/c511001379.lua | 2 +- unofficial/c511001381.lua | 8 ++-- unofficial/c511001382.lua | 2 +- unofficial/c511001383.lua | 2 +- unofficial/c511001384.lua | 2 +- unofficial/c511001385.lua | 2 +- unofficial/c511001386.lua | 2 +- unofficial/c511001387.lua | 2 +- unofficial/c511001388.lua | 2 +- unofficial/c511001389.lua | 2 +- unofficial/c511001390.lua | 2 +- unofficial/c511001391.lua | 4 +- unofficial/c511001392.lua | 10 ++--- unofficial/c511001393.lua | 8 ++-- unofficial/c511001394.lua | 4 +- unofficial/c511001395.lua | 2 +- unofficial/c511001396.lua | 4 +- unofficial/c511001397.lua | 2 +- unofficial/c511001399.lua | 2 +- unofficial/c511001400.lua | 2 +- unofficial/c511001401.lua | 2 +- unofficial/c511001402.lua | 2 +- unofficial/c511001403.lua | 2 +- unofficial/c511001404.lua | 2 +- unofficial/c511001405.lua | 4 +- unofficial/c511001407.lua | 4 +- unofficial/c511001408.lua | 2 +- unofficial/c511001409.lua | 8 ++-- unofficial/c511001411.lua | 2 +- unofficial/c511001413.lua | 2 +- unofficial/c511001414.lua | 2 +- unofficial/c511001417.lua | 2 +- unofficial/c511001418.lua | 4 +- unofficial/c511001419.lua | 4 +- unofficial/c511001420.lua | 4 +- unofficial/c511001421.lua | 2 +- unofficial/c511001422.lua | 6 +-- unofficial/c511001423.lua | 4 +- unofficial/c511001424.lua | 2 +- unofficial/c511001425.lua | 2 +- unofficial/c511001426.lua | 2 +- unofficial/c511001427.lua | 6 +-- unofficial/c511001428.lua | 2 +- unofficial/c511001429.lua | 2 +- unofficial/c511001430.lua | 2 +- unofficial/c511001431.lua | 2 +- unofficial/c511001432.lua | 2 +- unofficial/c511001433.lua | 10 ++--- unofficial/c511001434.lua | 2 +- unofficial/c511001435.lua | 2 +- unofficial/c511001436.lua | 2 +- unofficial/c511001437.lua | 2 +- unofficial/c511001438.lua | 2 +- unofficial/c511001439.lua | 2 +- unofficial/c511001440.lua | 6 +-- unofficial/c511001441.lua | 2 +- unofficial/c511001442.lua | 2 +- unofficial/c511001443.lua | 2 +- unofficial/c511001444.lua | 2 +- unofficial/c511001445.lua | 2 +- unofficial/c511001446.lua | 2 +- unofficial/c511001447.lua | 4 +- unofficial/c511001448.lua | 2 +- unofficial/c511001449.lua | 4 +- unofficial/c511001450.lua | 2 +- unofficial/c511001451.lua | 2 +- unofficial/c511001452.lua | 2 +- unofficial/c511001453.lua | 2 +- unofficial/c511001454.lua | 6 +-- unofficial/c511001455.lua | 8 ++-- unofficial/c511001456.lua | 8 ++-- unofficial/c511001458.lua | 2 +- unofficial/c511001459.lua | 2 +- unofficial/c511001460.lua | 2 +- unofficial/c511001465.lua | 2 +- unofficial/c511001466.lua | 2 +- unofficial/c511001467.lua | 2 +- unofficial/c511001468.lua | 2 +- unofficial/c511001469.lua | 8 ++-- unofficial/c511001470.lua | 2 +- unofficial/c511001471.lua | 2 +- unofficial/c511001472.lua | 2 +- unofficial/c511001473.lua | 2 +- unofficial/c511001474.lua | 2 +- unofficial/c511001476.lua | 4 +- unofficial/c511001477.lua | 2 +- unofficial/c511001478.lua | 2 +- unofficial/c511001479.lua | 6 +-- unofficial/c511001480.lua | 2 +- unofficial/c511001481.lua | 2 +- unofficial/c511001482.lua | 2 +- unofficial/c511001483.lua | 2 +- unofficial/c511001484.lua | 2 +- unofficial/c511001485.lua | 2 +- unofficial/c511001486.lua | 2 +- unofficial/c511001487.lua | 6 +-- unofficial/c511001488.lua | 2 +- unofficial/c511001489.lua | 4 +- unofficial/c511001490.lua | 2 +- unofficial/c511001491.lua | 2 +- unofficial/c511001492.lua | 4 +- unofficial/c511001493.lua | 2 +- unofficial/c511001494.lua | 2 +- unofficial/c511001495.lua | 2 +- unofficial/c511001496.lua | 4 +- unofficial/c511001497.lua | 2 +- unofficial/c511001498.lua | 12 ++--- unofficial/c511001499.lua | 2 +- unofficial/c511001500.lua | 2 +- unofficial/c511001501.lua | 4 +- unofficial/c511001502.lua | 2 +- unofficial/c511001503.lua | 4 +- unofficial/c511001504.lua | 2 +- unofficial/c511001505.lua | 2 +- unofficial/c511001506.lua | 2 +- unofficial/c511001507.lua | 2 +- unofficial/c511001508.lua | 2 +- unofficial/c511001509.lua | 2 +- unofficial/c511001510.lua | 2 +- unofficial/c511001511.lua | 2 +- unofficial/c511001512.lua | 2 +- unofficial/c511001513.lua | 2 +- unofficial/c511001514.lua | 2 +- unofficial/c511001515.lua | 2 +- unofficial/c511001516.lua | 2 +- unofficial/c511001517.lua | 2 +- unofficial/c511001518.lua | 6 +-- unofficial/c511001519.lua | 4 +- unofficial/c511001520.lua | 6 +-- unofficial/c511001521.lua | 2 +- unofficial/c511001522.lua | 2 +- unofficial/c511001523.lua | 2 +- unofficial/c511001524.lua | 2 +- unofficial/c511001525.lua | 2 +- unofficial/c511001526.lua | 2 +- unofficial/c511001527.lua | 2 +- unofficial/c511001528.lua | 2 +- unofficial/c511001530.lua | 2 +- unofficial/c511001531.lua | 2 +- unofficial/c511001532.lua | 4 +- unofficial/c511001534.lua | 2 +- unofficial/c511001535.lua | 2 +- unofficial/c511001536.lua | 4 +- unofficial/c511001537.lua | 2 +- unofficial/c511001538.lua | 4 +- unofficial/c511001539.lua | 4 +- unofficial/c511001540.lua | 2 +- unofficial/c511001541.lua | 4 +- unofficial/c511001542.lua | 4 +- unofficial/c511001543.lua | 4 +- unofficial/c511001544.lua | 2 +- unofficial/c511001545.lua | 4 +- unofficial/c511001546.lua | 2 +- unofficial/c511001547.lua | 2 +- unofficial/c511001548.lua | 2 +- unofficial/c511001549.lua | 2 +- unofficial/c511001550.lua | 6 +-- unofficial/c511001551.lua | 2 +- unofficial/c511001552.lua | 2 +- unofficial/c511001553.lua | 2 +- unofficial/c511001554.lua | 2 +- unofficial/c511001555.lua | 2 +- unofficial/c511001556.lua | 2 +- unofficial/c511001557.lua | 2 +- unofficial/c511001558.lua | 2 +- unofficial/c511001559.lua | 2 +- unofficial/c511001560.lua | 2 +- unofficial/c511001561.lua | 6 +-- unofficial/c511001563.lua | 2 +- unofficial/c511001564.lua | 4 +- unofficial/c511001565.lua | 2 +- unofficial/c511001566.lua | 2 +- unofficial/c511001567.lua | 2 +- unofficial/c511001568.lua | 2 +- unofficial/c511001569.lua | 2 +- unofficial/c511001570.lua | 2 +- unofficial/c511001571.lua | 4 +- unofficial/c511001572.lua | 2 +- unofficial/c511001573.lua | 2 +- unofficial/c511001574.lua | 2 +- unofficial/c511001575.lua | 2 +- unofficial/c511001576.lua | 8 ++-- unofficial/c511001577.lua | 6 +-- unofficial/c511001578.lua | 2 +- unofficial/c511001579.lua | 2 +- unofficial/c511001580.lua | 2 +- unofficial/c511001581.lua | 2 +- unofficial/c511001582.lua | 4 +- unofficial/c511001583.lua | 2 +- unofficial/c511001584.lua | 2 +- unofficial/c511001585.lua | 2 +- unofficial/c511001587.lua | 2 +- unofficial/c511001588.lua | 2 +- unofficial/c511001589.lua | 2 +- unofficial/c511001590.lua | 2 +- unofficial/c511001591.lua | 2 +- unofficial/c511001592.lua | 2 +- unofficial/c511001593.lua | 2 +- unofficial/c511001594.lua | 2 +- unofficial/c511001596.lua | 4 +- unofficial/c511001597.lua | 10 ++--- unofficial/c511001598.lua | 2 +- unofficial/c511001599.lua | 2 +- unofficial/c511001600.lua | 2 +- unofficial/c511001602.lua | 2 +- unofficial/c511001603.lua | 2 +- unofficial/c511001604.lua | 2 +- unofficial/c511001605.lua | 2 +- unofficial/c511001606.lua | 2 +- unofficial/c511001607.lua | 2 +- unofficial/c511001608.lua | 12 ++--- unofficial/c511001609.lua | 2 +- unofficial/c511001610.lua | 2 +- unofficial/c511001611.lua | 4 +- unofficial/c511001612.lua | 4 +- unofficial/c511001613.lua | 2 +- unofficial/c511001614.lua | 2 +- unofficial/c511001615.lua | 2 +- unofficial/c511001616.lua | 6 +-- unofficial/c511001617.lua | 2 +- unofficial/c511001618.lua | 4 +- unofficial/c511001619.lua | 2 +- unofficial/c511001620.lua | 2 +- unofficial/c511001621.lua | 2 +- unofficial/c511001622.lua | 2 +- unofficial/c511001623.lua | 6 +-- unofficial/c511001624.lua | 4 +- unofficial/c511001625.lua | 4 +- unofficial/c511001627.lua | 2 +- unofficial/c511001630.lua | 2 +- unofficial/c511001631.lua | 2 +- unofficial/c511001632.lua | 2 +- unofficial/c511001633.lua | 2 +- unofficial/c511001634.lua | 2 +- unofficial/c511001635.lua | 2 +- unofficial/c511001636.lua | 2 +- unofficial/c511001637.lua | 4 +- unofficial/c511001639.lua | 4 +- unofficial/c511001640.lua | 2 +- unofficial/c511001641.lua | 4 +- unofficial/c511001642.lua | 2 +- unofficial/c511001643.lua | 2 +- unofficial/c511001644.lua | 2 +- unofficial/c511001645.lua | 6 +-- unofficial/c511001646.lua | 2 +- unofficial/c511001647.lua | 2 +- unofficial/c511001649.lua | 4 +- unofficial/c511001650.lua | 2 +- unofficial/c511001651.lua | 2 +- unofficial/c511001653.lua | 6 +-- unofficial/c511001654.lua | 2 +- unofficial/c511001655.lua | 6 +-- unofficial/c511001656.lua | 2 +- unofficial/c511001657.lua | 2 +- unofficial/c511001658.lua | 2 +- unofficial/c511001659.lua | 2 +- unofficial/c511001660.lua | 2 +- unofficial/c511001661.lua | 4 +- unofficial/c511001662.lua | 4 +- unofficial/c511001663.lua | 4 +- unofficial/c511001664.lua | 2 +- unofficial/c511001665.lua | 2 +- unofficial/c511001666.lua | 2 +- unofficial/c511001667.lua | 4 +- unofficial/c511001668.lua | 2 +- unofficial/c511001669.lua | 2 +- unofficial/c511001671.lua | 2 +- unofficial/c511001672.lua | 2 +- unofficial/c511001674.lua | 2 +- unofficial/c511001675.lua | 2 +- unofficial/c511001676.lua | 2 +- unofficial/c511001680.lua | 2 +- unofficial/c511001681.lua | 2 +- unofficial/c511001682.lua | 2 +- unofficial/c511001683.lua | 2 +- unofficial/c511001684.lua | 2 +- unofficial/c511001685.lua | 2 +- unofficial/c511001687.lua | 2 +- unofficial/c511001688.lua | 2 +- unofficial/c511001689.lua | 2 +- unofficial/c511001690.lua | 6 +-- unofficial/c511001692.lua | 4 +- unofficial/c511001693.lua | 4 +- unofficial/c511001694.lua | 4 +- unofficial/c511001695.lua | 4 +- unofficial/c511001696.lua | 4 +- unofficial/c511001697.lua | 4 +- unofficial/c511001698.lua | 4 +- unofficial/c511001699.lua | 4 +- unofficial/c511001700.lua | 4 +- unofficial/c511001701.lua | 2 +- unofficial/c511001702.lua | 6 +-- unofficial/c511001703.lua | 4 +- unofficial/c511001704.lua | 6 +-- unofficial/c511001705.lua | 6 +-- unofficial/c511001706.lua | 4 +- unofficial/c511001707.lua | 4 +- unofficial/c511001708.lua | 2 +- unofficial/c511001709.lua | 2 +- unofficial/c511001710.lua | 2 +- unofficial/c511001711.lua | 2 +- unofficial/c511001712.lua | 2 +- unofficial/c511001713.lua | 2 +- unofficial/c511001714.lua | 2 +- unofficial/c511001715.lua | 2 +- unofficial/c511001716.lua | 2 +- unofficial/c511001717.lua | 2 +- unofficial/c511001720.lua | 2 +- unofficial/c511001721.lua | 6 +-- unofficial/c511001722.lua | 4 +- unofficial/c511001723.lua | 4 +- unofficial/c511001724.lua | 4 +- unofficial/c511001725.lua | 4 +- unofficial/c511001726.lua | 4 +- unofficial/c511001727.lua | 2 +- unofficial/c511001728.lua | 2 +- unofficial/c511001729.lua | 2 +- unofficial/c511001730.lua | 2 +- unofficial/c511001731.lua | 2 +- unofficial/c511001732.lua | 2 +- unofficial/c511001733.lua | 2 +- unofficial/c511001734.lua | 2 +- unofficial/c511001735.lua | 2 +- unofficial/c511001736.lua | 3 +- unofficial/c511001737.lua | 2 +- unofficial/c511001738.lua | 2 +- unofficial/c511001739.lua | 2 +- unofficial/c511001740.lua | 2 +- unofficial/c511001742.lua | 2 +- unofficial/c511001743.lua | 2 +- unofficial/c511001744.lua | 2 +- unofficial/c511001745.lua | 2 +- unofficial/c511001746.lua | 2 +- unofficial/c511001747.lua | 4 +- unofficial/c511001748.lua | 2 +- unofficial/c511001749.lua | 2 +- unofficial/c511001750.lua | 8 ++-- unofficial/c511001751.lua | 2 +- unofficial/c511001752.lua | 2 +- unofficial/c511001753.lua | 2 +- unofficial/c511001754.lua | 2 +- unofficial/c511001755.lua | 2 +- unofficial/c511001757.lua | 2 +- unofficial/c511001758.lua | 2 +- unofficial/c511001759.lua | 2 +- unofficial/c511001760.lua | 2 +- unofficial/c511001761.lua | 2 +- unofficial/c511001762.lua | 2 +- unofficial/c511001763.lua | 2 +- unofficial/c511001764.lua | 2 +- unofficial/c511001765.lua | 2 +- unofficial/c511001766.lua | 2 +- unofficial/c511001767.lua | 2 +- unofficial/c511001768.lua | 2 +- unofficial/c511001769.lua | 2 +- unofficial/c511001770.lua | 2 +- unofficial/c511001771.lua | 2 +- unofficial/c511001772.lua | 2 +- unofficial/c511001773.lua | 2 +- unofficial/c511001775.lua | 2 +- unofficial/c511001776.lua | 12 ++--- unofficial/c511001777.lua | 2 +- unofficial/c511001778.lua | 2 +- unofficial/c511001779.lua | 4 +- unofficial/c511001780.lua | 2 +- unofficial/c511001781.lua | 2 +- unofficial/c511001782.lua | 8 ++-- unofficial/c511001783.lua | 2 +- unofficial/c511001784.lua | 2 +- unofficial/c511001785.lua | 2 +- unofficial/c511001786.lua | 2 +- unofficial/c511001787.lua | 4 +- unofficial/c511001788.lua | 4 +- unofficial/c511001789.lua | 2 +- unofficial/c511001790.lua | 2 +- unofficial/c511001791.lua | 2 +- unofficial/c511001792.lua | 4 +- unofficial/c511001793.lua | 4 +- unofficial/c511001794.lua | 2 +- unofficial/c511001797.lua | 2 +- unofficial/c511001798.lua | 2 +- unofficial/c511001799.lua | 2 +- unofficial/c511001800.lua | 2 +- unofficial/c511001801.lua | 2 +- unofficial/c511001802.lua | 2 +- unofficial/c511001803.lua | 2 +- unofficial/c511001804.lua | 2 +- unofficial/c511001805.lua | 2 +- unofficial/c511001806.lua | 2 +- unofficial/c511001807.lua | 2 +- unofficial/c511001808.lua | 2 +- unofficial/c511001809.lua | 2 +- unofficial/c511001810.lua | 2 +- unofficial/c511001811.lua | 2 +- unofficial/c511001812.lua | 2 +- unofficial/c511001813.lua | 2 +- unofficial/c511001814.lua | 2 +- unofficial/c511001815.lua | 2 +- unofficial/c511001817.lua | 8 ++-- unofficial/c511001818.lua | 8 ++-- unofficial/c511001819.lua | 2 +- unofficial/c511001820.lua | 8 ++-- unofficial/c511001821.lua | 2 +- unofficial/c511001822.lua | 2 +- unofficial/c511001823.lua | 2 +- unofficial/c511001824.lua | 2 +- unofficial/c511001825.lua | 2 +- unofficial/c511001826.lua | 12 ++--- unofficial/c511001827.lua | 4 +- unofficial/c511001828.lua | 4 +- unofficial/c511001829.lua | 2 +- unofficial/c511001830.lua | 2 +- unofficial/c511001857.lua | 2 +- unofficial/c511001859.lua | 2 +- unofficial/c511001860.lua | 2 +- unofficial/c511001861.lua | 4 +- unofficial/c511001862.lua | 2 +- unofficial/c511001863.lua | 2 +- unofficial/c511001864.lua | 2 +- unofficial/c511001865.lua | 2 +- unofficial/c511001866.lua | 2 +- unofficial/c511001867.lua | 2 +- unofficial/c511001868.lua | 4 +- unofficial/c511001869.lua | 2 +- unofficial/c511001870.lua | 2 +- unofficial/c511001871.lua | 2 +- unofficial/c511001872.lua | 2 +- unofficial/c511001873.lua | 2 +- unofficial/c511001874.lua | 2 +- unofficial/c511001875.lua | 2 +- unofficial/c511001876.lua | 2 +- unofficial/c511001877.lua | 8 ++-- unofficial/c511001878.lua | 2 +- unofficial/c511001879.lua | 2 +- unofficial/c511001880.lua | 2 +- unofficial/c511001881.lua | 2 +- unofficial/c511001882.lua | 2 +- unofficial/c511001883.lua | 2 +- unofficial/c511001884.lua | 2 +- unofficial/c511001885.lua | 4 +- unofficial/c511001886.lua | 2 +- unofficial/c511001887.lua | 2 +- unofficial/c511001888.lua | 4 +- unofficial/c511001889.lua | 2 +- unofficial/c511001891.lua | 2 +- unofficial/c511001893.lua | 2 +- unofficial/c511001894.lua | 2 +- unofficial/c511001895.lua | 2 +- unofficial/c511001896.lua | 2 +- unofficial/c511001897.lua | 2 +- unofficial/c511001898.lua | 2 +- unofficial/c511001900.lua | 6 +-- unofficial/c511001901.lua | 2 +- unofficial/c511001903.lua | 2 +- unofficial/c511001904.lua | 4 +- unofficial/c511001905.lua | 2 +- unofficial/c511001907.lua | 2 +- unofficial/c511001908.lua | 2 +- unofficial/c511001909.lua | 2 +- unofficial/c511001910.lua | 2 +- unofficial/c511001911.lua | 2 +- unofficial/c511001912.lua | 2 +- unofficial/c511001913.lua | 2 +- unofficial/c511001915.lua | 2 +- unofficial/c511001916.lua | 2 +- unofficial/c511001917.lua | 2 +- unofficial/c511001918.lua | 4 +- unofficial/c511001919.lua | 2 +- unofficial/c511001920.lua | 4 +- unofficial/c511001921.lua | 8 ++-- unofficial/c511001922.lua | 2 +- unofficial/c511001923.lua | 6 +-- unofficial/c511001924.lua | 4 +- unofficial/c511001925.lua | 2 +- unofficial/c511001926.lua | 2 +- unofficial/c511001927.lua | 2 +- unofficial/c511001928.lua | 2 +- unofficial/c511001929.lua | 4 +- unofficial/c511001930.lua | 4 +- unofficial/c511001931.lua | 2 +- unofficial/c511001932.lua | 8 ++-- unofficial/c511001933.lua | 2 +- unofficial/c511001934.lua | 8 ++-- unofficial/c511001935.lua | 2 +- unofficial/c511001936.lua | 2 +- unofficial/c511001937.lua | 2 +- unofficial/c511001938.lua | 2 +- unofficial/c511001939.lua | 2 +- unofficial/c511001941.lua | 2 +- unofficial/c511001942.lua | 2 +- unofficial/c511001943.lua | 4 +- unofficial/c511001944.lua | 2 +- unofficial/c511001945.lua | 2 +- unofficial/c511001946.lua | 4 +- unofficial/c511001947.lua | 6 +-- unofficial/c511001948.lua | 6 +-- unofficial/c511001949.lua | 8 ++-- unofficial/c511001950.lua | 4 +- unofficial/c511001951.lua | 10 ++--- unofficial/c511001952.lua | 2 +- unofficial/c511001954.lua | 6 +-- unofficial/c511001955.lua | 6 +-- unofficial/c511001956.lua | 2 +- unofficial/c511001957.lua | 2 +- unofficial/c511001958.lua | 2 +- unofficial/c511001959.lua | 2 +- unofficial/c511001960.lua | 8 ++-- unofficial/c511001961.lua | 2 +- unofficial/c511001962.lua | 4 +- unofficial/c511001963.lua | 2 +- unofficial/c511001964.lua | 2 +- unofficial/c511001965.lua | 2 +- unofficial/c511001967.lua | 2 +- unofficial/c511001969.lua | 6 +-- unofficial/c511001970.lua | 2 +- unofficial/c511001971.lua | 2 +- unofficial/c511001972.lua | 2 +- unofficial/c511001973.lua | 2 +- unofficial/c511001974.lua | 2 +- unofficial/c511001975.lua | 4 +- unofficial/c511001976.lua | 2 +- unofficial/c511001977.lua | 2 +- unofficial/c511001978.lua | 2 +- unofficial/c511001979.lua | 2 +- unofficial/c511001980.lua | 2 +- unofficial/c511001981.lua | 2 +- unofficial/c511001982.lua | 4 +- unofficial/c511001983.lua | 2 +- unofficial/c511001986.lua | 2 +- unofficial/c511001987.lua | 2 +- unofficial/c511001989.lua | 4 +- unofficial/c511001990.lua | 4 +- unofficial/c511001991.lua | 2 +- unofficial/c511001992.lua | 2 +- unofficial/c511001993.lua | 2 +- unofficial/c511001994.lua | 2 +- unofficial/c511001995.lua | 2 +- unofficial/c511001996.lua | 2 +- unofficial/c511001997.lua | 6 +-- unofficial/c511001998.lua | 4 +- unofficial/c511001999.lua | 4 +- unofficial/c511002001.lua | 4 +- unofficial/c511002002.lua | 2 +- unofficial/c511002003.lua | 2 +- unofficial/c511002004.lua | 2 +- unofficial/c511002005.lua | 2 +- unofficial/c511002007.lua | 6 +-- unofficial/c511002008.lua | 4 +- unofficial/c511002009.lua | 2 +- unofficial/c511002010.lua | 2 +- unofficial/c511002011.lua | 2 +- unofficial/c511002012.lua | 2 +- unofficial/c511002013.lua | 2 +- unofficial/c511002014.lua | 2 +- unofficial/c511002015.lua | 2 +- unofficial/c511002016.lua | 2 +- unofficial/c511002019.lua | 2 +- unofficial/c511002020.lua | 2 +- unofficial/c511002021.lua | 4 +- unofficial/c511002025.lua | 2 +- unofficial/c511002026.lua | 2 +- unofficial/c511002027.lua | 2 +- unofficial/c511002028.lua | 2 +- unofficial/c511002029.lua | 2 +- unofficial/c511002030.lua | 2 +- unofficial/c511002031.lua | 2 +- unofficial/c511002032.lua | 6 +-- unofficial/c511002033.lua | 4 +- unofficial/c511002034.lua | 2 +- unofficial/c511002035.lua | 2 +- unofficial/c511002036.lua | 2 +- unofficial/c511002037.lua | 2 +- unofficial/c511002038.lua | 2 +- unofficial/c511002039.lua | 2 +- unofficial/c511002040.lua | 2 +- unofficial/c511002042.lua | 6 +-- unofficial/c511002043.lua | 4 +- unofficial/c511002044.lua | 2 +- unofficial/c511002045.lua | 4 +- unofficial/c511002046.lua | 4 +- unofficial/c511002047.lua | 2 +- unofficial/c511002048.lua | 2 +- unofficial/c511002050.lua | 2 +- unofficial/c511002051.lua | 2 +- unofficial/c511002053.lua | 2 +- unofficial/c511002054.lua | 4 +- unofficial/c511002055.lua | 2 +- unofficial/c511002056.lua | 2 +- unofficial/c511002057.lua | 2 +- unofficial/c511002058.lua | 4 +- unofficial/c511002059.lua | 4 +- unofficial/c511002060.lua | 4 +- unofficial/c511002064.lua | 2 +- unofficial/c511002065.lua | 8 ++-- unofficial/c511002066.lua | 4 +- unofficial/c511002068.lua | 2 +- unofficial/c511002069.lua | 2 +- unofficial/c511002071.lua | 2 +- unofficial/c511002072.lua | 2 +- unofficial/c511002073.lua | 4 +- unofficial/c511002074.lua | 2 +- unofficial/c511002075.lua | 2 +- unofficial/c511002076.lua | 2 +- unofficial/c511002077.lua | 4 +- unofficial/c511002078.lua | 2 +- unofficial/c511002079.lua | 4 +- unofficial/c511002080.lua | 4 +- unofficial/c511002081.lua | 2 +- unofficial/c511002083.lua | 2 +- unofficial/c511002084.lua | 4 +- unofficial/c511002085.lua | 2 +- unofficial/c511002086.lua | 6 +-- unofficial/c511002087.lua | 4 +- unofficial/c511002088.lua | 4 +- unofficial/c511002089.lua | 2 +- unofficial/c511002090.lua | 10 ++--- unofficial/c511002091.lua | 2 +- unofficial/c511002092.lua | 4 +- unofficial/c511002095.lua | 2 +- unofficial/c511002096.lua | 2 +- unofficial/c511002097.lua | 2 +- unofficial/c511002098.lua | 4 +- unofficial/c511002099.lua | 2 +- unofficial/c511002100.lua | 2 +- unofficial/c511002101.lua | 4 +- unofficial/c511002102.lua | 4 +- unofficial/c511002103.lua | 2 +- unofficial/c511002104.lua | 2 +- unofficial/c511002105.lua | 2 +- unofficial/c511002106.lua | 2 +- unofficial/c511002107.lua | 2 +- unofficial/c511002108.lua | 2 +- unofficial/c511002109.lua | 2 +- unofficial/c511002110.lua | 8 ++-- unofficial/c511002111.lua | 2 +- unofficial/c511002112.lua | 2 +- unofficial/c511002113.lua | 2 +- unofficial/c511002114.lua | 2 +- unofficial/c511002115.lua | 2 +- unofficial/c511002116.lua | 2 +- unofficial/c511002117.lua | 2 +- unofficial/c511002118.lua | 2 +- unofficial/c511002119.lua | 2 +- unofficial/c511002120.lua | 2 +- unofficial/c511002121.lua | 2 +- unofficial/c511002122.lua | 2 +- unofficial/c511002123.lua | 2 +- unofficial/c511002124.lua | 2 +- unofficial/c511002125.lua | 2 +- unofficial/c511002126.lua | 2 +- unofficial/c511002128.lua | 2 +- unofficial/c511002129.lua | 2 +- unofficial/c511002130.lua | 2 +- unofficial/c511002131.lua | 2 +- unofficial/c511002132.lua | 2 +- unofficial/c511002133.lua | 4 +- unofficial/c511002134.lua | 2 +- unofficial/c511002135.lua | 2 +- unofficial/c511002136.lua | 4 +- unofficial/c511002137.lua | 2 +- unofficial/c511002138.lua | 2 +- unofficial/c511002139.lua | 2 +- unofficial/c511002140.lua | 2 +- unofficial/c511002141.lua | 2 +- unofficial/c511002142.lua | 2 +- unofficial/c511002143.lua | 2 +- unofficial/c511002144.lua | 2 +- unofficial/c511002145.lua | 2 +- unofficial/c511002146.lua | 2 +- unofficial/c511002147.lua | 2 +- unofficial/c511002148.lua | 2 +- unofficial/c511002149.lua | 2 +- unofficial/c511002150.lua | 6 +-- unofficial/c511002151.lua | 4 +- unofficial/c511002152.lua | 4 +- unofficial/c511002153.lua | 2 +- unofficial/c511002154.lua | 2 +- unofficial/c511002155.lua | 2 +- unofficial/c511002157.lua | 2 +- unofficial/c511002158.lua | 2 +- unofficial/c511002159.lua | 2 +- unofficial/c511002160.lua | 2 +- unofficial/c511002161.lua | 2 +- unofficial/c511002162.lua | 2 +- unofficial/c511002163.lua | 2 +- unofficial/c511002164.lua | 2 +- unofficial/c511002165.lua | 2 +- unofficial/c511002166.lua | 2 +- unofficial/c511002167.lua | 2 +- unofficial/c511002168.lua | 2 +- unofficial/c511002169.lua | 2 +- unofficial/c511002170.lua | 2 +- unofficial/c511002175.lua | 2 +- unofficial/c511002176.lua | 2 +- unofficial/c511002178.lua | 2 +- unofficial/c511002179.lua | 2 +- unofficial/c511002181.lua | 4 +- unofficial/c511002182.lua | 2 +- unofficial/c511002183.lua | 2 +- unofficial/c511002184.lua | 2 +- unofficial/c511002185.lua | 2 +- unofficial/c511002187.lua | 2 +- unofficial/c511002191.lua | 4 +- unofficial/c511002192.lua | 4 +- unofficial/c511002194.lua | 4 +- unofficial/c511002195.lua | 10 ++--- unofficial/c511002196.lua | 2 +- unofficial/c511002197.lua | 2 +- unofficial/c511002198.lua | 2 +- unofficial/c511002199.lua | 2 +- unofficial/c511002201.lua | 2 +- unofficial/c511002202.lua | 2 +- unofficial/c511002203.lua | 2 +- unofficial/c511002204.lua | 2 +- unofficial/c511002205.lua | 4 +- unofficial/c511002206.lua | 2 +- unofficial/c511002207.lua | 2 +- unofficial/c511002208.lua | 2 +- unofficial/c511002209.lua | 2 +- unofficial/c511002210.lua | 4 +- unofficial/c511002211.lua | 4 +- unofficial/c511002214.lua | 2 +- unofficial/c511002215.lua | 2 +- unofficial/c511002216.lua | 4 +- unofficial/c511002217.lua | 2 +- unofficial/c511002219.lua | 2 +- unofficial/c511002220.lua | 3 +- unofficial/c511002221.lua | 2 +- unofficial/c511002222.lua | 4 +- unofficial/c511002223.lua | 2 +- unofficial/c511002224.lua | 2 +- unofficial/c511002225.lua | 2 +- unofficial/c511002226.lua | 2 +- unofficial/c511002227.lua | 2 +- unofficial/c511002228.lua | 12 ++--- unofficial/c511002229.lua | 2 +- unofficial/c511002231.lua | 2 +- unofficial/c511002232.lua | 2 +- unofficial/c511002233.lua | 2 +- unofficial/c511002234.lua | 2 +- unofficial/c511002235.lua | 2 +- unofficial/c511002236.lua | 2 +- unofficial/c511002237.lua | 2 +- unofficial/c511002238.lua | 2 +- unofficial/c511002239.lua | 2 +- unofficial/c511002241.lua | 2 +- unofficial/c511002242.lua | 4 +- unofficial/c511002243.lua | 2 +- unofficial/c511002245.lua | 4 +- unofficial/c511002246.lua | 2 +- unofficial/c511002247.lua | 2 +- unofficial/c511002248.lua | 6 +-- unofficial/c511002249.lua | 2 +- unofficial/c511002250.lua | 2 +- unofficial/c511002251.lua | 2 +- unofficial/c511002252.lua | 2 +- unofficial/c511002253.lua | 6 +-- unofficial/c511002254.lua | 2 +- unofficial/c511002256.lua | 8 ++-- unofficial/c511002260.lua | 2 +- unofficial/c511002261.lua | 2 +- unofficial/c511002262.lua | 2 +- unofficial/c511002263.lua | 2 +- unofficial/c511002266.lua | 2 +- unofficial/c511002267.lua | 2 +- unofficial/c511002268.lua | 2 +- unofficial/c511002269.lua | 2 +- unofficial/c511002270.lua | 2 +- unofficial/c511002271.lua | 2 +- unofficial/c511002272.lua | 2 +- unofficial/c511002273.lua | 2 +- unofficial/c511002274.lua | 6 +-- unofficial/c511002275.lua | 2 +- unofficial/c511002276.lua | 2 +- unofficial/c511002277.lua | 2 +- unofficial/c511002279.lua | 2 +- unofficial/c511002280.lua | 2 +- unofficial/c511002281.lua | 2 +- unofficial/c511002282.lua | 2 +- unofficial/c511002284.lua | 2 +- unofficial/c511002285.lua | 2 +- unofficial/c511002286.lua | 4 +- unofficial/c511002287.lua | 4 +- unofficial/c511002288.lua | 4 +- unofficial/c511002289.lua | 2 +- unofficial/c511002290.lua | 2 +- unofficial/c511002291.lua | 2 +- unofficial/c511002292.lua | 2 +- unofficial/c511002293.lua | 2 +- unofficial/c511002294.lua | 2 +- unofficial/c511002295.lua | 2 +- unofficial/c511002296.lua | 2 +- unofficial/c511002297.lua | 2 +- unofficial/c511002298.lua | 2 +- unofficial/c511002299.lua | 2 +- unofficial/c511002302.lua | 2 +- unofficial/c511002303.lua | 2 +- unofficial/c511002304.lua | 2 +- unofficial/c511002305.lua | 2 +- unofficial/c511002306.lua | 2 +- unofficial/c511002307.lua | 2 +- unofficial/c511002308.lua | 2 +- unofficial/c511002309.lua | 2 +- unofficial/c511002310.lua | 2 +- unofficial/c511002312.lua | 2 +- unofficial/c511002315.lua | 2 +- unofficial/c511002316.lua | 2 +- unofficial/c511002317.lua | 2 +- unofficial/c511002318.lua | 2 +- unofficial/c511002319.lua | 2 +- unofficial/c511002320.lua | 2 +- unofficial/c511002321.lua | 8 ++-- unofficial/c511002322.lua | 2 +- unofficial/c511002323.lua | 4 +- unofficial/c511002324.lua | 4 +- unofficial/c511002325.lua | 2 +- unofficial/c511002326.lua | 2 +- unofficial/c511002327.lua | 2 +- unofficial/c511002328.lua | 2 +- unofficial/c511002329.lua | 2 +- unofficial/c511002332.lua | 2 +- unofficial/c511002333.lua | 2 +- unofficial/c511002334.lua | 2 +- unofficial/c511002335.lua | 2 +- unofficial/c511002337.lua | 2 +- unofficial/c511002338.lua | 2 +- unofficial/c511002339.lua | 2 +- unofficial/c511002340.lua | 2 +- unofficial/c511002343.lua | 2 +- unofficial/c511002344.lua | 2 +- unofficial/c511002345.lua | 2 +- unofficial/c511002347.lua | 2 +- unofficial/c511002348.lua | 2 +- unofficial/c511002349.lua | 2 +- unofficial/c511002350.lua | 2 +- unofficial/c511002351.lua | 2 +- unofficial/c511002352.lua | 4 +- unofficial/c511002353.lua | 4 +- unofficial/c511002354.lua | 4 +- unofficial/c511002355.lua | 6 +-- unofficial/c511002356.lua | 2 +- unofficial/c511002357.lua | 8 ++-- unofficial/c511002358.lua | 2 +- unofficial/c511002359.lua | 2 +- unofficial/c511002360.lua | 6 +-- unofficial/c511002361.lua | 8 ++-- unofficial/c511002362.lua | 4 +- unofficial/c511002364.lua | 4 +- unofficial/c511002365.lua | 2 +- unofficial/c511002366.lua | 4 +- unofficial/c511002367.lua | 4 +- unofficial/c511002368.lua | 2 +- unofficial/c511002369.lua | 6 +-- unofficial/c511002370.lua | 4 +- unofficial/c511002371.lua | 4 +- unofficial/c511002372.lua | 2 +- unofficial/c511002373.lua | 6 +-- unofficial/c511002374.lua | 6 +-- unofficial/c511002375.lua | 6 +-- unofficial/c511002376.lua | 2 +- unofficial/c511002377.lua | 2 +- unofficial/c511002378.lua | 4 +- unofficial/c511002379.lua | 4 +- unofficial/c511002380.lua | 4 +- unofficial/c511002381.lua | 2 +- unofficial/c511002382.lua | 2 +- unofficial/c511002383.lua | 2 +- unofficial/c511002384.lua | 2 +- unofficial/c511002385.lua | 2 +- unofficial/c511002386.lua | 2 +- unofficial/c511002387.lua | 2 +- unofficial/c511002388.lua | 2 +- unofficial/c511002390.lua | 2 +- unofficial/c511002391.lua | 2 +- unofficial/c511002392.lua | 2 +- unofficial/c511002393.lua | 2 +- unofficial/c511002394.lua | 2 +- unofficial/c511002395.lua | 6 +-- unofficial/c511002396.lua | 2 +- unofficial/c511002397.lua | 2 +- unofficial/c511002398.lua | 6 +-- unofficial/c511002399.lua | 2 +- unofficial/c511002401.lua | 2 +- unofficial/c511002402.lua | 4 +- unofficial/c511002403.lua | 2 +- unofficial/c511002404.lua | 4 +- unofficial/c511002405.lua | 2 +- unofficial/c511002406.lua | 2 +- unofficial/c511002407.lua | 2 +- unofficial/c511002409.lua | 2 +- unofficial/c511002410.lua | 2 +- unofficial/c511002411.lua | 4 +- unofficial/c511002412.lua | 2 +- unofficial/c511002414.lua | 2 +- unofficial/c511002415.lua | 2 +- unofficial/c511002416.lua | 2 +- unofficial/c511002417.lua | 2 +- unofficial/c511002418.lua | 2 +- unofficial/c511002419.lua | 2 +- unofficial/c511002420.lua | 2 +- unofficial/c511002425.lua | 2 +- unofficial/c511002426.lua | 2 +- unofficial/c511002427.lua | 2 +- unofficial/c511002429.lua | 2 +- unofficial/c511002430.lua | 2 +- unofficial/c511002431.lua | 2 +- unofficial/c511002433.lua | 2 +- unofficial/c511002434.lua | 2 +- unofficial/c511002435.lua | 2 +- unofficial/c511002436.lua | 2 +- unofficial/c511002437.lua | 4 +- unofficial/c511002440.lua | 2 +- unofficial/c511002443.lua | 2 +- unofficial/c511002444.lua | 2 +- unofficial/c511002445.lua | 2 +- unofficial/c511002447.lua | 2 +- unofficial/c511002448.lua | 2 +- unofficial/c511002449.lua | 2 +- unofficial/c511002451.lua | 2 +- unofficial/c511002452.lua | 4 +- unofficial/c511002453.lua | 2 +- unofficial/c511002454.lua | 2 +- unofficial/c511002457.lua | 2 +- unofficial/c511002458.lua | 2 +- unofficial/c511002460.lua | 2 +- unofficial/c511002461.lua | 4 +- unofficial/c511002463.lua | 2 +- unofficial/c511002464.lua | 2 +- unofficial/c511002465.lua | 2 +- unofficial/c511002466.lua | 2 +- unofficial/c511002467.lua | 6 +-- unofficial/c511002468.lua | 2 +- unofficial/c511002469.lua | 2 +- unofficial/c511002470.lua | 2 +- unofficial/c511002471.lua | 6 +-- unofficial/c511002472.lua | 2 +- unofficial/c511002473.lua | 2 +- unofficial/c511002474.lua | 2 +- unofficial/c511002475.lua | 2 +- unofficial/c511002476.lua | 4 +- unofficial/c511002477.lua | 2 +- unofficial/c511002478.lua | 4 +- unofficial/c511002479.lua | 2 +- unofficial/c511002480.lua | 4 +- unofficial/c511002482.lua | 2 +- unofficial/c511002483.lua | 2 +- unofficial/c511002484.lua | 4 +- unofficial/c511002485.lua | 2 +- unofficial/c511002486.lua | 2 +- unofficial/c511002487.lua | 6 +-- unofficial/c511002488.lua | 2 +- unofficial/c511002489.lua | 4 +- unofficial/c511002490.lua | 4 +- unofficial/c511002491.lua | 2 +- unofficial/c511002492.lua | 2 +- unofficial/c511002494.lua | 2 +- unofficial/c511002495.lua | 2 +- unofficial/c511002496.lua | 2 +- unofficial/c511002497.lua | 2 +- unofficial/c511002498.lua | 2 +- unofficial/c511002499.lua | 2 +- unofficial/c511002500.lua | 2 +- unofficial/c511002502.lua | 2 +- unofficial/c511002504.lua | 2 +- unofficial/c511002507.lua | 2 +- unofficial/c511002508.lua | 4 +- unofficial/c511002509.lua | 2 +- unofficial/c511002515.lua | 2 +- unofficial/c511002517.lua | 8 ++-- unofficial/c511002518.lua | 2 +- unofficial/c511002519.lua | 12 ++--- unofficial/c511002520.lua | 2 +- unofficial/c511002522.lua | 2 +- unofficial/c511002523.lua | 6 +-- unofficial/c511002524.lua | 2 +- unofficial/c511002525.lua | 8 ++-- unofficial/c511002526.lua | 2 +- unofficial/c511002527.lua | 6 +-- unofficial/c511002528.lua | 2 +- unofficial/c511002529.lua | 2 +- unofficial/c511002530.lua | 2 +- unofficial/c511002531.lua | 2 +- unofficial/c511002532.lua | 2 +- unofficial/c511002533.lua | 4 +- unofficial/c511002534.lua | 2 +- unofficial/c511002535.lua | 2 +- unofficial/c511002536.lua | 2 +- unofficial/c511002537.lua | 2 +- unofficial/c511002538.lua | 2 +- unofficial/c511002539.lua | 2 +- unofficial/c511002540.lua | 2 +- unofficial/c511002541.lua | 2 +- unofficial/c511002542.lua | 2 +- unofficial/c511002543.lua | 2 +- unofficial/c511002544.lua | 2 +- unofficial/c511002545.lua | 2 +- unofficial/c511002546.lua | 2 +- unofficial/c511002547.lua | 2 +- unofficial/c511002548.lua | 2 +- unofficial/c511002549.lua | 2 +- unofficial/c511002550.lua | 6 +-- unofficial/c511002551.lua | 4 +- unofficial/c511002552.lua | 2 +- unofficial/c511002553.lua | 2 +- unofficial/c511002554.lua | 2 +- unofficial/c511002555.lua | 4 +- unofficial/c511002556.lua | 2 +- unofficial/c511002557.lua | 6 +-- unofficial/c511002558.lua | 2 +- unofficial/c511002559.lua | 2 +- unofficial/c511002560.lua | 2 +- unofficial/c511002561.lua | 2 +- unofficial/c511002562.lua | 2 +- unofficial/c511002563.lua | 2 +- unofficial/c511002564.lua | 2 +- unofficial/c511002565.lua | 2 +- unofficial/c511002566.lua | 2 +- unofficial/c511002567.lua | 2 +- unofficial/c511002568.lua | 2 +- unofficial/c511002569.lua | 2 +- unofficial/c511002570.lua | 2 +- unofficial/c511002571.lua | 2 +- unofficial/c511002572.lua | 4 +- unofficial/c511002573.lua | 2 +- unofficial/c511002574.lua | 2 +- unofficial/c511002575.lua | 2 +- unofficial/c511002576.lua | 2 +- unofficial/c511002577.lua | 6 +-- unofficial/c511002578.lua | 2 +- unofficial/c511002579.lua | 2 +- unofficial/c511002580.lua | 2 +- unofficial/c511002581.lua | 2 +- unofficial/c511002583.lua | 4 +- unofficial/c511002584.lua | 4 +- unofficial/c511002585.lua | 2 +- unofficial/c511002586.lua | 2 +- unofficial/c511002587.lua | 2 +- unofficial/c511002588.lua | 2 +- unofficial/c511002589.lua | 2 +- unofficial/c511002590.lua | 4 +- unofficial/c511002591.lua | 2 +- unofficial/c511002596.lua | 2 +- unofficial/c511002597.lua | 2 +- unofficial/c511002598.lua | 2 +- unofficial/c511002599.lua | 2 +- unofficial/c511002600.lua | 2 +- unofficial/c511002601.lua | 2 +- unofficial/c511002602.lua | 6 +-- unofficial/c511002603.lua | 2 +- unofficial/c511002607.lua | 2 +- unofficial/c511002618.lua | 2 +- unofficial/c511002619.lua | 2 +- unofficial/c511002620.lua | 2 +- unofficial/c511002621.lua | 4 +- unofficial/c511002623.lua | 6 +-- unofficial/c511002625.lua | 4 +- unofficial/c511002626.lua | 4 +- unofficial/c511002637.lua | 2 +- unofficial/c511002638.lua | 2 +- unofficial/c511002639.lua | 2 +- unofficial/c511002641.lua | 2 +- unofficial/c511002642.lua | 2 +- unofficial/c511002643.lua | 2 +- unofficial/c511002644.lua | 6 +-- unofficial/c511002645.lua | 2 +- unofficial/c511002646.lua | 2 +- unofficial/c511002647.lua | 2 +- unofficial/c511002648.lua | 2 +- unofficial/c511002649.lua | 2 +- unofficial/c511002650.lua | 4 +- unofficial/c511002651.lua | 4 +- unofficial/c511002652.lua | 4 +- unofficial/c511002653.lua | 2 +- unofficial/c511002654.lua | 12 ++--- unofficial/c511002658.lua | 4 +- unofficial/c511002660.lua | 2 +- unofficial/c511002662.lua | 2 +- unofficial/c511002663.lua | 2 +- unofficial/c511002664.lua | 4 +- unofficial/c511002665.lua | 4 +- unofficial/c511002666.lua | 2 +- unofficial/c511002667.lua | 4 +- unofficial/c511002668.lua | 2 +- unofficial/c511002669.lua | 2 +- unofficial/c511002670.lua | 2 +- unofficial/c511002672.lua | 2 +- unofficial/c511002673.lua | 2 +- unofficial/c511002674.lua | 2 +- unofficial/c511002675.lua | 4 +- unofficial/c511002676.lua | 2 +- unofficial/c511002677.lua | 2 +- unofficial/c511002678.lua | 2 +- unofficial/c511002679.lua | 2 +- unofficial/c511002680.lua | 2 +- unofficial/c511002681.lua | 2 +- unofficial/c511002682.lua | 2 +- unofficial/c511002683.lua | 2 +- unofficial/c511002684.lua | 2 +- unofficial/c511002686.lua | 2 +- unofficial/c511002687.lua | 2 +- unofficial/c511002688.lua | 2 +- unofficial/c511002689.lua | 2 +- unofficial/c511002690.lua | 4 +- unofficial/c511002691.lua | 2 +- unofficial/c511002692.lua | 2 +- unofficial/c511002693.lua | 2 +- unofficial/c511002694.lua | 2 +- unofficial/c511002696.lua | 2 +- unofficial/c511002697.lua | 2 +- unofficial/c511002698.lua | 2 +- unofficial/c511002699.lua | 2 +- unofficial/c511002700.lua | 2 +- unofficial/c511002701.lua | 2 +- unofficial/c511002702.lua | 4 +- unofficial/c511002703.lua | 2 +- unofficial/c511002704.lua | 4 +- unofficial/c511002705.lua | 2 +- unofficial/c511002706.lua | 2 +- unofficial/c511002708.lua | 2 +- unofficial/c511002709.lua | 4 +- unofficial/c511002710.lua | 4 +- unofficial/c511002711.lua | 2 +- unofficial/c511002712.lua | 4 +- unofficial/c511002713.lua | 2 +- unofficial/c511002714.lua | 2 +- unofficial/c511002715.lua | 2 +- unofficial/c511002716.lua | 2 +- unofficial/c511002718.lua | 2 +- unofficial/c511002719.lua | 2 +- unofficial/c511002720.lua | 2 +- unofficial/c511002721.lua | 2 +- unofficial/c511002722.lua | 2 +- unofficial/c511002724.lua | 2 +- unofficial/c511002725.lua | 2 +- unofficial/c511002726.lua | 2 +- unofficial/c511002727.lua | 3 +- unofficial/c511002728.lua | 6 +-- unofficial/c511002729.lua | 6 +-- unofficial/c511002730.lua | 4 +- unofficial/c511002733.lua | 2 +- unofficial/c511002734.lua | 2 +- unofficial/c511002736.lua | 2 +- unofficial/c511002737.lua | 2 +- unofficial/c511002738.lua | 4 +- unofficial/c511002739.lua | 2 +- unofficial/c511002740.lua | 2 +- unofficial/c511002741.lua | 2 +- unofficial/c511002742.lua | 2 +- unofficial/c511002743.lua | 2 +- unofficial/c511002744.lua | 2 +- unofficial/c511002745.lua | 2 +- unofficial/c511002746.lua | 2 +- unofficial/c511002747.lua | 2 +- unofficial/c511002748.lua | 2 +- unofficial/c511002749.lua | 4 +- unofficial/c511002751.lua | 2 +- unofficial/c511002752.lua | 2 +- unofficial/c511002753.lua | 4 +- unofficial/c511002754.lua | 2 +- unofficial/c511002755.lua | 2 +- unofficial/c511002756.lua | 2 +- unofficial/c511002757.lua | 8 ++-- unofficial/c511002758.lua | 2 +- unofficial/c511002759.lua | 2 +- unofficial/c511002760.lua | 4 +- unofficial/c511002761.lua | 4 +- unofficial/c511002762.lua | 2 +- unofficial/c511002763.lua | 2 +- unofficial/c511002764.lua | 2 +- unofficial/c511002765.lua | 2 +- unofficial/c511002766.lua | 2 +- unofficial/c511002767.lua | 2 +- unofficial/c511002768.lua | 4 +- unofficial/c511002769.lua | 2 +- unofficial/c511002770.lua | 2 +- unofficial/c511002771.lua | 2 +- unofficial/c511002772.lua | 2 +- unofficial/c511002773.lua | 4 +- unofficial/c511002774.lua | 2 +- unofficial/c511002775.lua | 4 +- unofficial/c511002776.lua | 2 +- unofficial/c511002777.lua | 2 +- unofficial/c511002778.lua | 2 +- unofficial/c511002780.lua | 2 +- unofficial/c511002787.lua | 2 +- unofficial/c511002789.lua | 2 +- unofficial/c511002790.lua | 4 +- unofficial/c511002791.lua | 2 +- unofficial/c511002792.lua | 2 +- unofficial/c511002793.lua | 2 +- unofficial/c511002794.lua | 2 +- unofficial/c511002795.lua | 4 +- unofficial/c511002796.lua | 2 +- unofficial/c511002797.lua | 2 +- unofficial/c511002798.lua | 6 +-- unofficial/c511002799.lua | 2 +- unofficial/c511002800.lua | 2 +- unofficial/c511002801.lua | 2 +- unofficial/c511002802.lua | 2 +- unofficial/c511002803.lua | 2 +- unofficial/c511002804.lua | 2 +- unofficial/c511002805.lua | 2 +- unofficial/c511002806.lua | 2 +- unofficial/c511002807.lua | 2 +- unofficial/c511002808.lua | 2 +- unofficial/c511002809.lua | 4 +- unofficial/c511002810.lua | 2 +- unofficial/c511002811.lua | 4 +- unofficial/c511002812.lua | 6 +-- unofficial/c511002813.lua | 2 +- unofficial/c511002814.lua | 2 +- unofficial/c511002815.lua | 2 +- unofficial/c511002816.lua | 2 +- unofficial/c511002817.lua | 4 +- unofficial/c511002818.lua | 2 +- unofficial/c511002820.lua | 2 +- unofficial/c511002822.lua | 4 +- unofficial/c511002823.lua | 2 +- unofficial/c511002824.lua | 2 +- unofficial/c511002825.lua | 4 +- unofficial/c511002826.lua | 4 +- unofficial/c511002827.lua | 2 +- unofficial/c511002829.lua | 2 +- unofficial/c511002830.lua | 6 +-- unofficial/c511002831.lua | 2 +- unofficial/c511002832.lua | 2 +- unofficial/c511002833.lua | 4 +- unofficial/c511002834.lua | 4 +- unofficial/c511002835.lua | 2 +- unofficial/c511002836.lua | 2 +- unofficial/c511002837.lua | 2 +- unofficial/c511002838.lua | 2 +- unofficial/c511002839.lua | 2 +- unofficial/c511002840.lua | 2 +- unofficial/c511002841.lua | 2 +- unofficial/c511002843.lua | 2 +- unofficial/c511002844.lua | 2 +- unofficial/c511002845.lua | 2 +- unofficial/c511002846.lua | 2 +- unofficial/c511002848.lua | 2 +- unofficial/c511002849.lua | 2 +- unofficial/c511002850.lua | 2 +- unofficial/c511002854.lua | 2 +- unofficial/c511002855.lua | 2 +- unofficial/c511002856.lua | 2 +- unofficial/c511002857.lua | 2 +- unofficial/c511002858.lua | 2 +- unofficial/c511002859.lua | 2 +- unofficial/c511002860.lua | 2 +- unofficial/c511002861.lua | 2 +- unofficial/c511002862.lua | 2 +- unofficial/c511002863.lua | 4 +- unofficial/c511002864.lua | 2 +- unofficial/c511002865.lua | 2 +- unofficial/c511002866.lua | 2 +- unofficial/c511002867.lua | 2 +- unofficial/c511002868.lua | 6 +-- unofficial/c511002869.lua | 2 +- unofficial/c511002870.lua | 3 +- unofficial/c511002871.lua | 2 +- unofficial/c511002872.lua | 2 +- unofficial/c511002873.lua | 4 +- unofficial/c511002874.lua | 2 +- unofficial/c511002875.lua | 2 +- unofficial/c511002876.lua | 2 +- unofficial/c511002877.lua | 2 +- unofficial/c511002878.lua | 4 +- unofficial/c511002879.lua | 2 +- unofficial/c511002880.lua | 2 +- unofficial/c511002881.lua | 2 +- unofficial/c511002882.lua | 2 +- unofficial/c511002883.lua | 4 +- unofficial/c511002884.lua | 2 +- unofficial/c511002885.lua | 8 ++-- unofficial/c511002886.lua | 2 +- unofficial/c511002887.lua | 4 +- unofficial/c511002888.lua | 2 +- unofficial/c511002889.lua | 2 +- unofficial/c511002890.lua | 2 +- unofficial/c511002891.lua | 2 +- unofficial/c511002892.lua | 2 +- unofficial/c511002893.lua | 2 +- unofficial/c511002894.lua | 2 +- unofficial/c511002895.lua | 2 +- unofficial/c511002896.lua | 2 +- unofficial/c511002897.lua | 2 +- unofficial/c511002898.lua | 2 +- unofficial/c511002899.lua | 2 +- unofficial/c511002900.lua | 2 +- unofficial/c511002902.lua | 2 +- unofficial/c511002907.lua | 2 +- unofficial/c511002908.lua | 2 +- unofficial/c511002910.lua | 2 +- unofficial/c511002911.lua | 2 +- unofficial/c511002912.lua | 2 +- unofficial/c511002913.lua | 4 +- unofficial/c511002914.lua | 2 +- unofficial/c511002915.lua | 2 +- unofficial/c511002916.lua | 2 +- unofficial/c511002917.lua | 2 +- unofficial/c511002918.lua | 2 +- unofficial/c511002919.lua | 2 +- unofficial/c511002920.lua | 2 +- unofficial/c511002921.lua | 2 +- unofficial/c511002922.lua | 2 +- unofficial/c511002923.lua | 2 +- unofficial/c511002924.lua | 2 +- unofficial/c511002925.lua | 2 +- unofficial/c511002926.lua | 6 +-- unofficial/c511002927.lua | 4 +- unofficial/c511002928.lua | 2 +- unofficial/c511002929.lua | 2 +- unofficial/c511002930.lua | 2 +- unofficial/c511002931.lua | 2 +- unofficial/c511002932.lua | 2 +- unofficial/c511002933.lua | 2 +- unofficial/c511002934.lua | 2 +- unofficial/c511002935.lua | 2 +- unofficial/c511002936.lua | 2 +- unofficial/c511002937.lua | 4 +- unofficial/c511002938.lua | 2 +- unofficial/c511002939.lua | 6 +-- unofficial/c511002940.lua | 2 +- unofficial/c511002941.lua | 2 +- unofficial/c511002942.lua | 2 +- unofficial/c511002943.lua | 2 +- unofficial/c511002944.lua | 2 +- unofficial/c511002945.lua | 2 +- unofficial/c511002946.lua | 6 +-- unofficial/c511002947.lua | 2 +- unofficial/c511002948.lua | 2 +- unofficial/c511002949.lua | 2 +- unofficial/c511002950.lua | 4 +- unofficial/c511002951.lua | 2 +- unofficial/c511002952.lua | 4 +- unofficial/c511002953.lua | 6 +-- unofficial/c511002954.lua | 4 +- unofficial/c511002955.lua | 4 +- unofficial/c511002956.lua | 4 +- unofficial/c511002957.lua | 2 +- unofficial/c511002959.lua | 2 +- unofficial/c511002960.lua | 2 +- unofficial/c511002961.lua | 2 +- unofficial/c511002962.lua | 6 +-- unofficial/c511002963.lua | 6 +-- unofficial/c511002964.lua | 4 +- unofficial/c511002965.lua | 6 +-- unofficial/c511002966.lua | 4 +- unofficial/c511002967.lua | 2 +- unofficial/c511002968.lua | 4 +- unofficial/c511002969.lua | 2 +- unofficial/c511002970.lua | 2 +- unofficial/c511002973.lua | 12 ++--- unofficial/c511002974.lua | 6 +-- unofficial/c511002975.lua | 6 +-- unofficial/c511002976.lua | 2 +- unofficial/c511002977.lua | 2 +- unofficial/c511002978.lua | 2 +- unofficial/c511002981.lua | 2 +- unofficial/c511002984.lua | 2 +- unofficial/c511002985.lua | 2 +- unofficial/c511002986.lua | 2 +- unofficial/c511002987.lua | 2 +- unofficial/c511002988.lua | 2 +- unofficial/c511002989.lua | 6 +-- unofficial/c511002990.lua | 2 +- unofficial/c511002999.lua | 4 +- unofficial/c511003000.lua | 2 +- unofficial/c511003001.lua | 2 +- unofficial/c511003002.lua | 2 +- unofficial/c511003003.lua | 4 +- unofficial/c511003004.lua | 8 ++-- unofficial/c511003005.lua | 6 +-- unofficial/c511003010.lua | 2 +- unofficial/c511003025.lua | 2 +- unofficial/c511003029.lua | 2 +- unofficial/c511003038.lua | 6 +-- unofficial/c511003039.lua | 2 +- unofficial/c511003045.lua | 2 +- unofficial/c511003046.lua | 2 +- unofficial/c511003047.lua | 2 +- unofficial/c511003048.lua | 2 +- unofficial/c511003049.lua | 2 +- unofficial/c511003050.lua | 2 +- unofficial/c511003051.lua | 2 +- unofficial/c511003052.lua | 2 +- unofficial/c511003053.lua | 2 +- unofficial/c511003070.lua | 2 +- unofficial/c511003072.lua | 2 +- unofficial/c511003074.lua | 4 +- unofficial/c511003076.lua | 2 +- unofficial/c511003077.lua | 2 +- unofficial/c511003078.lua | 2 +- unofficial/c511003080.lua | 2 +- unofficial/c511003081.lua | 2 +- unofficial/c511003082.lua | 2 +- unofficial/c511003083.lua | 2 +- unofficial/c511003084.lua | 2 +- unofficial/c511003085.lua | 2 +- unofficial/c511003086.lua | 2 +- unofficial/c511003087.lua | 2 +- unofficial/c511003088.lua | 2 +- unofficial/c511003089.lua | 2 +- unofficial/c511003115.lua | 4 +- unofficial/c511003201.lua | 2 +- unofficial/c511003202.lua | 2 +- unofficial/c511003203.lua | 4 +- unofficial/c511003204.lua | 2 +- unofficial/c511003205.lua | 2 +- unofficial/c511003206.lua | 2 +- unofficial/c511003207.lua | 2 +- unofficial/c511003208.lua | 2 +- unofficial/c511003209.lua | 4 +- unofficial/c511003210.lua | 2 +- unofficial/c511003211.lua | 2 +- unofficial/c511003212.lua | 2 +- unofficial/c511003213.lua | 2 +- unofficial/c511003214.lua | 2 +- unofficial/c511003215.lua | 2 +- unofficial/c511003216.lua | 4 +- unofficial/c511003217.lua | 2 +- unofficial/c511003218.lua | 2 +- unofficial/c511003219.lua | 2 +- unofficial/c511003220.lua | 2 +- unofficial/c511003221.lua | 2 +- unofficial/c511003222.lua | 2 +- unofficial/c511003223.lua | 2 +- unofficial/c511003224.lua | 2 +- unofficial/c511003228.lua | 2 +- unofficial/c511003230.lua | 2 +- unofficial/c511003233.lua | 2 +- unofficial/c511003235.lua | 2 +- unofficial/c511003236.lua | 2 +- unofficial/c511003242.lua | 2 +- unofficial/c511003243.lua | 2 +- unofficial/c511004000.lua | 4 +- unofficial/c511004001.lua | 2 +- unofficial/c511004003.lua | 4 +- unofficial/c511004004.lua | 2 +- unofficial/c511004006.lua | 6 +-- unofficial/c511004008.lua | 2 +- unofficial/c511004014.lua | 6 +-- unofficial/c511004015.lua | 2 +- unofficial/c511004016.lua | 2 +- unofficial/c511004100.lua | 2 +- unofficial/c511004103.lua | 2 +- unofficial/c511004104.lua | 2 +- unofficial/c511004106.lua | 2 +- unofficial/c511004108.lua | 2 +- unofficial/c511004111.lua | 2 +- unofficial/c511004112.lua | 4 +- unofficial/c511004114.lua | 2 +- unofficial/c511004117.lua | 2 +- unofficial/c511004121.lua | 6 +-- unofficial/c511004122.lua | 2 +- unofficial/c511004123.lua | 2 +- unofficial/c511004124.lua | 2 +- unofficial/c511004126.lua | 2 +- unofficial/c511004322.lua | 6 +-- unofficial/c511004328.lua | 2 +- unofficial/c511004331.lua | 2 +- unofficial/c511004335.lua | 2 +- unofficial/c511004336.lua | 2 +- unofficial/c511004337.lua | 2 +- unofficial/c511004339.lua | 2 +- unofficial/c511004341.lua | 2 +- unofficial/c511004399.lua | 2 +- unofficial/c511004400.lua | 2 +- unofficial/c511004401.lua | 2 +- unofficial/c511004403.lua | 2 +- unofficial/c511004404.lua | 2 +- unofficial/c511004405.lua | 6 +-- unofficial/c511004406.lua | 2 +- unofficial/c511004407.lua | 6 +-- unofficial/c511004408.lua | 2 +- unofficial/c511004409.lua | 4 +- unofficial/c511004410.lua | 4 +- unofficial/c511004412.lua | 2 +- unofficial/c511004413.lua | 2 +- unofficial/c511004414.lua | 2 +- unofficial/c511004415.lua | 8 ++-- unofficial/c511004416.lua | 8 ++-- unofficial/c511004417.lua | 8 ++-- unofficial/c511004418.lua | 4 +- unofficial/c511004419.lua | 8 ++-- unofficial/c511004421.lua | 6 +-- unofficial/c511004423.lua | 2 +- unofficial/c511004424.lua | 4 +- unofficial/c511004425.lua | 4 +- unofficial/c511004426.lua | 4 +- unofficial/c511004427.lua | 2 +- unofficial/c511004428.lua | 2 +- unofficial/c511004429.lua | 4 +- unofficial/c511004430.lua | 2 +- unofficial/c511004432.lua | 2 +- unofficial/c511004434.lua | 4 +- unofficial/c511004436.lua | 2 +- unofficial/c511004437.lua | 2 +- unofficial/c511004438.lua | 4 +- unofficial/c511004439.lua | 4 +- unofficial/c511004440.lua | 2 +- unofficial/c511004441.lua | 2 +- unofficial/c511004442.lua | 4 +- unofficial/c511004443.lua | 4 +- unofficial/c511004444.lua | 2 +- unofficial/c511004445.lua | 2 +- unofficial/c511004448.lua | 2 +- unofficial/c511004449.lua | 2 +- unofficial/c511004450.lua | 2 +- unofficial/c511004501.lua | 2 +- unofficial/c511005001.lua | 2 +- unofficial/c511005002.lua | 2 +- unofficial/c511005008.lua | 2 +- unofficial/c511005009.lua | 2 +- unofficial/c511005010.lua | 2 +- unofficial/c511005013.lua | 2 +- unofficial/c511005017.lua | 2 +- unofficial/c511005018.lua | 2 +- unofficial/c511005020.lua | 2 +- unofficial/c511005021.lua | 2 +- unofficial/c511005022.lua | 2 +- unofficial/c511005023.lua | 2 +- unofficial/c511005025.lua | 2 +- unofficial/c511005026.lua | 2 +- unofficial/c511005028.lua | 4 +- unofficial/c511005029.lua | 2 +- unofficial/c511005032.lua | 2 +- unofficial/c511005035.lua | 2 +- unofficial/c511005038.lua | 2 +- unofficial/c511005039.lua | 2 +- unofficial/c511005041.lua | 2 +- unofficial/c511005043.lua | 6 +-- unofficial/c511005044.lua | 2 +- unofficial/c511005045.lua | 4 +- unofficial/c511005046.lua | 4 +- unofficial/c511005047.lua | 2 +- unofficial/c511005051.lua | 2 +- unofficial/c511005053.lua | 4 +- unofficial/c511005054.lua | 2 +- unofficial/c511005055.lua | 2 +- unofficial/c511005056.lua | 2 +- unofficial/c511005057.lua | 2 +- unofficial/c511005060.lua | 2 +- unofficial/c511005064.lua | 6 +-- unofficial/c511005066.lua | 2 +- unofficial/c511005067.lua | 2 +- unofficial/c511005068.lua | 2 +- unofficial/c511005069.lua | 2 +- unofficial/c511005070.lua | 2 +- unofficial/c511005071.lua | 2 +- unofficial/c511005074.lua | 2 +- unofficial/c511005076.lua | 2 +- unofficial/c511005077.lua | 2 +- unofficial/c511005079.lua | 2 +- unofficial/c511005081.lua | 4 +- unofficial/c511005083.lua | 2 +- unofficial/c511005084.lua | 2 +- unofficial/c511005086.lua | 4 +- unofficial/c511005087.lua | 2 +- unofficial/c511005089.lua | 2 +- unofficial/c511005090.lua | 2 +- unofficial/c511005092.lua | 2 +- unofficial/c511005093.lua | 2 +- unofficial/c511005592.lua | 2 +- unofficial/c511005595.lua | 2 +- unofficial/c511005596.lua | 2 +- unofficial/c511005598.lua | 2 +- unofficial/c511005599.lua | 2 +- unofficial/c511005601.lua | 2 +- unofficial/c511005604.lua | 2 +- unofficial/c511005623.lua | 2 +- unofficial/c511005624.lua | 2 +- unofficial/c511005628.lua | 2 +- unofficial/c511005629.lua | 2 +- unofficial/c511005630.lua | 2 +- unofficial/c511005633.lua | 2 +- unofficial/c511005637.lua | 2 +- unofficial/c511005639.lua | 6 +-- unofficial/c511005642.lua | 2 +- unofficial/c511005643.lua | 2 +- unofficial/c511005644.lua | 2 +- unofficial/c511005645.lua | 2 +- unofficial/c511005646.lua | 2 +- unofficial/c511005647.lua | 2 +- unofficial/c511005709.lua | 4 +- unofficial/c511005710.lua | 6 +-- unofficial/c511005711.lua | 12 ++--- unofficial/c511005713.lua | 4 +- unofficial/c511005714.lua | 2 +- unofficial/c511005715.lua | 2 +- unofficial/c511005737.lua | 2 +- unofficial/c511006002.lua | 2 +- unofficial/c511006003.lua | 4 +- unofficial/c511006004.lua | 2 +- unofficial/c511007001.lua | 4 +- unofficial/c511007003.lua | 2 +- unofficial/c511007006.lua | 4 +- unofficial/c511007010.lua | 2 +- unofficial/c511007013.lua | 2 +- unofficial/c511007014.lua | 2 +- unofficial/c511007015.lua | 2 +- unofficial/c511007018.lua | 4 +- unofficial/c511007019.lua | 4 +- unofficial/c511007022.lua | 2 +- unofficial/c511007024.lua | 4 +- unofficial/c511007029.lua | 2 +- unofficial/c511007031.lua | 4 +- unofficial/c511008001.lua | 2 +- unofficial/c511008004.lua | 2 +- unofficial/c511008015.lua | 2 +- unofficial/c511008016.lua | 2 +- unofficial/c511008019.lua | 2 +- unofficial/c511008020.lua | 4 +- unofficial/c511008023.lua | 2 +- unofficial/c511008025.lua | 2 +- unofficial/c511008026.lua | 2 +- unofficial/c511008027.lua | 2 +- unofficial/c511008029.lua | 2 - unofficial/c511008500.lua | 2 +- unofficial/c511008502.lua | 2 +- unofficial/c511008503.lua | 2 +- unofficial/c511008505.lua | 4 +- unofficial/c511008506.lua | 4 +- unofficial/c511008507.lua | 2 +- unofficial/c511008508.lua | 2 +- unofficial/c511008509.lua | 2 +- unofficial/c511009000.lua | 2 +- unofficial/c511009001.lua | 2 +- unofficial/c511009002.lua | 4 +- unofficial/c511009003.lua | 2 +- unofficial/c511009004.lua | 2 +- unofficial/c511009005.lua | 2 +- unofficial/c511009006.lua | 2 +- unofficial/c511009007.lua | 2 +- unofficial/c511009008.lua | 2 +- unofficial/c511009009.lua | 2 +- unofficial/c511009010.lua | 2 +- unofficial/c511009011.lua | 2 +- unofficial/c511009014.lua | 2 +- unofficial/c511009018.lua | 8 ++-- unofficial/c511009021.lua | 2 +- unofficial/c511009022.lua | 4 +- unofficial/c511009023.lua | 6 +-- unofficial/c511009024.lua | 4 +- unofficial/c511009025.lua | 2 +- unofficial/c511009027.lua | 2 +- unofficial/c511009030.lua | 2 +- unofficial/c511009032.lua | 4 +- unofficial/c511009034.lua | 2 +- unofficial/c511009035.lua | 10 ++--- unofficial/c511009036.lua | 6 +-- unofficial/c511009040.lua | 2 +- unofficial/c511009042.lua | 4 +- unofficial/c511009043.lua | 2 +- unofficial/c511009044.lua | 2 +- unofficial/c511009047.lua | 4 +- unofficial/c511009049.lua | 2 +- unofficial/c511009051.lua | 2 +- unofficial/c511009052.lua | 6 +-- unofficial/c511009053.lua | 4 +- unofficial/c511009054.lua | 6 +-- unofficial/c511009055.lua | 4 +- unofficial/c511009058.lua | 2 +- unofficial/c511009060.lua | 2 +- unofficial/c511009061.lua | 2 +- unofficial/c511009062.lua | 2 +- unofficial/c511009063.lua | 2 +- unofficial/c511009064.lua | 4 +- unofficial/c511009065.lua | 4 +- unofficial/c511009066.lua | 6 +-- unofficial/c511009068.lua | 4 +- unofficial/c511009070.lua | 2 +- unofficial/c511009071.lua | 2 +- unofficial/c511009072.lua | 2 +- unofficial/c511009073.lua | 2 +- unofficial/c511009074.lua | 2 +- unofficial/c511009075.lua | 2 +- unofficial/c511009077.lua | 4 +- unofficial/c511009078.lua | 4 +- unofficial/c511009079.lua | 6 +-- unofficial/c511009080.lua | 4 +- unofficial/c511009081.lua | 2 +- unofficial/c511009082.lua | 2 +- unofficial/c511009083.lua | 2 +- unofficial/c511009084.lua | 2 +- unofficial/c511009085.lua | 2 +- unofficial/c511009086.lua | 2 +- unofficial/c511009088.lua | 4 +- unofficial/c511009089.lua | 2 +- unofficial/c511009091.lua | 2 +- unofficial/c511009093.lua | 6 +-- unofficial/c511009094.lua | 4 +- unofficial/c511009095.lua | 2 +- unofficial/c511009098.lua | 2 +- unofficial/c511009100.lua | 2 +- unofficial/c511009102.lua | 2 +- unofficial/c511009103.lua | 2 +- unofficial/c511009104.lua | 6 +-- unofficial/c511009105.lua | 10 ++--- unofficial/c511009107.lua | 8 ++-- unofficial/c511009108.lua | 2 +- unofficial/c511009109.lua | 2 +- unofficial/c511009110.lua | 4 +- unofficial/c511009111.lua | 2 +- unofficial/c511009123.lua | 2 +- unofficial/c511009124.lua | 2 +- unofficial/c511009126.lua | 6 +-- unofficial/c511009128.lua | 2 +- unofficial/c511009130.lua | 2 +- unofficial/c511009132.lua | 2 +- unofficial/c511009133.lua | 4 +- unofficial/c511009136.lua | 4 +- unofficial/c511009137.lua | 2 +- unofficial/c511009138.lua | 6 +-- unofficial/c511009141.lua | 2 +- unofficial/c511009142.lua | 2 +- unofficial/c511009143.lua | 8 ++-- unofficial/c511009144.lua | 4 +- unofficial/c511009145.lua | 4 +- unofficial/c511009146.lua | 2 +- unofficial/c511009153.lua | 2 +- unofficial/c511009155.lua | 6 +-- unofficial/c511009156.lua | 2 +- unofficial/c511009157.lua | 2 +- unofficial/c511009159.lua | 2 +- unofficial/c511009160.lua | 2 +- unofficial/c511009162.lua | 2 +- unofficial/c511009165.lua | 2 +- unofficial/c511009167.lua | 4 +- unofficial/c511009168.lua | 5 +-- unofficial/c511009169.lua | 6 +-- unofficial/c511009170.lua | 6 +-- unofficial/c511009180.lua | 4 +- unofficial/c511009181.lua | 2 +- unofficial/c511009182.lua | 8 ++-- unofficial/c511009186.lua | 2 +- unofficial/c511009189.lua | 8 ++-- unofficial/c511009190.lua | 2 +- unofficial/c511009191.lua | 6 +-- unofficial/c511009192.lua | 2 +- unofficial/c511009193.lua | 4 +- unofficial/c511009194.lua | 4 +- unofficial/c511009195.lua | 4 +- unofficial/c511009196.lua | 4 +- unofficial/c511009198.lua | 6 +-- unofficial/c511009203.lua | 2 +- unofficial/c511009204.lua | 2 +- unofficial/c511009208.lua | 2 +- unofficial/c511009209.lua | 2 +- unofficial/c511009210.lua | 2 +- unofficial/c511009212.lua | 2 +- unofficial/c511009213.lua | 2 +- unofficial/c511009214.lua | 2 +- unofficial/c511009300.lua | 2 +- unofficial/c511009301.lua | 4 +- unofficial/c511009302.lua | 2 +- unofficial/c511009303.lua | 2 +- unofficial/c511009304.lua | 14 +++--- unofficial/c511009305.lua | 2 +- unofficial/c511009306.lua | 8 ++-- unofficial/c511009307.lua | 4 +- unofficial/c511009308.lua | 2 +- unofficial/c511009310.lua | 2 +- unofficial/c511009311.lua | 4 +- unofficial/c511009312.lua | 4 +- unofficial/c511009313.lua | 2 +- unofficial/c511009315.lua | 2 +- unofficial/c511009316.lua | 2 +- unofficial/c511009317.lua | 10 ++--- unofficial/c511009318.lua | 8 ++-- unofficial/c511009319.lua | 6 +-- unofficial/c511009320.lua | 2 +- unofficial/c511009321.lua | 2 +- unofficial/c511009322.lua | 4 +- unofficial/c511009323.lua | 2 +- unofficial/c511009324.lua | 2 +- unofficial/c511009325.lua | 3 +- unofficial/c511009326.lua | 2 +- unofficial/c511009327.lua | 4 +- unofficial/c511009328.lua | 8 ++-- unofficial/c511009329.lua | 2 +- unofficial/c511009330.lua | 4 +- unofficial/c511009332.lua | 4 +- unofficial/c511009333.lua | 4 +- unofficial/c511009334.lua | 4 +- unofficial/c511009335.lua | 4 +- unofficial/c511009336.lua | 4 +- unofficial/c511009338.lua | 2 +- unofficial/c511009339.lua | 2 +- unofficial/c511009340.lua | 4 +- unofficial/c511009341.lua | 2 +- unofficial/c511009342.lua | 2 +- unofficial/c511009343.lua | 2 +- unofficial/c511009344.lua | 2 +- unofficial/c511009345.lua | 2 +- unofficial/c511009347.lua | 2 +- unofficial/c511009349.lua | 4 +- unofficial/c511009350.lua | 2 +- unofficial/c511009351.lua | 2 +- unofficial/c511009353.lua | 2 +- unofficial/c511009355.lua | 4 +- unofficial/c511009357.lua | 2 +- unofficial/c511009361.lua | 4 +- unofficial/c511009362.lua | 2 +- unofficial/c511009363.lua | 2 +- unofficial/c511009364.lua | 4 +- unofficial/c511009365.lua | 4 +- unofficial/c511009366.lua | 4 +- unofficial/c511009367.lua | 6 +-- unofficial/c511009368.lua | 6 +-- unofficial/c511009369.lua | 4 +- unofficial/c511009372.lua | 2 +- unofficial/c511009373.lua | 6 +-- unofficial/c511009374.lua | 2 +- unofficial/c511009375.lua | 2 +- unofficial/c511009376.lua | 4 +- unofficial/c511009377.lua | 4 +- unofficial/c511009380.lua | 2 +- unofficial/c511009382.lua | 2 +- unofficial/c511009383.lua | 6 +-- unofficial/c511009384.lua | 2 +- unofficial/c511009385.lua | 2 +- unofficial/c511009386.lua | 2 +- unofficial/c511009387.lua | 2 +- unofficial/c511009388.lua | 2 +- unofficial/c511009390.lua | 2 +- unofficial/c511009391.lua | 2 +- unofficial/c511009392.lua | 14 +++--- unofficial/c511009393.lua | 2 +- unofficial/c511009396.lua | 2 +- unofficial/c511009397.lua | 2 +- unofficial/c511009399.lua | 2 +- unofficial/c511009402.lua | 2 +- unofficial/c511009403.lua | 4 +- unofficial/c511009404.lua | 2 +- unofficial/c511009406.lua | 6 +-- unofficial/c511009407.lua | 2 +- unofficial/c511009410.lua | 4 +- unofficial/c511009411.lua | 6 +-- unofficial/c511009412.lua | 2 +- unofficial/c511009413.lua | 2 +- unofficial/c511009414.lua | 4 +- unofficial/c511009415.lua | 4 +- unofficial/c511009416.lua | 4 +- unofficial/c511009417.lua | 8 ++-- unofficial/c511009418.lua | 2 +- unofficial/c511009421.lua | 2 +- unofficial/c511009424.lua | 6 +-- unofficial/c511009425.lua | 2 +- unofficial/c511009429.lua | 2 +- unofficial/c511009436.lua | 6 +-- unofficial/c511009437.lua | 4 +- unofficial/c511009438.lua | 2 +- unofficial/c511009439.lua | 4 +- unofficial/c511009441.lua | 2 +- unofficial/c511009442.lua | 2 +- unofficial/c511009443.lua | 2 +- unofficial/c511009445.lua | 4 +- unofficial/c511009446.lua | 4 +- unofficial/c511009447.lua | 4 +- unofficial/c511009462.lua | 2 +- unofficial/c511009469.lua | 2 +- unofficial/c511009480.lua | 2 +- unofficial/c511009508.lua | 4 +- unofficial/c511009509.lua | 2 +- unofficial/c511009510.lua | 6 +-- unofficial/c511009513.lua | 2 +- unofficial/c511009514.lua | 2 +- unofficial/c511009515.lua | 2 +- unofficial/c511009517.lua | 4 +- unofficial/c511009518.lua | 2 +- unofficial/c511009519.lua | 4 +- unofficial/c511009522.lua | 4 +- unofficial/c511009523.lua | 2 +- unofficial/c511009524.lua | 2 +- unofficial/c511009526.lua | 8 ++-- unofficial/c511009527.lua | 2 +- unofficial/c511009528.lua | 6 +-- unofficial/c511009530.lua | 12 ++--- unofficial/c511009531.lua | 10 ++--- unofficial/c511009533.lua | 2 +- unofficial/c511009534.lua | 2 +- unofficial/c511009535.lua | 4 +- unofficial/c511009536.lua | 2 +- unofficial/c511009537.lua | 2 +- unofficial/c511009538.lua | 2 +- unofficial/c511009541.lua | 2 +- unofficial/c511009542.lua | 8 ++-- unofficial/c511009543.lua | 2 +- unofficial/c511009544.lua | 6 +-- unofficial/c511009545.lua | 2 +- unofficial/c511009546.lua | 2 +- unofficial/c511009549.lua | 2 +- unofficial/c511009553.lua | 4 +- unofficial/c511009555.lua | 6 +-- unofficial/c511009559.lua | 2 +- unofficial/c511009560.lua | 2 +- unofficial/c511009561.lua | 2 +- unofficial/c511009562.lua | 2 +- unofficial/c511009563.lua | 2 +- unofficial/c511009565.lua | 2 +- unofficial/c511009569.lua | 4 +- unofficial/c511009572.lua | 6 +-- unofficial/c511009574.lua | 2 +- unofficial/c511009582.lua | 2 +- unofficial/c511009583.lua | 2 +- unofficial/c511009587.lua | 2 +- unofficial/c511009588.lua | 2 +- unofficial/c511009593.lua | 4 +- unofficial/c511009601.lua | 2 +- unofficial/c511009602.lua | 6 +-- unofficial/c511009603.lua | 4 +- unofficial/c511009605.lua | 4 +- unofficial/c511009606.lua | 4 +- unofficial/c511009607.lua | 4 +- unofficial/c511009609.lua | 2 +- unofficial/c511009610.lua | 4 +- unofficial/c511009611.lua | 6 +-- unofficial/c511009612.lua | 4 +- unofficial/c511009613.lua | 2 +- unofficial/c511009614.lua | 2 +- unofficial/c511009615.lua | 2 +- unofficial/c511009616.lua | 2 +- unofficial/c511009618.lua | 2 +- unofficial/c511009619.lua | 2 +- unofficial/c511009621.lua | 4 +- unofficial/c511009625.lua | 4 +- unofficial/c511009627.lua | 5 +-- unofficial/c511009628.lua | 4 +- unofficial/c511009631.lua | 2 +- unofficial/c511009632.lua | 2 +- unofficial/c511009634.lua | 2 +- unofficial/c511009635.lua | 6 +-- unofficial/c511009641.lua | 2 +- unofficial/c511009642.lua | 2 +- unofficial/c511009643.lua | 4 +- unofficial/c511009644.lua | 2 +- unofficial/c511009645.lua | 2 +- unofficial/c511009646.lua | 2 +- unofficial/c511009650.lua | 2 +- unofficial/c511009651.lua | 9 ++-- unofficial/c511009654.lua | 2 +- unofficial/c511009656.lua | 2 +- unofficial/c511009657.lua | 6 +-- unofficial/c511009658.lua | 2 +- unofficial/c511009660.lua | 2 +- unofficial/c511009661.lua | 2 +- unofficial/c511009662.lua | 2 +- unofficial/c511009663.lua | 2 +- unofficial/c511009665.lua | 2 +- unofficial/c511009666.lua | 8 ++-- unofficial/c511009667.lua | 10 ++--- unofficial/c511009668.lua | 10 ++--- unofficial/c511009669.lua | 4 +- unofficial/c511009670.lua | 4 +- unofficial/c511009671.lua | 6 +-- unofficial/c511009672.lua | 4 +- unofficial/c511009673.lua | 6 +-- unofficial/c511009675.lua | 6 +-- unofficial/c511009677.lua | 6 +-- unofficial/c511009678.lua | 4 +- unofficial/c511009680.lua | 2 +- unofficial/c511009682.lua | 4 +- unofficial/c511009683.lua | 4 +- unofficial/c511009684.lua | 6 +-- unofficial/c511009685.lua | 6 +-- unofficial/c511009686.lua | 6 +-- unofficial/c511009691.lua | 4 +- unofficial/c511009693.lua | 2 +- unofficial/c511009697.lua | 2 +- unofficial/c511009700.lua | 2 +- unofficial/c511009704.lua | 6 +-- unofficial/c511009705.lua | 2 +- unofficial/c511009706.lua | 2 +- unofficial/c511009708.lua | 2 +- unofficial/c511009709.lua | 2 +- unofficial/c511009711.lua | 2 +- unofficial/c511009713.lua | 2 +- unofficial/c511009714.lua | 2 +- unofficial/c511009716.lua | 4 +- unofficial/c511009717.lua | 4 +- unofficial/c511009724.lua | 4 +- unofficial/c511009726.lua | 4 +- unofficial/c511009727.lua | 4 +- unofficial/c511009729.lua | 2 +- unofficial/c511009735.lua | 2 +- unofficial/c511009737.lua | 6 +-- unofficial/c511009740.lua | 2 +- unofficial/c511009741.lua | 2 +- unofficial/c511009742.lua | 2 +- unofficial/c511009743.lua | 2 +- unofficial/c511009744.lua | 2 +- unofficial/c511009745.lua | 4 +- unofficial/c511009747.lua | 2 +- unofficial/c511009748.lua | 4 +- unofficial/c511009749.lua | 2 +- unofficial/c511009916.lua | 2 +- unofficial/c511009917.lua | 4 +- unofficial/c511009918.lua | 4 +- unofficial/c511009919.lua | 10 ++--- unofficial/c511009920.lua | 2 +- unofficial/c511009921.lua | 2 +- unofficial/c511009923.lua | 4 +- unofficial/c511009927.lua | 8 ++-- unofficial/c511009930.lua | 4 +- unofficial/c511009935.lua | 2 +- unofficial/c511009938.lua | 2 +- unofficial/c511009951.lua | 6 +-- unofficial/c511009952.lua | 10 ++--- unofficial/c511009953.lua | 4 +- unofficial/c511009954.lua | 4 +- unofficial/c511009955.lua | 4 +- unofficial/c511009956.lua | 6 +-- unofficial/c511009957.lua | 2 +- unofficial/c511009958.lua | 6 +-- unofficial/c511009959.lua | 10 ++--- unofficial/c511010007.lua | 2 +- unofficial/c511010009.lua | 2 +- unofficial/c511010010.lua | 2 +- unofficial/c511010011.lua | 2 +- unofficial/c511010012.lua | 2 +- unofficial/c511010020.lua | 2 +- unofficial/c511010021.lua | 2 +- unofficial/c511010025.lua | 4 +- unofficial/c511010032.lua | 4 +- unofficial/c511010034.lua | 2 +- unofficial/c511010035.lua | 2 +- unofficial/c511010039.lua | 4 +- unofficial/c511010047.lua | 8 ++-- unofficial/c511010053.lua | 4 +- unofficial/c511010056.lua | 2 +- unofficial/c511010062.lua | 2 +- unofficial/c511010064.lua | 4 +- unofficial/c511010065.lua | 4 +- unofficial/c511010083.lua | 2 +- unofficial/c511010096.lua | 2 +- unofficial/c511010103.lua | 2 +- unofficial/c511010104.lua | 4 +- unofficial/c511010105.lua | 2 +- unofficial/c511010107.lua | 2 +- unofficial/c511010132.lua | 8 ++-- unofficial/c511010139.lua | 4 +- unofficial/c511010173.lua | 4 +- unofficial/c511010192.lua | 4 +- unofficial/c511010196.lua | 2 +- unofficial/c511010205.lua | 8 ++-- unofficial/c511010207.lua | 12 ++--- unofficial/c511010238.lua | 2 +- unofficial/c511010239.lua | 2 +- unofficial/c511010500.lua | 2 +- unofficial/c511010501.lua | 4 +- unofficial/c511010502.lua | 4 +- unofficial/c511010503.lua | 4 +- unofficial/c511010504.lua | 2 +- unofficial/c511010505.lua | 6 +-- unofficial/c511010506.lua | 2 +- unofficial/c511010507.lua | 8 ++-- unofficial/c511010508.lua | 2 +- unofficial/c511010511.lua | 2 +- unofficial/c511010513.lua | 4 +- unofficial/c511010514.lua | 4 +- unofficial/c511010515.lua | 6 +-- unofficial/c511010519.lua | 2 +- unofficial/c511010525.lua | 2 +- unofficial/c511010530.lua | 2 +- unofficial/c511010531.lua | 2 +- unofficial/c511010532.lua | 2 +- unofficial/c511010533.lua | 2 +- unofficial/c511010536.lua | 2 +- unofficial/c511010537.lua | 2 +- unofficial/c511010538.lua | 4 +- unofficial/c511010700.lua | 2 +- unofficial/c511010701.lua | 2 +- unofficial/c511010702.lua | 4 +- unofficial/c511010703.lua | 8 ++-- unofficial/c511010704.lua | 2 +- unofficial/c511011000.lua | 2 +- unofficial/c511011001.lua | 2 +- unofficial/c511011002.lua | 2 +- unofficial/c511011003.lua | 2 +- unofficial/c511011004.lua | 2 +- unofficial/c511011005.lua | 2 +- unofficial/c511012000.lua | 2 +- unofficial/c511012001.lua | 2 +- unofficial/c511013000.lua | 2 +- unofficial/c511013001.lua | 2 +- unofficial/c511013002.lua | 2 +- unofficial/c511013003.lua | 2 +- unofficial/c511013004.lua | 2 +- unofficial/c511013005.lua | 2 +- unofficial/c511013007.lua | 2 +- unofficial/c511013008.lua | 2 +- unofficial/c511013009.lua | 2 +- unofficial/c511013010.lua | 2 +- unofficial/c511013011.lua | 2 +- unofficial/c511013014.lua | 2 +- unofficial/c511013015.lua | 2 +- unofficial/c511013016.lua | 2 +- unofficial/c511013017.lua | 2 +- unofficial/c511013018.lua | 2 +- unofficial/c511013020.lua | 2 +- unofficial/c511013021.lua | 3 +- unofficial/c511013022.lua | 2 +- unofficial/c511013023.lua | 2 +- unofficial/c511013024.lua | 2 +- unofficial/c511013026.lua | 2 +- unofficial/c511013027.lua | 8 ++-- unofficial/c511013028.lua | 2 +- unofficial/c511013029.lua | 2 +- unofficial/c511013031.lua | 4 +- unofficial/c511013032.lua | 2 +- unofficial/c511013033.lua | 2 +- unofficial/c511013035.lua | 3 +- unofficial/c511014001.lua | 2 +- unofficial/c511015100.lua | 16 +++---- unofficial/c511015101.lua | 4 +- unofficial/c511015103.lua | 2 +- unofficial/c511015104.lua | 4 +- unofficial/c511015105.lua | 4 +- unofficial/c511015106.lua | 6 +-- unofficial/c511015107.lua | 10 ++--- unofficial/c511015108.lua | 4 +- unofficial/c511015109.lua | 4 +- unofficial/c511015110.lua | 2 +- unofficial/c511015111.lua | 6 +-- unofficial/c511015112.lua | 2 +- unofficial/c511015113.lua | 2 +- unofficial/c511015114.lua | 8 ++-- unofficial/c511015115.lua | 4 +- unofficial/c511015116.lua | 6 +-- unofficial/c511015117.lua | 6 +-- unofficial/c511015118.lua | 2 +- unofficial/c511015119.lua | 4 +- unofficial/c511015120.lua | 2 +- unofficial/c511015122.lua | 2 +- unofficial/c511015123.lua | 2 +- unofficial/c511015124.lua | 2 +- unofficial/c511015125.lua | 4 +- unofficial/c511015126.lua | 2 +- unofficial/c511015127.lua | 4 +- unofficial/c511015128.lua | 2 +- unofficial/c511015129.lua | 4 +- unofficial/c511015131.lua | 2 +- unofficial/c511015132.lua | 2 +- unofficial/c511015133.lua | 2 +- unofficial/c511015134.lua | 4 +- unofficial/c511016000.lua | 2 +- unofficial/c511016001.lua | 4 +- unofficial/c511016002.lua | 2 +- unofficial/c511016003.lua | 2 +- unofficial/c511016004.lua | 2 +- unofficial/c511016005.lua | 8 ++-- unofficial/c511016007.lua | 2 +- unofficial/c511016008.lua | 2 +- unofficial/c511016009.lua | 4 +- unofficial/c511017001.lua | 2 +- unofficial/c511017002.lua | 4 +- unofficial/c511017003.lua | 4 +- unofficial/c511017004.lua | 2 +- unofficial/c511018000.lua | 2 +- unofficial/c511018001.lua | 4 +- unofficial/c511018003.lua | 2 +- unofficial/c511018004.lua | 2 +- unofficial/c511018006.lua | 4 +- unofficial/c511018007.lua | 8 ++-- unofficial/c511018008.lua | 2 +- unofficial/c511018009.lua | 4 +- unofficial/c511018010.lua | 4 +- unofficial/c511018011.lua | 4 +- unofficial/c511018012.lua | 4 +- unofficial/c511018013.lua | 2 +- unofficial/c511018015.lua | 2 +- unofficial/c511018016.lua | 14 +++--- unofficial/c511018018.lua | 2 +- unofficial/c511018019.lua | 2 +- unofficial/c511018020.lua | 2 +- unofficial/c511018021.lua | 2 +- unofficial/c511018022.lua | 2 +- unofficial/c511018023.lua | 6 +-- unofficial/c511018024.lua | 6 +-- unofficial/c511018028.lua | 2 +- unofficial/c511018029.lua | 2 +- unofficial/c511018030.lua | 2 +- unofficial/c511018035.lua | 2 +- unofficial/c511018037.lua | 2 +- unofficial/c511018508.lua | 8 ++-- unofficial/c511018510.lua | 6 +-- unofficial/c511018512.lua | 2 +- unofficial/c511020000.lua | 10 ++--- unofficial/c511020002.lua | 2 +- unofficial/c511020003.lua | 2 +- unofficial/c511020004.lua | 8 ++-- unofficial/c511020005.lua | 4 +- unofficial/c511020007.lua | 2 +- unofficial/c511020008.lua | 2 +- unofficial/c511020010.lua | 3 +- unofficial/c511020011.lua | 2 +- unofficial/c511021000.lua | 2 +- unofficial/c511021002.lua | 2 +- unofficial/c511021003.lua | 2 +- unofficial/c511021004.lua | 2 +- unofficial/c511021005.lua | 2 +- unofficial/c511021006.lua | 2 +- unofficial/c511021007.lua | 2 +- unofficial/c511021008.lua | 2 +- unofficial/c511021009.lua | 2 +- unofficial/c511021010.lua | 4 +- unofficial/c511022001.lua | 6 +-- unofficial/c511022002.lua | 4 +- unofficial/c511022003.lua | 4 +- unofficial/c511023000.lua | 2 +- unofficial/c511023001.lua | 2 +- unofficial/c511023002.lua | 4 +- unofficial/c511023004.lua | 2 +- unofficial/c511023005.lua | 2 +- unofficial/c511023006.lua | 2 +- unofficial/c511023008.lua | 2 +- unofficial/c511023011.lua | 2 +- unofficial/c511023012.lua | 2 +- unofficial/c511023013.lua | 4 +- unofficial/c511023014.lua | 4 +- unofficial/c511023015.lua | 4 +- unofficial/c511024000.lua | 2 +- unofficial/c511024001.lua | 4 +- unofficial/c511024005.lua | 2 +- unofficial/c511024006.lua | 2 +- unofficial/c511024007.lua | 2 +- unofficial/c511024008.lua | 4 +- unofficial/c511024009.lua | 4 +- unofficial/c511024011.lua | 2 +- unofficial/c511025000.lua | 6 +-- unofficial/c511025001.lua | 2 +- unofficial/c511025002.lua | 3 +- unofficial/c511027000.lua | 4 +- unofficial/c511027001.lua | 2 +- unofficial/c511027002.lua | 12 ++--- unofficial/c511027004.lua | 4 +- unofficial/c511027006.lua | 2 +- unofficial/c511027007.lua | 4 +- unofficial/c511027009.lua | 4 +- unofficial/c511027010.lua | 2 +- unofficial/c511027011.lua | 8 ++-- unofficial/c511027012.lua | 4 +- unofficial/c511027013.lua | 4 +- unofficial/c511027014.lua | 2 +- unofficial/c511027015.lua | 6 +-- unofficial/c511027016.lua | 6 +-- unofficial/c511027017.lua | 10 ++--- unofficial/c511027018.lua | 2 +- unofficial/c511027019.lua | 4 +- unofficial/c511027020.lua | 2 +- unofficial/c511027021.lua | 2 +- unofficial/c511027023.lua | 2 +- unofficial/c511027024.lua | 2 +- unofficial/c511027025.lua | 2 +- unofficial/c511027027.lua | 8 ++-- unofficial/c511027028.lua | 4 +- unofficial/c511027029.lua | 4 +- unofficial/c511027031.lua | 2 +- unofficial/c511027033.lua | 2 +- unofficial/c511027034.lua | 2 +- unofficial/c511027035.lua | 2 +- unofficial/c511027036.lua | 2 +- unofficial/c511027037.lua | 2 +- unofficial/c511027044.lua | 2 +- unofficial/c511027048.lua | 2 +- unofficial/c511027049.lua | 2 +- unofficial/c511027050.lua | 2 +- unofficial/c511027091.lua | 2 +- unofficial/c511027093.lua | 2 +- unofficial/c511027094.lua | 2 +- unofficial/c511027099.lua | 2 +- unofficial/c511027100.lua | 2 +- unofficial/c511027101.lua | 2 +- unofficial/c511027102.lua | 2 +- unofficial/c511027103.lua | 4 +- unofficial/c511027104.lua | 2 +- unofficial/c511027106.lua | 4 +- unofficial/c511027107.lua | 2 +- unofficial/c511027108.lua | 2 +- unofficial/c511027109.lua | 2 +- unofficial/c511027110.lua | 2 +- unofficial/c511027111.lua | 2 +- unofficial/c511027112.lua | 2 +- unofficial/c511027117.lua | 2 +- unofficial/c511027118.lua | 2 +- unofficial/c511027120.lua | 4 +- unofficial/c511027121.lua | 2 +- unofficial/c511027135.lua | 4 +- unofficial/c511027294.lua | 2 +- unofficial/c511027455.lua | 4 +- unofficial/c511027541.lua | 4 +- unofficial/c511027556.lua | 2 +- unofficial/c511027633.lua | 2 +- unofficial/c511027651.lua | 2 +- unofficial/c511027654.lua | 2 +- unofficial/c511027670.lua | 2 +- unofficial/c511027673.lua | 2 +- unofficial/c511027675.lua | 2 +- unofficial/c511027676.lua | 2 +- unofficial/c511027677.lua | 2 +- unofficial/c511027680.lua | 2 +- unofficial/c511027692.lua | 2 +- unofficial/c511027765.lua | 2 +- unofficial/c511027782.lua | 2 +- unofficial/c511027787.lua | 4 +- unofficial/c511030002.lua | 10 ++--- unofficial/c511030003.lua | 2 +- unofficial/c511030004.lua | 4 +- unofficial/c511030005.lua | 4 +- unofficial/c511030008.lua | 8 ++-- unofficial/c511030009.lua | 2 +- unofficial/c511030010.lua | 2 +- unofficial/c511030011.lua | 2 +- unofficial/c511030013.lua | 4 +- unofficial/c511030014.lua | 2 +- unofficial/c511030015.lua | 4 +- unofficial/c511030018.lua | 2 +- unofficial/c511030019.lua | 4 +- unofficial/c511030020.lua | 2 +- unofficial/c511030021.lua | 2 +- unofficial/c511030023.lua | 4 +- unofficial/c511030024.lua | 2 +- unofficial/c511030025.lua | 2 +- unofficial/c511030026.lua | 6 +-- unofficial/c511030027.lua | 2 +- unofficial/c511030028.lua | 8 ++-- unofficial/c511030030.lua | 2 +- unofficial/c511030031.lua | 2 +- unofficial/c511030032.lua | 4 +- unofficial/c511030033.lua | 2 +- unofficial/c511030034.lua | 4 +- unofficial/c511030035.lua | 12 ++--- unofficial/c511030036.lua | 2 +- unofficial/c511030037.lua | 2 +- unofficial/c511030039.lua | 2 +- unofficial/c511030040.lua | 4 +- unofficial/c511030042.lua | 2 +- unofficial/c511030043.lua | 4 +- unofficial/c511030044.lua | 8 ++-- unofficial/c511030045.lua | 4 +- unofficial/c511030046.lua | 6 +-- unofficial/c511030047.lua | 2 +- unofficial/c511030049.lua | 2 +- unofficial/c511030050.lua | 2 +- unofficial/c511030051.lua | 2 +- unofficial/c511030052.lua | 2 +- unofficial/c511030054.lua | 12 ++--- unofficial/c511030055.lua | 4 +- unofficial/c511030056.lua | 6 +-- unofficial/c511030057.lua | 8 ++-- unofficial/c511030058.lua | 6 +-- unofficial/c511030059.lua | 12 ++--- unofficial/c511030061.lua | 2 +- unofficial/c511030065.lua | 4 +- unofficial/c511030066.lua | 2 +- unofficial/c511030068.lua | 6 +-- unofficial/c511030070.lua | 6 +-- unofficial/c511030072.lua | 8 ++-- unofficial/c511030073.lua | 2 +- unofficial/c511030075.lua | 4 +- unofficial/c511050001.lua | 4 +- unofficial/c511050002.lua | 2 +- unofficial/c511050003.lua | 4 +- unofficial/c511050004.lua | 2 +- unofficial/c511050010.lua | 2 +- unofficial/c511050013.lua | 4 +- unofficial/c511106002.lua | 2 +- unofficial/c511106003.lua | 2 +- unofficial/c511106005.lua | 6 +-- unofficial/c511106006.lua | 2 +- unofficial/c511106007.lua | 2 +- unofficial/c511106008.lua | 6 +-- unofficial/c511106009.lua | 4 +- unofficial/c511106010.lua | 2 +- unofficial/c511106011.lua | 2 +- unofficial/c511106012.lua | 2 +- unofficial/c511106013.lua | 4 +- unofficial/c511106014.lua | 4 +- unofficial/c511130000.lua | 2 +- unofficial/c511130001.lua | 2 +- unofficial/c511130002.lua | 2 +- unofficial/c511231002.lua | 2 +- unofficial/c511247000.lua | 4 +- unofficial/c511247001.lua | 4 +- unofficial/c511247003.lua | 2 +- unofficial/c511247004.lua | 4 +- unofficial/c511247005.lua | 2 +- unofficial/c511247006.lua | 2 +- unofficial/c511247007.lua | 2 +- unofficial/c511247008.lua | 2 +- unofficial/c511247010.lua | 2 +- unofficial/c511247011.lua | 2 +- unofficial/c511247012.lua | 2 +- unofficial/c511247013.lua | 4 +- unofficial/c511247015.lua | 2 +- unofficial/c511247018.lua | 4 +- unofficial/c511247019.lua | 2 +- unofficial/c511247020.lua | 2 +- unofficial/c511310000.lua | 2 +- unofficial/c511310001.lua | 2 +- unofficial/c511310002.lua | 2 +- unofficial/c511310003.lua | 6 +-- unofficial/c511310005.lua | 2 +- unofficial/c511310006.lua | 2 +- unofficial/c511310007.lua | 2 +- unofficial/c511310008.lua | 4 +- unofficial/c511310009.lua | 2 +- unofficial/c511310010.lua | 2 +- unofficial/c511310011.lua | 2 +- unofficial/c511310012.lua | 2 +- unofficial/c511310013.lua | 4 +- unofficial/c511310014.lua | 4 +- unofficial/c511310015.lua | 4 +- unofficial/c511310016.lua | 4 +- unofficial/c511310017.lua | 2 +- unofficial/c511310019.lua | 2 +- unofficial/c511310020.lua | 2 +- unofficial/c511310021.lua | 2 +- unofficial/c511310023.lua | 2 +- unofficial/c511310024.lua | 82 +++++++++++++++------------------- unofficial/c511310025.lua | 2 +- unofficial/c511310026.lua | 2 +- unofficial/c511310027.lua | 2 +- unofficial/c511310029.lua | 2 +- unofficial/c511310032.lua | 2 +- unofficial/c511310034.lua | 2 +- unofficial/c511310035.lua | 8 ++-- unofficial/c511310036.lua | 4 +- unofficial/c511310038.lua | 4 +- unofficial/c511310100.lua | 4 +- unofficial/c511310101.lua | 2 +- unofficial/c511310102.lua | 2 +- unofficial/c511310103.lua | 2 +- unofficial/c511310104.lua | 2 +- unofficial/c511310105.lua | 2 +- unofficial/c511310106.lua | 6 +-- unofficial/c511310107.lua | 2 +- unofficial/c511310108.lua | 2 +- unofficial/c511310109.lua | 4 +- unofficial/c511310110.lua | 2 +- unofficial/c511310111.lua | 2 +- unofficial/c511310112.lua | 2 +- unofficial/c511310113.lua | 2 +- unofficial/c511369001.lua | 2 +- unofficial/c511369002.lua | 6 +-- unofficial/c511369003.lua | 6 +-- unofficial/c511369004.lua | 2 +- unofficial/c511369005.lua | 2 +- unofficial/c511369006.lua | 2 +- unofficial/c511445000.lua | 2 +- unofficial/c511445002.lua | 2 +- unofficial/c511445004.lua | 2 +- unofficial/c511600000.lua | 2 +- unofficial/c511600001.lua | 2 +- unofficial/c511600002.lua | 2 +- unofficial/c511600003.lua | 12 ++--- unofficial/c511600004.lua | 2 +- unofficial/c511600005.lua | 2 +- unofficial/c511600007.lua | 2 +- unofficial/c511600008.lua | 2 +- unofficial/c511600009.lua | 2 +- unofficial/c511600013.lua | 2 +- unofficial/c511600018.lua | 2 +- unofficial/c511600020.lua | 2 +- unofficial/c511600021.lua | 4 +- unofficial/c511600022.lua | 2 +- unofficial/c511600023.lua | 6 +-- unofficial/c511600025.lua | 8 ++-- unofficial/c511600026.lua | 2 +- unofficial/c511600027.lua | 2 +- unofficial/c511600029.lua | 2 +- unofficial/c511600032.lua | 4 +- unofficial/c511600033.lua | 2 +- unofficial/c511600035.lua | 2 +- unofficial/c511600036.lua | 2 +- unofficial/c511600038.lua | 2 +- unofficial/c511600039.lua | 4 +- unofficial/c511600044.lua | 10 ++--- unofficial/c511600045.lua | 4 +- unofficial/c511600048.lua | 2 +- unofficial/c511600049.lua | 2 +- unofficial/c511600050.lua | 2 +- unofficial/c511600055.lua | 2 +- unofficial/c511600056.lua | 2 +- unofficial/c511600057.lua | 2 +- unofficial/c511600058.lua | 2 +- unofficial/c511600059.lua | 6 +-- unofficial/c511600060.lua | 4 +- unofficial/c511600061.lua | 2 +- unofficial/c511600064.lua | 2 +- unofficial/c511600065.lua | 2 +- unofficial/c511600066.lua | 2 +- unofficial/c511600069.lua | 6 +-- unofficial/c511600070.lua | 2 +- unofficial/c511600071.lua | 2 +- unofficial/c511600073.lua | 6 +-- unofficial/c511600076.lua | 4 +- unofficial/c511600077.lua | 2 +- unofficial/c511600079.lua | 2 +- unofficial/c511600080.lua | 2 +- unofficial/c511600082.lua | 8 ++-- unofficial/c511600083.lua | 2 +- unofficial/c511600085.lua | 2 +- unofficial/c511600088.lua | 2 +- unofficial/c511600089.lua | 4 +- unofficial/c511600090.lua | 2 +- unofficial/c511600091.lua | 2 +- unofficial/c511600094.lua | 4 +- unofficial/c511600095.lua | 2 +- unofficial/c511600097.lua | 2 +- unofficial/c511600099.lua | 2 +- unofficial/c511600100.lua | 2 +- unofficial/c511600102.lua | 4 +- unofficial/c511600103.lua | 2 +- unofficial/c511600104.lua | 2 +- unofficial/c511600106.lua | 4 +- unofficial/c511600108.lua | 8 ++-- unofficial/c511600110.lua | 4 +- unofficial/c511600112.lua | 2 +- unofficial/c511600113.lua | 2 +- unofficial/c511600115.lua | 4 +- unofficial/c511600116.lua | 2 +- unofficial/c511600118.lua | 6 +-- unofficial/c511600122.lua | 2 +- unofficial/c511600124.lua | 6 +-- unofficial/c511600126.lua | 4 +- unofficial/c511600127.lua | 2 +- unofficial/c511600128.lua | 4 +- unofficial/c511600129.lua | 2 +- unofficial/c511600130.lua | 2 +- unofficial/c511600133.lua | 4 +- unofficial/c511600138.lua | 2 +- unofficial/c511600139.lua | 2 +- unofficial/c511600140.lua | 12 ++--- unofficial/c511600141.lua | 16 +++---- unofficial/c511600142.lua | 2 +- unofficial/c511600147.lua | 2 +- unofficial/c511600148.lua | 2 +- unofficial/c511600170.lua | 2 +- unofficial/c511600171.lua | 2 +- unofficial/c511600173.lua | 6 +-- unofficial/c511600174.lua | 8 ++-- unofficial/c511600176.lua | 8 ++-- unofficial/c511600179.lua | 2 +- unofficial/c511600181.lua | 2 +- unofficial/c511600182.lua | 6 +-- unofficial/c511600186.lua | 2 +- unofficial/c511600191.lua | 2 +- unofficial/c511600192.lua | 2 +- unofficial/c511600194.lua | 2 +- unofficial/c511600195.lua | 4 +- unofficial/c511600196.lua | 4 +- unofficial/c511600197.lua | 2 +- unofficial/c511600201.lua | 8 ++-- unofficial/c511600202.lua | 2 +- unofficial/c511600203.lua | 2 +- unofficial/c511600204.lua | 2 +- unofficial/c511600205.lua | 2 +- unofficial/c511600206.lua | 2 +- unofficial/c511600207.lua | 6 +-- unofficial/c511600208.lua | 6 +-- unofficial/c511600209.lua | 10 ++--- unofficial/c511600213.lua | 2 +- unofficial/c511600214.lua | 2 +- unofficial/c511600215.lua | 4 +- unofficial/c511600216.lua | 2 +- unofficial/c511600217.lua | 6 +-- unofficial/c511600218.lua | 2 +- unofficial/c511600219.lua | 2 +- unofficial/c511600221.lua | 2 +- unofficial/c511600223.lua | 2 +- unofficial/c511600225.lua | 2 +- unofficial/c511600226.lua | 2 +- unofficial/c511600228.lua | 2 +- unofficial/c511600229.lua | 2 +- unofficial/c511600231.lua | 4 +- unofficial/c511600232.lua | 2 +- unofficial/c511600235.lua | 4 +- unofficial/c511600236.lua | 2 +- unofficial/c511600237.lua | 2 +- unofficial/c511600238.lua | 2 +- unofficial/c511600241.lua | 4 +- unofficial/c511600242.lua | 4 +- unofficial/c511600243.lua | 2 +- unofficial/c511600244.lua | 2 +- unofficial/c511600246.lua | 2 +- unofficial/c511600247.lua | 2 +- unofficial/c511600249.lua | 2 +- unofficial/c511600250.lua | 4 +- unofficial/c511600251.lua | 4 +- unofficial/c511600252.lua | 10 ++--- unofficial/c511600253.lua | 2 +- unofficial/c511600254.lua | 8 ++-- unofficial/c511600260.lua | 6 +-- unofficial/c511600262.lua | 6 +-- unofficial/c511600263.lua | 4 +- unofficial/c511600265.lua | 6 +-- unofficial/c511600266.lua | 8 ++-- unofficial/c511600267.lua | 10 ++--- unofficial/c511600268.lua | 12 ++--- unofficial/c511600269.lua | 8 ++-- unofficial/c511600271.lua | 2 +- unofficial/c511600272.lua | 16 +++---- unofficial/c511600273.lua | 6 +-- unofficial/c511600274.lua | 12 ++--- unofficial/c511600275.lua | 8 ++-- unofficial/c511600276.lua | 2 +- unofficial/c511600277.lua | 2 +- unofficial/c511600278.lua | 4 +- unofficial/c511600279.lua | 2 +- unofficial/c511600280.lua | 2 +- unofficial/c511600282.lua | 8 ++-- unofficial/c511600284.lua | 2 +- unofficial/c511600285.lua | 2 +- unofficial/c511600287.lua | 10 ++--- unofficial/c511600290.lua | 2 +- unofficial/c511600291.lua | 2 +- unofficial/c511600293.lua | 2 +- unofficial/c511600294.lua | 2 +- unofficial/c511600295.lua | 4 +- unofficial/c511600296.lua | 2 +- unofficial/c511600298.lua | 8 ++-- unofficial/c511600299.lua | 6 +-- unofficial/c511600300.lua | 4 +- unofficial/c511600301.lua | 2 +- unofficial/c511600302.lua | 4 +- unofficial/c511600303.lua | 4 +- unofficial/c511600304.lua | 6 +-- unofficial/c511600305.lua | 6 +-- unofficial/c511600306.lua | 2 +- unofficial/c511600308.lua | 8 ++-- unofficial/c511600309.lua | 12 ++--- unofficial/c511600310.lua | 2 +- unofficial/c511600311.lua | 6 +-- unofficial/c511600313.lua | 4 +- unofficial/c511600314.lua | 8 ++-- unofficial/c511600315.lua | 8 ++-- unofficial/c511600316.lua | 8 ++-- unofficial/c511600317.lua | 6 +-- unofficial/c511600318.lua | 2 +- unofficial/c511600320.lua | 6 +-- unofficial/c511600321.lua | 10 ++--- unofficial/c511600322.lua | 2 +- unofficial/c511600333.lua | 6 +-- unofficial/c511600334.lua | 6 +-- unofficial/c511600335.lua | 4 +- unofficial/c511600336.lua | 4 +- unofficial/c511600337.lua | 8 ++-- unofficial/c511600338.lua | 2 +- unofficial/c511600339.lua | 6 +-- unofficial/c511600340.lua | 2 +- unofficial/c511600341.lua | 10 ++--- unofficial/c511600342.lua | 2 +- unofficial/c511600344.lua | 4 +- unofficial/c511600345.lua | 2 +- unofficial/c511600346.lua | 8 ++-- unofficial/c511600348.lua | 4 +- unofficial/c511600351.lua | 8 ++-- unofficial/c511600352.lua | 4 +- unofficial/c511600353.lua | 4 +- unofficial/c511600355.lua | 2 +- unofficial/c511600356.lua | 2 +- unofficial/c511600357.lua | 4 +- unofficial/c511600358.lua | 4 +- unofficial/c511600359.lua | 2 +- unofficial/c511600361.lua | 4 +- unofficial/c511600362.lua | 4 +- unofficial/c511600363.lua | 4 +- unofficial/c511600364.lua | 6 +-- unofficial/c511600365.lua | 2 +- unofficial/c511600366.lua | 2 +- unofficial/c511600367.lua | 2 +- unofficial/c511600369.lua | 6 +-- unofficial/c511600370.lua | 2 +- unofficial/c511600371.lua | 2 +- unofficial/c511600372.lua | 2 +- unofficial/c511600373.lua | 2 +- unofficial/c511600374.lua | 2 +- unofficial/c511600375.lua | 2 +- unofficial/c511600376.lua | 2 +- unofficial/c511600377.lua | 5 +-- unofficial/c511600378.lua | 6 +-- unofficial/c511600379.lua | 2 +- unofficial/c511600380.lua | 4 +- unofficial/c511600381.lua | 2 +- unofficial/c511600382.lua | 12 ++--- unofficial/c511600383.lua | 20 ++++----- unofficial/c511600384.lua | 2 +- unofficial/c511600385.lua | 8 ++-- unofficial/c511600387.lua | 4 +- unofficial/c511600388.lua | 2 +- unofficial/c511600394.lua | 4 +- unofficial/c511600395.lua | 14 +++--- unofficial/c511600398.lua | 2 +- unofficial/c511600399.lua | 2 +- unofficial/c511600400.lua | 4 +- unofficial/c511600401.lua | 2 +- unofficial/c511600409.lua | 2 +- unofficial/c511600414.lua | 2 +- unofficial/c511600417.lua | 2 +- unofficial/c511600418.lua | 4 +- unofficial/c511600423.lua | 2 +- unofficial/c511600424.lua | 2 +- unofficial/c511600432.lua | 2 +- unofficial/c511600433.lua | 2 +- unofficial/c511600434.lua | 2 +- unofficial/c511600435.lua | 2 +- unofficial/c511600437.lua | 2 +- unofficial/c511600438.lua | 2 +- unofficial/c511600439.lua | 2 +- unofficial/c511600440.lua | 2 +- unofficial/c511600441.lua | 2 +- unofficial/c511756000.lua | 2 +- unofficial/c511756001.lua | 2 +- unofficial/c511756002.lua | 2 +- unofficial/c511756003.lua | 4 +- unofficial/c511756004.lua | 2 +- unofficial/c511756005.lua | 2 +- unofficial/c511756006.lua | 2 +- unofficial/c511756007.lua | 2 +- unofficial/c511756008.lua | 2 +- unofficial/c511756009.lua | 2 +- unofficial/c511777000.lua | 2 +- unofficial/c511777001.lua | 5 +-- unofficial/c511777004.lua | 8 ++-- unofficial/c511777005.lua | 4 +- unofficial/c511777006.lua | 2 +- unofficial/c511777007.lua | 2 +- unofficial/c511777008.lua | 2 +- unofficial/c511777009.lua | 2 +- unofficial/c511777010.lua | 4 +- unofficial/c511806000.lua | 2 +- unofficial/c511806001.lua | 12 ++--- unofficial/c513000001.lua | 2 +- unofficial/c513000002.lua | 2 +- unofficial/c513000003.lua | 4 +- unofficial/c513000004.lua | 2 +- unofficial/c513000005.lua | 2 +- unofficial/c513000006.lua | 2 +- unofficial/c513000007.lua | 4 +- unofficial/c513000008.lua | 2 +- unofficial/c513000009.lua | 4 +- unofficial/c513000011.lua | 2 +- unofficial/c513000012.lua | 2 +- unofficial/c513000013.lua | 2 +- unofficial/c513000014.lua | 4 +- unofficial/c513000015.lua | 2 +- unofficial/c513000016.lua | 2 +- unofficial/c513000017.lua | 2 +- unofficial/c513000018.lua | 4 +- unofficial/c513000019.lua | 2 +- unofficial/c513000020.lua | 2 +- unofficial/c513000022.lua | 2 +- unofficial/c513000024.lua | 4 +- unofficial/c513000025.lua | 2 +- unofficial/c513000026.lua | 2 +- unofficial/c513000028.lua | 2 +- unofficial/c513000029.lua | 2 +- unofficial/c513000030.lua | 6 +-- unofficial/c513000031.lua | 2 +- unofficial/c513000034.lua | 2 +- unofficial/c513000035.lua | 4 +- unofficial/c513000036.lua | 4 +- unofficial/c513000037.lua | 2 +- unofficial/c513000038.lua | 2 +- unofficial/c513000039.lua | 6 +-- unofficial/c513000040.lua | 4 +- unofficial/c513000041.lua | 8 ++-- unofficial/c513000042.lua | 4 +- unofficial/c513000043.lua | 4 +- unofficial/c513000044.lua | 4 +- unofficial/c513000045.lua | 4 +- unofficial/c513000046.lua | 2 +- unofficial/c513000047.lua | 4 +- unofficial/c513000048.lua | 2 +- unofficial/c513000049.lua | 4 +- unofficial/c513000050.lua | 4 +- unofficial/c513000051.lua | 2 +- unofficial/c513000052.lua | 2 +- unofficial/c513000053.lua | 2 +- unofficial/c513000054.lua | 2 +- unofficial/c513000055.lua | 2 +- unofficial/c513000056.lua | 2 +- unofficial/c513000057.lua | 8 ++-- unofficial/c513000059.lua | 4 +- unofficial/c513000060.lua | 2 +- unofficial/c513000061.lua | 6 +-- unofficial/c513000062.lua | 4 +- unofficial/c513000063.lua | 2 +- unofficial/c513000065.lua | 2 +- unofficial/c513000066.lua | 2 +- unofficial/c513000067.lua | 2 +- unofficial/c513000068.lua | 2 +- unofficial/c513000070.lua | 2 +- unofficial/c513000071.lua | 6 +-- unofficial/c513000072.lua | 3 +- unofficial/c513000073.lua | 8 ++-- unofficial/c513000074.lua | 4 +- unofficial/c513000075.lua | 2 +- unofficial/c513000076.lua | 2 +- unofficial/c513000078.lua | 2 +- unofficial/c513000080.lua | 2 +- unofficial/c513000082.lua | 2 +- unofficial/c513000083.lua | 8 ++-- unofficial/c513000084.lua | 2 +- unofficial/c513000086.lua | 2 +- unofficial/c513000087.lua | 2 +- unofficial/c513000088.lua | 2 +- unofficial/c513000089.lua | 5 ++- unofficial/c513000090.lua | 2 +- unofficial/c513000092.lua | 2 +- unofficial/c513000094.lua | 2 +- unofficial/c513000095.lua | 2 +- unofficial/c513000096.lua | 2 +- unofficial/c513000097.lua | 2 +- unofficial/c513000098.lua | 4 +- unofficial/c513000099.lua | 2 +- unofficial/c513000103.lua | 2 +- unofficial/c513000104.lua | 2 +- unofficial/c513000105.lua | 2 +- unofficial/c513000106.lua | 2 +- unofficial/c513000107.lua | 4 +- unofficial/c513000108.lua | 4 +- unofficial/c513000110.lua | 4 +- unofficial/c513000111.lua | 2 +- unofficial/c513000112.lua | 2 +- unofficial/c513000115.lua | 2 +- unofficial/c513000116.lua | 2 +- unofficial/c513000118.lua | 6 +-- unofficial/c513000120.lua | 6 +-- unofficial/c513000121.lua | 2 +- unofficial/c513000122.lua | 12 ++--- unofficial/c513000124.lua | 2 +- unofficial/c513000125.lua | 2 +- unofficial/c513000126.lua | 2 +- unofficial/c513000127.lua | 4 +- unofficial/c513000128.lua | 2 +- unofficial/c513000131.lua | 2 +- unofficial/c513000132.lua | 2 +- unofficial/c513000133.lua | 2 +- unofficial/c513000134.lua | 4 +- unofficial/c513000135.lua | 2 +- unofficial/c513000136.lua | 2 +- unofficial/c513000137.lua | 2 +- unofficial/c513000138.lua | 2 +- unofficial/c513000139.lua | 2 +- unofficial/c513000140.lua | 2 +- unofficial/c513000141.lua | 4 +- unofficial/c513000142.lua | 2 +- unofficial/c513000144.lua | 4 +- unofficial/c513000147.lua | 2 +- unofficial/c513000149.lua | 2 +- unofficial/c513000152.lua | 2 +- unofficial/c513000155.lua | 2 +- unofficial/c513000157.lua | 2 +- unofficial/c513000162.lua | 4 +- unofficial/c513000163.lua | 2 +- unofficial/c513000164.lua | 2 +- unofficial/c513000165.lua | 2 +- unofficial/c513000166.lua | 6 +-- unofficial/c513000167.lua | 2 +- unofficial/c513000172.lua | 6 +-- unofficial/c513000173.lua | 2 +- unofficial/c513000179.lua | 2 +- unofficial/c513000180.lua | 2 +- unofficial/c513000184.lua | 2 +- unofficial/c513000186.lua | 2 +- unofficial/c700000000.lua | 4 +- unofficial/c700000001.lua | 4 +- unofficial/c700000002.lua | 6 +-- unofficial/c700000007.lua | 4 +- unofficial/c700000009.lua | 2 +- unofficial/c700000010.lua | 8 ++-- unofficial/c700000011.lua | 2 +- unofficial/c700000012.lua | 6 +-- unofficial/c700000013.lua | 6 +-- unofficial/c700000014.lua | 6 +-- unofficial/c700000016.lua | 2 +- unofficial/c700000017.lua | 10 ++--- unofficial/c700000018.lua | 4 +- unofficial/c700000019.lua | 4 +- unofficial/c700000020.lua | 4 +- unofficial/c700000023.lua | 4 +- unofficial/c700000024.lua | 2 +- unofficial/c700000025.lua | 2 +- unofficial/c700000026.lua | 2 +- unofficial/c700000027.lua | 4 +- unofficial/c700000028.lua | 2 +- unofficial/c700000029.lua | 4 +- unofficial/c700000030.lua | 2 +- unofficial/c700000031.lua | 2 +- unofficial/c700000032.lua | 4 +- unofficial/c700000034.lua | 8 ++-- unofficial/c800000001.lua | 2 +- unofficial/c800000004.lua | 4 +- unofficial/c800000006.lua | 2 +- unofficial/c800000010.lua | 2 +- unofficial/c800000011.lua | 2 +- unofficial/c800000012.lua | 2 +- unofficial/c800000014.lua | 2 +- unofficial/c810000002.lua | 2 +- unofficial/c810000003.lua | 2 +- unofficial/c810000005.lua | 8 ++-- unofficial/c810000006.lua | 2 +- unofficial/c810000008.lua | 2 +- unofficial/c810000009.lua | 2 +- unofficial/c810000011.lua | 2 +- unofficial/c810000014.lua | 2 +- unofficial/c810000016.lua | 2 +- unofficial/c810000018.lua | 2 +- unofficial/c810000019.lua | 2 +- unofficial/c810000020.lua | 2 +- unofficial/c810000021.lua | 2 +- unofficial/c810000022.lua | 2 +- unofficial/c810000025.lua | 2 +- unofficial/c810000026.lua | 2 +- unofficial/c810000027.lua | 2 +- unofficial/c810000029.lua | 2 +- unofficial/c810000031.lua | 2 +- unofficial/c810000032.lua | 2 +- unofficial/c810000033.lua | 4 +- unofficial/c810000036.lua | 2 +- unofficial/c810000038.lua | 2 +- unofficial/c810000039.lua | 2 +- unofficial/c810000040.lua | 2 +- unofficial/c810000042.lua | 4 +- unofficial/c810000044.lua | 2 +- unofficial/c810000045.lua | 2 +- unofficial/c810000046.lua | 2 +- unofficial/c810000049.lua | 2 +- unofficial/c810000050.lua | 2 +- unofficial/c810000051.lua | 4 +- unofficial/c810000052.lua | 10 ++--- unofficial/c810000054.lua | 12 ++--- unofficial/c810000055.lua | 2 +- unofficial/c810000056.lua | 4 +- unofficial/c810000058.lua | 8 ++-- unofficial/c810000059.lua | 2 +- unofficial/c810000060.lua | 2 +- unofficial/c810000061.lua | 2 +- unofficial/c810000062.lua | 2 +- unofficial/c810000063.lua | 2 +- unofficial/c810000064.lua | 2 +- unofficial/c810000069.lua | 2 +- unofficial/c810000071.lua | 2 +- unofficial/c810000075.lua | 4 +- unofficial/c810000077.lua | 2 +- unofficial/c810000078.lua | 2 +- unofficial/c810000080.lua | 2 +- unofficial/c810000081.lua | 4 +- unofficial/c810000082.lua | 8 ++-- unofficial/c810000083.lua | 2 +- unofficial/c810000084.lua | 2 +- unofficial/c810000085.lua | 2 +- unofficial/c810000086.lua | 2 +- unofficial/c810000087.lua | 2 +- unofficial/c810000088.lua | 2 +- unofficial/c810000089.lua | 2 +- unofficial/c810000090.lua | 2 +- unofficial/c810000091.lua | 6 +-- unofficial/c810000092.lua | 8 ++-- unofficial/c810000093.lua | 2 +- unofficial/c810000095.lua | 2 +- unofficial/c810000096.lua | 6 +-- unofficial/c810000097.lua | 2 +- unofficial/c810000098.lua | 8 ++-- unofficial/c810000100.lua | 2 +- unofficial/c810000101.lua | 2 +- unofficial/c810000102.lua | 2 +- unofficial/c810000103.lua | 4 +- unofficial/c810000105.lua | 4 +- unofficial/c810000106.lua | 4 +- unofficial/c810000107.lua | 6 +-- unofficial/c810000109.lua | 4 +- unofficial/c810000110.lua | 2 +- unofficial/c810000111.lua | 6 +-- unofficial/c810000112.lua | 2 +- unofficial/c810000113.lua | 2 +- unofficial/c810000114.lua | 4 +- unofficial/c95000000.lua | 4 +- unofficial/c95000002.lua | 2 +- unofficial/c95000003.lua | 6 +-- unofficial/c95000004.lua | 2 +- unofficial/c95000005.lua | 2 +- unofficial/c95000006.lua | 2 +- unofficial/c95000007.lua | 2 +- unofficial/c95000008.lua | 2 +- unofficial/c95000009.lua | 2 +- unofficial/c95000010.lua | 2 +- unofficial/c95000011.lua | 2 +- unofficial/c95000012.lua | 2 +- unofficial/c95000013.lua | 2 +- unofficial/c95000014.lua | 8 ++-- unofficial/c95000015.lua | 2 +- unofficial/c95000016.lua | 2 +- unofficial/c95000017.lua | 4 +- unofficial/c95000018.lua | 2 +- unofficial/c95000019.lua | 2 +- unofficial/c95000020.lua | 2 +- unofficial/c95000021.lua | 2 +- unofficial/c95000023.lua | 6 +-- unofficial/c95000024.lua | 8 ++-- unofficial/c95000025.lua | 2 +- unofficial/c95000026.lua | 2 +- unofficial/c95000027.lua | 2 +- unofficial/c95000028.lua | 2 +- unofficial/c95000029.lua | 10 ++--- unofficial/c95000030.lua | 2 +- unofficial/c95000031.lua | 2 +- unofficial/c95000032.lua | 2 +- unofficial/c95000033.lua | 2 +- unofficial/c95000034.lua | 2 +- unofficial/c95000035.lua | 2 +- unofficial/c95000036.lua | 2 +- unofficial/c95000037.lua | 10 ++--- unofficial/c95000038.lua | 2 +- unofficial/c95000039.lua | 2 +- unofficial/c95000040.lua | 2 +- unofficial/c95000041.lua | 8 ++-- unofficial/c95000042.lua | 8 ++-- unofficial/c95200000.lua | 2 +- unofficial/c95200001.lua | 2 +- unofficial/c95200002.lua | 2 +- unofficial/c95200004.lua | 2 +- unofficial/c95200005.lua | 2 +- unofficial/c95200006.lua | 2 +- unofficial/c95200007.lua | 2 +- unofficial/c95200008.lua | 2 +- unofficial/c95200009.lua | 2 +- unofficial/c95200010.lua | 2 +- unofficial/c95200011.lua | 2 +- unofficial/c95200012.lua | 2 +- unofficial/c95200013.lua | 2 +- unofficial/c95200014.lua | 2 +- unofficial/c95200015.lua | 2 +- unofficial/c95200016.lua | 2 +- unofficial/c95200017.lua | 2 +- unofficial/c95200018.lua | 2 +- unofficial/c95200019.lua | 2 +- unofficial/c95200020.lua | 2 +- unofficial/c95200021.lua | 2 +- unofficial/c95200022.lua | 2 +- unofficial/c95200023.lua | 2 +- unofficial/c95200024.lua | 2 +- unofficial/c95200025.lua | 2 +- unofficial/c95200101.lua | 8 ++-- unofficial/c95200102.lua | 4 +- unofficial/proc_unofficial.lua | 6 +-- 5018 files changed, 7464 insertions(+), 7510 deletions(-) diff --git a/goat/c504700084.lua b/goat/c504700084.lua index 837b607b3c..c683d5f087 100644 --- a/goat/c504700084.lua +++ b/goat/c504700084.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_TO_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) diff --git a/unofficial/c100000000.lua b/unofficial/c100000000.lua index e89035c41a..511777707d 100644 --- a/unofficial/c100000000.lua +++ b/unofficial/c100000000.lua @@ -50,8 +50,8 @@ end function s.spcon(e,c) if c==nil then return true end local tp=e:GetHandlerPlayer() - local rg1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT,RACE_WARRIOR) - local rg2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK,RACE_FIEND) + local rg1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT,RACE_WARRIOR) + local rg2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_DARK,RACE_FIEND) local rg=rg1:Clone() rg:Merge(rg2) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) @@ -60,7 +60,7 @@ end function s.sptg(e,tp,eg,ep,ev,re,r,rp,c) local c=e:GetHandler() local g=nil - local rg=Duel.GetMatchingGroup(s.spfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT+ATTRIBUTE_DARK,RACE_WARRIOR+RACE_FIEND) + local rg=Duel.GetMatchingGroup(s.spfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,ATTRIBUTE_LIGHT+ATTRIBUTE_DARK,RACE_WARRIOR+RACE_FIEND) local g=aux.SelectUnselectGroup(rg,e,tp,2,2,s.rescon,1,tp,HINTMSG_REMOVE,nil,nil,true) if #g>0 then g:KeepAlive() @@ -81,12 +81,12 @@ function s.sgcost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.sgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,e:GetHandler()) + local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND|LOCATION_ONFIELD|LOCATION_GRAVE,e:GetHandler()) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,0,0) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,1-tp,#g*500) end function s.sgop(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,e:GetHandler()) + local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND|LOCATION_ONFIELD|LOCATION_GRAVE,e:GetHandler()) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) local og=Duel.GetOperatedGroup() local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_REMOVED) diff --git a/unofficial/c100000002.lua b/unofficial/c100000002.lua index ca7c687ac5..c6415902a3 100644 --- a/unofficial/c100000002.lua +++ b/unofficial/c100000002.lua @@ -90,7 +90,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000003.lua b/unofficial/c100000003.lua index bd5d0bc759..c9afe87f18 100644 --- a/unofficial/c100000003.lua +++ b/unofficial/c100000003.lua @@ -82,7 +82,7 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,dam,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000004.lua b/unofficial/c100000004.lua index 83866da9f0..9b838489a2 100644 --- a/unofficial/c100000004.lua +++ b/unofficial/c100000004.lua @@ -82,7 +82,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,bc:GetAttack(),REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000005.lua b/unofficial/c100000005.lua index 4682571a49..f5cfd258ab 100644 --- a/unofficial/c100000005.lua +++ b/unofficial/c100000005.lua @@ -84,7 +84,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000006.lua b/unofficial/c100000006.lua index 8eba00889c..311bf45fbf 100644 --- a/unofficial/c100000006.lua +++ b/unofficial/c100000006.lua @@ -85,7 +85,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000007.lua b/unofficial/c100000007.lua index acb6cca212..00152ee4c2 100644 --- a/unofficial/c100000007.lua +++ b/unofficial/c100000007.lua @@ -82,7 +82,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000008.lua b/unofficial/c100000008.lua index 2ba06125a3..bd12ccb699 100644 --- a/unofficial/c100000008.lua +++ b/unofficial/c100000008.lua @@ -78,7 +78,7 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(p,Duel.GetLP(p)/2) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000009.lua b/unofficial/c100000009.lua index 20cd6bbbf8..3ec4174a7a 100644 --- a/unofficial/c100000009.lua +++ b/unofficial/c100000009.lua @@ -102,7 +102,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000010.lua b/unofficial/c100000010.lua index 69961a4a81..0f8020c9e3 100644 --- a/unofficial/c100000010.lua +++ b/unofficial/c100000010.lua @@ -33,7 +33,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.filter(c) - return (c:IsSetCard(0x4a) or c:IsCode(74530899) or c:IsCode(8967776)) and c:IsMonster() and c:IsAbleToHand() + return (c:IsSetCard(SET_TIMELORD) or c:IsCode(74530899) or c:IsCode(8967776)) and c:IsMonster() and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100000012.lua b/unofficial/c100000012.lua index 0f596bcc4b..b19ddaf2cd 100644 --- a/unofficial/c100000012.lua +++ b/unofficial/c100000012.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) end s.listed_series={0x4a} function s.cfilter(c) - return c:IsSetCard(0x4a) and c:IsMonster() and c:IsDiscardable() + return c:IsSetCard(SET_TIMELORD) and c:IsMonster() and c:IsDiscardable() end function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end @@ -40,4 +40,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000013.lua b/unofficial/c100000013.lua index 56166ad210..aa659e3d55 100644 --- a/unofficial/c100000013.lua +++ b/unofficial/c100000013.lua @@ -62,7 +62,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsTurnPlayer(tp) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x4a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_TIMELORD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -81,7 +81,7 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()~=tp end function s.cosfilter(c) - return c:IsSetCard(0x4a) and c:IsMonster() and c:IsDiscardable() + return c:IsSetCard(SET_TIMELORD) and c:IsMonster() and c:IsDiscardable() end function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cosfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end @@ -118,4 +118,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000014.lua b/unofficial/c100000014.lua index f4b630e736..abd096c9c7 100644 --- a/unofficial/c100000014.lua +++ b/unofficial/c100000014.lua @@ -67,10 +67,10 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x4a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_TIMELORD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -88,7 +88,7 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()~=tp end function s.cosfilter(c) - return c:IsSetCard(0x4a) and c:IsMonster() and c:IsDiscardable() + return c:IsSetCard(SET_TIMELORD) and c:IsMonster() and c:IsDiscardable() end function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cosfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end @@ -126,5 +126,5 @@ function s.sephop(e,tp,eg,ep,ev,re,r,rp) end end function s.etarget(e,c) - return c:IsSetCard(0x4a) and c:IsFaceup() + return c:IsSetCard(SET_TIMELORD) and c:IsFaceup() end \ No newline at end of file diff --git a/unofficial/c100000015.lua b/unofficial/c100000015.lua index 45968318c8..7346e28ee0 100644 --- a/unofficial/c100000015.lua +++ b/unofficial/c100000015.lua @@ -74,7 +74,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,4000,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c100000020.lua b/unofficial/c100000020.lua index d3fb0bcd67..c5edd99a99 100644 --- a/unofficial/c100000020.lua +++ b/unofficial/c100000020.lua @@ -24,7 +24,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetCountLimit(1) e1:SetCondition(s.con) e1:SetOperation(s.op) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_DRAW then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_DRAW then e1:SetLabel(Duel.GetTurnCount()) e1:SetReset(RESET_PHASE+PHASE_DRAW+RESET_SELF_TURN,2) else @@ -35,7 +35,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.con(e,tp,eg,ep,ev,re,r,rp) - return ep==tp and (r&REASON_RULE)~=0 and Duel.GetTurnPlayer()==tp and Duel.GetTurnCount()~=e:GetLabel() + return ep==tp and (r&REASON_RULE)~=0 and Duel.IsTurnPlayer(tp) and Duel.GetTurnCount()~=e:GetLabel() and Duel.GetCurrentPhase()==PHASE_DRAW end function s.op(e,tp,eg,ep,ev,re,r,rp) @@ -47,4 +47,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,8000,REASON_EFFECT) end Duel.ShuffleHand(tp) -end +end \ No newline at end of file diff --git a/unofficial/c100000021.lua b/unofficial/c100000021.lua index 824bfe91c9..70a5a52c6a 100644 --- a/unofficial/c100000021.lua +++ b/unofficial/c100000021.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return true end @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.handcon(e) return Duel.GetFieldGroupCount(e:GetHandler():GetControler(),LOCATION_MZONE,0)==0 -end +end \ No newline at end of file diff --git a/unofficial/c100000022.lua b/unofficial/c100000022.lua index 27ab3ffc1e..a2bc52aa63 100644 --- a/unofficial/c100000022.lua +++ b/unofficial/c100000022.lua @@ -39,7 +39,7 @@ function s.splimit(e,se,sp,st) return (st&SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -57,4 +57,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) if c==Duel.GetAttacker() and not c:IsStatus(STATUS_BATTLE_DESTROYED) then c:ResetEffect(RESET_DISABLE,RESET_EVENT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000024.lua b/unofficial/c100000024.lua index c38e8e14f1..d51b475bc7 100644 --- a/unofficial/c100000024.lua +++ b/unofficial/c100000024.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if sc and Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,true,false,POS_FACEUP)>0 then sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000025.lua b/unofficial/c100000025.lua index 93cb6f0a7d..ee19020688 100644 --- a/unofficial/c100000025.lua +++ b/unofficial/c100000025.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --activate - local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,0x14c),matfilter=aux.FALSE,extrafil=s.fextra,value=0x20,extraop=Fusion.BanishMaterial,extratg=s.extratg}) + local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,SET_FOSSIL),matfilter=aux.FALSE,extrafil=s.fextra,value=SET_SHIEN,extraop=Fusion.BanishMaterial,extratg=s.extratg}) c:RegisterEffect(e1) end s.listed_series={0x14c} diff --git a/unofficial/c100000027.lua b/unofficial/c100000027.lua index 8f2dcb7967..d8c8b19e5a 100644 --- a/unofficial/c100000027.lua +++ b/unofficial/c100000027.lua @@ -49,4 +49,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end function s.con(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFieldGroupCount(e:GetOwnerPlayer(),0,LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c100000029.lua b/unofficial/c100000029.lua index 64da2d5cee..a816e95b02 100644 --- a/unofficial/c100000029.lua +++ b/unofficial/c100000029.lua @@ -55,4 +55,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) bc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c100000030.lua b/unofficial/c100000030.lua index f7c6b04bc4..dc0f5b87a6 100644 --- a/unofficial/c100000030.lua +++ b/unofficial/c100000030.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tg2:GetFirst():IsRelateToEffect(e) then Duel.Remove(tg2,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000031.lua b/unofficial/c100000031.lua index ed335dec35..2312571c9a 100644 --- a/unofficial/c100000031.lua +++ b/unofficial/c100000031.lua @@ -48,4 +48,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Draw(tp,2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000032.lua b/unofficial/c100000032.lua index 5cd70cda8c..4d286402e7 100644 --- a/unofficial/c100000032.lua +++ b/unofficial/c100000032.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000034.lua b/unofficial/c100000034.lua index b2e4105a92..4c42d7240a 100644 --- a/unofficial/c100000034.lua +++ b/unofficial/c100000034.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(function(e,_,_,r) return (r&REASON_EFFECT)==REASON_EFFECT end) e1:SetReset(RESET_PHASE|PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c100000035.lua b/unofficial/c100000035.lua index 4010c86ad5..40f769a6bc 100644 --- a/unofficial/c100000035.lua +++ b/unofficial/c100000035.lua @@ -24,4 +24,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,1000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000036.lua b/unofficial/c100000036.lua index 2e30eab8e8..ec2987bbe3 100644 --- a/unofficial/c100000036.lua +++ b/unofficial/c100000036.lua @@ -21,4 +21,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000037.lua b/unofficial/c100000037.lua index 2bf518307f..5629ad3412 100644 --- a/unofficial/c100000037.lua +++ b/unofficial/c100000037.lua @@ -33,4 +33,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000038.lua b/unofficial/c100000038.lua index b53e4eba49..22876c6656 100644 --- a/unofficial/c100000038.lua +++ b/unofficial/c100000038.lua @@ -19,8 +19,8 @@ end function s.ntcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c==nil then return true end - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_MZONE,0,1,nil) - and (Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)==1 and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_HAND,0,1,nil)) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_MZONE,0,1,nil) + and (Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)==1 and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_HAND,0,1,nil)) or Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)==0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -32,4 +32,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000039.lua b/unofficial/c100000039.lua index fad39e1b22..3f90d3ac64 100644 --- a/unofficial/c100000039.lua +++ b/unofficial/c100000039.lua @@ -15,15 +15,15 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_MZONE,0,1,nil) and rp~=tp + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_MZONE,0,1,nil) and rp~=tp end function s.costfilter1(c) return c:IsRace(RACE_MACHINE) and c:IsFaceup() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.costfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Remove(g,POS_FACEUP,REASON_COST) end @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(c,POS_FACEDOWN) Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c100000040.lua b/unofficial/c100000040.lua index ecfc33852f..b57d5bf463 100644 --- a/unofficial/c100000040.lua +++ b/unofficial/c100000040.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_MZONE,0,1,nil) and ep==tp + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_MZONE,0,1,nil) and ep==tp end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end @@ -25,4 +25,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000042.lua b/unofficial/c100000042.lua index 7b29248811..1344a6d003 100644 --- a/unofficial/c100000042.lua +++ b/unofficial/c100000042.lua @@ -21,13 +21,13 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end diff --git a/unofficial/c100000043.lua b/unofficial/c100000043.lua index 062df99d7a..fd0220a4bd 100644 --- a/unofficial/c100000043.lua +++ b/unofficial/c100000043.lua @@ -51,5 +51,5 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) -end + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) +end \ No newline at end of file diff --git a/unofficial/c100000044.lua b/unofficial/c100000044.lua index 1452ce81d5..f586187514 100644 --- a/unofficial/c100000044.lua +++ b/unofficial/c100000044.lua @@ -67,7 +67,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.sdcon(e) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.cbcon(e,tp,eg,ep,ev,re,r,rp) return eg:GetFirst():IsControler(tp) @@ -91,4 +91,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000045.lua b/unofficial/c100000045.lua index 07e09b65e5..bb74e5151e 100644 --- a/unofficial/c100000045.lua +++ b/unofficial/c100000045.lua @@ -55,7 +55,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.atcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsAbleToEnterBP() @@ -81,4 +81,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c100000046.lua b/unofficial/c100000046.lua index 1a5f8defc2..e3442a79b2 100644 --- a/unofficial/c100000046.lua +++ b/unofficial/c100000046.lua @@ -54,11 +54,11 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.cbcon(e,tp,eg,ep,ev,re,r,rp) return eg:GetFirst():IsControler(tp) end function s.cbop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c100000047.lua b/unofficial/c100000047.lua index f5e422a080..abecba7e9b 100644 --- a/unofficial/c100000047.lua +++ b/unofficial/c100000047.lua @@ -62,7 +62,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.sdcon(e) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.cbcon(e,tp,eg,ep,ev,re,r,rp) local bt=eg:GetFirst() @@ -73,4 +73,4 @@ function s.cbop(e,tp,eg,ep,ev,re,r,rp) end function s.valcon(e,re,r,rp) return r&REASON_BATTLE~=0 -end +end \ No newline at end of file diff --git a/unofficial/c100000048.lua b/unofficial/c100000048.lua index 721c287b8d..69e81ced32 100644 --- a/unofficial/c100000048.lua +++ b/unofficial/c100000048.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) e3:SetCode(EFFECT_PIERCE) e3:SetRange(LOCATION_MZONE) e3:SetTargetRange(LOCATION_MZONE,0) - e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x3013)) + e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_MEKLORD_EMPEROR)) c:RegisterEffect(e3) end s.listed_series={0x3013} @@ -52,5 +52,5 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.sdcon(e) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) -end + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) +end \ No newline at end of file diff --git a/unofficial/c100000049.lua b/unofficial/c100000049.lua index 8f3216d5b0..b4a24e07e4 100644 --- a/unofficial/c100000049.lua +++ b/unofficial/c100000049.lua @@ -57,7 +57,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.sdcon(e) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.negcon(e,tp,eg,ep,ev,re,r,rp) return rp==1-tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) @@ -73,4 +73,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000050.lua b/unofficial/c100000050.lua index 2d21ab0a69..084ac5d755 100644 --- a/unofficial/c100000050.lua +++ b/unofficial/c100000050.lua @@ -3,7 +3,7 @@ Duel.LoadScript("c420.lua") local s,id=GetID() function s.initial_effect(c) - c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0x3013),LOCATION_MZONE) + c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,SET_MEKLORD_EMPEROR),LOCATION_MZONE) --atk/def up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -85,4 +85,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then s.equipop(c,e,tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000051.lua b/unofficial/c100000051.lua index fc94e11848..fcd43c8690 100644 --- a/unofficial/c100000051.lua +++ b/unofficial/c100000051.lua @@ -13,5 +13,5 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) -end + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) +end \ No newline at end of file diff --git a/unofficial/c100000052.lua b/unofficial/c100000052.lua index 58f85f2b94..ea6e430aee 100644 --- a/unofficial/c100000052.lua +++ b/unofficial/c100000052.lua @@ -13,5 +13,5 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) -end + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) +end \ No newline at end of file diff --git a/unofficial/c100000053.lua b/unofficial/c100000053.lua index 503792b74b..f55eef33cc 100644 --- a/unofficial/c100000053.lua +++ b/unofficial/c100000053.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.cbcon(e,tp,eg,ep,ev,re,r,rp) local bt=eg:GetFirst() @@ -30,4 +30,4 @@ function s.cbcon(e,tp,eg,ep,ev,re,r,rp) end function s.cbop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeAttackTarget(e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c100000054.lua b/unofficial/c100000054.lua index fd6a95cafb..b9e18feb90 100644 --- a/unofficial/c100000054.lua +++ b/unofficial/c100000054.lua @@ -21,8 +21,8 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.indval(e,re,tp) return e:GetHandlerPlayer()~=re:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c100000055.lua b/unofficial/c100000055.lua index 26dd905b47..e0643ac4a6 100644 --- a/unofficial/c100000055.lua +++ b/unofficial/c100000055.lua @@ -32,7 +32,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE) end function s.filter(c,e,tp) return c:IsCode(68140974,100000051,100000052,100000053,100000054) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -46,10 +46,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft<=0 or (ft>1 and Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)) then return end - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,nil,e,tp) + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,nil,e,tp) if not s.rescon(sg) then return end local spg=aux.SelectUnselectGroup(sg,e,tp,5,5,s.rescon,1,tp,HINTMSG_SPSUMMON) if #sg>0 then Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000056.lua b/unofficial/c100000056.lua index 2e98eab9eb..ad1c6b50ff 100644 --- a/unofficial/c100000056.lua +++ b/unofficial/c100000056.lua @@ -3,7 +3,7 @@ Duel.LoadScript("c420.lua") local s,id=GetID() function s.initial_effect(c) - c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0x3013),LOCATION_MZONE) + c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,SET_MEKLORD_EMPEROR),LOCATION_MZONE) --atk/def up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -85,4 +85,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then s.equipop(c,e,tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000057.lua b/unofficial/c100000057.lua index 6402d8cfc8..a1800cbd56 100644 --- a/unofficial/c100000057.lua +++ b/unofficial/c100000057.lua @@ -13,5 +13,5 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) -end + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) +end \ No newline at end of file diff --git a/unofficial/c100000058.lua b/unofficial/c100000058.lua index 659b7e7392..af5613af3d 100644 --- a/unofficial/c100000058.lua +++ b/unofficial/c100000058.lua @@ -13,5 +13,5 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) -end + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) +end \ No newline at end of file diff --git a/unofficial/c100000059.lua b/unofficial/c100000059.lua index 82bfae5ccf..236f485801 100644 --- a/unofficial/c100000059.lua +++ b/unofficial/c100000059.lua @@ -23,11 +23,11 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.cbcon(e,tp,eg,ep,ev,re,r,rp) return eg:GetFirst():IsControler(tp) end function s.cbop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c100000060.lua b/unofficial/c100000060.lua index fcb8c157e0..14df18e555 100644 --- a/unofficial/c100000060.lua +++ b/unofficial/c100000060.lua @@ -13,5 +13,5 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) -end + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) +end \ No newline at end of file diff --git a/unofficial/c100000061.lua b/unofficial/c100000061.lua index b950c33986..0a97e1acc9 100644 --- a/unofficial/c100000061.lua +++ b/unofficial/c100000061.lua @@ -2,7 +2,7 @@ --Meklord Emperor Granel ∞ (TF6) local s,id=GetID() function s.initial_effect(c) - c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,0x3013),LOCATION_MZONE) + c:SetUniqueOnField(1,0,aux.FilterBoolFunction(Card.IsSetCard,SET_MEKLORD_EMPEROR),LOCATION_MZONE) --atk/def up local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -47,7 +47,7 @@ s.listed_series={0x3013} s.listed_names={100000067} function s.con(e) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:GetReasonEffect() + return c:IsSpecialSummoned() and c:GetReasonEffect() and c:GetReasonEffect():GetHandler():IsCode(100000067) end function s.val(e,c) @@ -94,4 +94,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then s.equipop(c,e,tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000062.lua b/unofficial/c100000062.lua index 663424ae90..4d6a71a2f2 100644 --- a/unofficial/c100000062.lua +++ b/unofficial/c100000062.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.filter(c) return c:IsFaceup() and not c:IsDisabled() and c:IsType(TYPE_EFFECT) @@ -51,4 +51,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c100000063.lua b/unofficial/c100000063.lua index d0c008c4f4..aee45abfc5 100644 --- a/unofficial/c100000063.lua +++ b/unofficial/c100000063.lua @@ -22,16 +22,16 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.cacon(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - return d and d:IsPreviousPosition(POS_DEFENSE) and a:IsControler(tp) and a:IsSetCard(0x3013) and a:CanChainAttack() + return d and d:IsPreviousPosition(POS_DEFENSE) and a:IsControler(tp) and a:IsSetCard(SET_MEKLORD_EMPEROR) and a:CanChainAttack() end function s.caop(e,tp,eg,ep,ev,re,r,rp,chk) local tc=Duel.GetAttacker() if tc and tc:IsFaceup() and tc:IsRelateToBattle() and tc:CanChainAttack() then Duel.ChainAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c100000064.lua b/unofficial/c100000064.lua index 8778716652..6f61504f6a 100644 --- a/unofficial/c100000064.lua +++ b/unofficial/c100000064.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.cbcon(e,tp,eg,ep,ev,re,r,rp) local bt=eg:GetFirst() @@ -30,4 +30,4 @@ function s.cbcon(e,tp,eg,ep,ev,re,r,rp) end function s.cbop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeAttackTarget(e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c100000065.lua b/unofficial/c100000065.lua index a706c44ee3..bdbe29792e 100644 --- a/unofficial/c100000065.lua +++ b/unofficial/c100000065.lua @@ -22,8 +22,8 @@ function s.initial_effect(c) end s.listed_series={0x3013} function s.sdcon(e) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x3013),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),0,LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.val(e,re,r,rp) return (r&REASON_BATTLE)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c100000066.lua b/unofficial/c100000066.lua index b32123ca68..d45ca3902b 100644 --- a/unofficial/c100000066.lua +++ b/unofficial/c100000066.lua @@ -32,7 +32,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE) end function s.filter(c,e,tp) return c:IsCode(31930787,100000057,100000058,100000059,100000060) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -46,10 +46,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft<=0 or (ft>1 and Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)) then return end - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,nil,e,tp) + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,nil,e,tp) if not s.rescon(sg) then return end local spg=aux.SelectUnselectGroup(sg,e,tp,5,5,s.rescon,1,tp,HINTMSG_SPSUMMON) if #sg>0 then Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000067.lua b/unofficial/c100000067.lua index 111a4d4f31..ec6f635c08 100644 --- a/unofficial/c100000067.lua +++ b/unofficial/c100000067.lua @@ -32,7 +32,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE) end function s.filter(c,e,tp) return c:IsCode(4545683,100000062,100000063,100000064,100000065) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -45,10 +45,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft<=0 or (ft>1 and Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)) then return end - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,nil,e,tp) + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,nil,e,tp) if not s.rescon(sg) then return end local spg=aux.SelectUnselectGroup(sg,e,tp,5,5,s.rescon,1,tp,HINTMSG_SPSUMMON) if #sg>0 then Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000068.lua b/unofficial/c100000068.lua index 13c37f27c7..c26f6cb7c3 100644 --- a/unofficial/c100000068.lua +++ b/unofficial/c100000068.lua @@ -51,9 +51,9 @@ function s.chk(c,sg,g,code,...) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(1) - local g1=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,100000055) - local g2=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,100000066) - local g3=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,100000067) + local g1=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,100000055) + local g2=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,100000066) + local g3=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,100000067) local g=g1:Clone() g:Merge(g2) g:Merge(g3) @@ -98,14 +98,14 @@ function s.cfilter(c) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetEquipTarget() and eg:IsContains(e:GetHandler():GetEquipTarget()) - and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end if Duel.SelectYesNo(tp,aux.Stringid(id,0)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_EFFECT+REASON_REPLACE) return true else return false end end function s.desval(e,c) return c==e:GetHandler():GetEquipTarget() -end +end \ No newline at end of file diff --git a/unofficial/c100000069.lua b/unofficial/c100000069.lua index 797d63b89d..3167d091a6 100644 --- a/unofficial/c100000069.lua +++ b/unofficial/c100000069.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000070.lua b/unofficial/c100000070.lua index 6585d722ec..eef48de29b 100644 --- a/unofficial/c100000070.lua +++ b/unofficial/c100000070.lua @@ -14,4 +14,4 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local g=Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0) Duel.DiscardDeck(tp,g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000072.lua b/unofficial/c100000072.lua index a132100fb2..78fcd079f5 100644 --- a/unofficial/c100000072.lua +++ b/unofficial/c100000072.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000073.lua b/unofficial/c100000073.lua index 499d172ee0..088fe94eb3 100644 --- a/unofficial/c100000073.lua +++ b/unofficial/c100000073.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000075.lua b/unofficial/c100000075.lua index fd54c7c028..655145fcba 100644 --- a/unofficial/c100000075.lua +++ b/unofficial/c100000075.lua @@ -14,4 +14,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,70902743),c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c100000076.lua b/unofficial/c100000076.lua index b7778c5fe5..8a6b6504e5 100644 --- a/unofficial/c100000076.lua +++ b/unofficial/c100000076.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk,chkc) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000078.lua b/unofficial/c100000078.lua index 2434ff504b..9dd1bfd624 100644 --- a/unofficial/c100000078.lua +++ b/unofficial/c100000078.lua @@ -13,12 +13,12 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(Card.CanSummonOrSet,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil,true,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(Card.CanSummonOrSet,tp,LOCATION_HAND|LOCATION_MZONE,0,1,nil,true,nil) end Duel.SetOperationInfo(0,CATEGORY_SUMMON,nil,1,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SUMMON) - local tc=Duel.SelectMatchingCard(tp,Card.CanSummonOrSet,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil,true,nil):GetFirst() + local tc=Duel.SelectMatchingCard(tp,Card.CanSummonOrSet,tp,LOCATION_HAND|LOCATION_MZONE,0,1,1,nil,true,nil):GetFirst() if tc then Duel.SummonOrSet(tp,tc,true,nil) end diff --git a/unofficial/c100000079.lua b/unofficial/c100000079.lua index d4d3cecd9e..202e18839e 100644 --- a/unofficial/c100000079.lua +++ b/unofficial/c100000079.lua @@ -24,7 +24,7 @@ function s.filter2(c,e,tp,m) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then - local mg1=Duel.GetMatchingGroup(s.filter1,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,e) + local mg1=Duel.GetMatchingGroup(s.filter1,tp,0,LOCATION_MZONE|LOCATION_GRAVE,nil,e) local res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,LOCATION_EXTRA,1,nil,e,tp,mg1) if not res then local ce=Duel.GetChainMaterial(tp) @@ -39,7 +39,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local mg1=Duel.GetMatchingGroup(s.filter1,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil,e) + local mg1=Duel.GetMatchingGroup(s.filter1,tp,0,LOCATION_MZONE|LOCATION_GRAVE,nil,e) local sg1=Duel.GetMatchingGroup(s.filter2,tp,LOCATION_EXTRA,LOCATION_EXTRA,nil,e,tp,mg1) local mg2=nil local sg2=nil @@ -68,4 +68,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000080.lua b/unofficial/c100000080.lua index cf75bf6bf6..76bc29b70a 100644 --- a/unofficial/c100000080.lua +++ b/unofficial/c100000080.lua @@ -81,4 +81,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-e:GetLabel(),700,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000081.lua b/unofficial/c100000081.lua index da5ed2f4d5..029e429aac 100644 --- a/unofficial/c100000081.lua +++ b/unofficial/c100000081.lua @@ -31,4 +31,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000083.lua b/unofficial/c100000083.lua index 555cd4785c..b525dd1499 100644 --- a/unofficial/c100000083.lua +++ b/unofficial/c100000083.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE|PHASE_END) Duel.RegisterEffect(e1,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c100000084.lua b/unofficial/c100000084.lua index 441c9196dc..bcdfac48f9 100644 --- a/unofficial/c100000084.lua +++ b/unofficial/c100000084.lua @@ -33,4 +33,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000085.lua b/unofficial/c100000085.lua index 194dd5df14..6997ffa5bf 100644 --- a/unofficial/c100000085.lua +++ b/unofficial/c100000085.lua @@ -15,4 +15,4 @@ function s.spcon(e,c) return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)>0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c100000086.lua b/unofficial/c100000086.lua index 942ba2bd1a..0fcb987ec6 100644 --- a/unofficial/c100000086.lua +++ b/unofficial/c100000086.lua @@ -51,4 +51,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) e:GetHandler():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000087.lua b/unofficial/c100000087.lua index 40d0293fa5..8a6896fe4d 100644 --- a/unofficial/c100000087.lua +++ b/unofficial/c100000087.lua @@ -16,7 +16,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsType,TYPE_SYNCHRO),tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end function s.filter(c,e,tp) - return c:IsSetCard(0x57) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_RESONATOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000088.lua b/unofficial/c100000088.lua index bb809e91d5..c4762d64f6 100644 --- a/unofficial/c100000088.lua +++ b/unofficial/c100000088.lua @@ -15,12 +15,12 @@ end s.listed_series={0x3013} function s.condition(e,tp,eg,ep,ev,re,r,rp) local ph=Duel.GetCurrentPhase() - return Duel.GetTurnPlayer()==tp and Duel.IsBattlePhase() and (ph~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) + return Duel.IsTurnPlayer(tp) and Duel.IsBattlePhase() and (ph~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chk==0 then return Duel.IsExistingTarget(aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_MZONE,0,1,nil) end + if chk==0 then return Duel.IsExistingTarget(aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_MZONE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) - Duel.SelectTarget(tp,aux.FaceupFilter(Card.IsSetCard,0x3013),tp,LOCATION_MZONE,0,1,1,nil) + Duel.SelectTarget(tp,aux.FaceupFilter(Card.IsSetCard,SET_MEKLORD_EMPEROR),tp,LOCATION_MZONE,0,1,1,nil) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c100000089.lua b/unofficial/c100000089.lua index 5013b26837..f4d09aab68 100644 --- a/unofficial/c100000089.lua +++ b/unofficial/c100000089.lua @@ -64,4 +64,4 @@ function s.eqlimit(e,c) end function s.efilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c100000090.lua b/unofficial/c100000090.lua index 17bf27cd45..d8f7bb77b6 100644 --- a/unofficial/c100000090.lua +++ b/unofficial/c100000090.lua @@ -12,9 +12,9 @@ function s.initial_effect(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end - if chk==0 then return Duel.IsExistingTarget(aux.FaceupFilter(Card.IsSetCard,0x23),tp,LOCATION_MZONE,0,1,nil) end + if chk==0 then return Duel.IsExistingTarget(aux.FaceupFilter(Card.IsSetCard,SET_MALEFIC),tp,LOCATION_MZONE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) - local g=Duel.SelectTarget(tp,aux.FaceupFilter(Card.IsSetCard,0x23),tp,LOCATION_MZONE,0,1,1,nil) + local g=Duel.SelectTarget(tp,aux.FaceupFilter(Card.IsSetCard,SET_MALEFIC),tp,LOCATION_MZONE,0,1,1,nil) Duel.SetOperationInfo(0,0,g,1,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:IsActiveType(TYPE_SPELL) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c100000091.lua b/unofficial/c100000091.lua index a7696d4c1c..f6fa4380c0 100644 --- a/unofficial/c100000091.lua +++ b/unofficial/c100000091.lua @@ -12,14 +12,14 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsSetCard(0x23) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_MALEFIC) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.filter(c) - return c:IsSetCard(0x23) and c:IsAbleToHand() + return c:IsSetCard(SET_MALEFIC) and c:IsAbleToHand() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,nil) end - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,2,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,nil) end + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,2,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100000092.lua b/unofficial/c100000092.lua index e6c5e3afc0..529da2eaa2 100644 --- a/unofficial/c100000092.lua +++ b/unofficial/c100000092.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000093.lua b/unofficial/c100000093.lua index 800468c74f..dc44d82b41 100644 --- a/unofficial/c100000093.lua +++ b/unofficial/c100000093.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x23} function s.filter(c,e,tp) - return c:IsSetCard(0x23) and c:IsMonster() and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_MALEFIC) and c:IsMonster() and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -67,4 +67,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000094.lua b/unofficial/c100000094.lua index bcdafd1c78..1150995940 100644 --- a/unofficial/c100000094.lua +++ b/unofficial/c100000094.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,tp) - return c:IsSetCard(0x23) + return c:IsSetCard(SET_MALEFIC) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) @@ -26,4 +26,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000096.lua b/unofficial/c100000096.lua index 40bba455d2..50261362e4 100644 --- a/unofficial/c100000096.lua +++ b/unofficial/c100000096.lua @@ -59,4 +59,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-Duel.GetTurnPlayer(),g) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000097.lua b/unofficial/c100000097.lua index 8eac404438..c41b291d86 100644 --- a/unofficial/c100000097.lua +++ b/unofficial/c100000097.lua @@ -59,4 +59,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-Duel.GetTurnPlayer(),g) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000098.lua b/unofficial/c100000098.lua index 7ecc185dd5..0f7b11cc87 100644 --- a/unofficial/c100000098.lua +++ b/unofficial/c100000098.lua @@ -60,4 +60,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-Duel.GetTurnPlayer(),g) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000099.lua b/unofficial/c100000099.lua index 7bf3b6de5d..505cb171c8 100644 --- a/unofficial/c100000099.lua +++ b/unofficial/c100000099.lua @@ -23,14 +23,14 @@ function s.spfilter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local tg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) if #tg>0 and Duel.SpecialSummon(tg,0,tp,tp,true,false,POS_FACEUP)>0 then tg:GetFirst():CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000100.lua b/unofficial/c100000100.lua index 7779b78253..7a0c2da8a0 100644 --- a/unofficial/c100000100.lua +++ b/unofficial/c100000100.lua @@ -57,4 +57,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local dam=Duel.GetBattleDamage(tp)-e:GetLabel() if dam<0 then dam=0 end Duel.ChangeBattleDamage(tp,dam) -end +end \ No newline at end of file diff --git a/unofficial/c100000101.lua b/unofficial/c100000101.lua index eac37b066e..080419ac1f 100644 --- a/unofficial/c100000101.lua +++ b/unofficial/c100000101.lua @@ -52,4 +52,4 @@ function card.activate(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000103.lua b/unofficial/c100000103.lua index 6a15f208ad..70ae5bb1fe 100644 --- a/unofficial/c100000103.lua +++ b/unofficial/c100000103.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000104.lua b/unofficial/c100000104.lua index e230c19923..320139ea33 100644 --- a/unofficial/c100000104.lua +++ b/unofficial/c100000104.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc1:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000105.lua b/unofficial/c100000105.lua index 637e0414b2..6e9e4c4dfa 100644 --- a/unofficial/c100000105.lua +++ b/unofficial/c100000105.lua @@ -63,4 +63,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) Duel.GetControl(tc,1-tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000106.lua b/unofficial/c100000106.lua index 4facf9512d..d93b5453ff 100644 --- a/unofficial/c100000106.lua +++ b/unofficial/c100000106.lua @@ -81,4 +81,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Damage(Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)==1 and tp or 1-tp,tc:GetPreviousAttackOnField(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000107.lua b/unofficial/c100000107.lua index ea3c9f0cc7..75d75768b6 100644 --- a/unofficial/c100000107.lua +++ b/unofficial/c100000107.lua @@ -24,13 +24,13 @@ end s.listed_series={0x5} s.listed_names={id+1} function s.cfilter(c) - return c:IsLevelBelow(4) and c:IsSetCard(0x5) + return c:IsLevelBelow(4) and c:IsSetCard(SET_ARCANA_FORCE) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil) end function s.costfilter(c) - return c:IsSetCard(0x5) and (c:GetLevel()==5 or c:GetLevel()==6) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_ARCANA_FORCE) and (c:GetLevel()==5 or c:GetLevel()==6) and c:IsAbleToGraveAsCost() end function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end @@ -53,4 +53,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(dg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,dg) end -end +end \ No newline at end of file diff --git a/unofficial/c100000108.lua b/unofficial/c100000108.lua index db2380d714..93b8812de2 100644 --- a/unofficial/c100000108.lua +++ b/unofficial/c100000108.lua @@ -24,13 +24,13 @@ end s.listed_series={0x5} s.listed_names={id+1} function s.cfilter(c) - return c:IsSetCard(0x5) and (c:GetLevel()==5 or c:GetLevel()==6) + return c:IsSetCard(SET_ARCANA_FORCE) and (c:GetLevel()==5 or c:GetLevel()==6) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil) end function s.costfilter(c) - return c:IsSetCard(0x5) and c:IsLevelAbove(7) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_ARCANA_FORCE) and c:IsLevelAbove(7) and c:IsAbleToGraveAsCost() end function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end @@ -53,4 +53,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(dg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,dg) end -end +end \ No newline at end of file diff --git a/unofficial/c100000109.lua b/unofficial/c100000109.lua index 4f54272ce4..c03097335e 100644 --- a/unofficial/c100000109.lua +++ b/unofficial/c100000109.lua @@ -57,4 +57,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.SpecialSummon(tc,0,tp,tp,true,ignore_sum_cond,POS_FACEUP)>0 and ignore_sum_cond then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000110.lua b/unofficial/c100000110.lua index f19b15bce2..28316717aa 100644 --- a/unofficial/c100000110.lua +++ b/unofficial/c100000110.lua @@ -71,7 +71,7 @@ function s.endop(e,tp,c) end end function s.ctcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.ctop(e,tp,c) local c=e:GetHandler() @@ -129,4 +129,4 @@ function s.atkup(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:GetOwner()~=e:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c100000111.lua b/unofficial/c100000111.lua index 30986797fa..743ea3c28e 100644 --- a/unofficial/c100000111.lua +++ b/unofficial/c100000111.lua @@ -20,4 +20,4 @@ function s.initial_effect(c) end function s.con(e) return Duel.IsExistingMatchingCard(Card.IsDefensePos,e:GetHandlerPlayer(),LOCATION_MZONE,0,2,nil) -end +end \ No newline at end of file diff --git a/unofficial/c100000113.lua b/unofficial/c100000113.lua index 81be7cd3f6..452597f2ef 100644 --- a/unofficial/c100000113.lua +++ b/unofficial/c100000113.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,tp) - return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsSetCard(0x3b) and c:IsMonster() + return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsSetCard(SET_RED_EYES) and c:IsMonster() end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.cfilter,nil,tp) @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,atk,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c100000114.lua b/unofficial/c100000114.lua index fcd447cca0..579de2e02a 100644 --- a/unofficial/c100000114.lua +++ b/unofficial/c100000114.lua @@ -21,7 +21,7 @@ end s.listed_series={0x5} s.toss_coin=true function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x5) and c:IsAttackAbove(300) + return c:IsFaceup() and c:IsSetCard(SET_ARCANA_FORCE) and c:IsAttackAbove(300) end function s.ddtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -44,4 +44,4 @@ function s.ddop(e,tp,eg,ep,ev,re,r,rp) Duel.DiscardDeck(1-tp,ct,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000115.lua b/unofficial/c100000115.lua index 13c1adae79..efd816c918 100644 --- a/unofficial/c100000115.lua +++ b/unofficial/c100000115.lua @@ -12,8 +12,8 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,0x5) end - local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,0x5) + if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,SET_ARCANA_FORCE) end + local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,SET_ARCANA_FORCE) Duel.Release(g,REASON_COST) end function s.filter(c) @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100000116.lua b/unofficial/c100000116.lua index 84479ffd7d..3ba31a7a29 100644 --- a/unofficial/c100000116.lua +++ b/unofficial/c100000116.lua @@ -77,4 +77,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000117.lua b/unofficial/c100000117.lua index 120e1fbd73..3424d091e2 100644 --- a/unofficial/c100000117.lua +++ b/unofficial/c100000117.lua @@ -41,4 +41,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,0) -end +end \ No newline at end of file diff --git a/unofficial/c100000118.lua b/unofficial/c100000118.lua index e5e12ff209..8ec9afd275 100644 --- a/unofficial/c100000118.lua +++ b/unofficial/c100000118.lua @@ -52,4 +52,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100000119.lua b/unofficial/c100000119.lua index 6bca2e646b..733f55f7c7 100644 --- a/unofficial/c100000119.lua +++ b/unofficial/c100000119.lua @@ -25,7 +25,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetTargetPlayer(1-tp) - local dam=Duel.GetFieldGroupCount(1-tp,LOCATION_HAND+LOCATION_ONFIELD,0)*500 + local dam=Duel.GetFieldGroupCount(1-tp,LOCATION_HAND|LOCATION_ONFIELD,0)*500 Duel.SetTargetParam(dam) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam) end @@ -36,7 +36,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) Duel.BreakEffect() - local dg=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_DECK+LOCATION_HAND,0,nil) + local dg=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_DECK|LOCATION_HAND,0,nil) local dt=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_ONFIELD,nil) if #dg>0 and #dt>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Destroy(dt,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000120.lua b/unofficial/c100000120.lua index 8dcfcc0d3c..d7cb7b2953 100644 --- a/unofficial/c100000120.lua +++ b/unofficial/c100000120.lua @@ -23,10 +23,10 @@ function s.initial_effect(c) end s.listed_series={0x12e} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return eg:IsExists(Card.IsSetCard,1,nil,0x12e) + return eg:IsExists(Card.IsSetCard,1,nil,SET_FORTUNE_FAIRY) end function s.filter(c,e,tp) - return c:IsSetCard(0x12e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_FORTUNE_FAIRY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000121.lua b/unofficial/c100000121.lua index df0d23794c..d5764edf80 100644 --- a/unofficial/c100000121.lua +++ b/unofficial/c100000121.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_SZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x12e)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_FORTUNE_FAIRY)) e2:SetValue(s.val) c:RegisterEffect(e2) --attack res @@ -26,8 +26,8 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.val(e,c) - return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,0x12e),c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,nil)*1000 + return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,SET_FORTUNE_FAIRY),c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,nil)*1000 end function s.atktg(e,c) - return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSetCard(0x12e) and (c:GetSummonType()&SUMMON_TYPE_SPECIAL)~=0 -end + return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSetCard(SET_FORTUNE_FAIRY) and (c:GetSummonType()&SUMMON_TYPE_SPECIAL)~=0 +end \ No newline at end of file diff --git a/unofficial/c100000122.lua b/unofficial/c100000122.lua index e8f4102295..0b5a0ed895 100644 --- a/unofficial/c100000122.lua +++ b/unofficial/c100000122.lua @@ -16,11 +16,11 @@ function s.initial_effect(c) end s.listed_series={0x12e} function s.tfilter(c,lv,e,tp) - return c:IsSetCard(0x12e) and c:GetLevel()==lv-1 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_FORTUNE_FAIRY) and c:GetLevel()==lv-1 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.filter(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0x12e) - and Duel.IsExistingMatchingCard(s.tfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,c:GetLevel(),e,tp) + return c:IsFaceup() and c:IsSetCard(SET_FORTUNE_FAIRY) + and Duel.IsExistingMatchingCard(s.tfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,c:GetLevel(),e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc,e,tp) end @@ -28,14 +28,14 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil,e,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil,e,tp) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end local tc=Duel.GetFirstTarget() if not tc:IsRelateToEffect(e) or tc:IsFacedown() then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local sg=Duel.SelectMatchingCard(tp,s.tfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,tc:GetLevel(),e,tp) + local sg=Duel.SelectMatchingCard(tp,s.tfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,tc:GetLevel(),e,tp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end @@ -52,4 +52,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.con(e) return Duel.GetTurnPlayer()==e:GetHandlerPlayer() and Duel.GetTurnCount()~=e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c100000136.lua b/unofficial/c100000136.lua index 333f7d576a..23090c53b6 100644 --- a/unofficial/c100000136.lua +++ b/unofficial/c100000136.lua @@ -40,4 +40,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000137.lua b/unofficial/c100000137.lua index 94d4159ae2..558233f065 100644 --- a/unofficial/c100000137.lua +++ b/unofficial/c100000137.lua @@ -24,4 +24,4 @@ function s.value(e,c) wbc=wg:GetNext() end return wup -end +end \ No newline at end of file diff --git a/unofficial/c100000138.lua b/unofficial/c100000138.lua index 19dcecb59d..b014bef021 100644 --- a/unofficial/c100000138.lua +++ b/unofficial/c100000138.lua @@ -32,4 +32,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c100000139.lua b/unofficial/c100000139.lua index 26e82a9806..f28a57bc22 100644 --- a/unofficial/c100000139.lua +++ b/unofficial/c100000139.lua @@ -24,4 +24,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) tc:AddCounter(0x1090,1) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000140.lua b/unofficial/c100000140.lua index 067db0f110..2425bf5808 100644 --- a/unofficial/c100000140.lua +++ b/unofficial/c100000140.lua @@ -41,4 +41,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000141.lua b/unofficial/c100000141.lua index d0917ea605..142843234b 100644 --- a/unofficial/c100000141.lua +++ b/unofficial/c100000141.lua @@ -38,4 +38,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000142.lua b/unofficial/c100000142.lua index dc3a7b2c20..8842f6c73c 100644 --- a/unofficial/c100000142.lua +++ b/unofficial/c100000142.lua @@ -35,4 +35,4 @@ end function s.dop(e,tp,eg,ep,ev,re,r,rp) local p,val=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.DiscardDeck(p,val,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000143.lua b/unofficial/c100000143.lua index ed0346795f..1a6fd710b1 100644 --- a/unofficial/c100000143.lua +++ b/unofficial/c100000143.lua @@ -38,4 +38,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000144.lua b/unofficial/c100000144.lua index c78cf5a12d..12d9fbf8d3 100644 --- a/unofficial/c100000144.lua +++ b/unofficial/c100000144.lua @@ -26,4 +26,4 @@ function s.spcon(e,c) return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)>0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c100000145.lua b/unofficial/c100000145.lua index 629b43413a..81d38e0565 100644 --- a/unofficial/c100000145.lua +++ b/unofficial/c100000145.lua @@ -64,4 +64,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000146.lua b/unofficial/c100000146.lua index 03dd093c2c..e5c5bc9554 100644 --- a/unofficial/c100000146.lua +++ b/unofficial/c100000146.lua @@ -36,4 +36,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000149.lua b/unofficial/c100000149.lua index 9857ebcfbb..8e6b69f59d 100644 --- a/unofficial/c100000149.lua +++ b/unofficial/c100000149.lua @@ -65,4 +65,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsReason(REASON_DESTROY) and tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000150.lua b/unofficial/c100000150.lua index 991db56c19..f4ed0238e1 100644 --- a/unofficial/c100000150.lua +++ b/unofficial/c100000150.lua @@ -32,7 +32,7 @@ function s.initial_effect(c) end s.listed_series={0xb} function s.filter(c) - return c:IsSetCard(0xb) and c:IsMonster() + return c:IsSetCard(SET_INFERNITY) and c:IsMonster() end function s.operation(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -63,7 +63,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) until #g<=0 end function s.codefilter(c,code) - return c:IsOriginalCode(code) and c:IsSetCard(0xb) + return c:IsOriginalCode(code) and c:IsSetCard(SET_INFERNITY) end function s.codefilterchk(c,sc) return sc:GetFlagEffect(c:GetOriginalCode())>0 diff --git a/unofficial/c100000151.lua b/unofficial/c100000151.lua index 05010fc94b..86b762fdda 100644 --- a/unofficial/c100000151.lua +++ b/unofficial/c100000151.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000152.lua b/unofficial/c100000152.lua index 41ea816ce7..d77356c7e1 100644 --- a/unofficial/c100000152.lua +++ b/unofficial/c100000152.lua @@ -44,9 +44,9 @@ function s.cfilter(c) return c:IsMonster() and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_HAND,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_HAND,0,1,1,nil) Duel.SendtoGrave(g,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -57,4 +57,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c100000153.lua b/unofficial/c100000153.lua index 3153cae5ba..bdb8534ce7 100644 --- a/unofficial/c100000153.lua +++ b/unofficial/c100000153.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) end s.listed_names={39823987} function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -60,4 +60,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000154.lua b/unofficial/c100000154.lua index f7f5370798..621a9ff88a 100644 --- a/unofficial/c100000154.lua +++ b/unofficial/c100000154.lua @@ -71,4 +71,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(tc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000155.lua b/unofficial/c100000155.lua index bbe02945be..63b8eff1f9 100644 --- a/unofficial/c100000155.lua +++ b/unofficial/c100000155.lua @@ -70,4 +70,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000156.lua b/unofficial/c100000156.lua index 9fa07f2474..0d5ecac237 100644 --- a/unofficial/c100000156.lua +++ b/unofficial/c100000156.lua @@ -34,4 +34,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) local ct=math.floor((Duel.GetAttackTarget():GetAttack()-e:GetHandler():GetBaseAttack())/100) Duel.DiscardDeck(1-tp,ct,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000157.lua b/unofficial/c100000157.lua index fceaa81ac4..da0a396463 100644 --- a/unofficial/c100000157.lua +++ b/unofficial/c100000157.lua @@ -26,4 +26,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000158.lua b/unofficial/c100000158.lua index 5378352aeb..1b03a69e91 100644 --- a/unofficial/c100000158.lua +++ b/unofficial/c100000158.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c100000160.lua b/unofficial/c100000160.lua index 752abc998e..4182dcc96d 100644 --- a/unofficial/c100000160.lua +++ b/unofficial/c100000160.lua @@ -55,4 +55,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000162.lua b/unofficial/c100000162.lua index b7eb2eaa89..945716b497 100644 --- a/unofficial/c100000162.lua +++ b/unofficial/c100000162.lua @@ -34,4 +34,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000163.lua b/unofficial/c100000163.lua index e13379e932..84cbada3f8 100644 --- a/unofficial/c100000163.lua +++ b/unofficial/c100000163.lua @@ -27,7 +27,7 @@ function s.filter(c) return not c:IsStatus(STATUS_LEAVE_CONFIRMED) end function s.adcon(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(s.filter,e:GetHandler():GetControler(),LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) + return not Duel.IsExistingMatchingCard(s.filter,e:GetHandler():GetControler(),LOCATION_ONFIELD|LOCATION_HAND,0,1,e:GetHandler()) end function s.adval(e,c) local g=Duel.GetMatchingGroup(Card.IsFaceup,e:GetHandler():GetControler(),0,LOCATION_MZONE,e:GetHandler()) diff --git a/unofficial/c100000166.lua b/unofficial/c100000166.lua index af4e87881f..f88b62e08b 100644 --- a/unofficial/c100000166.lua +++ b/unofficial/c100000166.lua @@ -24,7 +24,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local conf=Duel.GetFieldGroup(tp,0,LOCATION_MZONE+LOCATION_HAND) + local conf=Duel.GetFieldGroup(tp,0,LOCATION_MZONE|LOCATION_HAND) if #conf>0 then Duel.ConfirmCards(tp,conf) local dg=conf:Filter(Card.IsRace,nil,RACE_MACHINE) @@ -87,4 +87,4 @@ function s.turnop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():Reset() if re then re:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c100000167.lua b/unofficial/c100000167.lua index 992e965471..f7dd082885 100644 --- a/unofficial/c100000167.lua +++ b/unofficial/c100000167.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.IsPlayerCanDraw(tp,1) then Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000168.lua b/unofficial/c100000168.lua index bd3a004a7f..a104e9646c 100644 --- a/unofficial/c100000168.lua +++ b/unofficial/c100000168.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0x107e} function s.filter(c,e,tp) - return c:IsSetCard(0x107e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ZW) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 diff --git a/unofficial/c100000169.lua b/unofficial/c100000169.lua index 677c72af9e..d7cc5d91ce 100644 --- a/unofficial/c100000169.lua +++ b/unofficial/c100000169.lua @@ -32,4 +32,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000170.lua b/unofficial/c100000170.lua index 13d9f1c982..28cb0328cb 100644 --- a/unofficial/c100000170.lua +++ b/unofficial/c100000170.lua @@ -71,4 +71,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000171.lua b/unofficial/c100000171.lua index 02d367fb52..cd8c11c004 100644 --- a/unofficial/c100000171.lua +++ b/unofficial/c100000171.lua @@ -45,4 +45,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000172.lua b/unofficial/c100000172.lua index 4bbef3333d..0f0cab32ce 100644 --- a/unofficial/c100000172.lua +++ b/unofficial/c100000172.lua @@ -45,14 +45,14 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE|LOCATION_HAND) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_GRAVE|LOCATION_HAND,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000173.lua b/unofficial/c100000173.lua index 13669aa980..453047c6ee 100644 --- a/unofficial/c100000173.lua +++ b/unofficial/c100000173.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100000174.lua b/unofficial/c100000174.lua index bf1dca2e07..c7d952f2d9 100644 --- a/unofficial/c100000174.lua +++ b/unofficial/c100000174.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000175.lua b/unofficial/c100000175.lua index 201b1a1be2..0f3a95810c 100644 --- a/unofficial/c100000175.lua +++ b/unofficial/c100000175.lua @@ -22,4 +22,4 @@ function s.tg(e,c) end function s.val(e,c) return c:GetBaseAttack() -end +end \ No newline at end of file diff --git a/unofficial/c100000176.lua b/unofficial/c100000176.lua index 303de2eabc..4e1683cd6f 100644 --- a/unofficial/c100000176.lua +++ b/unofficial/c100000176.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000177.lua b/unofficial/c100000177.lua index 6847ee98af..1c1a9e2453 100644 --- a/unofficial/c100000177.lua +++ b/unofficial/c100000177.lua @@ -60,4 +60,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000178.lua b/unofficial/c100000178.lua index 70a6f26ed2..bc1e038f21 100644 --- a/unofficial/c100000178.lua +++ b/unofficial/c100000178.lua @@ -27,4 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(800) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e:GetHandler():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c100000179.lua b/unofficial/c100000179.lua index 27f3e3cdc9..4924380bca 100644 --- a/unofficial/c100000179.lua +++ b/unofficial/c100000179.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_DIRECT_ATTACK) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e:GetHandler():RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000180.lua b/unofficial/c100000180.lua index 231d4abab0..d40334b25b 100644 --- a/unofficial/c100000180.lua +++ b/unofficial/c100000180.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c100000181.lua b/unofficial/c100000181.lua index fa2abe9dd5..d1e98d2427 100644 --- a/unofficial/c100000181.lua +++ b/unofficial/c100000181.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000182.lua b/unofficial/c100000182.lua index 0f385dd7e7..512cc336d3 100644 --- a/unofficial/c100000182.lua +++ b/unofficial/c100000182.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(a:GetAttack()/2) d:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000183.lua b/unofficial/c100000183.lua index 2225ee1302..dd934dc6fc 100644 --- a/unofficial/c100000183.lua +++ b/unofficial/c100000183.lua @@ -21,4 +21,4 @@ function s.filter(c) end function s.vala(e,c) return c:GetControler()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c100000186.lua b/unofficial/c100000186.lua index 8f15b04a3d..29114287f8 100644 --- a/unofficial/c100000186.lua +++ b/unofficial/c100000186.lua @@ -35,7 +35,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) end function s.xyzfilter(c,e,tp) - return c:IsSetCard(0x48) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 + return c:IsSetCard(SET_NUMBER) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,true,false) end function s.operation(e,tp,eg,ep,ev,re,r,rp) @@ -66,4 +66,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.descon(e) return e:GetHandler():GetOverlayCount()==0 and Duel.GetCurrentChain()==0 -end +end \ No newline at end of file diff --git a/unofficial/c100000187.lua b/unofficial/c100000187.lua index 7a634e5a14..ee818d7fd2 100644 --- a/unofficial/c100000187.lua +++ b/unofficial/c100000187.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:CanAttack() and Duel.NegateAttack() then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000188.lua b/unofficial/c100000188.lua index 9e62e107b7..4c46699a9d 100644 --- a/unofficial/c100000188.lua +++ b/unofficial/c100000188.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,d,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000189.lua b/unofficial/c100000189.lua index 04b378aed8..d1cdff09f7 100644 --- a/unofficial/c100000189.lua +++ b/unofficial/c100000189.lua @@ -25,4 +25,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000191.lua b/unofficial/c100000191.lua index a2870c8395..512f5d89eb 100644 --- a/unofficial/c100000191.lua +++ b/unofficial/c100000191.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) g1:Merge(g2) Duel.SpecialSummon(g1,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000192.lua b/unofficial/c100000192.lua index 7e81bfcd09..5d1b050fdb 100644 --- a/unofficial/c100000192.lua +++ b/unofficial/c100000192.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000193.lua b/unofficial/c100000193.lua index 151898950a..293a8826de 100644 --- a/unofficial/c100000193.lua +++ b/unofficial/c100000193.lua @@ -63,5 +63,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end - +end \ No newline at end of file diff --git a/unofficial/c100000194.lua b/unofficial/c100000194.lua index 47325ca92a..507306a533 100644 --- a/unofficial/c100000194.lua +++ b/unofficial/c100000194.lua @@ -75,4 +75,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000195.lua b/unofficial/c100000195.lua index 86ed99c1e1..59f42db590 100644 --- a/unofficial/c100000195.lua +++ b/unofficial/c100000195.lua @@ -32,4 +32,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000196.lua b/unofficial/c100000196.lua index f8d15e5834..f4334c01aa 100644 --- a/unofficial/c100000196.lua +++ b/unofficial/c100000196.lua @@ -34,4 +34,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local ec=c:GetEquipTarget() local bc=ec:GetBattleTarget() if ec and bc and bc:IsRelateToBattle() and bc:IsAttribute(q) then Duel.Destroy(bc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000197.lua b/unofficial/c100000197.lua index 492eb96a96..115d5e0d1d 100644 --- a/unofficial/c100000197.lua +++ b/unofficial/c100000197.lua @@ -50,4 +50,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000198.lua b/unofficial/c100000198.lua index 51953d9c19..ad357ebd52 100644 --- a/unofficial/c100000198.lua +++ b/unofficial/c100000198.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.atcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.attg(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end @@ -40,4 +40,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000199.lua b/unofficial/c100000199.lua index 29d64dd148..f0f0c5017d 100644 --- a/unofficial/c100000199.lua +++ b/unofficial/c100000199.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then @@ -53,4 +53,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end else return Duel.ShuffleHand(tp)end end -end +end \ No newline at end of file diff --git a/unofficial/c100000200.lua b/unofficial/c100000200.lua index 18361b9199..00c879f011 100644 --- a/unofficial/c100000200.lua +++ b/unofficial/c100000200.lua @@ -25,7 +25,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetRange(LOCATION_GRAVE) e1:SetLabelObject(c==a and t or a) e1:SetCondition(s.spcon) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetOperation(s.spop) e1:SetReset(RESET_EVENT|RESETS_STANDARD&~RESET_TOGRAVE) c:RegisterEffect(e1) diff --git a/unofficial/c100000209.lua b/unofficial/c100000209.lua index a2b900c820..57bb9a4ef8 100644 --- a/unofficial/c100000209.lua +++ b/unofficial/c100000209.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,e,tp) - return c:IsSetCard(0x83) and c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_BATTLE) + return c:IsSetCard(SET_PUPPET) and c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_BATTLE) and c:IsLevelBelow(4) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil,c:GetCode(),e,tp) end function s.filter(c,code,e,tp) @@ -25,7 +25,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) end function s.cfilter2(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0x83) and c:IsControler(tp) and c:IsRelateToEffect(e) + return c:IsLevelBelow(4) and c:IsSetCard(SET_PUPPET) and c:IsControler(tp) and c:IsRelateToEffect(e) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil,c:GetCode(),e,tp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000210.lua b/unofficial/c100000210.lua index 21d01afc0e..4988a62583 100644 --- a/unofficial/c100000210.lua +++ b/unofficial/c100000210.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x1083) + return c:IsFaceup() and c:IsSetCard(SET_GIMMICK_PUPPET) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -59,4 +59,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000211.lua b/unofficial/c100000211.lua index 7ff0defa33..fc2d80e81a 100644 --- a/unofficial/c100000211.lua +++ b/unofficial/c100000211.lua @@ -2,7 +2,7 @@ --String of Destiny local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x1083)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_GIMMICK_PUPPET)) --to grave local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) @@ -72,4 +72,4 @@ function s.indesop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) bc:RegisterEffect(e1,true) -end +end \ No newline at end of file diff --git a/unofficial/c100000212.lua b/unofficial/c100000212.lua index 0276e5491b..a5df178eb7 100644 --- a/unofficial/c100000212.lua +++ b/unofficial/c100000212.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c100000218.lua b/unofficial/c100000218.lua index 040946d355..5d3fc3a08b 100644 --- a/unofficial/c100000218.lua +++ b/unofficial/c100000218.lua @@ -50,4 +50,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000219.lua b/unofficial/c100000219.lua index d056da990f..12249adb09 100644 --- a/unofficial/c100000219.lua +++ b/unofficial/c100000219.lua @@ -24,4 +24,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,dam,REASON_EFFECT,true) Duel.Damage(1-tp,dam,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100000220.lua b/unofficial/c100000220.lua index 3cbc796452..3ee6996c41 100644 --- a/unofficial/c100000220.lua +++ b/unofficial/c100000220.lua @@ -53,4 +53,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,true,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000221.lua b/unofficial/c100000221.lua index d1130580fc..94a9205af3 100644 --- a/unofficial/c100000221.lua +++ b/unofficial/c100000221.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x6f} function s.cfilter(c,ft,tp) - return c:IsSetCard(0x6f) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) + return c:IsSetCard(SET_HEROIC) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(1) @@ -25,7 +25,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(g,REASON_COST) end function s.filter(c,e,tp) - return c:IsSetCard(0x6f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_HEROIC) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and s.filter(chkc,e,tp) end @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000222.lua b/unofficial/c100000222.lua index c6442862d6..ec28680943 100644 --- a/unofficial/c100000222.lua +++ b/unofficial/c100000222.lua @@ -17,8 +17,8 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return tp==ep end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,0x6f) end - local tc=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,0x6f):GetFirst() + if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,SET_HEROIC) end + local tc=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,SET_HEROIC):GetFirst() local atk=tc:GetAttack() Duel.Release(tc,REASON_COST) e:SetLabel(atk) @@ -32,4 +32,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000224.lua b/unofficial/c100000224.lua index 0d17834608..cc8f410d84 100644 --- a/unofficial/c100000224.lua +++ b/unofficial/c100000224.lua @@ -77,4 +77,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c100000225.lua b/unofficial/c100000225.lua index 85e3ba9886..fad3dd5fc2 100644 --- a/unofficial/c100000225.lua +++ b/unofficial/c100000225.lua @@ -20,7 +20,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetCountLimit(1) e1:SetCondition(s.thcon) e1:SetOperation(s.thop) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY then e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,3) e1:SetLabel(-1) else @@ -30,7 +30,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c) return c:IsMonster() and c:IsAbleToHand() @@ -50,4 +50,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100000226.lua b/unofficial/c100000226.lua index 68a3503599..d565c6f95b 100644 --- a/unofficial/c100000226.lua +++ b/unofficial/c100000226.lua @@ -29,4 +29,4 @@ function s.vala(e,c) end function s.vald(e,c) return c:GetBaseDefense() -end +end \ No newline at end of file diff --git a/unofficial/c100000227.lua b/unofficial/c100000227.lua index 2c30f6113f..fd80e0eadf 100644 --- a/unofficial/c100000227.lua +++ b/unofficial/c100000227.lua @@ -58,4 +58,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000228.lua b/unofficial/c100000228.lua index 8b3945eb29..799deb63b0 100644 --- a/unofficial/c100000228.lua +++ b/unofficial/c100000228.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end local g=Duel.GetMatchingGroup(Card.IsNegatableMonster,tp,LOCATION_MZONE,LOCATION_MZONE,nil) g:ForEach(function(tc) tc:NegateEffects(c,RESET_PHASE|PHASE_BATTLE,true) end) -end +end \ No newline at end of file diff --git a/unofficial/c100000233.lua b/unofficial/c100000233.lua index 1f311079b8..ab87302b56 100644 --- a/unofficial/c100000233.lua +++ b/unofficial/c100000233.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetValue(800) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c100000234.lua b/unofficial/c100000234.lua index a3fea59687..9f8628b8ee 100644 --- a/unofficial/c100000234.lua +++ b/unofficial/c100000234.lua @@ -18,4 +18,4 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return ep==tp and Duel.GetAttacker() and Duel.GetAttacker():IsControler(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c100000235.lua b/unofficial/c100000235.lua index 884b5626dd..e3f4f440df 100644 --- a/unofficial/c100000235.lua +++ b/unofficial/c100000235.lua @@ -106,4 +106,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c100000237.lua b/unofficial/c100000237.lua index 82fecc81ea..5b01717367 100644 --- a/unofficial/c100000237.lua +++ b/unofficial/c100000237.lua @@ -85,4 +85,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c100000238.lua b/unofficial/c100000238.lua index 6d82708fe4..aa9b45b56b 100644 --- a/unofficial/c100000238.lua +++ b/unofficial/c100000238.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=g:GetFirst() local c=e:GetHandler() Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c100000239.lua b/unofficial/c100000239.lua index ef0c07609e..9cea0501ca 100644 --- a/unofficial/c100000239.lua +++ b/unofficial/c100000239.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.gfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local ct=Duel.GetMatchingGroupCount(s.gfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Draw(p,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000241.lua b/unofficial/c100000241.lua index 327d744e17..99d7e549e7 100644 --- a/unofficial/c100000241.lua +++ b/unofficial/c100000241.lua @@ -17,7 +17,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() return a:IsOnField() and d and d:IsFaceup() and d:IsControler(tp) - and (d:IsSetCard(0x55) or d:IsCode(31801517)) and d:IsAbleToRemove() + and (d:IsSetCard(SET_PHOTON) or d:IsCode(31801517)) and d:IsAbleToRemove() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(a,POS_FACEUP,REASON_EFFECT) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000242.lua b/unofficial/c100000242.lua index 7ca4313a0c..0fe1aeb6d7 100644 --- a/unofficial/c100000242.lua +++ b/unofficial/c100000242.lua @@ -25,7 +25,7 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) return #eg==1 and s.cfilter(tg) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x55) + return c:IsFaceup() and c:IsSetCard(SET_PHOTON) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) local tc=eg:GetFirst() @@ -62,4 +62,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if p==2 or p==3 then Duel.Damage(1-tp,tc:GetLevel()*100,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000243.lua b/unofficial/c100000243.lua index f2afa1f0f7..4d2f2984f8 100644 --- a/unofficial/c100000243.lua +++ b/unofficial/c100000243.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000244.lua b/unofficial/c100000244.lua index 17de378c32..de66a5c681 100644 --- a/unofficial/c100000244.lua +++ b/unofficial/c100000244.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.spfilter(c) - return c:IsFaceup() and c:IsSetCard(0x27) + return c:IsFaceup() and c:IsSetCard(SET_TG) end function s.spcon(e,c) if c==nil then return true end diff --git a/unofficial/c100000245.lua b/unofficial/c100000245.lua index 6b3b18430a..3e399861a4 100644 --- a/unofficial/c100000245.lua +++ b/unofficial/c100000245.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) end s.listed_series={0x27} function s.dircon(e) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x27),e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_TG),e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) end function s.descon(e,tp,eg,ep,ev,re,r,rp,chk) return ep~=tp and Duel.GetAttackTarget()==nil @@ -38,4 +38,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000246.lua b/unofficial/c100000246.lua index b616d6d9bd..c072c18b2c 100644 --- a/unofficial/c100000246.lua +++ b/unofficial/c100000246.lua @@ -18,7 +18,7 @@ end function s.cfilter(c,e,tp) if not c:IsCode(57116033) or not c:IsAbleToGraveAsCost() then return false end local ct=c:GetSequence()<5 and 1 or 0 - local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,c) + local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,c) return #g>2 and aux.SelectUnselectGroup(g,e,tp,3,3,aux.ChkfMMZ(1-ct),0) end function s.costfilter(c) @@ -29,7 +29,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local tg=Duel.SelectMatchingCard(tp,s.cfilter1,tp,LOCATION_MZONE,0,1,1,nil) local ct=tg:GetFirst():GetSequence()<5 and 1 or 0 - local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,tg) + local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,tg) local sg=aux.SelectUnselectGroup(g,e,tp,3,3,aux.ChkfMMZ(1-ct),1,tp,HINTMSG_TOREMOVE) Duel.SendtoGrave(tg,REASON_COST) Duel.Remove(sg,POS_FACEUP,REASON_COST) @@ -41,15 +41,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp):GetFirst() if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000247.lua b/unofficial/c100000247.lua index 351738bbe0..aa4301dbc7 100644 --- a/unofficial/c100000247.lua +++ b/unofficial/c100000247.lua @@ -104,4 +104,4 @@ function s.activate2(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*ct) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000248.lua b/unofficial/c100000248.lua index 2b77857f0c..c7e1be6c3b 100644 --- a/unofficial/c100000248.lua +++ b/unofficial/c100000248.lua @@ -18,4 +18,4 @@ function s.initial_effect(c) end function s.tg(e,c) return c:GetPosition()==POS_FACEUP_DEFENSE -end +end \ No newline at end of file diff --git a/unofficial/c100000250.lua b/unofficial/c100000250.lua index d67aa375f6..c6aa8de94f 100644 --- a/unofficial/c100000250.lua +++ b/unofficial/c100000250.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsSetCard(0x41) and c:GetLevel()>2 and not c:IsPublic() + return c:IsSetCard(SET_LV) and c:GetLevel()>2 and not c:IsPublic() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND,0,1,nil) end @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000251.lua b/unofficial/c100000251.lua index db6c33819f..548c428f27 100644 --- a/unofficial/c100000251.lua +++ b/unofficial/c100000251.lua @@ -18,11 +18,11 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.cfilter(c,e,tp,ft) local ct=c:IsControler(tp) and c:GetSequence()<5 and 1 or 0 - return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,c,e,tp,ft+ct) + return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,c,e,tp,ft+ct) end function s.rmfilter(c,e,tp,ft) local ct=c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5 and 1 or 0 - if not c:IsSetCard(0x41) or not c:IsAbleToRemoveAsCost() or not aux.SpElimFilter(c,true) or ct+ft<=0 then return false end + if not c:IsSetCard(SET_LV) or not c:IsAbleToRemoveAsCost() or not aux.SpElimFilter(c,true) or ct+ft<=0 then return false end local class=c:GetMetatable(true) return class and class.listed_names and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,class,e,tp) end @@ -43,7 +43,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tc=Duel.SelectReleaseGroupCost(tp,s.cfilter,1,1,false,nil,nil,e,tp,ft):GetFirst() local ct=tc:IsControler(tp) and tc:GetSequence()<5 and 1 or 0 Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g2=Duel.SelectMatchingCard(tp,s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,tc,e,tp,ct+ft) + local g2=Duel.SelectMatchingCard(tp,s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,tc,e,tp,ct+ft) local code=g2:GetFirst():GetCode() Duel.Release(tc,REASON_COST) Duel.Remove(g2,POS_FACEUP,REASON_COST) @@ -60,4 +60,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000252.lua b/unofficial/c100000252.lua index e1aff482c5..926d4ce5fe 100644 --- a/unofficial/c100000252.lua +++ b/unofficial/c100000252.lua @@ -16,10 +16,10 @@ function s.initial_effect(c) end s.listed_series={0x41} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentPhase()==PHASE_END and Duel.GetTurnPlayer()==1-tp + return Duel.GetCurrentPhase()==PHASE_END and Duel.IsTurnPlayer(1-tp) end function s.costfilter(c,e,tp,ft) - if not c:IsSetCard(0x41) or not c:IsAbleToGraveAsCost() then return false end + if not c:IsSetCard(SET_LV) or not c:IsAbleToGraveAsCost() then return false end local class=c:GetMetatable(true) return (ft>0 or c:GetSequence()<5) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,class,e,tp) end @@ -59,4 +59,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000253.lua b/unofficial/c100000253.lua index 2643ee6225..7121ddbd75 100644 --- a/unofficial/c100000253.lua +++ b/unofficial/c100000253.lua @@ -14,19 +14,19 @@ function s.filter(c,code) return c:IsFaceup() and c:IsCode(code) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x41) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_LV) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil,c:GetCode()) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000254.lua b/unofficial/c100000254.lua index 5db65233d9..4c25e66fa2 100644 --- a/unofficial/c100000254.lua +++ b/unofficial/c100000254.lua @@ -19,16 +19,16 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end end function s.filter(c,e,tp,code) - return c:IsSetCard(0x41) and c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_LV) and c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.cfilter(c) - return c:IsSetCard(0x41) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_LV) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.rescon(sg,e,tp,mg) return aux.ChkfMMZ(1)(sg,e,tp,mg) and sg:GetClassCount(Card.GetCode)==1 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil,e,tp,sg:GetFirst():GetCode()) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if chk==0 then if e:GetLabel()~=1 then return false end e:SetLabel(0) @@ -63,4 +63,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100000255.lua b/unofficial/c100000255.lua index 710df0e152..7d9b0b7de2 100644 --- a/unofficial/c100000255.lua +++ b/unofficial/c100000255.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,2,2,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000256.lua b/unofficial/c100000256.lua index 2e132a419c..822686bced 100644 --- a/unofficial/c100000256.lua +++ b/unofficial/c100000256.lua @@ -20,4 +20,4 @@ function s.initial_effect(c) end function s.val(e,c) return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsRace,RACE_YOKAI),c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())*200 -end +end \ No newline at end of file diff --git a/unofficial/c100000257.lua b/unofficial/c100000257.lua index 505de7d77f..d9c86deb4d 100644 --- a/unofficial/c100000257.lua +++ b/unofficial/c100000257.lua @@ -30,16 +30,16 @@ function s.cfilter(c,code) return c:IsCode(code) and c:IsAbleToGraveAsCost() end function s.ctcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,6007213) - and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,32491822) - and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,69890967) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,6007213) + and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,32491822) + and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,69890967) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g1=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,6007213) + local g1=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,6007213) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g2=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,32491822) + local g2=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,32491822) g1:Merge(g2) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g3=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,69890967) + local g3=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,69890967) g1:Merge(g3) Duel.SendtoGrave(g1,REASON_COST) end @@ -74,4 +74,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_AVOID_BATTLE_DAMAGE) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c100000258.lua b/unofficial/c100000258.lua index d176722a7e..26b6df7218 100644 --- a/unofficial/c100000258.lua +++ b/unofficial/c100000258.lua @@ -120,4 +120,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000260.lua b/unofficial/c100000260.lua index 6261548744..3ec204d8cd 100644 --- a/unofficial/c100000260.lua +++ b/unofficial/c100000260.lua @@ -27,4 +27,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,1,1,nil) Duel.XyzSummon(tp,sg:GetFirst(),nil) end -end +end \ No newline at end of file diff --git a/unofficial/c100000261.lua b/unofficial/c100000261.lua index 83a5dd542c..1a8f2edaa3 100644 --- a/unofficial/c100000261.lua +++ b/unofficial/c100000261.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000263.lua b/unofficial/c100000263.lua index 01b45c7e11..5bdac029da 100644 --- a/unofficial/c100000263.lua +++ b/unofficial/c100000263.lua @@ -40,4 +40,4 @@ function s.activate2(e,tp,eg,ep,ev,re,r,rp) if tc:IsFaceup() then Duel.Overlay(tc,c) end -end +end \ No newline at end of file diff --git a/unofficial/c100000264.lua b/unofficial/c100000264.lua index c0737bbf2e..9b46862ab8 100644 --- a/unofficial/c100000264.lua +++ b/unofficial/c100000264.lua @@ -40,4 +40,4 @@ function s.Operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000265.lua b/unofficial/c100000265.lua index b4098abeca..7559155715 100644 --- a/unofficial/c100000265.lua +++ b/unofficial/c100000265.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=g:Filter(Card.IsRelateToEffect,nil,e) if #sg~=2 then return end Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c100000270.lua b/unofficial/c100000270.lua index bc34d8ee24..cf9692df1d 100644 --- a/unofficial/c100000270.lua +++ b/unofficial/c100000270.lua @@ -48,4 +48,4 @@ function s.drcon2(e) local c=e:GetHandler() local g=Duel.GetDecktopGroup(e:GetHandlerPlayer(),1) return g:GetFirst()==c and c:IsFaceup() and Duel.GetTurnPlayer()==e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c100000271.lua b/unofficial/c100000271.lua index cee5772779..d98881f535 100644 --- a/unofficial/c100000271.lua +++ b/unofficial/c100000271.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(p,d,REASON_EFFECT) Duel.SendtoDeck(tc,nil,0,REASON_EFFECT) tc:ReverseInDeck() -end +end \ No newline at end of file diff --git a/unofficial/c100000272.lua b/unofficial/c100000272.lua index eec76e300b..0c02d57a48 100644 --- a/unofficial/c100000272.lua +++ b/unofficial/c100000272.lua @@ -36,7 +36,7 @@ end s.listed_names={83965310} --Destiny HERO - Plasma s.counter_place_list={0x92} function s.countercon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,83965310),tp,LOCATION_MZONE,0,1,nil) + return Duel.IsTurnPlayer(1-tp) and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,83965310),tp,LOCATION_MZONE,0,1,nil) and e:GetHandler():IsCanAddCounter(0x92,1) end function s.counterop(e,tp,eg,ep,ev,re,r,rp) @@ -65,4 +65,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk/2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000274.lua b/unofficial/c100000274.lua index 3242fcc10c..978e5e6c77 100644 --- a/unofficial/c100000274.lua +++ b/unofficial/c100000274.lua @@ -56,7 +56,7 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) end end function s.ctcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.cttg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 end diff --git a/unofficial/c100000275.lua b/unofficial/c100000275.lua index ff5a067f74..8434ed3763 100644 --- a/unofficial/c100000275.lua +++ b/unofficial/c100000275.lua @@ -55,4 +55,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000276.lua b/unofficial/c100000276.lua index d144f88d7e..648e15b1c1 100644 --- a/unofficial/c100000276.lua +++ b/unofficial/c100000276.lua @@ -16,7 +16,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE end function s.filter(c) - return c:IsSetCard(0xc008) and c:GetAttackAnnouncedCount()>0 and c:GetEquipCount()>0 + return c:IsSetCard(SET_DESTINY_HERO) and c:GetAttackAnnouncedCount()>0 and c:GetEquipCount()>0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -33,7 +33,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local eqg=tc:GetEquipGroup() if #eqg>0 then local des=Duel.Destroy(eqg,REASON_EFFECT) - if tc:IsSetCard(0xc008) then + if tc:IsSetCard(SET_DESTINY_HERO) then local atk=tc:GetAttack() local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) diff --git a/unofficial/c100000277.lua b/unofficial/c100000277.lua index ebf5578789..7abcb4c9eb 100644 --- a/unofficial/c100000277.lua +++ b/unofficial/c100000277.lua @@ -24,7 +24,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(g,REASON_COST) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and s.spfilter(chkc,e,tp) end @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000278.lua b/unofficial/c100000278.lua index bf556c8397..6b2bf65fae 100644 --- a/unofficial/c100000278.lua +++ b/unofficial/c100000278.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc1:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000280.lua b/unofficial/c100000280.lua index 878bb0ad9d..21a648884d 100644 --- a/unofficial/c100000280.lua +++ b/unofficial/c100000280.lua @@ -44,4 +44,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,v=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,v,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000281.lua b/unofficial/c100000281.lua index b049b3b492..015514977e 100644 --- a/unofficial/c100000281.lua +++ b/unofficial/c100000281.lua @@ -33,4 +33,4 @@ end function s.recop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000282.lua b/unofficial/c100000282.lua index 2946d3ed03..bb92604f41 100644 --- a/unofficial/c100000282.lua +++ b/unofficial/c100000282.lua @@ -36,4 +36,4 @@ function s.deckdesop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000285.lua b/unofficial/c100000285.lua index 9990c99cd0..bfa576c976 100644 --- a/unofficial/c100000285.lua +++ b/unofficial/c100000285.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000286.lua b/unofficial/c100000286.lua index 2a73ec1e67..3f5a4db37d 100644 --- a/unofficial/c100000286.lua +++ b/unofficial/c100000286.lua @@ -87,4 +87,4 @@ function s.dop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(RESET_TURN_SET) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000287.lua b/unofficial/c100000287.lua index f601b4e8b7..80a8bde7d1 100644 --- a/unofficial/c100000287.lua +++ b/unofficial/c100000287.lua @@ -31,12 +31,12 @@ function s.initial_effect(c) end s.listed_series={0x1178} function s.costfilter(c) - return c:IsSetCard(0x1178) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_BARIANS) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.operation(e,tp,eg,ep,ev,re,r,rp) diff --git a/unofficial/c100000290.lua b/unofficial/c100000290.lua index c7e2d183d9..4f48374d6e 100644 --- a/unofficial/c100000290.lua +++ b/unofficial/c100000290.lua @@ -45,4 +45,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local ct=g:FilterCount(s.cfilter,nil) if ct==0 then return end local ct=Duel.Damage(1-tp,ct*500,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000291.lua b/unofficial/c100000291.lua index 48e63c563f..45f859409d 100644 --- a/unofficial/c100000291.lua +++ b/unofficial/c100000291.lua @@ -54,4 +54,4 @@ end function s.droperation(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Draw(tp,e:GetLabel(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000293.lua b/unofficial/c100000293.lua index 2eba1cc7a9..23a9a614bf 100644 --- a/unofficial/c100000293.lua +++ b/unofficial/c100000293.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000295.lua b/unofficial/c100000295.lua index 934e4c0d1b..59456443aa 100644 --- a/unofficial/c100000295.lua +++ b/unofficial/c100000295.lua @@ -14,10 +14,10 @@ function s.cfilter(c) return c:IsFaceup() and c:IsCode(CARD_HARPIE_LADY) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,2,nil) and Duel.GetTurnPlayer()==1-tp + return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,2,nil) and Duel.IsTurnPlayer(1-tp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000296.lua b/unofficial/c100000296.lua index e76e0f7365..ed98cb48bf 100644 --- a/unofficial/c100000296.lua +++ b/unofficial/c100000296.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(eg,REASON_EFFECT) end Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE|PHASE_BATTLE,1) -end +end \ No newline at end of file diff --git a/unofficial/c100000297.lua b/unofficial/c100000297.lua index 320ea7eeb9..9b992d5faf 100644 --- a/unofficial/c100000297.lua +++ b/unofficial/c100000297.lua @@ -40,4 +40,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and c:CheckUniqueOnField(tp) then Duel.Equip(tp,c,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000301.lua b/unofficial/c100000301.lua index fb283f9959..e3e8ba9890 100644 --- a/unofficial/c100000301.lua +++ b/unofficial/c100000301.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) - e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) + e1:SetRange(LOCATION_HAND|LOCATION_GRAVE) e1:SetCondition(s.spcon) e1:SetTarget(s.sptg) e1:SetOperation(s.spop) @@ -35,11 +35,11 @@ function s.spcon(e,c) if not op or op(e,c) then return false end end local tp=c:GetControler() - local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,e:GetHandler()) + local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,e:GetHandler()) return aux.SelectUnselectGroup(rg,e,tp,3,3,aux.ChkfMMZ(1),0) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,c) - local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,e:GetHandler()) + local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,e:GetHandler()) local g=aux.SelectUnselectGroup(rg,e,tp,3,3,aux.ChkfMMZ(1),1,tp,HINTMSG_REMOVE,nil,nil,true) if #g~=3 then return false end g:KeepAlive() @@ -67,4 +67,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000302.lua b/unofficial/c100000302.lua index cf84983e39..4da7d10bce 100644 --- a/unofficial/c100000302.lua +++ b/unofficial/c100000302.lua @@ -47,4 +47,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) s.equipop(c,e,tp,tc) else Duel.SendtoGrave(tc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000303.lua b/unofficial/c100000303.lua index 33760b6a04..184a613894 100644 --- a/unofficial/c100000303.lua +++ b/unofficial/c100000303.lua @@ -47,4 +47,4 @@ function s.atkcon(e) end function s.atktg(e,c) return c~=e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c100000307.lua b/unofficial/c100000307.lua index dc5cc83d7b..948952c0ec 100644 --- a/unofficial/c100000307.lua +++ b/unofficial/c100000307.lua @@ -65,4 +65,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100000308.lua b/unofficial/c100000308.lua index 42487ba5df..9dae65c2df 100644 --- a/unofficial/c100000308.lua +++ b/unofficial/c100000308.lua @@ -29,11 +29,11 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) - and Duel.IsExistingMatchingCard(s.gfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,2,nil) end + and Duel.IsExistingMatchingCard(s.gfilter,tp,LOCATION_ONFIELD|LOCATION_HAND,0,2,nil) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) end function s.operation(e,tp,eg,ep,ev,re,r,rp) - local g1=Duel.GetMatchingGroup(s.gfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,0,nil) + local g1=Duel.GetMatchingGroup(s.gfilter,tp,LOCATION_ONFIELD|LOCATION_HAND,0,nil) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or #g1~=2 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local g2=g1:Select(tp,2,2,nil) @@ -51,4 +51,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() tc:CompleteProcedure() -end +end \ No newline at end of file diff --git a/unofficial/c100000309.lua b/unofficial/c100000309.lua index 51cf976844..1a572c4e45 100644 --- a/unofficial/c100000309.lua +++ b/unofficial/c100000309.lua @@ -72,7 +72,7 @@ end function s.discon(e,tp,eg,ep,ev,re,r,rp) return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and Duel.GetAttacker() and Duel.GetAttacker():IsInfinity() and ep==1-tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_TRAP) and Duel.IsChainNegatable(ev) - and Duel.GetTurnPlayer()==tp + and Duel.IsTurnPlayer(tp) end function s.distg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -85,4 +85,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000312.lua b/unofficial/c100000312.lua index 925f8be0b0..e88362cbf3 100644 --- a/unofficial/c100000312.lua +++ b/unofficial/c100000312.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000315.lua b/unofficial/c100000315.lua index 7051cd03be..f48a9f9fdc 100644 --- a/unofficial/c100000315.lua +++ b/unofficial/c100000315.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) end function s.atcon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE)==0 -end +end \ No newline at end of file diff --git a/unofficial/c100000316.lua b/unofficial/c100000316.lua index fbf8e3bf81..16c40bcc87 100644 --- a/unofficial/c100000316.lua +++ b/unofficial/c100000316.lua @@ -7,4 +7,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_REFLECT_BATTLE_DAMAGE) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c100000317.lua b/unofficial/c100000317.lua index f73af5628d..c16732005e 100644 --- a/unofficial/c100000317.lua +++ b/unofficial/c100000317.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000318.lua b/unofficial/c100000318.lua index 0e8130db3d..b95514bb11 100644 --- a/unofficial/c100000318.lua +++ b/unofficial/c100000318.lua @@ -19,15 +19,15 @@ function s.filter(c,e,tp) return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsRace(RACE_DINOSAUR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.rescon(sg,e,tp,mg) - return aux.ChkfMMZ(1)(sg,e,tp,mg) and sg:IsExists(s.chk,1,nil,sg) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,sg,e,tp) + return aux.ChkfMMZ(1)(sg,e,tp,mg) and sg:IsExists(s.chk,1,nil,sg) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,sg,e,tp) end function s.chk(c,sg) return c:IsRace(RACE_MACHINE) and sg:IsExists(Card.IsRace,1,c,RACE_DINOSAUR) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(1) - local g1=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,nil,RACE_MACHINE) - local g2=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE+LOCATION_GRAVE,0,nil,RACE_DINOSAUR) + local g1=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND|LOCATION_MZONE|LOCATION_GRAVE,0,nil,RACE_MACHINE) + local g2=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND|LOCATION_MZONE|LOCATION_GRAVE,0,nil,RACE_DINOSAUR) local g=g1:Clone() g:Merge(g2) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2 and #g1>0 and #g2>0 @@ -39,15 +39,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000320.lua b/unofficial/c100000320.lua index 996efffcc2..f02f415419 100644 --- a/unofficial/c100000320.lua +++ b/unofficial/c100000320.lua @@ -26,4 +26,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000321.lua b/unofficial/c100000321.lua index 4d6e381f5d..4e3555a098 100644 --- a/unofficial/c100000321.lua +++ b/unofficial/c100000321.lua @@ -25,5 +25,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD_EXC_GRAVE) tc:RegisterEffect(e2) end -end - +end \ No newline at end of file diff --git a/unofficial/c100000322.lua b/unofficial/c100000322.lua index 6fd9a3cdd0..b9a31e1cf7 100644 --- a/unofficial/c100000322.lua +++ b/unofficial/c100000322.lua @@ -13,4 +13,4 @@ end function s.efilter(e,re) return re:GetOwner():IsCode(id+1) -end +end \ No newline at end of file diff --git a/unofficial/c100000323.lua b/unofficial/c100000323.lua index c3422b67d1..749ba9acee 100644 --- a/unofficial/c100000323.lua +++ b/unofficial/c100000323.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,ct,nil) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000330.lua b/unofficial/c100000330.lua index f31ee3b5ad..5eac3b489b 100644 --- a/unofficial/c100000330.lua +++ b/unofficial/c100000330.lua @@ -39,13 +39,13 @@ function s.value(e,re,dam,r,rp,rc) end end function s.actcond(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetHandler():GetTurnID()~=Duel.GetTurnCount() + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetTurnID()~=Duel.GetTurnCount() end function s.filter(c,tp) return c:IsCode(100000331) and c:GetActivateEffect():IsActivatable(tp,true,true) end function s.actop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE+LOCATION_HAND+LOCATION_DECK,0,1,1,nil,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE|LOCATION_HAND|LOCATION_DECK,0,1,1,nil,tp):GetFirst() Duel.ActivateFieldSpell(tc,e,tp,eg,ep,ev,re,r,rp) -end +end \ No newline at end of file diff --git a/unofficial/c100000331.lua b/unofficial/c100000331.lua index 89deb51829..6458318f7d 100644 --- a/unofficial/c100000331.lua +++ b/unofficial/c100000331.lua @@ -39,13 +39,13 @@ function s.value(e,re,dam,r,rp,rc) end end function s.accon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetHandler():GetTurnID()~=Duel.GetTurnCount() + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetTurnID()~=Duel.GetTurnCount() end function s.filter(c,tp) return c:IsCode(100000332) and c:GetActivateEffect():IsActivatable(tp,true,true) end function s.acop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE+LOCATION_HAND+LOCATION_DECK,0,1,1,nil,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE|LOCATION_HAND|LOCATION_DECK,0,1,1,nil,tp):GetFirst() Duel.ActivateFieldSpell(tc,e,tp,eg,ep,ev,re,r,rp) -end +end \ No newline at end of file diff --git a/unofficial/c100000332.lua b/unofficial/c100000332.lua index baf7534280..d1bec957ee 100644 --- a/unofficial/c100000332.lua +++ b/unofficial/c100000332.lua @@ -33,14 +33,14 @@ function s.initial_effect(c) end s.listed_names={100000333} function s.accon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetHandler():GetTurnID()~=Duel.GetTurnCount() + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetTurnID()~=Duel.GetTurnCount() end function s.filter(c,tp) return c:IsCode(100000333) and c:GetActivateEffect():IsActivatable(tp,true,true) end function s.actop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE+LOCATION_HAND+LOCATION_DECK,0,1,1,nil,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE|LOCATION_HAND|LOCATION_DECK,0,1,1,nil,tp):GetFirst() Duel.ActivateFieldSpell(tc,e,tp,eg,ep,ev,re,r,rp) end function s.spfilter(c,e,tp) @@ -59,4 +59,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c100000333.lua b/unofficial/c100000333.lua index 990cc33194..5b7ed04d97 100644 --- a/unofficial/c100000333.lua +++ b/unofficial/c100000333.lua @@ -53,14 +53,13 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) end end function s.actcond(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetHandler():GetTurnID()~=Duel.GetTurnCount() + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetTurnID()~=Duel.GetTurnCount() end function s.filter(c,tp) return c:IsCode(100000330) and c:GetActivateEffect():IsActivatable(tp,true,true) end function s.actop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE+LOCATION_HAND+LOCATION_DECK,0,1,1,nil,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE|LOCATION_HAND|LOCATION_DECK,0,1,1,nil,tp):GetFirst() Duel.ActivateFieldSpell(tc,e,tp,eg,ep,ev,re,r,rp) -end - +end \ No newline at end of file diff --git a/unofficial/c100000335.lua b/unofficial/c100000335.lua index 39f9e441bd..947c17533a 100644 --- a/unofficial/c100000335.lua +++ b/unofficial/c100000335.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000336.lua b/unofficial/c100000336.lua index 68a530aa3f..e593c7cdb8 100644 --- a/unofficial/c100000336.lua +++ b/unofficial/c100000336.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(sg,REASON_EFFECT)>0 then e:GetHandler():RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000343.lua b/unofficial/c100000343.lua index d33c0ae221..56b5658bac 100644 --- a/unofficial/c100000343.lua +++ b/unofficial/c100000343.lua @@ -39,4 +39,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(-500) bc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c100000344.lua b/unofficial/c100000344.lua index fdae33613d..84f8e48aa0 100644 --- a/unofficial/c100000344.lua +++ b/unofficial/c100000344.lua @@ -28,4 +28,4 @@ function s.retop(e) if tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000345.lua b/unofficial/c100000345.lua index dedaef445f..242e6497f0 100644 --- a/unofficial/c100000345.lua +++ b/unofficial/c100000345.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000346.lua b/unofficial/c100000346.lua index 75f81a9060..2c5085f5af 100644 --- a/unofficial/c100000346.lua +++ b/unofficial/c100000346.lua @@ -32,4 +32,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_DECK,0,1,1,ct) Duel.SendtoHand(dg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,dg) -end +end \ No newline at end of file diff --git a/unofficial/c100000347.lua b/unofficial/c100000347.lua index cac6905d18..49b68b626e 100644 --- a/unofficial/c100000347.lua +++ b/unofficial/c100000347.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000348.lua b/unofficial/c100000348.lua index b23136a13d..0065dd63dd 100644 --- a/unofficial/c100000348.lua +++ b/unofficial/c100000348.lua @@ -42,4 +42,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000349.lua b/unofficial/c100000349.lua index e17210d901..73815d151d 100644 --- a/unofficial/c100000349.lua +++ b/unofficial/c100000349.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100000350.lua b/unofficial/c100000350.lua index be78c96592..b14a2ced54 100644 --- a/unofficial/c100000350.lua +++ b/unofficial/c100000350.lua @@ -15,4 +15,4 @@ function s.initial_effect(c) e2:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER)) e2:SetValue(1) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000351.lua b/unofficial/c100000351.lua index 50e0e21bbf..7328dd46b0 100644 --- a/unofficial/c100000351.lua +++ b/unofficial/c100000351.lua @@ -53,4 +53,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(tc,g) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000355.lua b/unofficial/c100000355.lua index a24976d6d7..1a8eb0f6f5 100644 --- a/unofficial/c100000355.lua +++ b/unofficial/c100000355.lua @@ -53,4 +53,4 @@ end function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsReason(REASON_BATTLE) end return true -end +end \ No newline at end of file diff --git a/unofficial/c100000360.lua b/unofficial/c100000360.lua index f969f8e72d..f46d32c542 100644 --- a/unofficial/c100000360.lua +++ b/unofficial/c100000360.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,600,REASON_EFFECT,true) Duel.Damage(1-tp,600,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100000361.lua b/unofficial/c100000361.lua index d669660e83..e82ad9368d 100644 --- a/unofficial/c100000361.lua +++ b/unofficial/c100000361.lua @@ -28,4 +28,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000363.lua b/unofficial/c100000363.lua index fc0026c9ba..dede2922f3 100644 --- a/unofficial/c100000363.lua +++ b/unofficial/c100000363.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000364.lua b/unofficial/c100000364.lua index 3e931fbeb6..211ab56f08 100644 --- a/unofficial/c100000364.lua +++ b/unofficial/c100000364.lua @@ -44,4 +44,4 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c100000365.lua b/unofficial/c100000365.lua index e067bea2d3..91f38fa6dc 100644 --- a/unofficial/c100000365.lua +++ b/unofficial/c100000365.lua @@ -62,4 +62,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000370.lua b/unofficial/c100000370.lua index cfa053186e..a341c0351d 100644 --- a/unofficial/c100000370.lua +++ b/unofficial/c100000370.lua @@ -68,4 +68,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) if c and c:IsFaceup() and c:IsRelateToEffect(e) then c:AddCounter(0x95,1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000380.lua b/unofficial/c100000380.lua index 2704096019..7b7592eaf5 100644 --- a/unofficial/c100000380.lua +++ b/unofficial/c100000380.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000381.lua b/unofficial/c100000381.lua index 854cacd317..81eb97b0f4 100644 --- a/unofficial/c100000381.lua +++ b/unofficial/c100000381.lua @@ -31,4 +31,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000382.lua b/unofficial/c100000382.lua index c610a25eb5..3a5c634a7f 100644 --- a/unofficial/c100000382.lua +++ b/unofficial/c100000382.lua @@ -31,4 +31,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000383.lua b/unofficial/c100000383.lua index 6150523a32..f8e856b3c1 100644 --- a/unofficial/c100000383.lua +++ b/unofficial/c100000383.lua @@ -56,4 +56,4 @@ function s.target2(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetTargetPlayer(ep) Duel.SetTargetParam(200) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,200) -end +end \ No newline at end of file diff --git a/unofficial/c100000384.lua b/unofficial/c100000384.lua index 4184f7c281..63a8070509 100644 --- a/unofficial/c100000384.lua +++ b/unofficial/c100000384.lua @@ -92,4 +92,4 @@ end function s.recop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000390.lua b/unofficial/c100000390.lua index 20456c7607..c9cdd71ff9 100644 --- a/unofficial/c100000390.lua +++ b/unofficial/c100000390.lua @@ -3,12 +3,12 @@ local s,id=GetID() function s.initial_effect(c) --activate - local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,0x16),matfilter=aux.FALSE,extrafil=s.fextra,extraop=Fusion.BanishMaterial,extratg=s.extratg}) + local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,SET_ROID),matfilter=aux.FALSE,extrafil=s.fextra,extraop=Fusion.BanishMaterial,extratg=s.extratg}) c:RegisterEffect(e1) end s.listed_series={0x16} function s.filter(c,p) - return c:IsAbleToRemove() and c:IsSetCard(0x16,nil,SUMMON_TYPE_FUSION,p) + return c:IsAbleToRemove() and c:IsSetCard(SET_ROID,nil,SUMMON_TYPE_FUSION,p) end function s.fextra(e,tp,mg) if not Duel.IsPlayerAffectedByEffect(tp,69832741) then diff --git a/unofficial/c100000391.lua b/unofficial/c100000391.lua index 95bdd7e356..af0450751a 100644 --- a/unofficial/c100000391.lua +++ b/unofficial/c100000391.lua @@ -13,10 +13,10 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() - return tc and tc:IsFaceup() and tc:IsSetCard(0x16) + return tc and tc:IsFaceup() and tc:IsSetCard(SET_ROID) end function s.filter(c) - return c:IsSetCard(0x16) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_ROID) and c:IsMonster() and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100000410.lua b/unofficial/c100000410.lua index 6ad6f45cde..46c2c10ec7 100644 --- a/unofficial/c100000410.lua +++ b/unofficial/c100000410.lua @@ -19,7 +19,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.filter(c,e,tp) - return c:IsSetCard(0x123) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ROSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) @@ -34,4 +34,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000411.lua b/unofficial/c100000411.lua index cdb492a080..b0219eb690 100644 --- a/unofficial/c100000411.lua +++ b/unofficial/c100000411.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100000412.lua b/unofficial/c100000412.lua index 2dfdef5965..b06c5854b7 100644 --- a/unofficial/c100000412.lua +++ b/unofficial/c100000412.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) end s.listed_series={0x123} function s.filter(c,e,sp) - return c:IsSetCard(0x123) and c:IsCanBeSpecialSummoned(e,0,sp,false,false) + return c:IsSetCard(SET_ROSE) and c:IsCanBeSpecialSummoned(e,0,sp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g:GetFirst(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000413.lua b/unofficial/c100000413.lua index 8c4b400c0e..bf7dfc0072 100644 --- a/unofficial/c100000413.lua +++ b/unofficial/c100000413.lua @@ -18,12 +18,12 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return tp~=Duel.GetTurnPlayer() end function s.cosfilter(c) - return c:IsSetCard(0x123) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_ROSE) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cosfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cosfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cosfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.cosfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000414.lua b/unofficial/c100000414.lua index e82959e8d7..7edc0c4be7 100644 --- a/unofficial/c100000414.lua +++ b/unofficial/c100000414.lua @@ -40,4 +40,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000430.lua b/unofficial/c100000430.lua index 7b96f8b114..97d03e5ca3 100644 --- a/unofficial/c100000430.lua +++ b/unofficial/c100000430.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local dam=Duel.GetOperatedGroup():GetSum(Card.GetPreviousAttackOnField) Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000431.lua b/unofficial/c100000431.lua index ba29ca5b6b..7c159bf18b 100644 --- a/unofficial/c100000431.lua +++ b/unofficial/c100000431.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000432.lua b/unofficial/c100000432.lua index 47b2b9873e..10c7e8c2fc 100644 --- a/unofficial/c100000432.lua +++ b/unofficial/c100000432.lua @@ -56,4 +56,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000440.lua b/unofficial/c100000440.lua index 8604bca760..fee6523793 100644 --- a/unofficial/c100000440.lua +++ b/unofficial/c100000440.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000441.lua b/unofficial/c100000441.lua index d3c9aa8f90..5fd791a40d 100644 --- a/unofficial/c100000441.lua +++ b/unofficial/c100000441.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000442.lua b/unofficial/c100000442.lua index fabe8b7955..06eba09b3b 100644 --- a/unofficial/c100000442.lua +++ b/unofficial/c100000442.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000444.lua b/unofficial/c100000444.lua index 99a0a9be82..994446aed6 100644 --- a/unofficial/c100000444.lua +++ b/unofficial/c100000444.lua @@ -15,7 +15,7 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local at=Duel.GetAttackTarget() - return a:IsControler(tp) and a:IsSetCard(0x3013) and at:IsRelateToBattle() and not at:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED) + return a:IsControler(tp) and a:IsSetCard(SET_MEKLORD_EMPEROR) and at:IsRelateToBattle() and not at:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED) and not a:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED) end function s.cfilter(c) @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000445.lua b/unofficial/c100000445.lua index 67cffd273b..6a2f7dc98e 100644 --- a/unofficial/c100000445.lua +++ b/unofficial/c100000445.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000471.lua b/unofficial/c100000471.lua index 2ab1df1ade..d588b43701 100644 --- a/unofficial/c100000471.lua +++ b/unofficial/c100000471.lua @@ -24,11 +24,11 @@ function s.stage2(e,tc,tp,sg,chk) end end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() if g:GetFlagEffect(id)>0 then Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000474.lua b/unofficial/c100000474.lua index 73c9922168..6f7ba06531 100644 --- a/unofficial/c100000474.lua +++ b/unofficial/c100000474.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000475.lua b/unofficial/c100000475.lua index 566468ee06..b733f06fb0 100644 --- a/unofficial/c100000475.lua +++ b/unofficial/c100000475.lua @@ -14,7 +14,7 @@ function s.stage2(e,tc,tp,sg,chk) e1:SetCategory(CATEGORY_TOHAND) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then res=3 e1:SetLabel(Duel.GetTurnCount()) else @@ -66,4 +66,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c100000478.lua b/unofficial/c100000478.lua index e910fb1feb..e653e3f5d2 100644 --- a/unofficial/c100000478.lua +++ b/unofficial/c100000478.lua @@ -16,7 +16,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.PayLPCost(tp,1000) end function s.filter(c,e,tp) - return c:IsFaceup() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp,c:GetRace()) + return c:IsFaceup() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp,c:GetRace()) end function s.spfilter(c,e,tp,race) return c:IsLevel(4) and c:IsRace(race) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -24,7 +24,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.rescon(sg,e,tp,mg) return sg:GetClassCount(Card.GetRace)<=1 @@ -35,7 +35,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) race=race|tc:GetRace() end) local ft=math.min(Duel.GetLocationCount(tp,LOCATION_MZONE),2) - local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,race) + local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,race) if ft<1 or #g==0 then return end if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then ft=1 end local sg=aux.SelectUnselectGroup(g,e,tp,nil,ft,s.rescon,1,tp,HINTMSG_SPSUMMON,s.rescon) @@ -58,4 +58,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100000481.lua b/unofficial/c100000481.lua index 253f7f5fe6..2a23e85497 100644 --- a/unofficial/c100000481.lua +++ b/unofficial/c100000481.lua @@ -19,4 +19,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c100000483.lua b/unofficial/c100000483.lua index dcf058841a..b14c576644 100644 --- a/unofficial/c100000483.lua +++ b/unofficial/c100000483.lua @@ -51,4 +51,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() g:KeepAlive() end -end +end \ No newline at end of file diff --git a/unofficial/c100000488.lua b/unofficial/c100000488.lua index 1f9c414083..0313f9eebd 100644 --- a/unofficial/c100000488.lua +++ b/unofficial/c100000488.lua @@ -23,13 +23,13 @@ function s.spfilter(c,e,tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) local e1=Effect.CreateEffect(e:GetHandler()) @@ -38,5 +38,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) g:GetFirst():RegisterEffect(e1) end -end - +end \ No newline at end of file diff --git a/unofficial/c100000490.lua b/unofficial/c100000490.lua index 321d753799..33403e97bf 100644 --- a/unofficial/c100000490.lua +++ b/unofficial/c100000490.lua @@ -67,4 +67,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else matEff:Reset() end -end +end \ No newline at end of file diff --git a/unofficial/c100000498.lua b/unofficial/c100000498.lua index 15dbc6c7d2..cd2a081db6 100644 --- a/unofficial/c100000498.lua +++ b/unofficial/c100000498.lua @@ -40,4 +40,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0 then Duel.BreakEffect() end -end +end \ No newline at end of file diff --git a/unofficial/c100000501.lua b/unofficial/c100000501.lua index 8a0f8c8340..58d58877f7 100644 --- a/unofficial/c100000501.lua +++ b/unofficial/c100000501.lua @@ -2,13 +2,13 @@ --Vision Fusion (Manga) local s,id=GetID() function s.initial_effect(c) - local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,0x5008),aux.FALSE,s.fextra,nil,nil,nil,2) + local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,SET_VISION_HERO),aux.FALSE,s.fextra,nil,nil,nil,2) c:RegisterEffect(e1) end s.listed_series={0x5008} function s.mfilter(c) - return c:IsAbleToGrave() and c:IsFaceup() and c:IsSetCard(0x5008) + return c:IsAbleToGrave() and c:IsFaceup() and c:IsSetCard(SET_VISION_HERO) end function s.fextra(e,tp,mg) return Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_SZONE,0,nil) -end +end \ No newline at end of file diff --git a/unofficial/c100000502.lua b/unofficial/c100000502.lua index 26eec7268a..c5daffad80 100644 --- a/unofficial/c100000502.lua +++ b/unofficial/c100000502.lua @@ -14,13 +14,13 @@ function s.initial_effect(c) end s.listed_names={27780618} function s.cfilter(c,tp) - return c:IsPreviousLocation(LOCATION_ONFIELD) and (c:IsSetCard(0x5008) or c:IsCode(27780618)) and c:IsMonster() + return c:IsPreviousLocation(LOCATION_ONFIELD) and (c:IsSetCard(SET_VISION_HERO) or c:IsCode(27780618)) and c:IsMonster() end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.spfilter(c,e,tp) - return c:IsLevelBelow(4) and (c:IsSetCard(0x5008) or c:IsCode(27780618)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and (c:IsSetCard(SET_VISION_HERO) or c:IsCode(27780618)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c100000503.lua b/unofficial/c100000503.lua index 2cd64dd49d..3008665ead 100644 --- a/unofficial/c100000503.lua +++ b/unofficial/c100000503.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return r~=REASON_REPLACE and eg:GetFirst():IsControler(tp) end function s.filter(c) - return c:IsSetCard(0x5008) and c:IsFaceup() and Duel.GetAttacker():GetAttackableTarget():IsContains(c) + return c:IsSetCard(SET_VISION_HERO) and c:IsFaceup() and Duel.GetAttacker():GetAttackableTarget():IsContains(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and not Duel.GetAttacker():IsImmuneToEffect(e) then Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000504.lua b/unofficial/c100000504.lua index 8d95593ead..4f38c8003f 100644 --- a/unofficial/c100000504.lua +++ b/unofficial/c100000504.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) end s.listed_series={0x5008} function s.cfilter(c) - return c:IsSetCard(0x5008) and c:IsMonster() and c:IsFaceup() + return c:IsSetCard(SET_VISION_HERO) and c:IsMonster() and c:IsFaceup() end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -62,4 +62,4 @@ function s.rcon(e) end function s.atkval(e,c) return c:GetAttack()/2 -end +end \ No newline at end of file diff --git a/unofficial/c100000505.lua b/unofficial/c100000505.lua index cfb68baf78..f5da45902c 100644 --- a/unofficial/c100000505.lua +++ b/unofficial/c100000505.lua @@ -62,11 +62,11 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) + return Duel.IsMainPhase() and e:GetHandler():GetType()&(TYPE_TRAP+TYPE_CONTINUOUS)==(TYPE_TRAP+TYPE_CONTINUOUS) end function s.costfilter(c,ft,tp) - return c:IsSetCard(0x5008) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) + return c:IsSetCard(SET_VISION_HERO) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE,0) diff --git a/unofficial/c100000506.lua b/unofficial/c100000506.lua index 755b6e8fbf..70ca2758f3 100644 --- a/unofficial/c100000506.lua +++ b/unofficial/c100000506.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) end s.listed_names={27780618} function s.spfilter(c) - return (c:IsSetCard(0x5008) or c:IsCode(27780618)) and c:IsLevelBelow(4) and c:IsAbleToGraveAsCost() + return (c:IsSetCard(SET_VISION_HERO) or c:IsCode(27780618)) and c:IsLevelBelow(4) and c:IsAbleToGraveAsCost() end function s.spcon(e,c) if c==nil then return true end @@ -57,7 +57,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.tgfilter(c) - return (c:IsSetCard(0x5008) or c:IsCode(27780618)) and c:IsAbleToGrave() + return (c:IsSetCard(SET_VISION_HERO) or c:IsCode(27780618)) and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) end @@ -69,4 +69,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000507.lua b/unofficial/c100000507.lua index 8c833e2b78..4f36ad9420 100644 --- a/unofficial/c100000507.lua +++ b/unofficial/c100000507.lua @@ -62,11 +62,11 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) + return Duel.IsMainPhase() and e:GetHandler():GetType()&(TYPE_TRAP+TYPE_CONTINUOUS)==(TYPE_TRAP+TYPE_CONTINUOUS) end function s.costfilter(c,ft,tp) - return c:IsSetCard(0x5008) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) + return c:IsSetCard(SET_VISION_HERO) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE,0) @@ -87,7 +87,7 @@ function s.scon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsPreviousLocation(LOCATION_SZONE) end function s.filter(c,e,tp) - return c:IsSetCard(0x8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.stg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 diff --git a/unofficial/c100000508.lua b/unofficial/c100000508.lua index ab78030166..0dc1e1e7ac 100644 --- a/unofficial/c100000508.lua +++ b/unofficial/c100000508.lua @@ -19,7 +19,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.filter(c,e,sp) - return c:IsFaceup() and (c:IsSetCard(0x5008) or c:IsCode(27780618)) and c:IsCanBeSpecialSummoned(e,0,sp,true,false) + return c:IsFaceup() and (c:IsSetCard(SET_VISION_HERO) or c:IsCode(27780618)) and c:IsCanBeSpecialSummoned(e,0,sp,true,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -38,4 +38,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if ft>1 and Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then ft=1 end if ft<#sg then return end Duel.SpecialSummon(sg,0,tp,tp,true,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c100000509.lua b/unofficial/c100000509.lua index 47ce52d87d..99e26d2820 100644 --- a/unofficial/c100000509.lua +++ b/unofficial/c100000509.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) end s.listed_names={27780618} function s.tgfilter(c) - return (c:IsSetCard(0x5008) or c:IsCode(27780618)) and c:IsLevelBelow(4) and c:IsAbleToGrave() + return (c:IsSetCard(SET_VISION_HERO) or c:IsCode(27780618)) and c:IsLevelBelow(4) and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) end @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000510.lua b/unofficial/c100000510.lua index efb7d1fad2..d34cbe8928 100644 --- a/unofficial/c100000510.lua +++ b/unofficial/c100000510.lua @@ -61,11 +61,11 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) + return Duel.IsMainPhase() and e:GetHandler():GetType()&(TYPE_TRAP+TYPE_CONTINUOUS)==(TYPE_TRAP+TYPE_CONTINUOUS) end function s.costfilter(c,ft,tp) - return c:IsSetCard(0x5008) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) + return c:IsSetCard(SET_VISION_HERO) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE,0) diff --git a/unofficial/c100000511.lua b/unofficial/c100000511.lua index ed1bf6c9ba..ffffb99861 100644 --- a/unofficial/c100000511.lua +++ b/unofficial/c100000511.lua @@ -63,11 +63,11 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) + return Duel.IsMainPhase() and e:GetHandler():GetType()&(TYPE_TRAP+TYPE_CONTINUOUS)==(TYPE_TRAP+TYPE_CONTINUOUS) end function s.costfilter(c,ft,tp) - return c:IsSetCard(0x5008) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) + return c:IsSetCard(SET_VISION_HERO) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE,0) diff --git a/unofficial/c100000512.lua b/unofficial/c100000512.lua index d64918bf11..f4bc645bbc 100644 --- a/unofficial/c100000512.lua +++ b/unofficial/c100000512.lua @@ -29,4 +29,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD,e:GetHandler()) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000520.lua b/unofficial/c100000520.lua index 9e8206e5c3..d43b202acb 100644 --- a/unofficial/c100000520.lua +++ b/unofficial/c100000520.lua @@ -13,13 +13,13 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,tp) - return c:IsSetCard(0xa008) and c:IsPreviousControler(tp) + return c:IsSetCard(SET_MASKED_HERO) and c:IsPreviousControler(tp) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.spfilter(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0xa008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and c:IsSetCard(SET_MASKED_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000523.lua b/unofficial/c100000523.lua index 15d378eb2f..94ce255db7 100644 --- a/unofficial/c100000523.lua +++ b/unofficial/c100000523.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0xa008} function s.filter(c,e,tp) - return c:IsSetCard(0xa008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_MASKED_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000524.lua b/unofficial/c100000524.lua index 39eaf86da9..d74951d9d2 100644 --- a/unofficial/c100000524.lua +++ b/unofficial/c100000524.lua @@ -36,5 +36,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0xa008),e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil) -end + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_MASKED_HERO),e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil) +end \ No newline at end of file diff --git a/unofficial/c100000526.lua b/unofficial/c100000526.lua index 9532c5a84f..f7c769a004 100644 --- a/unofficial/c100000526.lua +++ b/unofficial/c100000526.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,39299733) end function s.filter(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0x122) and not c:IsHasEffect(EFFECT_CANNOT_DIRECT_ATTACK) and not c:IsHasEffect(EFFECT_DIRECT_ATTACK) + return c:IsFaceup() and c:IsSetCard(SET_VALKYRIE) and not c:IsHasEffect(EFFECT_CANNOT_DIRECT_ATTACK) and not c:IsHasEffect(EFFECT_DIRECT_ATTACK) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c100000527.lua b/unofficial/c100000527.lua index b6be071f12..ce64892448 100644 --- a/unofficial/c100000527.lua +++ b/unofficial/c100000527.lua @@ -2,7 +2,7 @@ --Fortune Chariot (Anime) local s,id=GetID() function s.initial_effect(c) - aux.AddUnionProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x122),true) + aux.AddUnionProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,SET_VALKYRIE),true) --direct_attack local e5=Effect.CreateEffect(c) e5:SetDescription(aux.Stringid(id,2)) @@ -33,4 +33,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EFFECT_DIRECT_ATTACK) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e:GetHandler():RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c100000528.lua b/unofficial/c100000528.lua index 27fa5c6ff1..2b6649d3c6 100644 --- a/unofficial/c100000528.lua +++ b/unofficial/c100000528.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0x122} function s.filter(c,e,tp) - return c:IsSetCard(0x122) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_VALKYRIE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000529.lua b/unofficial/c100000529.lua index 8e6d52e12b..91f592f280 100644 --- a/unofficial/c100000529.lua +++ b/unofficial/c100000529.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x122} function s.filter(c) - return c:IsSetCard(0x122) and c:IsFaceup() and c:IsPosition(POS_FACEUP_ATTACK) and c:IsCanChangePosition() + return c:IsSetCard(SET_VALKYRIE) and c:IsFaceup() and c:IsPosition(POS_FACEUP_ATTACK) and c:IsCanChangePosition() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) and tg2:GetFirst() and tg2:GetFirst():IsRelateToEffect(e) then Duel.Remove(tg2,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000530.lua b/unofficial/c100000530.lua index 3f1b9c2a1c..ebf02cc3ba 100644 --- a/unofficial/c100000530.lua +++ b/unofficial/c100000530.lua @@ -95,4 +95,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000531.lua b/unofficial/c100000531.lua index fb88bba51d..cdb7577b65 100644 --- a/unofficial/c100000531.lua +++ b/unofficial/c100000531.lua @@ -36,15 +36,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local lv=e:GetLabel() local rc=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_TOGRAVE) - local g=Duel.SelectMatchingCard(1-tp,s.filter,1-tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,rc,lv) + local g=Duel.SelectMatchingCard(1-tp,s.filter,1-tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,rc,lv) local tc=g:GetFirst() if tc then Duel.SendtoGrave(tc,REASON_EFFECT) Duel.ConfirmCards(tp,tc) else - local dg=Duel.GetFieldGroup(tp,0,LOCATION_DECK+LOCATION_HAND) + local dg=Duel.GetFieldGroup(tp,0,LOCATION_DECK|LOCATION_HAND) Duel.ConfirmCards(tp,dg) Duel.ShuffleDeck(1-tp) Duel.ShuffleHand(1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c100000532.lua b/unofficial/c100000532.lua index cb3da127b7..e2187327e9 100644 --- a/unofficial/c100000532.lua +++ b/unofficial/c100000532.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0x122} function s.filter(c) - return c:IsSetCard(0x122) and c:IsMonster() + return c:IsSetCard(SET_VALKYRIE) and c:IsMonster() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND,0,nil) @@ -64,4 +64,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.retfilter,nil,e:GetLabel()) g:DeleteGroup() Duel.SendtoDeck(tg,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000533.lua b/unofficial/c100000533.lua index e1c0b46660..2eab54ba40 100644 --- a/unofficial/c100000533.lua +++ b/unofficial/c100000533.lua @@ -31,4 +31,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000535.lua b/unofficial/c100000535.lua index 8bf12fd25a..1bc007cbb2 100644 --- a/unofficial/c100000535.lua +++ b/unofficial/c100000535.lua @@ -19,7 +19,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,2,nil) end function s.rmfilter(c) - return c:IsMonster() and c:IsAbleToRemove() and (c:IsLocation(LOCATION_DECK+LOCATION_HAND) or aux.SpElimFilter(c)) + return c:IsMonster() and c:IsAbleToRemove() and (c:IsLocation(LOCATION_DECK|LOCATION_HAND) or aux.SpElimFilter(c)) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(dg,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000536.lua b/unofficial/c100000536.lua index eec828b578..ebd403afd7 100644 --- a/unofficial/c100000536.lua +++ b/unofficial/c100000536.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,re) return e:GetHandler()~=re:GetOwner() and re:IsActiveType(TYPE_MONSTER) -end +end \ No newline at end of file diff --git a/unofficial/c100000537.lua b/unofficial/c100000537.lua index e7ba307356..156dd0eb64 100644 --- a/unofficial/c100000537.lua +++ b/unofficial/c100000537.lua @@ -17,10 +17,10 @@ function s.filter(c) return c:IsMonster() and c:IsAbleToRemove() and aux.SpElimFilter(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(1-tp) and s.filter(chkc) end - if chk==0 then return Duel.IsExistingTarget(s.filter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and chkc:IsControler(1-tp) and s.filter(chkc) end + if chk==0 then return Duel.IsExistingTarget(s.filter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,1,nil) + local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) end function s.operation(e,tp,eg,ep,ev,re,r,rp) @@ -35,5 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetTextAttack()) c:RegisterEffect(e1) end -end - +end \ No newline at end of file diff --git a/unofficial/c100000538.lua b/unofficial/c100000538.lua index deebe15828..1895c6c894 100644 --- a/unofficial/c100000538.lua +++ b/unofficial/c100000538.lua @@ -38,4 +38,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) c:RegisterEffect(e2) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c100000539.lua b/unofficial/c100000539.lua index dec2531f6b..92480c052b 100644 --- a/unofficial/c100000539.lua +++ b/unofficial/c100000539.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x122} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x122) + return c:IsFaceup() and c:IsSetCard(SET_VALKYRIE) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100000541.lua b/unofficial/c100000541.lua index a9c7bfbfa8..c8b8fb94e6 100644 --- a/unofficial/c100000541.lua +++ b/unofficial/c100000541.lua @@ -20,14 +20,14 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000542.lua b/unofficial/c100000542.lua index 7024f36d18..d22b6c73af 100644 --- a/unofficial/c100000542.lua +++ b/unofficial/c100000542.lua @@ -36,13 +36,13 @@ function s.filter(c,e,tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND) end function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end @@ -51,4 +51,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetAttackTarget() then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000543.lua b/unofficial/c100000543.lua index 86176ea0be..f0f8c11e71 100644 --- a/unofficial/c100000543.lua +++ b/unofficial/c100000543.lua @@ -94,4 +94,4 @@ function s.defop(e,tp,eg,ep,ev,re,r,rp) end tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c100000544.lua b/unofficial/c100000544.lua index d6f3b8a4bd..61738d06a2 100644 --- a/unofficial/c100000544.lua +++ b/unofficial/c100000544.lua @@ -62,4 +62,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk/2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000545.lua b/unofficial/c100000545.lua index fce83811b1..dfd968e1f0 100644 --- a/unofficial/c100000545.lua +++ b/unofficial/c100000545.lua @@ -25,4 +25,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000547.lua b/unofficial/c100000547.lua index e88df8fbb4..988dc409a4 100644 --- a/unofficial/c100000547.lua +++ b/unofficial/c100000547.lua @@ -22,4 +22,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000548.lua b/unofficial/c100000548.lua index aeda923a47..81e70357bf 100644 --- a/unofficial/c100000548.lua +++ b/unofficial/c100000548.lua @@ -24,13 +24,13 @@ function s.filter(c,e,tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end @@ -38,4 +38,4 @@ end function s.xyzlimit(e,c) if not c then return false end return not c:IsRace(RACE_PLANT) -end +end \ No newline at end of file diff --git a/unofficial/c100000549.lua b/unofficial/c100000549.lua index 2ba01a0b9a..3ecdea678c 100644 --- a/unofficial/c100000549.lua +++ b/unofficial/c100000549.lua @@ -29,5 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END,2) c:RegisterEffect(e1) end -end - +end \ No newline at end of file diff --git a/unofficial/c100000550.lua b/unofficial/c100000550.lua index a74500f4c0..850c7996aa 100644 --- a/unofficial/c100000550.lua +++ b/unofficial/c100000550.lua @@ -20,19 +20,19 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x1f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NEO_SPACIAN) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000551.lua b/unofficial/c100000551.lua index 24969184cd..6f96ad1274 100644 --- a/unofficial/c100000551.lua +++ b/unofficial/c100000551.lua @@ -49,4 +49,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_MZONE,0,nil) if #g==0 then return end Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000552.lua b/unofficial/c100000552.lua index d4ca6dd15c..04717db3da 100644 --- a/unofficial/c100000552.lua +++ b/unofficial/c100000552.lua @@ -1,7 +1,7 @@ --ネオス・エナジー local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x1f)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_NEO_SPACIAN)) --Atk up local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_EQUIP) @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -39,4 +39,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e:SetLabel(ct+1) pe:SetValue(ct*-300) end -end +end \ No newline at end of file diff --git a/unofficial/c100000554.lua b/unofficial/c100000554.lua index acaa588bef..90796b0a39 100644 --- a/unofficial/c100000554.lua +++ b/unofficial/c100000554.lua @@ -59,4 +59,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c100000555.lua b/unofficial/c100000555.lua index aeb05a6791..bc2cff7de5 100644 --- a/unofficial/c100000555.lua +++ b/unofficial/c100000555.lua @@ -13,11 +13,11 @@ function s.initial_effect(c) end s.listed_series={0x3008,0x1f} function s.filter1(c,e,tp) - return c:IsSetCard(0x3008) and c:IsAbleToDeck() + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsAbleToDeck() and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_DECK,0,1,nil,e,tp) end function s.filter2(c,e,tp) - return c:IsSetCard(0x1f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NEO_SPACIAN) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_MZONE,0,1,nil,e,tp) end @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c100000557.lua b/unofficial/c100000557.lua index 060c0b3b3c..162ba0d528 100644 --- a/unofficial/c100000557.lua +++ b/unofficial/c100000557.lua @@ -33,7 +33,7 @@ function s.filter1(c,tp) return Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,c) end function s.filter2(c,mc) - return c.material and mc:IsCode(table.unpack(c.material)) and c:IsSetCard(0x9) + return c.material and mc:IsCode(table.unpack(c.material)) and c:IsSetCard(SET_NEOS) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_DECK,0,1,nil,tp) end diff --git a/unofficial/c100000560.lua b/unofficial/c100000560.lua index 1d86b15ae3..c15c393e11 100644 --- a/unofficial/c100000560.lua +++ b/unofficial/c100000560.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000561.lua b/unofficial/c100000561.lua index 5c55f1fc94..75eb44a561 100644 --- a/unofficial/c100000561.lua +++ b/unofficial/c100000561.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000562.lua b/unofficial/c100000562.lua index e187412a19..f99d2ed307 100644 --- a/unofficial/c100000562.lua +++ b/unofficial/c100000562.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000563.lua b/unofficial/c100000563.lua index cb86ab94a6..9fea8f8ec0 100644 --- a/unofficial/c100000563.lua +++ b/unofficial/c100000563.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000565.lua b/unofficial/c100000565.lua index 99d5869a72..c19d6aa050 100644 --- a/unofficial/c100000565.lua +++ b/unofficial/c100000565.lua @@ -52,4 +52,4 @@ function s.sdesop(e,tp,eg,ep,ev,re,r,rp) end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp) return c:IsLocation(LOCATION_HAND) -end +end \ No newline at end of file diff --git a/unofficial/c100000570.lua b/unofficial/c100000570.lua index 79fbdf60fc..0bb9487a36 100644 --- a/unofficial/c100000570.lua +++ b/unofficial/c100000570.lua @@ -44,4 +44,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if dam<0 then dam=0 end Duel.Damage(p,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000571.lua b/unofficial/c100000571.lua index df43571a89..5a5d29eafb 100644 --- a/unofficial/c100000571.lua +++ b/unofficial/c100000571.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.SpecialSummon(tc,SUMMON_TYPE_FUSION,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000581.lua b/unofficial/c100000581.lua index bc4b20f2fc..b65e9e9b57 100644 --- a/unofficial/c100000581.lua +++ b/unofficial/c100000581.lua @@ -60,7 +60,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.sdesop(e,tp,eg,ep,ev,re,r,rp) - if Duel.GetTurnPlayer()==tp and e:GetHandler():GetFlagEffect(id)==0 then + if Duel.IsTurnPlayer(tp) and e:GetHandler():GetFlagEffect(id)==0 then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000582.lua b/unofficial/c100000582.lua index 07914a2474..a889b16418 100644 --- a/unofficial/c100000582.lua +++ b/unofficial/c100000582.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end function s.tgfilter(c) - return c:IsSetCard(0x95) and c:IsAbleToHand() + return c:IsSetCard(SET_RANK_UP_MAGIC) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.tgfilter(chkc) end @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100000600.lua b/unofficial/c100000600.lua index 91b05dcf64..e836a6759b 100644 --- a/unofficial/c100000600.lua +++ b/unofficial/c100000600.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x84} function s.filter(c,e,tp) - return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0x84) + return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(SET_BATTLIN_BOXER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100000601.lua b/unofficial/c100000601.lua index 83ab1ef0f2..3c22d4ca3d 100644 --- a/unofficial/c100000601.lua +++ b/unofficial/c100000601.lua @@ -16,7 +16,7 @@ s.listed_series={0x84} function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() local bc=tc:GetBattleTarget() - return #eg==1 and tc:IsControler(tp) and tc:IsSetCard(0x84) + return #eg==1 and tc:IsControler(tp) and tc:IsSetCard(SET_BATTLIN_BOXER) and bc:IsLocation(LOCATION_GRAVE) and bc:IsReason(REASON_BATTLE) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -30,4 +30,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100000602.lua b/unofficial/c100000602.lua index 747d6e837f..9d10dde3a7 100644 --- a/unofficial/c100000602.lua +++ b/unofficial/c100000602.lua @@ -39,11 +39,11 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x84) + return c:IsFaceup() and c:IsSetCard(SET_BATTLIN_BOXER) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) return rp~=tp and re:IsActiveType(TYPE_TRAP) and re:IsHasType(EFFECT_TYPE_ACTIVATE) - and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x84),tp,LOCATION_MZONE,0,1,nil) + and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_BATTLIN_BOXER),tp,LOCATION_MZONE,0,1,nil) end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToHand() end @@ -54,4 +54,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SendtoHand(c,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100000603.lua b/unofficial/c100000603.lua index 98a3e6bc5c..09f43cf4a0 100644 --- a/unofficial/c100000603.lua +++ b/unofficial/c100000603.lua @@ -40,4 +40,4 @@ end function s.rdop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,ev*2) Duel.ChangeBattleDamage(1-tp,ev*2) -end +end \ No newline at end of file diff --git a/unofficial/c100000604.lua b/unofficial/c100000604.lua index a2c41b1f45..bb1f60be1e 100644 --- a/unofficial/c100000604.lua +++ b/unofficial/c100000604.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,500,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100000633.lua b/unofficial/c100000633.lua index 0e48a53574..a0f2e16576 100644 --- a/unofficial/c100000633.lua +++ b/unofficial/c100000633.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c100000650.lua b/unofficial/c100000650.lua index db060b0fc5..2f140a2fc4 100644 --- a/unofficial/c100000650.lua +++ b/unofficial/c100000650.lua @@ -19,4 +19,4 @@ function s.initial_effect(c) end function s.rmtarget(e,c) return c:GetOwner()==e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c100000651.lua b/unofficial/c100000651.lua index 75ac05ea45..3b82b4b8cb 100644 --- a/unofficial/c100000651.lua +++ b/unofficial/c100000651.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000652.lua b/unofficial/c100000652.lua index f73967b607..d5bd758e0b 100644 --- a/unofficial/c100000652.lua +++ b/unofficial/c100000652.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000653.lua b/unofficial/c100000653.lua index 7da0c46f47..57b9e2db1e 100644 --- a/unofficial/c100000653.lua +++ b/unofficial/c100000653.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000654.lua b/unofficial/c100000654.lua index 4595a4c2d8..2dd92a933b 100644 --- a/unofficial/c100000654.lua +++ b/unofficial/c100000654.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000655.lua b/unofficial/c100000655.lua index c761dcb1b1..10e212b22a 100644 --- a/unofficial/c100000655.lua +++ b/unofficial/c100000655.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000656.lua b/unofficial/c100000656.lua index 1376e0f0b3..fda9b4ae51 100644 --- a/unofficial/c100000656.lua +++ b/unofficial/c100000656.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c100000657.lua b/unofficial/c100000657.lua index 7368baa095..0f437003ba 100644 --- a/unofficial/c100000657.lua +++ b/unofficial/c100000657.lua @@ -20,19 +20,19 @@ function s.cfilter(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000658.lua b/unofficial/c100000658.lua index 671abb2e67..c8f867512c 100644 --- a/unofficial/c100000658.lua +++ b/unofficial/c100000658.lua @@ -20,19 +20,19 @@ function s.cfilter(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000659.lua b/unofficial/c100000659.lua index 8d704edad5..4382451f9c 100644 --- a/unofficial/c100000659.lua +++ b/unofficial/c100000659.lua @@ -20,19 +20,19 @@ function s.cfilter(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000660.lua b/unofficial/c100000660.lua index 2861dca71f..2f5824947c 100644 --- a/unofficial/c100000660.lua +++ b/unofficial/c100000660.lua @@ -20,19 +20,19 @@ function s.cfilter(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000661.lua b/unofficial/c100000661.lua index 3fa7ed24f0..c13cc66d79 100644 --- a/unofficial/c100000661.lua +++ b/unofficial/c100000661.lua @@ -20,19 +20,19 @@ function s.cfilter(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000662.lua b/unofficial/c100000662.lua index b816aeae35..6d8ee566c3 100644 --- a/unofficial/c100000662.lua +++ b/unofficial/c100000662.lua @@ -20,19 +20,19 @@ function s.cfilter(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000663.lua b/unofficial/c100000663.lua index 2f74d3e84f..34843cb6d3 100644 --- a/unofficial/c100000663.lua +++ b/unofficial/c100000663.lua @@ -20,19 +20,19 @@ function s.cfilter(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100000664.lua b/unofficial/c100000664.lua index 04e996807b..2c29a6b673 100644 --- a/unofficial/c100000664.lua +++ b/unofficial/c100000664.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(p,dc*2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100001001.lua b/unofficial/c100001001.lua index f77b8af7b3..35b7831e86 100644 --- a/unofficial/c100001001.lua +++ b/unofficial/c100001001.lua @@ -27,4 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100001002.lua b/unofficial/c100001002.lua index ab3c2d3d5e..bd3f9ca1c3 100644 --- a/unofficial/c100001002.lua +++ b/unofficial/c100001002.lua @@ -27,4 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100001003.lua b/unofficial/c100001003.lua index d6e1b6e908..62db5311fe 100644 --- a/unofficial/c100001003.lua +++ b/unofficial/c100001003.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100001004.lua b/unofficial/c100001004.lua index d35f10130a..e1e7f286f5 100644 --- a/unofficial/c100001004.lua +++ b/unofficial/c100001004.lua @@ -54,4 +54,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.rmfilter,nil) g:DeleteGroup() Duel.Destroy(tg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100001005.lua b/unofficial/c100001005.lua index dcab36ef83..4b79a95f56 100644 --- a/unofficial/c100001005.lua +++ b/unofficial/c100001005.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100001006.lua b/unofficial/c100001006.lua index 287e6fd513..12ded7f77e 100644 --- a/unofficial/c100001006.lua +++ b/unofficial/c100001006.lua @@ -66,4 +66,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100002001.lua b/unofficial/c100002001.lua index c9f3549e2a..9570b4a19f 100644 --- a/unofficial/c100002001.lua +++ b/unofficial/c100002001.lua @@ -20,4 +20,4 @@ function s.spcon(e,c) return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)>0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c100002002.lua b/unofficial/c100002002.lua index 1838493179..55de8a9253 100644 --- a/unofficial/c100002002.lua +++ b/unofficial/c100002002.lua @@ -9,16 +9,16 @@ end function s.matfilter(c,e,tp) if not c:IsRace(RACE_ZOMBIE) then return false end local loc=c:GetLocation() - return (loc&(LOCATION_DECK+LOCATION_MZONE)~=0 and c:IsAbleToGrave()) or loc&LOCATION_GRAVE~=0 + return (loc&(LOCATION_DECK|LOCATION_MZONE)~=0 and c:IsAbleToGrave()) or loc&LOCATION_GRAVE~=0 end function s.check(tp,sg,fc) local ct=sg:FilterCount(Card.IsLocation,nil,LOCATION_MZONE) return ct==1,ct>1 end function s.extrafil(e,tp,mg) - return Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil),s.check + return Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,nil),s.check end function s.extraop(e,tc,tp,sg) Duel.SendtoGrave(sg:Filter(aux.NOT(Card.IsLocation),nil,LOCATION_GRAVE),REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) sg:Clear() -end +end \ No newline at end of file diff --git a/unofficial/c100003002.lua b/unofficial/c100003002.lua index 39fdcc8da6..d233ed9e05 100644 --- a/unofficial/c100003002.lua +++ b/unofficial/c100003002.lua @@ -33,4 +33,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100003003.lua b/unofficial/c100003003.lua index f0f28eec45..54f5f550fc 100644 --- a/unofficial/c100003003.lua +++ b/unofficial/c100003003.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100003004.lua b/unofficial/c100003004.lua index 33a606468d..1011ad388c 100644 --- a/unofficial/c100003004.lua +++ b/unofficial/c100003004.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100004001.lua b/unofficial/c100004001.lua index 00f8892567..cc2577844d 100644 --- a/unofficial/c100004001.lua +++ b/unofficial/c100004001.lua @@ -40,13 +40,13 @@ end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if e:GetHandler():GetSequence()<5 then ft=ft+1 end - if chk==0 then return ft>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + if chk==0 then return ft>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end @@ -69,4 +69,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100004002.lua b/unofficial/c100004002.lua index b1664a433a..dd571da28a 100644 --- a/unofficial/c100004002.lua +++ b/unofficial/c100004002.lua @@ -58,13 +58,13 @@ end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if e:GetHandler():GetSequence()<5 then ft=ft+1 end - if chk==0 then return ft>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + if chk==0 then return ft>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end @@ -87,4 +87,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100004003.lua b/unofficial/c100004003.lua index e8551d6854..958a47e3d5 100644 --- a/unofficial/c100004003.lua +++ b/unofficial/c100004003.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100005001.lua b/unofficial/c100005001.lua index 8cf536e2e3..ed24df5f13 100644 --- a/unofficial/c100005001.lua +++ b/unofficial/c100005001.lua @@ -44,15 +44,15 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.DiscardDeck(p,val,REASON_EFFECT) end function s.drcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,code) return c:IsCode(code) and c:IsAbleToRemoveAsCost() end function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) local code=e:GetHandler():GetCode() - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,code) end - local cg=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,code) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,nil,code) end + local cg=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,code) Duel.Remove(cg,POS_FACEUP,REASON_COST) end function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -74,4 +74,4 @@ function s.negcon(e,tp,eg,ep,ev,re,r,rp) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c100005002.lua b/unofficial/c100005002.lua index 21153913d9..92dee44d23 100644 --- a/unofficial/c100005002.lua +++ b/unofficial/c100005002.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) e1:SetValue(d:GetAttack()) a:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c100006001.lua b/unofficial/c100006001.lua index b5f14731e7..fab05e892f 100644 --- a/unofficial/c100006001.lua +++ b/unofficial/c100006001.lua @@ -12,10 +12,10 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0xc008),tp,LOCATION_MZONE,0,1,nil) + return not Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_DESTINY_HERO),tp,LOCATION_MZONE,0,1,nil) end function s.filter(c,e,tp) - return c:IsSetCard(0xc008) and c:IsLevelBelow(3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_DESTINY_HERO) and c:IsLevelBelow(3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100008001.lua b/unofficial/c100008001.lua index f8598a9501..e8a507054a 100644 --- a/unofficial/c100008001.lua +++ b/unofficial/c100008001.lua @@ -41,4 +41,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.value(e,c) return e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c100010001.lua b/unofficial/c100010001.lua index bc891d3042..79db17b7fb 100644 --- a/unofficial/c100010001.lua +++ b/unofficial/c100010001.lua @@ -48,7 +48,7 @@ function s.initial_effect(c) c:RegisterEffect(e6) end function s.splimit(e,se,sp,st) - return se:GetHandler():IsSetCard(0x95) + return se:GetHandler():IsSetCard(SET_RANK_UP_MAGIC) end function s.atkval(e,c) return e:GetHandler():GetOverlayCount()*100 @@ -95,4 +95,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) dr=Duel.GetFieldGroupCount(1-tp,LOCATION_DECK,0) end Duel.Overlay(e:GetHandler(),Duel.GetDecktopGroup(1-tp,dr)) -end +end \ No newline at end of file diff --git a/unofficial/c100100001.lua b/unofficial/c100100001.lua index 8e01fae132..429d928af9 100644 --- a/unofficial/c100100001.lua +++ b/unofficial/c100100001.lua @@ -29,12 +29,12 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c100100002.lua b/unofficial/c100100002.lua index b071c06a0c..e63a0cc558 100644 --- a/unofficial/c100100002.lua +++ b/unofficial/c100100002.lua @@ -78,4 +78,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) else e:GetLabelObject():SetLabel(0) end -end +end \ No newline at end of file diff --git a/unofficial/c100100003.lua b/unofficial/c100100003.lua index 8e92058bf6..e6c009de2e 100644 --- a/unofficial/c100100003.lua +++ b/unofficial/c100100003.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c100100004.lua b/unofficial/c100100004.lua index f0dcdf2d8c..0ee67bc300 100644 --- a/unofficial/c100100004.lua +++ b/unofficial/c100100004.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetFieldGroup(p,LOCATION_HAND,0) Duel.SendtoGrave(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100005.lua b/unofficial/c100100005.lua index 200cbcf095..fc83b2582b 100644 --- a/unofficial/c100100005.lua +++ b/unofficial/c100100005.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100006.lua b/unofficial/c100100006.lua index 1dca733bfe..a021638322 100644 --- a/unofficial/c100100006.lua +++ b/unofficial/c100100006.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100100007.lua b/unofficial/c100100007.lua index 2b92be7ce0..2f20b5a1d2 100644 --- a/unofficial/c100100007.lua +++ b/unofficial/c100100007.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate - local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,0x3008),aux.FALSE,s.fextra,Fusion.BanishMaterial,nil,nil,nil,nil,nil,nil,nil,nil,nil,s.extratg) + local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,SET_ELEMENTAL_HERO),aux.FALSE,s.fextra,Fusion.BanishMaterial,nil,nil,nil,nil,nil,nil,nil,nil,nil,s.extratg) e1:SetCost(s.cost) c:RegisterEffect(e1) end @@ -23,5 +23,5 @@ function s.fextra(e,tp,mg) end function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE|LOCATION_GRAVE) end \ No newline at end of file diff --git a/unofficial/c100100008.lua b/unofficial/c100100008.lua index 8cae3a2306..68090c7ab6 100644 --- a/unofficial/c100100008.lua +++ b/unofficial/c100100008.lua @@ -35,7 +35,7 @@ function s.fextra(e,tp,mg) end function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_ONFIELD+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_ONFIELD|LOCATION_GRAVE) end function s.drcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/unofficial/c100100009.lua b/unofficial/c100100009.lua index 100315b0e8..91ec4f489e 100644 --- a/unofficial/c100100009.lua +++ b/unofficial/c100100009.lua @@ -55,4 +55,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c100100010.lua b/unofficial/c100100010.lua index b542431bf5..af2533b638 100644 --- a/unofficial/c100100010.lua +++ b/unofficial/c100100010.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleDeck(1-tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100011.lua b/unofficial/c100100011.lua index d104d33ecd..1690a6fc70 100644 --- a/unofficial/c100100011.lua +++ b/unofficial/c100100011.lua @@ -36,10 +36,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end if chk==0 then if not Duel.IsPlayerAffectedByEffect(tp,69832741) and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end - local rg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) return Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,rg) end - local rg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp,rg) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) @@ -48,11 +48,11 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if not tc or not tc:IsRelateToEffect(e) or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not tc:IsCanBeSpecialSummoned(e,0,tp,false,false) then return end - local rg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) rg:RemoveCard(tc) if rg:CheckWithSumEqual(Card.GetLevel,tc:GetLevel(),1,99) then local rm=rg:SelectWithSumEqual(tp,Card.GetLevel,tc:GetLevel(),1,99) Duel.Remove(rm,POS_FACEUP,REASON_EFFECT) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100100012.lua b/unofficial/c100100012.lua index 588eba319f..2f5b727481 100644 --- a/unofficial/c100100012.lua +++ b/unofficial/c100100012.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleDeck(1-tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100013.lua b/unofficial/c100100013.lua index 55553efd42..ca9ef7826b 100644 --- a/unofficial/c100100013.lua +++ b/unofficial/c100100013.lua @@ -33,4 +33,4 @@ function s.activate(e) if tc:IsRelateToEffect(e) then Duel.SendtoDeck(tc,nil,0,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100014.lua b/unofficial/c100100014.lua index b3ae91cd16..5194c3c879 100644 --- a/unofficial/c100100014.lua +++ b/unofficial/c100100014.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100015.lua b/unofficial/c100100015.lua index 74ce01642b..95b29ff079 100644 --- a/unofficial/c100100015.lua +++ b/unofficial/c100100015.lua @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100100016.lua b/unofficial/c100100016.lua index 3c13540d50..07fc55d0e5 100644 --- a/unofficial/c100100016.lua +++ b/unofficial/c100100016.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100017.lua b/unofficial/c100100017.lua index e02150a0e1..7069bcd096 100644 --- a/unofficial/c100100017.lua +++ b/unofficial/c100100017.lua @@ -40,7 +40,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tg:RegisterEffect(e1) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.thop(e,tp,eg,ep,ev,re,r,rp) local ct=e:GetLabel() @@ -49,4 +49,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,e:GetHandler()) else e:SetLabel(1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100018.lua b/unofficial/c100100018.lua index c35fb43b78..b8f410f5b2 100644 --- a/unofficial/c100100018.lua +++ b/unofficial/c100100018.lua @@ -20,7 +20,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.DiscardDeck(tp,3,REASON_COST) end function s.filter(c) - return c:IsSetCard(0x38) and c:IsLevelBelow(4) and c:IsAbleToHand() + return c:IsSetCard(SET_LIGHTSWORN) and c:IsLevelBelow(4) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100100019.lua b/unofficial/c100100019.lua index 91f2f76512..7b7a3dca50 100644 --- a/unofficial/c100100019.lua +++ b/unofficial/c100100019.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) else Duel.Destroy(tg,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100020.lua b/unofficial/c100100020.lua index 191e297cd5..9a31c4cd21 100644 --- a/unofficial/c100100020.lua +++ b/unofficial/c100100020.lua @@ -29,4 +29,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler()) Duel.SendtoHand(sg,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100021.lua b/unofficial/c100100021.lua index 5cc7b404f9..7acac07e70 100644 --- a/unofficial/c100100021.lua +++ b/unofficial/c100100021.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c100100022.lua b/unofficial/c100100022.lua index ae2c1f1b05..24284ad018 100644 --- a/unofficial/c100100022.lua +++ b/unofficial/c100100022.lua @@ -29,4 +29,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD,e:GetHandler()) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100023.lua b/unofficial/c100100023.lua index f60f297160..0ee17bc60a 100644 --- a/unofficial/c100100023.lua +++ b/unofficial/c100100023.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Recover(1-tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100024.lua b/unofficial/c100100024.lua index 690194077d..28a3488cc7 100644 --- a/unofficial/c100100024.lua +++ b/unofficial/c100100024.lua @@ -35,10 +35,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if not tg or tg:FilterCount(Card.IsRelateToEffect,nil,e)~=5 then return end Duel.SendtoDeck(tg,nil,0,REASON_EFFECT) local g=Duel.GetOperatedGroup() - local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA) + local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK|LOCATION_EXTRA) if ct==5 then Duel.ShuffleDeck(tp) Duel.BreakEffect() Duel.Draw(tp,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100025.lua b/unofficial/c100100025.lua index e13d23711c..3844ddda1b 100644 --- a/unofficial/c100100025.lua +++ b/unofficial/c100100025.lua @@ -33,4 +33,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100026.lua b/unofficial/c100100026.lua index c139e48122..ecfb986a29 100644 --- a/unofficial/c100100026.lua +++ b/unofficial/c100100026.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return tc and tc:GetCounter(0x91)>1 end function s.filter(c,ft,tp) - return c:IsSummonType(SUMMON_TYPE_SPECIAL) and (ft>0 or (c:GetSequence()<5 and c:IsControler(tp))) + return c:IsSpecialSummoned() and (ft>0 or (c:GetSequence()<5 and c:IsControler(tp))) end function s.spfilter(c,e,tp) return c:IsLevelBelow(4) and c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) diff --git a/unofficial/c100100027.lua b/unofficial/c100100027.lua index 9082bb55e5..b7f7813885 100644 --- a/unofficial/c100100027.lua +++ b/unofficial/c100100027.lua @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(oc,0,1-tp,1-tp,false,false,POS_FACEDOWN_DEFENSE) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100100028.lua b/unofficial/c100100028.lua index 166cf96981..92dfd207ce 100644 --- a/unofficial/c100100028.lua +++ b/unofficial/c100100028.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100029.lua b/unofficial/c100100029.lua index 05f0d47def..3bd46bac96 100644 --- a/unofficial/c100100029.lua +++ b/unofficial/c100100029.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100100030.lua b/unofficial/c100100030.lua index 80e086ac78..ea16eeb5a5 100644 --- a/unofficial/c100100030.lua +++ b/unofficial/c100100030.lua @@ -67,4 +67,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100031.lua b/unofficial/c100100031.lua index 8c9aca85df..c8cea3bc65 100644 --- a/unofficial/c100100031.lua +++ b/unofficial/c100100031.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleDeck(p) Duel.BreakEffect() Duel.Draw(p,#g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100032.lua b/unofficial/c100100032.lua index c2d9d6f2c2..58b584b637 100644 --- a/unofficial/c100100032.lua +++ b/unofficial/c100100032.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100033.lua b/unofficial/c100100033.lua index 0bf99eaa42..c6fa0be835 100644 --- a/unofficial/c100100033.lua +++ b/unofficial/c100100033.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100034.lua b/unofficial/c100100034.lua index 7f4ab8201f..33328d5a00 100644 --- a/unofficial/c100100034.lua +++ b/unofficial/c100100034.lua @@ -82,4 +82,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:CancelToGrave() Duel.SendtoDeck(c,nil,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100035.lua b/unofficial/c100100035.lua index 1ff83a820c..dc3edfafd0 100644 --- a/unofficial/c100100035.lua +++ b/unofficial/c100100035.lua @@ -23,5 +23,5 @@ function s.fextra(e,tp,mg) end function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE|LOCATION_GRAVE) end \ No newline at end of file diff --git a/unofficial/c100100036.lua b/unofficial/c100100036.lua index 415bc33ab1..cd9a3907da 100644 --- a/unofficial/c100100036.lua +++ b/unofficial/c100100036.lua @@ -29,4 +29,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler()) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100037.lua b/unofficial/c100100037.lua index 15fcb0d4cd..8aee658adf 100644 --- a/unofficial/c100100037.lua +++ b/unofficial/c100100037.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD) Duel.ShuffleHand(1-p) end -end +end \ No newline at end of file diff --git a/unofficial/c100100038.lua b/unofficial/c100100038.lua index 6db6fb2b8d..2f8092c35d 100644 --- a/unofficial/c100100038.lua +++ b/unofficial/c100100038.lua @@ -32,4 +32,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100039.lua b/unofficial/c100100039.lua index bebe15f0dc..b2f866f290 100644 --- a/unofficial/c100100039.lua +++ b/unofficial/c100100039.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.dfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler()) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100040.lua b/unofficial/c100100040.lua index 70b271479c..5867bc0708 100644 --- a/unofficial/c100100040.lua +++ b/unofficial/c100100040.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() c2:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c100100041.lua b/unofficial/c100100041.lua index 44cc30bcdc..abc7f252c1 100644 --- a/unofficial/c100100041.lua +++ b/unofficial/c100100041.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c100100042.lua b/unofficial/c100100042.lua index b3997dd58e..74d79ef24b 100644 --- a/unofficial/c100100042.lua +++ b/unofficial/c100100042.lua @@ -83,4 +83,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetReset(RESET_EVENT+RESETS_STANDARD_EXC_GRAVE) bc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c100100043.lua b/unofficial/c100100043.lua index 21ea9e5301..af969bd417 100644 --- a/unofficial/c100100043.lua +++ b/unofficial/c100100043.lua @@ -23,4 +23,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100044.lua b/unofficial/c100100044.lua index 17d65a1b07..cf339ca209 100644 --- a/unofficial/c100100044.lua +++ b/unofficial/c100100044.lua @@ -22,4 +22,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,1000,REASON_EFFECT) Duel.Damage(tp,500,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100045.lua b/unofficial/c100100045.lua index 2f3f2fcb86..2545bf392d 100644 --- a/unofficial/c100100045.lua +++ b/unofficial/c100100045.lua @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler()) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100046.lua b/unofficial/c100100046.lua index 8dc91cc5e1..3777d1376b 100644 --- a/unofficial/c100100046.lua +++ b/unofficial/c100100046.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Damage(tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100047.lua b/unofficial/c100100047.lua index df45cc041a..ecca6fdcf2 100644 --- a/unofficial/c100100047.lua +++ b/unofficial/c100100047.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(p,3,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100048.lua b/unofficial/c100100048.lua index 1595df9f1b..475f7861f8 100644 --- a/unofficial/c100100048.lua +++ b/unofficial/c100100048.lua @@ -29,7 +29,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_PHASE+PHASE_END) e1:SetTargetRange(1,0) Duel.RegisterEffect(e1,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,EFFECT_FLAG_OATH,1) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then diff --git a/unofficial/c100100049.lua b/unofficial/c100100049.lua index b2a3f16e1f..122e3a5290 100644 --- a/unofficial/c100100049.lua +++ b/unofficial/c100100049.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) Duel.ShuffleHand(1-p) end -end +end \ No newline at end of file diff --git a/unofficial/c100100050.lua b/unofficial/c100100050.lua index 1e3c8f67d2..028371352b 100644 --- a/unofficial/c100100050.lua +++ b/unofficial/c100100050.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100051.lua b/unofficial/c100100051.lua index 9a69cf04e7..436a6588a6 100644 --- a/unofficial/c100100051.lua +++ b/unofficial/c100100051.lua @@ -19,7 +19,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.filter(c) local lv=c:GetLevel() - return c:IsSetCard(0x19) and lv>0 and lv<5 and c:IsAbleToHand() + return c:IsSetCard(SET_GLADIATOR) and lv>0 and lv<5 and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100100052.lua b/unofficial/c100100052.lua index 1150421d9a..fbf489eef0 100644 --- a/unofficial/c100100052.lua +++ b/unofficial/c100100052.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) g:Sub(sg) Duel.SendtoGrave(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100054.lua b/unofficial/c100100054.lua index 51d1e60d5a..eb4ddf3e2b 100644 --- a/unofficial/c100100054.lua +++ b/unofficial/c100100054.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100055.lua b/unofficial/c100100055.lua index 2aa1a9071a..f4ab004846 100644 --- a/unofficial/c100100055.lua +++ b/unofficial/c100100055.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100100056.lua b/unofficial/c100100056.lua index 0fbaa3c8d8..aadbb903d2 100644 --- a/unofficial/c100100056.lua +++ b/unofficial/c100100056.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,SUMMON_WITH_MONSTER_REBORN,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100100057.lua b/unofficial/c100100057.lua index b8bb6eb3ed..21fb3a01b5 100644 --- a/unofficial/c100100057.lua +++ b/unofficial/c100100057.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(tg,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100058.lua b/unofficial/c100100058.lua index 5215dae0dc..cdbb0b4771 100644 --- a/unofficial/c100100058.lua +++ b/unofficial/c100100058.lua @@ -33,4 +33,4 @@ function s.activate(e) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100059.lua b/unofficial/c100100059.lua index 113120af65..89842e1cc2 100644 --- a/unofficial/c100100059.lua +++ b/unofficial/c100100059.lua @@ -25,4 +25,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100060.lua b/unofficial/c100100060.lua index 9a5891fd9d..dedd827db1 100644 --- a/unofficial/c100100060.lua +++ b/unofficial/c100100060.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c100100061.lua b/unofficial/c100100061.lua index a77c012dc7..7088266e25 100644 --- a/unofficial/c100100061.lua +++ b/unofficial/c100100061.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(tc,REASON_EFFECT)==0 then return end Duel.Damage(p,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100062.lua b/unofficial/c100100062.lua index f579ea4f53..a69ab61fdc 100644 --- a/unofficial/c100100062.lua +++ b/unofficial/c100100062.lua @@ -57,4 +57,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.rmfilter,nil) g:DeleteGroup() Duel.Remove(tg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100063.lua b/unofficial/c100100063.lua index 01579ec83b..8728ee88ad 100644 --- a/unofficial/c100100063.lua +++ b/unofficial/c100100063.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) else Duel.Destroy(tg,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100064.lua b/unofficial/c100100064.lua index 48891919ab..583efaf794 100644 --- a/unofficial/c100100064.lua +++ b/unofficial/c100100064.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100100065.lua b/unofficial/c100100065.lua index a87dd65692..c6ca9aff7a 100644 --- a/unofficial/c100100065.lua +++ b/unofficial/c100100065.lua @@ -99,4 +99,4 @@ function s.winop(e,tp,eg,ep,ev,re,r,rp) Duel.Win(1,0x11) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100066.lua b/unofficial/c100100066.lua index bf249b7d5c..55ae6518fe 100644 --- a/unofficial/c100100066.lua +++ b/unofficial/c100100066.lua @@ -31,4 +31,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100067.lua b/unofficial/c100100067.lua index 381909ef2a..732b1b44ec 100644 --- a/unofficial/c100100067.lua +++ b/unofficial/c100100067.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100100068.lua b/unofficial/c100100068.lua index f903c5eaf8..3f430d3d51 100644 --- a/unofficial/c100100068.lua +++ b/unofficial/c100100068.lua @@ -21,7 +21,7 @@ function s.filter(c) return c:IsFaceup() and c:IsDestructable() end function s.cfilter(c) - return c:IsFaceup() and c:IsAttackPos() and c:IsSetCard(0x100d) + return c:IsFaceup() and c:IsAttackPos() and c:IsSetCard(SET_X_SABER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(sg) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100069.lua b/unofficial/c100100069.lua index 690dbf0e1f..a19689ef0e 100644 --- a/unofficial/c100100069.lua +++ b/unofficial/c100100069.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(reset) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c100100070.lua b/unofficial/c100100070.lua index 6de601b45e..0247afab91 100644 --- a/unofficial/c100100070.lua +++ b/unofficial/c100100070.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tg2:GetFirst():IsRelateToEffect(e) then Duel.Remove(tg2,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100071.lua b/unofficial/c100100071.lua index a90b2a8034..13ebb8d492 100644 --- a/unofficial/c100100071.lua +++ b/unofficial/c100100071.lua @@ -31,4 +31,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100072.lua b/unofficial/c100100072.lua index 3d6f350894..2d9f54cb3c 100644 --- a/unofficial/c100100072.lua +++ b/unofficial/c100100072.lua @@ -20,14 +20,14 @@ function s.rmfilter(c) return c:IsAbleToRemove() and aux.SpElimFilter(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and s.rmfilter(chkc) end - if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,1,nil) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and s.rmfilter(chkc) end + if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectTarget(tp,s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,1,5,nil) + local g=Duel.SelectTarget(tp,s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,1,5,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local sg=g:Filter(Card.IsRelateToEffect,nil,e) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100073.lua b/unofficial/c100100073.lua index 653ed68af5..9fd582bc2b 100644 --- a/unofficial/c100100073.lua +++ b/unofficial/c100100073.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:GetHandler():IsSpellTrap() -end +end \ No newline at end of file diff --git a/unofficial/c100100074.lua b/unofficial/c100100074.lua index 7ebbeaa9e5..07df7958c0 100644 --- a/unofficial/c100100074.lua +++ b/unofficial/c100100074.lua @@ -18,7 +18,7 @@ function s.con(e,tp,eg,ep,ev,re,r,rp) return tc and tc:GetCounter(0x91)>3 end function s.costfilter(c) - return c:IsSetCard(0x38) and c:IsMonster() and c:IsDiscardable() + return c:IsSetCard(SET_LIGHTSWORN) and c:IsMonster() and c:IsDiscardable() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) Duel.DiscardDeck(tp,2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100075.lua b/unofficial/c100100075.lua index d041a7342e..44a317cbd0 100644 --- a/unofficial/c100100075.lua +++ b/unofficial/c100100075.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Recover(1-tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100076.lua b/unofficial/c100100076.lua index 6780d9fa72..5654106165 100644 --- a/unofficial/c100100076.lua +++ b/unofficial/c100100076.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c100100077.lua b/unofficial/c100100077.lua index f63d1e491a..a66cb89c0c 100644 --- a/unofficial/c100100077.lua +++ b/unofficial/c100100077.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.GetControl(tc,tp,PHASE_END,1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100078.lua b/unofficial/c100100078.lua index 1f9acac0c6..4671004f3c 100644 --- a/unofficial/c100100078.lua +++ b/unofficial/c100100078.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(2) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c100100079.lua b/unofficial/c100100079.lua index 92618b8ea7..b4c8e3fef5 100644 --- a/unofficial/c100100079.lua +++ b/unofficial/c100100079.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,h1,REASON_EFFECT) Duel.Draw(1-tp,h2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100080.lua b/unofficial/c100100080.lua index ae80420d6d..7deacda60a 100644 --- a/unofficial/c100100080.lua +++ b/unofficial/c100100080.lua @@ -52,4 +52,4 @@ function s.rtcost(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(e:GetHandler(),REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c100100081.lua b/unofficial/c100100081.lua index 2645ab0c5a..a285bbd710 100644 --- a/unofficial/c100100081.lua +++ b/unofficial/c100100081.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsSetCard(0xc008) and c:IsDiscardable() + return c:IsSetCard(SET_DESTINY_HERO) and c:IsDiscardable() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local tc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) @@ -32,4 +32,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100082.lua b/unofficial/c100100082.lua index af61b41006..12197956c1 100644 --- a/unofficial/c100100082.lua +++ b/unofficial/c100100082.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.SelectMatchingCard(tp,s.dfilter,tp,0,LOCATION_MZONE,1,2,nil,tc:GetLevel()) Duel.SendtoHand(sg,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100083.lua b/unofficial/c100100083.lua index 85feec999f..5a774aab34 100644 --- a/unofficial/c100100083.lua +++ b/unofficial/c100100083.lua @@ -33,4 +33,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100084.lua b/unofficial/c100100084.lua index 8a5753629d..a9bb5da020 100644 --- a/unofficial/c100100084.lua +++ b/unofficial/c100100084.lua @@ -18,7 +18,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) tc:RemoveCounter(tp,0x91,3,REASON_COST) end function s.filter(c) - return c:IsSetCard(0x1017) and c:IsType(TYPE_TUNER) and c:IsAbleToHand() + return c:IsSetCard(SET_SYNCHRON) and c:IsType(TYPE_TUNER) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>1 @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.BreakEffect() Duel.DiscardDeck(tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100091.lua b/unofficial/c100100091.lua index 68a11fb77b..cf0d7e12a6 100644 --- a/unofficial/c100100091.lua +++ b/unofficial/c100100091.lua @@ -45,4 +45,4 @@ function s.hspop(e,tp,eg,ep,ev,re,r,rp,c) end function s.con(e) return Duel.IsEnvironment(511600371,1-e:GetHandlerPlayer()) -end +end \ No newline at end of file diff --git a/unofficial/c100100100.lua b/unofficial/c100100100.lua index dfa2e9dcf5..14f0d3d53a 100644 --- a/unofficial/c100100100.lua +++ b/unofficial/c100100100.lua @@ -10,4 +10,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) return tc and tc:GetCounter(0x91)>1 -end +end \ No newline at end of file diff --git a/unofficial/c100100101.lua b/unofficial/c100100101.lua index aec2546295..64ce258cf4 100644 --- a/unofficial/c100100101.lua +++ b/unofficial/c100100101.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(td:GetCounter(0x91)*200) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100102.lua b/unofficial/c100100102.lua index 4f8b53c82d..2e91ee411d 100644 --- a/unofficial/c100100102.lua +++ b/unofficial/c100100102.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100103.lua b/unofficial/c100100103.lua index 037ae861e6..54b683e559 100644 --- a/unofficial/c100100103.lua +++ b/unofficial/c100100103.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else tc:AddCounter(0x91,td) end -end +end \ No newline at end of file diff --git a/unofficial/c100100104.lua b/unofficial/c100100104.lua index 8e8caf6478..6c30efcb9c 100644 --- a/unofficial/c100100104.lua +++ b/unofficial/c100100104.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,og:FilterCount(Card.IsPreviousControler,nil,tp)*300,REASON_EFFECT,true) Duel.Damage(1-tp,og:FilterCount(Card.IsPreviousControler,nil,1-tp)*300,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100100105.lua b/unofficial/c100100105.lua index 79d26082aa..de0da6a50f 100644 --- a/unofficial/c100100105.lua +++ b/unofficial/c100100105.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(0,1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,p) -end +end \ No newline at end of file diff --git a/unofficial/c100100106.lua b/unofficial/c100100106.lua index 2100ce9fb2..5173b86d96 100644 --- a/unofficial/c100100106.lua +++ b/unofficial/c100100106.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100107.lua b/unofficial/c100100107.lua index 936880f836..66ab29f46b 100644 --- a/unofficial/c100100107.lua +++ b/unofficial/c100100107.lua @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100108.lua b/unofficial/c100100108.lua index d89dd5b492..74638e3af3 100644 --- a/unofficial/c100100108.lua +++ b/unofficial/c100100108.lua @@ -77,4 +77,4 @@ function s.turnop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():Reset() if re then re:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c100100109.lua b/unofficial/c100100109.lua index c7d68328d2..e1d27b102a 100644 --- a/unofficial/c100100109.lua +++ b/unofficial/c100100109.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.indval(e,re,rp) return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and re:GetOwnerPlayer()~=e:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c100100110.lua b/unofficial/c100100110.lua index 03592d3845..9f699ae6a5 100644 --- a/unofficial/c100100110.lua +++ b/unofficial/c100100110.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100111.lua b/unofficial/c100100111.lua index 9a1db70ec6..565db50aef 100644 --- a/unofficial/c100100111.lua +++ b/unofficial/c100100111.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Damage(1-tp,tc:GetAttack()/2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100112.lua b/unofficial/c100100112.lua index c43fa87c17..acf947ddb6 100644 --- a/unofficial/c100100112.lua +++ b/unofficial/c100100112.lua @@ -26,4 +26,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100113.lua b/unofficial/c100100113.lua index fe9dc03ade..0d3c4d3d4f 100644 --- a/unofficial/c100100113.lua +++ b/unofficial/c100100113.lua @@ -19,4 +19,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if not tc then return end Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription()) tc:RemoveCounter(tp,0x91,6,REASON_COST) -end +end \ No newline at end of file diff --git a/unofficial/c100100114.lua b/unofficial/c100100114.lua index ea993a1491..0c19dc9b44 100644 --- a/unofficial/c100100114.lua +++ b/unofficial/c100100114.lua @@ -51,4 +51,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100100115.lua b/unofficial/c100100115.lua index 4c1d9cee7d..bc160cbd9d 100644 --- a/unofficial/c100100115.lua +++ b/unofficial/c100100115.lua @@ -41,4 +41,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetLabel()) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100116.lua b/unofficial/c100100116.lua index 9b968beec2..c5600f3418 100644 --- a/unofficial/c100100116.lua +++ b/unofficial/c100100116.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100100117.lua b/unofficial/c100100117.lua index 1f88e0e2d1..93c07bd7b9 100644 --- a/unofficial/c100100117.lua +++ b/unofficial/c100100117.lua @@ -26,4 +26,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_SZONE,LOCATION_SZONE,e:GetHandler()) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100119.lua b/unofficial/c100100119.lua index 9f29765a45..c4fe6b3bd2 100644 --- a/unofficial/c100100119.lua +++ b/unofficial/c100100119.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp,PHASE_END,1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100120.lua b/unofficial/c100100120.lua index 73d43e0c40..0a100fbf69 100644 --- a/unofficial/c100100120.lua +++ b/unofficial/c100100120.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100121.lua b/unofficial/c100100121.lua index 8a8e796604..e6fc594379 100644 --- a/unofficial/c100100121.lua +++ b/unofficial/c100100121.lua @@ -67,4 +67,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e2:SetReset(RESET_PHASE+PHASE_DRAW+RESET_SELF_TURN) Duel.RegisterEffect(e2,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c100100122.lua b/unofficial/c100100122.lua index f787a9b7c6..66052e68c7 100644 --- a/unofficial/c100100122.lua +++ b/unofficial/c100100122.lua @@ -44,4 +44,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if tc:GetCounter(0x91)>1 then tc:RemoveCounter(tp,0x91,tc:GetCounter(0x91)-1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100123.lua b/unofficial/c100100123.lua index 9d7f5488b8..b261fca291 100644 --- a/unofficial/c100100123.lua +++ b/unofficial/c100100123.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local sg=g:Filter(Card.IsRelateToEffect,nil,e) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100124.lua b/unofficial/c100100124.lua index e6c6a8c283..f2a79b80ef 100644 --- a/unofficial/c100100124.lua +++ b/unofficial/c100100124.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100125.lua b/unofficial/c100100125.lua index 71963fb563..f15bac0f9c 100644 --- a/unofficial/c100100125.lua +++ b/unofficial/c100100125.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100126.lua b/unofficial/c100100126.lua index 2b298ace0e..7cdd6f9919 100644 --- a/unofficial/c100100126.lua +++ b/unofficial/c100100126.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) else tc:RemoveCounter(tp,0x91,d,REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c100100127.lua b/unofficial/c100100127.lua index e49889c2f5..28d96c7399 100644 --- a/unofficial/c100100127.lua +++ b/unofficial/c100100127.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.Damage(1-tp,tc:GetBaseAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100128.lua b/unofficial/c100100128.lua index 864ecf1555..6dd74f326b 100644 --- a/unofficial/c100100128.lua +++ b/unofficial/c100100128.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100129.lua b/unofficial/c100100129.lua index d525d118e2..0258a43740 100644 --- a/unofficial/c100100129.lua +++ b/unofficial/c100100129.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.ChangePosition(sg,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c100100130.lua b/unofficial/c100100130.lua index d33bee0db9..66f2271ead 100644 --- a/unofficial/c100100130.lua +++ b/unofficial/c100100130.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.rmvop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100131.lua b/unofficial/c100100131.lua index 0325e1228c..dafb8edb2f 100644 --- a/unofficial/c100100131.lua +++ b/unofficial/c100100131.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) g:GetFirst():RegisterEffect(e1,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c100100132.lua b/unofficial/c100100132.lua index a1d7551fef..9aaaa8a818 100644 --- a/unofficial/c100100132.lua +++ b/unofficial/c100100132.lua @@ -56,4 +56,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c100100133.lua b/unofficial/c100100133.lua index d34d8ba15c..de5d525e70 100644 --- a/unofficial/c100100133.lua +++ b/unofficial/c100100133.lua @@ -21,12 +21,12 @@ end function s.filter1(c,e,tp) local lv1=c:GetLevel() return c:IsLevelBelow(8) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) - and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,lv1,tp) + and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,lv1,tp) end function s.filter2(c,lv1,tp) local lv2=c:GetLevel() return c:IsAbleToRemove() and c:IsType(TYPE_TUNER) and aux.SpElimFilter(c,true) - and Duel.IsExistingMatchingCard(s.filter3,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,c,lv1-lv2) + and Duel.IsExistingMatchingCard(s.filter3,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,c,lv1-lv2) end function s.filter3(c,lv) return c:IsAbleToRemove() and c:HasLevel() and c:GetLevel()==lv and not c:IsType(TYPE_TUNER) and aux.SpElimFilter(c,true) @@ -41,9 +41,9 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local g1=Duel.SelectMatchingCard(tp,s.filter1,tp,LOCATION_EXTRA,0,1,1,nil,e,tp) local tg1=g1:GetFirst() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g2=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,tg1:GetLevel(),tp) + local g2=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,tg1:GetLevel(),tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g3=Duel.SelectMatchingCard(tp,s.filter3,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,tg1:GetLevel()-g2:GetFirst():GetLevel()) + local g3=Duel.SelectMatchingCard(tp,s.filter3,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,tg1:GetLevel()-g2:GetFirst():GetLevel()) g2:Merge(g3) Duel.Remove(g2,POS_FACEUP,REASON_EFFECT) if tg1 and Duel.SpecialSummonStep(tg1,0,tp,tp,false,false,POS_FACEUP) then @@ -60,4 +60,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.rmvop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100150.lua b/unofficial/c100100150.lua index 567b08489c..e338cdd02f 100644 --- a/unofficial/c100100150.lua +++ b/unofficial/c100100150.lua @@ -12,11 +12,11 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) return rp~=tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) - and re:GetHandler():IsSetCard(0x500) and tc and tc:GetCounter(0x91)<7 + and re:GetHandler():IsSetCard(0x500) and tc and tc:GetCounter(SET_NECROVALLEY)<7 end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) if not tc or Duel.IsPlayerAffectedByEffect(tp,100100090) then return end tc:RegisterFlagEffect(100100103,RESET_CHAIN,0,1) tc:AddCounter(0x91,6) -end +end \ No newline at end of file diff --git a/unofficial/c100100151.lua b/unofficial/c100100151.lua index accb9135f7..c795e644eb 100644 --- a/unofficial/c100100151.lua +++ b/unofficial/c100100151.lua @@ -49,7 +49,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return s.sctg(tp) end @@ -66,4 +66,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,(tc1-tc2)*100,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100152.lua b/unofficial/c100100152.lua index 3b92041dcf..65ec866778 100644 --- a/unofficial/c100100152.lua +++ b/unofficial/c100100152.lua @@ -28,7 +28,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return not Duel.IsExistingMatchingCard(s.afilter,tp,LOCATION_ONFIELD,0,1,nil) end function s.condition2(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetFieldCard(tp,LOCATION_FZONE,0) and @@ -46,4 +46,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100153.lua b/unofficial/c100100153.lua index 26a3d50c82..b94883724b 100644 --- a/unofficial/c100100153.lua +++ b/unofficial/c100100153.lua @@ -23,4 +23,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) if not tc then return end tc:RegisterFlagEffect(110000000,RESET_CHAIN,0,1) tc:AddCounter(0x91,1) -end +end \ No newline at end of file diff --git a/unofficial/c100100154.lua b/unofficial/c100100154.lua index 6968334973..aafec3580e 100644 --- a/unofficial/c100100154.lua +++ b/unofficial/c100100154.lua @@ -17,7 +17,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetLabel(Duel.GetTurnCount()) e1:SetCondition(s.spcon) e1:SetOperation(s.spop) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) else e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,1) @@ -25,7 +25,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnCount()>=e:GetLabel() and Duel.GetTurnPlayer()==tp + return Duel.GetTurnCount()>=e:GetLabel() and Duel.IsTurnPlayer(tp) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local tc1=Duel.GetFieldCard(tp,LOCATION_FZONE,0) @@ -35,4 +35,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc1:RegisterFlagEffect(110000000,RESET_CHAIN,0,1) tc1:AddCounter(0x91,tc2:GetCounter(0x91)-tc1:GetCounter(0x91)) end -end +end \ No newline at end of file diff --git a/unofficial/c100100155.lua b/unofficial/c100100155.lua index 479a9c304e..a6324b0082 100644 --- a/unofficial/c100100155.lua +++ b/unofficial/c100100155.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) else tc:RemoveCounter(tp,0x91,d,REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c100100500.lua b/unofficial/c100100500.lua index 0a908875f2..708d6df3b2 100644 --- a/unofficial/c100100500.lua +++ b/unofficial/c100100500.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100501.lua b/unofficial/c100100501.lua index 67daa94784..50b7b63cb7 100644 --- a/unofficial/c100100501.lua +++ b/unofficial/c100100501.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleDeck(p) Duel.BreakEffect() Duel.Draw(p,#g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100502.lua b/unofficial/c100100502.lua index a45427b689..a0fa487a8c 100644 --- a/unofficial/c100100502.lua +++ b/unofficial/c100100502.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100503.lua b/unofficial/c100100503.lua index 274cd25a27..eaa0c90a27 100644 --- a/unofficial/c100100503.lua +++ b/unofficial/c100100503.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100100504.lua b/unofficial/c100100504.lua index 38544268aa..28dd0f4760 100644 --- a/unofficial/c100100504.lua +++ b/unofficial/c100100504.lua @@ -45,4 +45,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(tp,lv*300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100505.lua b/unofficial/c100100505.lua index b3ae12c80e..cd41a1428b 100644 --- a/unofficial/c100100505.lua +++ b/unofficial/c100100505.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100506.lua b/unofficial/c100100506.lua index ef663ecc84..5eea3978b5 100644 --- a/unofficial/c100100506.lua +++ b/unofficial/c100100506.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c100100508.lua b/unofficial/c100100508.lua index e08e46f74a..2092ff0a25 100644 --- a/unofficial/c100100508.lua +++ b/unofficial/c100100508.lua @@ -31,4 +31,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100509.lua b/unofficial/c100100509.lua index 961e9f2c90..3d4643ffd3 100644 --- a/unofficial/c100100509.lua +++ b/unofficial/c100100509.lua @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c100100510.lua b/unofficial/c100100510.lua index 72f0c9b20f..0ae36e5eab 100644 --- a/unofficial/c100100510.lua +++ b/unofficial/c100100510.lua @@ -63,4 +63,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c100100511.lua b/unofficial/c100100511.lua index 5705d6cc6c..ad96849975 100644 --- a/unofficial/c100100511.lua +++ b/unofficial/c100100511.lua @@ -17,10 +17,10 @@ function s.con(e,tp,eg,ep,ev,re,r,rp) return tc:GetCounter(0x91)>1 end function s.desfilter(c) - return c:IsFaceup() and c:IsSetCard(0x24) and c:IsDestructable() + return c:IsFaceup() and c:IsSetCard(SET_SCRAP) and c:IsDestructable() end function s.sfilter(c) - return c:IsSetCard(0x24) and c:IsMonster() and c:IsAbleToGrave() + return c:IsSetCard(SET_SCRAP) and c:IsMonster() and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.desfilter(chkc) end @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(tc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100512.lua b/unofficial/c100100512.lua index 11d1066330..3cbb23405e 100644 --- a/unofficial/c100100512.lua +++ b/unofficial/c100100512.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk/2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100513.lua b/unofficial/c100100513.lua index a8d2f3a3af..d3810a24a7 100644 --- a/unofficial/c100100513.lua +++ b/unofficial/c100100513.lua @@ -62,4 +62,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c100100514.lua b/unofficial/c100100514.lua index 268f2c2368..8ea5c59fda 100644 --- a/unofficial/c100100514.lua +++ b/unofficial/c100100514.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE+PHASE_END,3) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c100100515.lua b/unofficial/c100100515.lua index f731456f00..948f9525c4 100644 --- a/unofficial/c100100515.lua +++ b/unofficial/c100100515.lua @@ -82,4 +82,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() Duel.SendtoGrave(gg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100516.lua b/unofficial/c100100516.lua index 0312395753..152937b21a 100644 --- a/unofficial/c100100516.lua +++ b/unofficial/c100100516.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c100100517.lua b/unofficial/c100100517.lua index 2c54cc80ef..bdff581a94 100644 --- a/unofficial/c100100517.lua +++ b/unofficial/c100100517.lua @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c100100518.lua b/unofficial/c100100518.lua index 801212c31d..cdb51d8452 100644 --- a/unofficial/c100100518.lua +++ b/unofficial/c100100518.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:IsActiveType(TYPE_SPELL+TYPE_TRAP) -end +end \ No newline at end of file diff --git a/unofficial/c100100519.lua b/unofficial/c100100519.lua index 2890362838..348684ae70 100644 --- a/unofficial/c100100519.lua +++ b/unofficial/c100100519.lua @@ -22,13 +22,13 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.rmop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100520.lua b/unofficial/c100100520.lua index 93491691ed..d21b931803 100644 --- a/unofficial/c100100520.lua +++ b/unofficial/c100100520.lua @@ -87,4 +87,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.GetControl(tc,tp,PHASE_END,1) end end -end +end \ No newline at end of file diff --git a/unofficial/c100100521.lua b/unofficial/c100100521.lua index e2ac43b66a..05707bf6fd 100644 --- a/unofficial/c100100521.lua +++ b/unofficial/c100100521.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SendtoGrave(sg,REASON_EFFECT+REASON_RETURN) end -end +end \ No newline at end of file diff --git a/unofficial/c100100522.lua b/unofficial/c100100522.lua index e7657997e4..8e872e6862 100644 --- a/unofficial/c100100522.lua +++ b/unofficial/c100100522.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c100100525.lua b/unofficial/c100100525.lua index ad2f96e0aa..68e6e07677 100644 --- a/unofficial/c100100525.lua +++ b/unofficial/c100100525.lua @@ -23,7 +23,7 @@ end function s.checkop(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() while tc do - if tc:IsSummonType(SUMMON_TYPE_SYNCHRO) then + if tc:IsSynchroSummoned() then tc:RegisterFlagEffect(id,0,0,1) end tc=eg:GetNext() @@ -88,4 +88,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.rmfilter,nil) g:DeleteGroup() Duel.Remove(tg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100100700.lua b/unofficial/c100100700.lua index ac72fb1141..b112a9be91 100644 --- a/unofficial/c100100700.lua +++ b/unofficial/c100100700.lua @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c100101000.lua b/unofficial/c100101000.lua index 0d3168e812..64c430ddd7 100644 --- a/unofficial/c100101000.lua +++ b/unofficial/c100101000.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c100101001.lua b/unofficial/c100101001.lua index c546999af7..d5540a8d33 100644 --- a/unofficial/c100101001.lua +++ b/unofficial/c100101001.lua @@ -90,4 +90,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c100101002.lua b/unofficial/c100101002.lua index cbb8e1db36..f2e849d441 100644 --- a/unofficial/c100101002.lua +++ b/unofficial/c100101002.lua @@ -8,4 +8,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) return tc and tc:GetCounter(0x91)>1 -end +end \ No newline at end of file diff --git a/unofficial/c100101003.lua b/unofficial/c100101003.lua index 089ac373c7..9dcabe06d4 100644 --- a/unofficial/c100101003.lua +++ b/unofficial/c100101003.lua @@ -8,4 +8,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFieldCard(tp,LOCATION_FZONE,0) return tc and tc:GetCounter(0x91)>1 -end +end \ No newline at end of file diff --git a/unofficial/c110000000.lua b/unofficial/c110000000.lua index 6b6193b4a4..7be850bad8 100644 --- a/unofficial/c110000000.lua +++ b/unofficial/c110000000.lua @@ -149,4 +149,4 @@ function s.aclimit(e,re) end function s.aclimit2(e,c) return c:IsType(TYPE_FIELD) -end +end \ No newline at end of file diff --git a/unofficial/c110000010.lua b/unofficial/c110000010.lua index 69b2a63a4f..b717316a5c 100644 --- a/unofficial/c110000010.lua +++ b/unofficial/c110000010.lua @@ -78,7 +78,7 @@ function s.sumsuc(e,tp,eg,ep,ev,re,r,rp) Duel.SetChainLimitTillChainEnd(aux.FALSE) end function s.tgcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL) + return e:GetHandler():IsSpecialSummoned() end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -160,4 +160,4 @@ function s.adop(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c110000011.lua b/unofficial/c110000011.lua index 1553337e17..6ef85c9b09 100644 --- a/unofficial/c110000011.lua +++ b/unofficial/c110000011.lua @@ -37,7 +37,7 @@ function s.initial_effect(c) c:RegisterEffect(e5) end function s.tgcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL) + return e:GetHandler():IsSpecialSummoned() end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -63,4 +63,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c110000012.lua b/unofficial/c110000012.lua index 58360f5614..9ff34376f0 100644 --- a/unofficial/c110000012.lua +++ b/unofficial/c110000012.lua @@ -66,7 +66,7 @@ function s.sumsuc(e,tp,eg,ep,ev,re,r,rp) Duel.SetChainLimitTillChainEnd(aux.FALSE) end function s.tgcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL) + return e:GetHandler():IsSpecialSummoned() end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -92,4 +92,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsDefenseBelow(2000) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c110000099.lua b/unofficial/c110000099.lua index 423bd0c11f..4b1b25e10d 100644 --- a/unofficial/c110000099.lua +++ b/unofficial/c110000099.lua @@ -73,4 +73,4 @@ function s.descon2(e,tp,eg,ep,ev,re,r,rp) end function s.desop2(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c110000100.lua b/unofficial/c110000100.lua index 830135e5bb..e9392000ac 100644 --- a/unofficial/c110000100.lua +++ b/unofficial/c110000100.lua @@ -85,4 +85,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end function s.op(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():CopyEffect(48179391,RESET_EVENT+RESETS_STANDARD) -end +end \ No newline at end of file diff --git a/unofficial/c110000101.lua b/unofficial/c110000101.lua index 0c740742c1..0136c11ab6 100644 --- a/unofficial/c110000101.lua +++ b/unofficial/c110000101.lua @@ -57,4 +57,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) end function s.op(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():CopyEffect(110000100,RESET_EVENT+RESETS_STANDARD) -end +end \ No newline at end of file diff --git a/unofficial/c110000102.lua b/unofficial/c110000102.lua index 44aeb953b0..45b9fefc83 100644 --- a/unofficial/c110000102.lua +++ b/unofficial/c110000102.lua @@ -65,5 +65,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsReason(REASON_DESTROY) and tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end - +end \ No newline at end of file diff --git a/unofficial/c110000103.lua b/unofficial/c110000103.lua index 62a41ba0e1..31cdfc6df8 100644 --- a/unofficial/c110000103.lua +++ b/unofficial/c110000103.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e2,tp) --Destroy this card during the End Phase of this turn aux.DelayedOperation(c,PHASE_END,id,e,tp,function(ag) Duel.Destroy(ag,REASON_EFFECT) end) -end +end \ No newline at end of file diff --git a/unofficial/c110000104.lua b/unofficial/c110000104.lua index 391000fbd8..6ec3720f85 100644 --- a/unofficial/c110000104.lua +++ b/unofficial/c110000104.lua @@ -70,4 +70,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c110000105.lua b/unofficial/c110000105.lua index e7cfbaf7c3..88d8c43757 100644 --- a/unofficial/c110000105.lua +++ b/unofficial/c110000105.lua @@ -44,4 +44,4 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp) end function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c110000106.lua b/unofficial/c110000106.lua index db4f2fec69..167e704b0e 100644 --- a/unofficial/c110000106.lua +++ b/unofficial/c110000106.lua @@ -28,4 +28,4 @@ function s.regcon(e,tp,eg,ep,ev,re,r,rp) end function s.regop(e,tp,eg,ep,ev,re,r,rp) aux.DelayedOperation(e:GetHandler(),PHASE_END,id,e,tp,function(ag) Duel.Destroy(ag,REASON_EFFECT) end,nil,0) -end +end \ No newline at end of file diff --git a/unofficial/c110000107.lua b/unofficial/c110000107.lua index 62d2d8039b..619ba35d02 100644 --- a/unofficial/c110000107.lua +++ b/unofficial/c110000107.lua @@ -26,4 +26,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToBattle() and bc:IsRelateToBattle() then Duel.Destroy(Group.FromCards(c,bc),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c110000108.lua b/unofficial/c110000108.lua index 10dfd3a3b7..b2ff32fc79 100644 --- a/unofficial/c110000108.lua +++ b/unofficial/c110000108.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE|PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c110000109.lua b/unofficial/c110000109.lua index 1a7c60bfdf..4bc2568bd5 100644 --- a/unofficial/c110000109.lua +++ b/unofficial/c110000109.lua @@ -29,4 +29,4 @@ function s.initial_effect(c) e5:SetType(EFFECT_TYPE_SINGLE) e5:SetCode(EFFECT_PIERCE) c:RegisterEffect(e5) -end +end \ No newline at end of file diff --git a/unofficial/c110000110.lua b/unofficial/c110000110.lua index b377693fee..474ad7387a 100644 --- a/unofficial/c110000110.lua +++ b/unofficial/c110000110.lua @@ -32,4 +32,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Damage(1-tp,atk,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c110000111.lua b/unofficial/c110000111.lua index ece3e498d8..929f3ac1c0 100644 --- a/unofficial/c110000111.lua +++ b/unofficial/c110000111.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-c:GetAttack()) bc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c110000112.lua b/unofficial/c110000112.lua index edc585c871..7f69d4b6b1 100644 --- a/unofficial/c110000112.lua +++ b/unofficial/c110000112.lua @@ -21,4 +21,4 @@ function s.initial_effect(c) e4:SetType(EFFECT_TYPE_SINGLE) e4:SetCode(EFFECT_CANNOT_ATTACK) c:RegisterEffect(e4) -end +end \ No newline at end of file diff --git a/unofficial/c110000113.lua b/unofficial/c110000113.lua index 9b4c9a29aa..379308ef08 100644 --- a/unofficial/c110000113.lua +++ b/unofficial/c110000113.lua @@ -58,4 +58,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.desfilter,nil) g:DeleteGroup() Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c110000115.lua b/unofficial/c110000115.lua index 167fe06712..90f4bc4d29 100644 --- a/unofficial/c110000115.lua +++ b/unofficial/c110000115.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c110000116.lua b/unofficial/c110000116.lua index bac425d52b..207ef5e108 100644 --- a/unofficial/c110000116.lua +++ b/unofficial/c110000116.lua @@ -63,4 +63,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.tgfilter,nil,e:GetLabel()) g:DeleteGroup() Duel.SendtoGrave(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c110000117.lua b/unofficial/c110000117.lua index 05c46dd405..8bf0affab1 100644 --- a/unofficial/c110000117.lua +++ b/unofficial/c110000117.lua @@ -40,4 +40,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if bc and bc:IsRelateToBattle() and Duel.Destroy(bc,REASON_EFFECT)>0 then Duel.Damage(1-tp,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c110000120.lua b/unofficial/c110000120.lua index ad1aad89ed..f2db035401 100644 --- a/unofficial/c110000120.lua +++ b/unofficial/c110000120.lua @@ -52,4 +52,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c111008301.lua b/unofficial/c111008301.lua index 27bab554a0..288cc42ca1 100644 --- a/unofficial/c111008301.lua +++ b/unofficial/c111008301.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsSetCard(0x55) and c:IsAbleToGraveAsCost() and c:IsMonster() + return c:IsSetCard(SET_PHOTON) and c:IsAbleToGraveAsCost() and c:IsMonster() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND,0,1,nil) end @@ -30,4 +30,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c111009401.lua b/unofficial/c111009401.lua index d1a19ea4f5..d456abd13a 100644 --- a/unofficial/c111009401.lua +++ b/unofficial/c111009401.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c111011002.lua b/unofficial/c111011002.lua index 265bfe2333..6f5119c346 100644 --- a/unofficial/c111011002.lua +++ b/unofficial/c111011002.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) end s.listed_series={0x1048,0x48} function s.ofilter(c,tp) - return c:CheckRemoveOverlayCard(tp,1,REASON_COST) and c:IsSetCard(0x1048) and c:IsFaceup() + return c:CheckRemoveOverlayCard(tp,1,REASON_COST) and c:IsSetCard(SET_NUMBER_C) and c:IsFaceup() end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.ofilter,tp,LOCATION_MZONE,0,1,nil,tp) end @@ -43,7 +43,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) end function s.filter(c,e,tp) - return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 + return c:IsSetCard(SET_NUMBER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -116,4 +116,4 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c111011401.lua b/unofficial/c111011401.lua index b9a074bbbd..320bae3fa1 100644 --- a/unofficial/c111011401.lua +++ b/unofficial/c111011401.lua @@ -70,4 +70,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c111011501.lua b/unofficial/c111011501.lua index e8608af794..81bbd255c2 100644 --- a/unofficial/c111011501.lua +++ b/unofficial/c111011501.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.mfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1083) and c:IsType(TYPE_XYZ) + return c:IsFaceup() and c:IsSetCard(SET_GIMMICK_PUPPET) and c:IsType(TYPE_XYZ) end function s.filter(c,e,tp) return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsType(TYPE_XYZ) @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(mat1,tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c111011802.lua b/unofficial/c111011802.lua index dd01f6679c..c82ceedf2e 100644 --- a/unofficial/c111011802.lua +++ b/unofficial/c111011802.lua @@ -40,7 +40,7 @@ end function s.drcon(e,tp,eg,ep,ev,re,r,rp) if not re then return false end local rc=re:GetHandler() - return eg:IsExists(s.drfilter,1,nil) and rc:IsSetCard(0x95) + return eg:IsExists(s.drfilter,1,nil) and rc:IsSetCard(SET_RANK_UP_MAGIC) end function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end @@ -88,11 +88,11 @@ end function s.spop(e,tp,eg,ep,ev,re,r,rp) if not re then return end local rc=re:GetHandler() - if rc:IsSetCard(0x95) then + if rc:IsSetCard(SET_RANK_UP_MAGIC) then local tc=eg:GetFirst() while tc do tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1) tc=eg:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c111011803.lua b/unofficial/c111011803.lua index bc3ef4de67..f88c3506f8 100644 --- a/unofficial/c111011803.lua +++ b/unofficial/c111011803.lua @@ -34,4 +34,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc:SetStatus(STATUS_SET_TURN,false) end end -end +end \ No newline at end of file diff --git a/unofficial/c111011901.lua b/unofficial/c111011901.lua index 098a32c761..3317e4bb29 100644 --- a/unofficial/c111011901.lua +++ b/unofficial/c111011901.lua @@ -88,4 +88,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c111011903.lua b/unofficial/c111011903.lua index 56987b9537..3e73ef99e2 100644 --- a/unofficial/c111011903.lua +++ b/unofficial/c111011903.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c111011904.lua b/unofficial/c111011904.lua index ad786d71a3..508facd114 100644 --- a/unofficial/c111011904.lua +++ b/unofficial/c111011904.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) - e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) end) + e1:SetCondition(function(e) return e:GetHandler():IsXyzSummoned() end) e1:SetTarget(s.thtg) e1:SetOperation(s.thop) c:RegisterEffect(e1) @@ -165,4 +165,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp,chk) end end end -end +end \ No newline at end of file diff --git a/unofficial/c111011905.lua b/unofficial/c111011905.lua index d340bbff01..9037498f7d 100644 --- a/unofficial/c111011905.lua +++ b/unofficial/c111011905.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local dg=g:Select(1-tp,ct,ct,nil) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c111011906.lua b/unofficial/c111011906.lua index 40427de9bf..3da0bf6613 100644 --- a/unofficial/c111011906.lua +++ b/unofficial/c111011906.lua @@ -78,4 +78,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Overlay(c,g) end -end +end \ No newline at end of file diff --git a/unofficial/c111012401.lua b/unofficial/c111012401.lua index 8805a12250..0be4c4c4e5 100644 --- a/unofficial/c111012401.lua +++ b/unofficial/c111012401.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c) - return c:IsSetCard(0x1083) and c:IsType(TYPE_XYZ) + return c:IsSetCard(SET_GIMMICK_PUPPET) and c:IsType(TYPE_XYZ) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) local ec=e:GetHandler():GetEquipTarget() @@ -31,4 +31,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not c:IsRelateToEffect(e) or not ec then return end local dam=ec:GetOverlayCount()*300 Duel.Damage(1-tp,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c111203901.lua b/unofficial/c111203901.lua index 263aad1252..067a938888 100644 --- a/unofficial/c111203901.lua +++ b/unofficial/c111203901.lua @@ -37,4 +37,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c111203902.lua b/unofficial/c111203902.lua index 1d565b886d..c74ccbf5d1 100644 --- a/unofficial/c111203902.lua +++ b/unofficial/c111203902.lua @@ -32,4 +32,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) Duel.SendtoHand(sg,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c111215001.lua b/unofficial/c111215001.lua index 39d315bb48..053c1f1526 100644 --- a/unofficial/c111215001.lua +++ b/unofficial/c111215001.lua @@ -104,4 +104,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c111217602.lua b/unofficial/c111217602.lua index 9e6a1f28c1..7e08bf5eb1 100644 --- a/unofficial/c111217602.lua +++ b/unofficial/c111217602.lua @@ -20,7 +20,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.cfilter(c) - return c:IsSetCard(0x1034) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK,0,1,nil) end @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end Duel.Draw(1-tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c111302501.lua b/unofficial/c111302501.lua index 2021aabc0c..166ecb1c3b 100644 --- a/unofficial/c111302501.lua +++ b/unofficial/c111302501.lua @@ -99,4 +99,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c111310102.lua b/unofficial/c111310102.lua index 2cc83ceaaa..032f8fee32 100644 --- a/unofficial/c111310102.lua +++ b/unofficial/c111310102.lua @@ -26,4 +26,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,val=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.DiscardDeck(p,val,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c120000016.lua b/unofficial/c120000016.lua index 72d9fc73cf..6511c7a432 100644 --- a/unofficial/c120000016.lua +++ b/unofficial/c120000016.lua @@ -156,4 +156,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp,c,og) og:Merge(tg) g:DeleteGroup() end -end +end \ No newline at end of file diff --git a/unofficial/c140000075.lua b/unofficial/c140000075.lua index a161c92deb..e6b11e6d9c 100644 --- a/unofficial/c140000075.lua +++ b/unofficial/c140000075.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,cc:GetPreviousControler(),true,false,POS_FACEUP_ATTACK)>0 then Duel.RaiseSingleEvent(tc,id,e,REASON_EFFECT,tp,tp,cc:GetPreviousAttackOnField()) end -end +end \ No newline at end of file diff --git a/unofficial/c140000076.lua b/unofficial/c140000076.lua index 54a88be24b..071b8a64af 100644 --- a/unofficial/c140000076.lua +++ b/unofficial/c140000076.lua @@ -27,4 +27,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ev+1000) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c140000082.lua b/unofficial/c140000082.lua index f73b11055f..2504cf1146 100644 --- a/unofficial/c140000082.lua +++ b/unofficial/c140000082.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c140000083.lua b/unofficial/c140000083.lua index 13077a51fb..b80a87fb14 100644 --- a/unofficial/c140000083.lua +++ b/unofficial/c140000083.lua @@ -43,7 +43,7 @@ function s.efilter(e,te) return te:IsActiveType(TYPE_SPELL+TYPE_TRAP) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -58,4 +58,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.atcon(e) return Duel.IsExistingMatchingCard(Card.IsCode,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil,140000085) -end +end \ No newline at end of file diff --git a/unofficial/c140000122.lua b/unofficial/c140000122.lua index 2fb52c8f64..a39f1a1437 100644 --- a/unofficial/c140000122.lua +++ b/unofficial/c140000122.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if not tc1 or not tc1:IsRelateToEffect(e) or not tc2 or not tc2:IsRelateToEffect(e) then return end if tc1:IsControler(tp) then tc2,tc1=tc1,tc2 end Duel.CalculateDamage(tc1,tc2) -end +end \ No newline at end of file diff --git a/unofficial/c140000131.lua b/unofficial/c140000131.lua index 5f1aadf796..b5899a0e84 100644 --- a/unofficial/c140000131.lua +++ b/unofficial/c140000131.lua @@ -131,4 +131,4 @@ function s.act(e,tp,eg,ep,ev,re,r,rp) e:SetLabel(e:GetLabel()-1) if e:GetLabel()==0 then e:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c150000000.lua b/unofficial/c150000000.lua index 215fa1902a..99ea5615af 100644 --- a/unofficial/c150000000.lua +++ b/unofficial/c150000000.lua @@ -68,4 +68,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local g=Duel.GetMatchingGroup(s.tgfilter,1-ep,LOCATION_HAND,0,nil) Duel.SendtoGrave(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000001.lua b/unofficial/c150000001.lua index eec24c30c3..3d9bebef13 100644 --- a/unofficial/c150000001.lua +++ b/unofficial/c150000001.lua @@ -36,4 +36,4 @@ function s.value(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c150000002.lua b/unofficial/c150000002.lua index 69f0c5026d..08e5591783 100644 --- a/unofficial/c150000002.lua +++ b/unofficial/c150000002.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000003.lua b/unofficial/c150000003.lua index e0139c5058..e8058df576 100644 --- a/unofficial/c150000003.lua +++ b/unofficial/c150000003.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000004.lua b/unofficial/c150000004.lua index 9ca6c64217..12e60dc436 100644 --- a/unofficial/c150000004.lua +++ b/unofficial/c150000004.lua @@ -68,4 +68,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000005.lua b/unofficial/c150000005.lua index 634e84e239..0fd22e5c86 100644 --- a/unofficial/c150000005.lua +++ b/unofficial/c150000005.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp and Duel.IsBattlePhase() + return Duel.IsTurnPlayer(1-tp) and Duel.IsBattlePhase() end function s.activate(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(e:GetHandler()) @@ -37,4 +37,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeAttackTarget(g:GetFirst()) Duel.GetAttacker():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000006.lua b/unofficial/c150000006.lua index e997516fcc..9ca8ee7479 100644 --- a/unofficial/c150000006.lua +++ b/unofficial/c150000006.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) e1:SetTargetRange(0,1) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c150000009.lua b/unofficial/c150000009.lua index 0816679e53..17be84feaf 100644 --- a/unofficial/c150000009.lua +++ b/unofficial/c150000009.lua @@ -16,4 +16,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c150000010.lua b/unofficial/c150000010.lua index dd5a722bc0..8c7b8eaa07 100644 --- a/unofficial/c150000010.lua +++ b/unofficial/c150000010.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local dam=(Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD)-Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0))*300 end Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000011.lua b/unofficial/c150000011.lua index b6bdf18bbe..4559096a31 100644 --- a/unofficial/c150000011.lua +++ b/unofficial/c150000011.lua @@ -16,4 +16,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c150000012.lua b/unofficial/c150000012.lua index 25d5a351bf..0c2f406287 100644 --- a/unofficial/c150000012.lua +++ b/unofficial/c150000012.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000013.lua b/unofficial/c150000013.lua index 7dedbed6b8..01eeb69bae 100644 --- a/unofficial/c150000013.lua +++ b/unofficial/c150000013.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-900) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000014.lua b/unofficial/c150000014.lua index ddb95ef563..c444d7575e 100644 --- a/unofficial/c150000014.lua +++ b/unofficial/c150000014.lua @@ -30,4 +30,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000015.lua b/unofficial/c150000015.lua index 991cd1834b..03c988765f 100644 --- a/unofficial/c150000015.lua +++ b/unofficial/c150000015.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:IsActiveType(TYPE_SPELL+TYPE_TRAP) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c150000017.lua b/unofficial/c150000017.lua index 15026e441f..0f52551a08 100644 --- a/unofficial/c150000017.lua +++ b/unofficial/c150000017.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.climit(e,lp,tp) return lp==tp or not e:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c150000018.lua b/unofficial/c150000018.lua index e35a3ee272..426d45d237 100644 --- a/unofficial/c150000018.lua +++ b/unofficial/c150000018.lua @@ -47,4 +47,4 @@ function s.hdop(e,tp,eg,ep,ev,re,r,rp) if dg:GetFirst() then Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000019.lua b/unofficial/c150000019.lua index 8d57df65fb..5576e6f465 100644 --- a/unofficial/c150000019.lua +++ b/unofficial/c150000019.lua @@ -21,4 +21,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000020.lua b/unofficial/c150000020.lua index 2e2ba3bbf4..6d64b96e41 100644 --- a/unofficial/c150000020.lua +++ b/unofficial/c150000020.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c150000021.lua b/unofficial/c150000021.lua index de2c5ae7a2..ed0a4b5c5c 100644 --- a/unofficial/c150000021.lua +++ b/unofficial/c150000021.lua @@ -26,4 +26,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000022.lua b/unofficial/c150000022.lua index c33306008c..a8c1732653 100644 --- a/unofficial/c150000022.lua +++ b/unofficial/c150000022.lua @@ -98,4 +98,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c150000023.lua b/unofficial/c150000023.lua index 677140c9b1..617216b326 100644 --- a/unofficial/c150000023.lua +++ b/unofficial/c150000023.lua @@ -21,4 +21,4 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000024.lua b/unofficial/c150000024.lua index 069f4f3804..e796ffd5d5 100644 --- a/unofficial/c150000024.lua +++ b/unofficial/c150000024.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.NegateAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c150000025.lua b/unofficial/c150000025.lua index 05760f6dab..c9b3ff2452 100644 --- a/unofficial/c150000025.lua +++ b/unofficial/c150000025.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e) return Duel.IsBattlePhase() -end +end \ No newline at end of file diff --git a/unofficial/c150000026.lua b/unofficial/c150000026.lua index 0032813931..91bb9629c4 100644 --- a/unofficial/c150000026.lua +++ b/unofficial/c150000026.lua @@ -21,4 +21,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000027.lua b/unofficial/c150000027.lua index a8fce4abf1..ce3b541d2e 100644 --- a/unofficial/c150000027.lua +++ b/unofficial/c150000027.lua @@ -21,4 +21,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000028.lua b/unofficial/c150000028.lua index 3e9c3a6232..3238b11f26 100644 --- a/unofficial/c150000028.lua +++ b/unofficial/c150000028.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000030.lua b/unofficial/c150000030.lua index f5f99d238a..38bd29d67d 100644 --- a/unofficial/c150000030.lua +++ b/unofficial/c150000030.lua @@ -63,4 +63,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000031.lua b/unofficial/c150000031.lua index 318b9a7702..c9a2dcb084 100644 --- a/unofficial/c150000031.lua +++ b/unofficial/c150000031.lua @@ -34,4 +34,4 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c150000033.lua b/unofficial/c150000033.lua index 24ca4c7060..4d3bbbb44f 100644 --- a/unofficial/c150000033.lua +++ b/unofficial/c150000033.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000034.lua b/unofficial/c150000034.lua index 116368968b..316003c3a5 100644 --- a/unofficial/c150000034.lua +++ b/unofficial/c150000034.lua @@ -56,4 +56,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.NegateActivation(ev) -end +end \ No newline at end of file diff --git a/unofficial/c150000035.lua b/unofficial/c150000035.lua index 9b5790100d..6a5409d6b6 100644 --- a/unofficial/c150000035.lua +++ b/unofficial/c150000035.lua @@ -48,4 +48,4 @@ function s.posop2(e,tp,eg,ep,ev,re,r,rp) if c:IsFaceup() and c:IsRelateToEffect(e) and c:IsDefensePos() then Duel.ChangePosition(c,0,0,POS_FACEUP_ATTACK,0) end -end +end \ No newline at end of file diff --git a/unofficial/c150000037.lua b/unofficial/c150000037.lua index 1594ff6d85..6118da2a17 100644 --- a/unofficial/c150000037.lua +++ b/unofficial/c150000037.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:GetOwner()~=e:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c150000039.lua b/unofficial/c150000039.lua index 6e191f3993..9a55f6979a 100644 --- a/unofficial/c150000039.lua +++ b/unofficial/c150000039.lua @@ -63,4 +63,4 @@ function s.discardOp(e,tp) Duel.SendtoGrave(g,REASON_EFFECT) Duel.ResetFlagEffect(tp,id) end -end +end \ No newline at end of file diff --git a/unofficial/c150000040.lua b/unofficial/c150000040.lua index 0919f6f04b..637285da9c 100644 --- a/unofficial/c150000040.lua +++ b/unofficial/c150000040.lua @@ -21,4 +21,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000041.lua b/unofficial/c150000041.lua index 609f887da5..5b6d421584 100644 --- a/unofficial/c150000041.lua +++ b/unofficial/c150000041.lua @@ -18,4 +18,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,0) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000042.lua b/unofficial/c150000042.lua index 53bb8183e9..501b6f7d20 100644 --- a/unofficial/c150000042.lua +++ b/unofficial/c150000042.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e2,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c150000044.lua b/unofficial/c150000044.lua index 52b1f89972..1ceb4c87b5 100644 --- a/unofficial/c150000044.lua +++ b/unofficial/c150000044.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000047.lua b/unofficial/c150000047.lua index 53d042ef49..7b0f57a83e 100644 --- a/unofficial/c150000047.lua +++ b/unofficial/c150000047.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000048.lua b/unofficial/c150000048.lua index ab29078b8c..dbfff319f1 100644 --- a/unofficial/c150000048.lua +++ b/unofficial/c150000048.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e) return Duel.IsBattlePhase() -end +end \ No newline at end of file diff --git a/unofficial/c150000049.lua b/unofficial/c150000049.lua index edfa4f9022..9b687df4e0 100644 --- a/unofficial/c150000049.lua +++ b/unofficial/c150000049.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(aatk) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) d:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c150000050.lua b/unofficial/c150000050.lua index bfb59b0794..52ae1c3935 100644 --- a/unofficial/c150000050.lua +++ b/unofficial/c150000050.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000051.lua b/unofficial/c150000051.lua index 09f1d391aa..f700cc6baa 100644 --- a/unofficial/c150000051.lua +++ b/unofficial/c150000051.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsPosition(POS_FACEUP_ATTACK) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c150000054.lua b/unofficial/c150000054.lua index d69167623c..15f043d309 100644 --- a/unofficial/c150000054.lua +++ b/unofficial/c150000054.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else Duel.Damage(tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000055.lua b/unofficial/c150000055.lua index 5633ee56d8..482f137c58 100644 --- a/unofficial/c150000055.lua +++ b/unofficial/c150000055.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) elseif e:GetLabel()==1 then Duel.Damage(tp,100,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000059.lua b/unofficial/c150000059.lua index 4969e58966..751f7cf26b 100644 --- a/unofficial/c150000059.lua +++ b/unofficial/c150000059.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) elseif e:GetLabel()==1 then Duel.Recover(tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000060.lua b/unofficial/c150000060.lua index f161cf41c6..b4738adca2 100644 --- a/unofficial/c150000060.lua +++ b/unofficial/c150000060.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL) tc:RegisterEffect(e2,true) end -end +end \ No newline at end of file diff --git a/unofficial/c150000061.lua b/unofficial/c150000061.lua index e1c8671949..021de1e883 100644 --- a/unofficial/c150000061.lua +++ b/unofficial/c150000061.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000062.lua b/unofficial/c150000062.lua index f078bb64d6..3ad01085dd 100644 --- a/unofficial/c150000062.lua +++ b/unofficial/c150000062.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000063.lua b/unofficial/c150000063.lua index 3b263960da..1f1bf3f554 100644 --- a/unofficial/c150000063.lua +++ b/unofficial/c150000063.lua @@ -42,4 +42,4 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c150000064.lua b/unofficial/c150000064.lua index 89b4fe2e56..e28b862ddb 100644 --- a/unofficial/c150000064.lua +++ b/unofficial/c150000064.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000065.lua b/unofficial/c150000065.lua index ce1ab3d072..3597e15cd7 100644 --- a/unofficial/c150000065.lua +++ b/unofficial/c150000065.lua @@ -30,12 +30,12 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) local sk=Duel.GetTurnPlayer() Duel.BreakEffect() - Duel.SkipPhase(sk,PHASE_DRAW,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(sk,PHASE_STANDBY,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(sk,PHASE_MAIN1,RESET_PHASE+PHASE_END,1) + Duel.SkipPhase(sk,PHASE_DRAW,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(sk,PHASE_STANDBY,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(sk,PHASE_MAIN1,RESET_PHASE|PHASE_END,1) Duel.SkipPhase(sk,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) Duel.SkipPhase(sk,PHASE_MAIN2,RESET_PHASE+PHASE_MAIN2,1) - Duel.SkipPhase(sk,PHASE_END,RESET_PHASE+PHASE_END,1) + Duel.SkipPhase(sk,PHASE_END,RESET_PHASE|PHASE_END,1) end function s.refcon(e,re,val,r,rp,rc) local cc=Duel.GetCurrentChain() @@ -44,4 +44,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c150000066.lua b/unofficial/c150000066.lua index adfa3a1416..533f3c9258 100644 --- a/unofficial/c150000066.lua +++ b/unofficial/c150000066.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e) return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE -end +end \ No newline at end of file diff --git a/unofficial/c150000067.lua b/unofficial/c150000067.lua index dfdd4e2ab8..26b8077a56 100644 --- a/unofficial/c150000067.lua +++ b/unofficial/c150000067.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(600) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) at:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c150000068.lua b/unofficial/c150000068.lua index f80ce45dcc..77ed9d0784 100644 --- a/unofficial/c150000068.lua +++ b/unofficial/c150000068.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000069.lua b/unofficial/c150000069.lua index 398ea24c23..1361ce4d94 100644 --- a/unofficial/c150000069.lua +++ b/unofficial/c150000069.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.Damage(1-tp,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000070.lua b/unofficial/c150000070.lua index 5d3e87c29a..6a42487be6 100644 --- a/unofficial/c150000070.lua +++ b/unofficial/c150000070.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(tc,0,0,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end end -end +end \ No newline at end of file diff --git a/unofficial/c150000071.lua b/unofficial/c150000071.lua index 76c5176ea1..baa75a861e 100644 --- a/unofficial/c150000071.lua +++ b/unofficial/c150000071.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c150000072.lua b/unofficial/c150000072.lua index d212c8893e..2cedd14c39 100644 --- a/unofficial/c150000072.lua +++ b/unofficial/c150000072.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000073.lua b/unofficial/c150000073.lua index 1e82ec1c67..fde0819080 100644 --- a/unofficial/c150000073.lua +++ b/unofficial/c150000073.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Damage(1-tp,500,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c150000074.lua b/unofficial/c150000074.lua index c3f8310c66..45d3dd702a 100644 --- a/unofficial/c150000074.lua +++ b/unofficial/c150000074.lua @@ -48,4 +48,4 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c150000076.lua b/unofficial/c150000076.lua index 46f5fefc6f..f0d5ea98b4 100644 --- a/unofficial/c150000076.lua +++ b/unofficial/c150000076.lua @@ -43,4 +43,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,ev/2) Duel.ChangeBattleDamage(1-ep,ev/2) -end +end \ No newline at end of file diff --git a/unofficial/c150000078.lua b/unofficial/c150000078.lua index 16e9ecd88d..e3593d1ca4 100644 --- a/unofficial/c150000078.lua +++ b/unofficial/c150000078.lua @@ -28,4 +28,4 @@ function s.dop(e,tp,eg,ep,ev,re,r,rp) elseif Duel.GetBattleDamage(1-tp)>0 then Duel.ChangeBattleDamage(1-tp,Duel.GetBattleDamage(1-tp)+1000) end -end +end \ No newline at end of file diff --git a/unofficial/c150000079.lua b/unofficial/c150000079.lua index abe6325d35..1b0ed3c877 100644 --- a/unofficial/c150000079.lua +++ b/unofficial/c150000079.lua @@ -14,13 +14,13 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD+LOCATION_HAND,LOCATION_ONFIELD+LOCATION_HAND) + local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD|LOCATION_HAND,LOCATION_ONFIELD|LOCATION_HAND) if chk==0 then return g:GetFirst() end Duel.SetTargetPlayer(1-tp) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,#g*500) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) - local d=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD+LOCATION_HAND,LOCATION_ONFIELD+LOCATION_HAND)*500 + local d=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD|LOCATION_HAND,LOCATION_ONFIELD|LOCATION_HAND)*500 Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000080.lua b/unofficial/c150000080.lua index 1f5bb4fd1b..b4383c1f51 100644 --- a/unofficial/c150000080.lua +++ b/unofficial/c150000080.lua @@ -16,14 +16,14 @@ function s.filter(c) return c:IsType(TYPE_ACTION) and not c:IsType(TYPE_FIELD) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_ONFIELD+LOCATION_HAND,LOCATION_ONFIELD+LOCATION_HAND,1,e:GetHandler()) end - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD+LOCATION_HAND,LOCATION_ONFIELD+LOCATION_HAND,e:GetHandler()) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_ONFIELD|LOCATION_HAND,LOCATION_ONFIELD|LOCATION_HAND,1,e:GetHandler()) end + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD|LOCATION_HAND,LOCATION_ONFIELD|LOCATION_HAND,e:GetHandler()) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) - local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_ONFIELD+LOCATION_HAND,LOCATION_ONFIELD+LOCATION_HAND,1,1,e:GetHandler()) + local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_ONFIELD|LOCATION_HAND,LOCATION_ONFIELD|LOCATION_HAND,1,1,e:GetHandler()) if g:GetFirst() then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000081.lua b/unofficial/c150000081.lua index 30b800d503..c3a8e530c2 100644 --- a/unofficial/c150000081.lua +++ b/unofficial/c150000081.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local d=Duel.AnnounceNumber(tp,table.unpack(s.effDamage)) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000082.lua b/unofficial/c150000082.lua index b40e1ecef3..14e6cf8676 100644 --- a/unofficial/c150000082.lua +++ b/unofficial/c150000082.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000083.lua b/unofficial/c150000083.lua index 1b3bb877ee..a6b7ba7674 100644 --- a/unofficial/c150000083.lua +++ b/unofficial/c150000083.lua @@ -21,4 +21,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000084.lua b/unofficial/c150000084.lua index a1a46371ec..5ca43050aa 100644 --- a/unofficial/c150000084.lua +++ b/unofficial/c150000084.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) end function s.op(e,tp,eg,ep,ev,re,r,rp) if Duel.GetBattleDamage(0)>0 or Duel.GetBattleDamage(1)>0 then - Duel.RegisterFlagEffect(0,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(0,id,RESET_PHASE|PHASE_END,0,1) end end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ge1:SetValue(DOUBLE_DAMAGE) ge1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(ge1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c150000085.lua b/unofficial/c150000085.lua index 19cf497837..e699281b93 100644 --- a/unofficial/c150000085.lua +++ b/unofficial/c150000085.lua @@ -42,4 +42,4 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.ChainAttack() -end +end \ No newline at end of file diff --git a/unofficial/c150000086.lua b/unofficial/c150000086.lua index b7cdd50597..13fe744a56 100644 --- a/unofficial/c150000086.lua +++ b/unofficial/c150000086.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) c:Type(c:Type()|TYPE_FIELD) -end +end \ No newline at end of file diff --git a/unofficial/c150000087.lua b/unofficial/c150000087.lua index 5bed0978cf..3e2e077dfa 100644 --- a/unofficial/c150000087.lua +++ b/unofficial/c150000087.lua @@ -34,7 +34,7 @@ end function s.checkop(e,tp,eg,ep,ev,re,r,rp) for ec in aux.Next(eg) do if ec:IsMonster() then - Duel.RegisterFlagEffect(0,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(0,id,RESET_PHASE|PHASE_END,0,1) end end end @@ -49,5 +49,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,d*300,REASON_EFFECT) end - Duel.RegisterFlagEffect(0,id+1,RESET_PHASE+PHASE_END,0,1) -end + Duel.RegisterFlagEffect(0,id+1,RESET_PHASE|PHASE_END,0,1) +end \ No newline at end of file diff --git a/unofficial/c150000088.lua b/unofficial/c150000088.lua index a3619b618b..9aa76954df 100644 --- a/unofficial/c150000088.lua +++ b/unofficial/c150000088.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) rc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000090.lua b/unofficial/c150000090.lua index 1ef4d50009..11683e5b94 100644 --- a/unofficial/c150000090.lua +++ b/unofficial/c150000090.lua @@ -51,4 +51,4 @@ function s.damcon2(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() and math.ceil(val/2) or val -end +end \ No newline at end of file diff --git a/unofficial/c150000091.lua b/unofficial/c150000091.lua index 1a9e5d9b39..6b9598ad87 100644 --- a/unofficial/c150000091.lua +++ b/unofficial/c150000091.lua @@ -26,6 +26,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(DOUBLE_DAMAGE) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) -end - + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) +end \ No newline at end of file diff --git a/unofficial/c150000092.lua b/unofficial/c150000092.lua index 79e6c2239e..e81b73cd20 100644 --- a/unofficial/c150000092.lua +++ b/unofficial/c150000092.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c150000094.lua b/unofficial/c150000094.lua index 34290a3491..f512d3e5b7 100644 --- a/unofficial/c150000094.lua +++ b/unofficial/c150000094.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) end s.listed_names={id+1} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil,id+1) + return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_ONFIELD|LOCATION_HAND,0,1,nil,id+1) and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000095.lua b/unofficial/c150000095.lua index 1a08d3c24d..9741a3dc4f 100644 --- a/unofficial/c150000095.lua +++ b/unofficial/c150000095.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) end s.listed_names={id-1} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,nil,id+1) + return Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_ONFIELD|LOCATION_HAND,0,1,nil,id+1) and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000096.lua b/unofficial/c150000096.lua index d9c1a6697f..4bb3f875a7 100644 --- a/unofficial/c150000096.lua +++ b/unofficial/c150000096.lua @@ -22,4 +22,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000097.lua b/unofficial/c150000097.lua index fa47cc971c..d50bbb3130 100644 --- a/unofficial/c150000097.lua +++ b/unofficial/c150000097.lua @@ -21,4 +21,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000098.lua b/unofficial/c150000098.lua index 4a6a057bd3..332ba5139e 100644 --- a/unofficial/c150000098.lua +++ b/unofficial/c150000098.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000099.lua b/unofficial/c150000099.lua index 0b1fd22779..fca09c3440 100644 --- a/unofficial/c150000099.lua +++ b/unofficial/c150000099.lua @@ -36,4 +36,4 @@ end function s.repval(e,c) return not c:IsReason(REASON_REPLACE) and c:IsReason(REASON_EFFECT) and c:GetReasonEffect()==e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c150000100.lua b/unofficial/c150000100.lua index f0bda12359..5f6ead1a8d 100644 --- a/unofficial/c150000100.lua +++ b/unofficial/c150000100.lua @@ -23,4 +23,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c150000101.lua b/unofficial/c150000101.lua index be5140c92f..be273b2589 100644 --- a/unofficial/c150000101.lua +++ b/unofficial/c150000101.lua @@ -52,4 +52,4 @@ function s.damcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return val end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c150000102.lua b/unofficial/c150000102.lua index d68e2eb2c2..9781089ab3 100644 --- a/unofficial/c150000102.lua +++ b/unofficial/c150000102.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.tg(e,c) return c:IsFacedown() and c:IsSpellTrap() -end +end \ No newline at end of file diff --git a/unofficial/c150000103.lua b/unofficial/c150000103.lua index c8f52e04f4..4bf06e19d3 100644 --- a/unofficial/c150000103.lua +++ b/unofficial/c150000103.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetDescription(aux.Stringid(id,0)) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000104.lua b/unofficial/c150000104.lua index e3361bb88c..18e29366ab 100644 --- a/unofficial/c150000104.lua +++ b/unofficial/c150000104.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c150000105.lua b/unofficial/c150000105.lua index 4e70ddab81..bb8a5c3963 100644 --- a/unofficial/c150000105.lua +++ b/unofficial/c150000105.lua @@ -17,8 +17,8 @@ function s.filter(c) or c:IsControlerCanBeChanged() and c:IsLocation(LOCATION_ONFIELD)) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_ONFIELD+LOCATION_HAND,2,nil) end - local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD+LOCATION_HAND,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_ONFIELD|LOCATION_HAND,2,nil) end + local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD|LOCATION_HAND,nil) if g:IsExists(Card.IsLocation,1,nil,LOCATION_ONFIELD) then Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,1,0,0) end @@ -28,7 +28,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,0,LOCATION_ONFIELD+LOCATION_HAND,2,2,nil) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,0,LOCATION_ONFIELD|LOCATION_HAND,2,2,nil) if #g==2 then local hg=g:Filter(Card.IsLocation,nil,LOCATION_HAND) local fg=g-hg @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.GetControl(fg,tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c150000106.lua b/unofficial/c150000106.lua index 7b4cbf38e9..ce35b233b0 100644 --- a/unofficial/c150000106.lua +++ b/unofficial/c150000106.lua @@ -16,14 +16,14 @@ function s.filter(c) return c:IsType(TYPE_ACTION) and not c:IsType(TYPE_FIELD) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_ONFIELD+LOCATION_HAND,1,nil) end - local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD+LOCATION_HAND,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_ONFIELD|LOCATION_HAND,1,nil) end + local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD|LOCATION_HAND,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,0,0) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,300) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD+LOCATION_HAND,nil) + local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD|LOCATION_HAND,nil) if Duel.Destroy(g,REASON_EFFECT)>0 then Duel.Damage(1-tp,300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000107.lua b/unofficial/c150000107.lua index 3072f784fb..8a3e8da07f 100644 --- a/unofficial/c150000107.lua +++ b/unofficial/c150000107.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000108.lua b/unofficial/c150000108.lua index 28b198f680..cbf4bd8de8 100644 --- a/unofficial/c150000108.lua +++ b/unofficial/c150000108.lua @@ -23,7 +23,7 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) local rc=re:GetHandler() if rc:IsType(TYPE_ACTION) and not rc:IsType(TYPE_FIELD) then - Duel.RegisterFlagEffect(0,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(0,id,RESET_PHASE|PHASE_END,0,1) end end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c150000109.lua b/unofficial/c150000109.lua index ddde473fd3..68feac9a1f 100644 --- a/unofficial/c150000109.lua +++ b/unofficial/c150000109.lua @@ -33,4 +33,4 @@ function s.damcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return val end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c150000110.lua b/unofficial/c150000110.lua index b1010128cf..574d584dd4 100644 --- a/unofficial/c150000110.lua +++ b/unofficial/c150000110.lua @@ -52,4 +52,4 @@ function s.damcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return val end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c150000111.lua b/unofficial/c150000111.lua index 4e7a2104f6..32218f6c21 100644 --- a/unofficial/c150000111.lua +++ b/unofficial/c150000111.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ec:CancelToGrave() Duel.SendtoDeck(ec,nil,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c151000000.lua b/unofficial/c151000000.lua index 05c6671cd3..2fea9dd2c6 100644 --- a/unofficial/c151000000.lua +++ b/unofficial/c151000000.lua @@ -218,15 +218,15 @@ if not ActionDuel then if Duel.GetRandomNumber(0,1)==0 then table.insert(hintp,tp) end for _,p in ipairs(hintp) do Duel.Hint(HINT_MESSAGE,p,aux.Stringid(id,2)) - Duel.RegisterFlagEffect(p,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(p,id,RESET_PHASE|PHASE_END,0,1) end if tokenp then token=Duel.CreateToken(tokenp,e:GetLabel()) Duel.SendtoHand(token,nil,REASON_EFFECT) if string.find(originalField.af,'m') then table.remove(originalField.tableAction,e:GetLabel()) - Duel.RegisterFlagEffect(tp,320,RESET_PHASE+PHASE_END,0,1) - Duel.RegisterFlagEffect(1-tp,320,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,320,RESET_PHASE|PHASE_END,0,1) + Duel.RegisterFlagEffect(1-tp,320,RESET_PHASE|PHASE_END,0,1) end end if token and Duel.IsExistingMatchingCard(Card.IsActionCard,tokenp,LOCATION_HAND,0,2,nil) @@ -328,4 +328,4 @@ if not ActionDuel then 85668449, 712559, 35956022} -end +end \ No newline at end of file diff --git a/unofficial/c151000003.lua b/unofficial/c151000003.lua index 1f59d99cb7..d06e913d26 100644 --- a/unofficial/c151000003.lua +++ b/unofficial/c151000003.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_FZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x4)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_AMAZONESS)) e2:SetValue(200) c:RegisterEffect(e2) --special summon @@ -35,7 +35,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) local lv=0 local tc=eg:GetFirst() for tc in aux.Next(eg) do - if tc:IsReason(REASON_DESTROY) and tc:IsSetCard(0x4) and not tc:IsPreviousLocation(LOCATION_SZONE) then + if tc:IsReason(REASON_DESTROY) and tc:IsSetCard(SET_AMAZONESS) and not tc:IsPreviousLocation(LOCATION_SZONE) then local tlv=tc:GetLevel() if tlv>lv then lv=tlv end end @@ -44,7 +44,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return lv>0 end function s.spfilter(c,e,tp,lv) - return c:IsLevelBelow(lv) and c:IsSetCard(0x4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(lv) and c:IsSetCard(SET_AMAZONESS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsRelateToEffect(e) and not e:GetHandler():IsStatus(STATUS_CHAINING) @@ -60,4 +60,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c151000005.lua b/unofficial/c151000005.lua index d0e457c598..b200b8f8ea 100644 --- a/unofficial/c151000005.lua +++ b/unofficial/c151000005.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetRange(LOCATION_FZONE) e2:SetDescription(aux.Stringid(id,0)) - e2:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,LOCATION_HAND+LOCATION_MZONE) + e2:SetTargetRange(LOCATION_HAND|LOCATION_MZONE,LOCATION_HAND|LOCATION_MZONE) e2:SetCode(EFFECT_EXTRA_SUMMON_COUNT) e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_PSYCHIC)) e2:SetOperation(s.esop) @@ -80,4 +80,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if ct>0 then Duel.Damage(tp,ct*1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c151000007.lua b/unofficial/c151000007.lua index e83b78a968..b9918dddf2 100644 --- a/unofficial/c151000007.lua +++ b/unofficial/c151000007.lua @@ -31,4 +31,4 @@ end function s.dcon2(e) local a,d=Duel.GetAttacker(),Duel.GetAttackTarget() return a:GetControler()==1-e:GetHandlerPlayer() and d and d:IsDefensePos() and d:IsRace(RACE_ROCK) -end +end \ No newline at end of file diff --git a/unofficial/c151000015.lua b/unofficial/c151000015.lua index 298a2df37f..b6fb5ede03 100644 --- a/unofficial/c151000015.lua +++ b/unofficial/c151000015.lua @@ -32,7 +32,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) end function s.filter1(c) - return c:IsLevelBelow(4) and c:IsSetCard(0x29) and c:IsAbleToHand() + return c:IsLevelBelow(4) and c:IsSetCard(SET_DRAGUNITY) and c:IsAbleToHand() end function s.filter2(c) return c:IsRace(RACE_DRAGON) and c:IsAbleToGrave() @@ -61,4 +61,4 @@ function s.operation2(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c151000019.lua b/unofficial/c151000019.lua index fd8c4dc9bf..eb5b135932 100644 --- a/unofficial/c151000019.lua +++ b/unofficial/c151000019.lua @@ -37,9 +37,9 @@ function s.costfilter(c) return c:IsRace(RACE_FIEND) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) diff --git a/unofficial/c151000020.lua b/unofficial/c151000020.lua index 38f955b4a7..dd8aee4664 100644 --- a/unofficial/c151000020.lua +++ b/unofficial/c151000020.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) e2:SetCode(EFFECT_DECREASE_TRIBUTE) e2:SetRange(LOCATION_FZONE) e2:SetTargetRange(LOCATION_HAND,LOCATION_HAND) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x7)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_ANCIENT_GEAR)) e2:SetValue(0x1) c:RegisterEffect(e2) --special summon @@ -33,7 +33,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsReason(REASON_DESTROY) end function s.filter(c,e,tp) - return c:IsSetCard(0x7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ANCIENT_GEAR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.ShuffleDeck(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c151000021.lua b/unofficial/c151000021.lua index e814612b9b..5a6d863f09 100644 --- a/unofficial/c151000021.lua +++ b/unofficial/c151000021.lua @@ -55,7 +55,7 @@ function s.dirtg(e,c) return not Duel.IsExistingMatchingCard(Card.IsFaceup,c:GetControler(),0,LOCATION_MZONE,1,nil) end function s.ftarget(e,c) - return not c:IsSetCard(0x8d) + return not c:IsSetCard(SET_GHOSTRICK) end function s.regop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -73,4 +73,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c151000022.lua b/unofficial/c151000022.lua index be25a6afa8..00dab1f338 100644 --- a/unofficial/c151000022.lua +++ b/unofficial/c151000022.lua @@ -70,4 +70,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c151000024.lua b/unofficial/c151000024.lua index f6db3b0461..68cd2a63d2 100644 --- a/unofficial/c151000024.lua +++ b/unofficial/c151000024.lua @@ -21,4 +21,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e3) end -s.af="a" +s.af="a" \ No newline at end of file diff --git a/unofficial/c151000025.lua b/unofficial/c151000025.lua index 6b4a1cb466..9a8c1a5223 100644 --- a/unofficial/c151000025.lua +++ b/unofficial/c151000025.lua @@ -34,7 +34,7 @@ s.af="a" function s.poscon(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - return a:IsControler(tp) and a:IsSetCard(0x11) and d:IsFaceup() + return a:IsControler(tp) and a:IsSetCard(SET_KARAKURI) and d:IsFaceup() end function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) local d=Duel.GetAttackTarget() @@ -52,7 +52,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP) end function s.filter(c,e,tp) - return c:IsLevelAbove(4) and c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelAbove(4) and c:IsSetCard(SET_KARAKURI) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -67,4 +67,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c151000026.lua b/unofficial/c151000026.lua index ed6a5c7046..a6db92d8b7 100644 --- a/unofficial/c151000026.lua +++ b/unofficial/c151000026.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_UPDATE_LEVEL) e2:SetRange(LOCATION_FZONE) - e2:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,LOCATION_HAND+LOCATION_MZONE) + e2:SetTargetRange(LOCATION_HAND|LOCATION_MZONE,LOCATION_HAND|LOCATION_MZONE) e2:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER)) e2:SetValue(-1) c:RegisterEffect(e2) diff --git a/unofficial/c151000027.lua b/unofficial/c151000027.lua index 54070740f0..e3512f16d8 100644 --- a/unofficial/c151000027.lua +++ b/unofficial/c151000027.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) e2:SetRange(LOCATION_FZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetCode(EFFECT_UPDATE_ATTACK) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x71)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_MADOLCHE)) e2:SetValue(500) c:RegisterEffect(e2) local e3=e2:Clone() @@ -35,7 +35,7 @@ function s.initial_effect(c) end s.af="a" function s.tdfilter(c) - return c:IsMonster() and c:IsSetCard(0x71) and c:IsAbleToDeck() + return c:IsMonster() and c:IsSetCard(SET_MADOLCHE) and c:IsAbleToDeck() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -55,7 +55,7 @@ function s.repfilter(c,tp) end function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return (r&REASON_EFFECT)~=0 and re and re:IsActiveType(TYPE_MONSTER) - and re:GetHandler():IsSetCard(0x71) and eg:IsExists(s.repfilter,1,nil,tp) end + and re:GetHandler():IsSetCard(SET_MADOLCHE) and eg:IsExists(s.repfilter,1,nil,tp) end if Duel.SelectYesNo(tp,aux.Stringid(id,0)) then local g=eg:Filter(s.repfilter,nil,tp) local ct=#g @@ -98,4 +98,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.thfilter,nil) Duel.ConfirmCards(1-tp,g) Duel.ShuffleHand(tp) -end +end \ No newline at end of file diff --git a/unofficial/c151000028.lua b/unofficial/c151000028.lua index bb146d0837..947699dd43 100644 --- a/unofficial/c151000028.lua +++ b/unofficial/c151000028.lua @@ -83,4 +83,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.MSet(tp,tc,false,se) end end -end +end \ No newline at end of file diff --git a/unofficial/c151000029.lua b/unofficial/c151000029.lua index 49a56d49aa..54100820ae 100644 --- a/unofficial/c151000029.lua +++ b/unofficial/c151000029.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UPDATE_ATTACK) e3:SetRange(LOCATION_FZONE) e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) - e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x26)) + e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_MORPHTRONIC)) e3:SetValue(s.atkval) c:RegisterEffect(e3) --special summon @@ -59,7 +59,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return c:IsReason(REASON_DESTROY) and (c:GetPreviousLocation()&LOCATION_ONFIELD)~=0 end function s.filter(c,e,tp) - return c:IsSetCard(0x26) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_MORPHTRONIC) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -74,4 +74,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c151000033.lua b/unofficial/c151000033.lua index f2e7633403..54fd96ce23 100644 --- a/unofficial/c151000033.lua +++ b/unofficial/c151000033.lua @@ -38,7 +38,7 @@ s.listed_series={0x45} function s.lrcon(e,tp,eg,ep,ev,re,r,rp) if not re then return false end local rc=re:GetHandler() - return Duel.GetCurrentPhase()==PHASE_STANDBY and rc:IsSetCard(0x45) and rc:IsMonster() + return Duel.GetCurrentPhase()==PHASE_STANDBY and rc:IsSetCard(SET_ARCHFIEND) and rc:IsMonster() end function s.regop(e,tp,eg,ep,ev,re,r,rp) if not eg then return end @@ -46,7 +46,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) local lv2=0 local tc=eg:GetFirst() for tc in aux.Next(eg) do - if tc:IsReason(REASON_DESTROY) and not tc:IsReason(REASON_BATTLE) and tc:IsSetCard(0x45) then + if tc:IsReason(REASON_DESTROY) and not tc:IsReason(REASON_BATTLE) and tc:IsSetCard(SET_ARCHFIEND) then local tlv=tc:GetLevel() if tc:IsControler(0) then if tlv>lv1 then lv1=tlv end @@ -59,7 +59,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) if lv2>0 then Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+id,e,0,1,1,lv2) end end function s.filter(c,lv) - return c:GetLevel()0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) + and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if not e:GetHandler():IsRelateToEffect(e) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then local e1=Effect.CreateEffect(e:GetHandler()) @@ -54,4 +54,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c151000049.lua b/unofficial/c151000049.lua index 378416f0a7..487b901f35 100644 --- a/unofficial/c151000049.lua +++ b/unofficial/c151000049.lua @@ -26,4 +26,4 @@ function s.val(e,c) if (r&RACE_FISH+RACE_SEASERPENT+RACE_THUNDER+RACE_AQUA)>0 then return 200 elseif (r&RACE_MACHINE+RACE_PYRO)>0 then return -200 else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c151000051.lua b/unofficial/c151000051.lua index eba9b1fff5..619ba81d8d 100644 --- a/unofficial/c151000051.lua +++ b/unofficial/c151000051.lua @@ -44,20 +44,20 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,1-tp) end function s.tgfilter(c) - return c:IsSetCard(0x8e) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToGrave() + return c:IsSetCard(SET_VAMPIRE) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToGrave() end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() end if chk==0 then return e:GetHandler():IsRelateToEffect(e) and not e:GetHandler():IsStatus(STATUS_CHAINING) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) - Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND|LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) end function s.desop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) local ct=Duel.GetOperatedGroup():FilterCount(Card.IsLocation,nil,LOCATION_GRAVE) @@ -68,4 +68,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c151000052.lua b/unofficial/c151000052.lua index 379c48c93a..5bf2fc0af3 100644 --- a/unofficial/c151000052.lua +++ b/unofficial/c151000052.lua @@ -48,7 +48,7 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) local tg=Duel.GetFieldGroup(tp,LOCATION_MZONE,LOCATION_MZONE) local tc=tg:GetFirst() for tc in aux.Next(tg) do - if tc:IsCanAddCounter(0x1009,1) and not tc:IsSetCard(0x50) then + if tc:IsCanAddCounter(0x1009,1) and not tc:IsSetCard(SET_VENOM) then local atk=tc:GetAttack() tc:AddCounter(0x1009,1) if atk>0 and tc:GetAttack()==0 then @@ -71,4 +71,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c151000054.lua b/unofficial/c151000054.lua index 3eeedaca6f..12854862f0 100644 --- a/unofficial/c151000054.lua +++ b/unofficial/c151000054.lua @@ -21,4 +21,4 @@ s.af="a" function s.tg(e,c) local lv=c:GetLevel() return lv>0 and lv<=2 and c:IsAttribute(ATTRIBUTE_WATER) and c:IsRace(RACE_AQUA) -end +end \ No newline at end of file diff --git a/unofficial/c151000056.lua b/unofficial/c151000056.lua index fc3ceede9a..01e15bb088 100644 --- a/unofficial/c151000056.lua +++ b/unofficial/c151000056.lua @@ -48,4 +48,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RemoveOverlayCard(tp,1,0,1,1,REASON_EFFECT) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c151000057.lua b/unofficial/c151000057.lua index 421293d3a8..fc233e738c 100644 --- a/unofficial/c151000057.lua +++ b/unofficial/c151000057.lua @@ -26,4 +26,4 @@ function s.val(e,c) if (r&RACE_FIEND+RACE_SPELLCASTER)>0 then return 200 elseif (r&RACE_FAIRY)>0 then return -200 else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c151000058.lua b/unofficial/c151000058.lua index 9e2981f06a..1ef65a757e 100644 --- a/unofficial/c151000058.lua +++ b/unofficial/c151000058.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetRange(LOCATION_FZONE) - e2:SetTargetRange(LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE) + e2:SetTargetRange(LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE) e2:SetCode(EFFECT_CHANGE_RACE) e2:SetValue(RACE_ZOMBIE) e2:SetTarget(s.tg) @@ -62,4 +62,4 @@ function s.val(e,c,re,chk) end function s.sumlimit(e,c,tp,sumtp) return sumtp&SUMMON_TYPE_TRIBUTE==SUMMON_TYPE_TRIBUTE and not c:IsRace(RACE_ZOMBIE) -end +end \ No newline at end of file diff --git a/unofficial/c151999999.lua b/unofficial/c151999999.lua index dae23ddb0a..4c72377b2c 100644 --- a/unofficial/c151999999.lua +++ b/unofficial/c151999999.lua @@ -22,4 +22,4 @@ end function s.ActionStart() Duel.LoadScript("c151000000.lua") ActionDuel.Start() -end +end \ No newline at end of file diff --git a/unofficial/c152000000.lua b/unofficial/c152000000.lua index abd299253c..f605f56a56 100644 --- a/unofficial/c152000000.lua +++ b/unofficial/c152000000.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) end function s.flipcon(e,tp,eg,ep,ev,re,r,rp) --condition - return Duel.GetCurrentChain()==0 and Duel.GetTurnPlayer()==tp and Duel.GetDrawCount(tp)==1 + return Duel.GetCurrentChain()==0 and Duel.IsTurnPlayer(tp) and Duel.GetDrawCount(tp)==1 and (Duel.IsDuelType(DUEL_1ST_TURN_DRAW) or Duel.GetTurnCount()>1) end function s.flipop(e,tp,eg,ep,ev,re,r,rp) @@ -29,4 +29,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(2) e1:SetReset(RESET_PHASE+PHASE_DRAW) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c152000001.lua b/unofficial/c152000001.lua index 3caf7dca42..b7c36f256f 100644 --- a/unofficial/c152000001.lua +++ b/unofficial/c152000001.lua @@ -32,4 +32,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c152000002.lua b/unofficial/c152000002.lua index 8b789ab75d..c085671e8e 100644 --- a/unofficial/c152000002.lua +++ b/unofficial/c152000002.lua @@ -8,10 +8,10 @@ function s.initial_effect(c) end s.listed_series={0xfb} function s.cfilter(c) - return c:IsSetCard(0xfb) and c:IsAbleToGrave() + return c:IsSetCard(SET_TRICKSTAR) and c:IsAbleToGrave() end function s.tkfilter(c) - return c:IsMonster() and c:IsSetCard(0xfb) + return c:IsMonster() and c:IsSetCard(SET_TRICKSTAR) end function s.flipcon(e,tp,eg,ep,ev,re,r,rp) --condition @@ -54,4 +54,4 @@ function s.banop(e,tp,eg,ep,ev,re,r,rp) local bg=hg:Select(1-tp,gyc,gyc,nil) Duel.Remove(bg,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c152000003.lua b/unofficial/c152000003.lua index cf6f355b23..05d0c63ae1 100644 --- a/unofficial/c152000003.lua +++ b/unofficial/c152000003.lua @@ -24,4 +24,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,100) Duel.BreakEffect() Duel.Draw(tp,dc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c152000004.lua b/unofficial/c152000004.lua index ea0160aaf7..c6b8cff3cd 100644 --- a/unofficial/c152000004.lua +++ b/unofficial/c152000004.lua @@ -32,4 +32,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c152000005.lua b/unofficial/c152000005.lua index 3f3592a518..3ec9b39ee0 100644 --- a/unofficial/c152000005.lua +++ b/unofficial/c152000005.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) end function s.rmvfilter1(c,e,tp) return c:IsLevelBelow(2) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) - and Duel.IsExistingMatchingCard(s.rmvfilter2,tp,LOCATION_GRAVE+LOCATION_MZONE,0,2,nil,e,tp,c) + and Duel.IsExistingMatchingCard(s.rmvfilter2,tp,LOCATION_GRAVE|LOCATION_MZONE,0,2,nil,e,tp,c) end function s.rmvfilter2(c,e,tp,tc) local lv=tc:GetLevel() @@ -27,7 +27,7 @@ function s.rescon(sg,e,tp,mg) end function s.flipcon(e,tp,eg,ep,ev,re,r,rp) --condition - return not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and Duel.IsExistingMatchingCard(s.rmvfilter1,tp,LOCATION_GRAVE+LOCATION_MZONE,0,2,nil,e,tp) + return not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and Duel.IsExistingMatchingCard(s.rmvfilter1,tp,LOCATION_GRAVE|LOCATION_MZONE,0,2,nil,e,tp) end function s.flipop(e,tp,eg,ep,ev,re,r,rp) --opd check and ask if you want to activate the skill or not @@ -39,7 +39,7 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) --check if skill is negated if aux.CheckSkillNegation(e,tp) then return end --Special Summon - local g1=Duel.GetMatchingGroup(s.rmvfilter1,tp,LOCATION_GRAVE+LOCATION_MZONE,0,nil,e,tp) + local g1=Duel.GetMatchingGroup(s.rmvfilter1,tp,LOCATION_GRAVE|LOCATION_MZONE,0,nil,e,tp) if #g1<=0 then return end local rg=aux.SelectUnselectGroup(g1,e,tp,2,2,s.rescon,1,tp,HINTMSG_REMOVE) local lv=rg:GetFirst():GetLevel() @@ -49,4 +49,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) local sg=aux.SelectUnselectGroup(g2,e,tp,2,2,s.rescon,1,tp,HINTMSG_SPSUMMON) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c152000006.lua b/unofficial/c152000006.lua index cab5476832..c253f6c64c 100644 --- a/unofficial/c152000006.lua +++ b/unofficial/c152000006.lua @@ -31,4 +31,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c152000007.lua b/unofficial/c152000007.lua index 30265f8afd..6d1b7830a4 100644 --- a/unofficial/c152000007.lua +++ b/unofficial/c152000007.lua @@ -28,4 +28,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.ActivateFieldSpell(tc,e,tp,eg,ep,ev,re,r,rp) end -end +end \ No newline at end of file diff --git a/unofficial/c152000008.lua b/unofficial/c152000008.lua index 472c23ebf0..ae30d541a3 100644 --- a/unofficial/c152000008.lua +++ b/unofficial/c152000008.lua @@ -52,4 +52,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c152000009.lua b/unofficial/c152000009.lua index 1b52ca3bf9..764a2e42e1 100644 --- a/unofficial/c152000009.lua +++ b/unofficial/c152000009.lua @@ -7,11 +7,11 @@ function s.initial_effect(c) end s.listed_series={0xfb} function s.tkfilter(c) - return c:IsSetCard(0xfb) and c:IsAbleToHand() + return c:IsSetCard(SET_TRICKSTAR) and c:IsAbleToHand() end function s.flipcon(e,tp,eg,ep,ev,re,r,rp) --condition - local fgc=Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,0xfb),tp,LOCATION_MZONE,0,nil) + local fgc=Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,SET_TRICKSTAR),tp,LOCATION_MZONE,0,nil) return fgc>0 and Duel.IsPlayerCanDiscardDeck(tp,fgc) and Duel.IsExistingMatchingCard(s.tkfilter,tp,LOCATION_GRAVE,0,1,nil) end function s.flipop(e,tp,eg,ep,ev,re,r,rp) @@ -24,7 +24,7 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) --Check if Skill is negated if aux.CheckSkillNegation(e,tp) then return end --Deck Des/Add to hand - local fgc=Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,0xfb),tp,LOCATION_MZONE,0,nil) + local fgc=Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsSetCard,SET_TRICKSTAR),tp,LOCATION_MZONE,0,nil) if fgc>0 and Duel.IsPlayerCanDiscardDeck(tp,fgc) and Duel.DiscardDeck(tp,fgc,REASON_EFFECT)>0 and Duel.IsExistingMatchingCard(s.tkfilter,tp,LOCATION_GRAVE,0,1,nil) then Duel.BreakEffect() @@ -33,4 +33,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(thg) Duel.SendtoHand(thg,tp,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c152000010.lua b/unofficial/c152000010.lua index 042f619262..baea26c7f6 100644 --- a/unofficial/c152000010.lua +++ b/unofficial/c152000010.lua @@ -29,4 +29,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) local dam=bc:GetLevel()*100 Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c152000011.lua b/unofficial/c152000011.lua index c14a5ef147..052fa2c686 100644 --- a/unofficial/c152000011.lua +++ b/unofficial/c152000011.lua @@ -28,4 +28,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c152000012.lua b/unofficial/c152000012.lua index 13394f2d12..a6c70890d3 100644 --- a/unofficial/c152000012.lua +++ b/unofficial/c152000012.lua @@ -52,4 +52,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) else Duel.DiscardDeck(tp,dcount-seq,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c152000013.lua b/unofficial/c152000013.lua index 80abb63f50..b1f8d75d83 100644 --- a/unofficial/c152000013.lua +++ b/unofficial/c152000013.lua @@ -57,4 +57,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,re,rp) return rp==1-e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c152000014.lua b/unofficial/c152000014.lua index 396fdd6324..59b0aa588d 100644 --- a/unofficial/c152000014.lua +++ b/unofficial/c152000014.lua @@ -37,4 +37,4 @@ function s.flipop(e,tp,eg,ep,ev,re,r,rp) e1:SetDescription(aux.Stringid(id,1)) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c152000015.lua b/unofficial/c152000015.lua index ed4c81f7fe..415d413dd6 100644 --- a/unofficial/c152000015.lua +++ b/unofficial/c152000015.lua @@ -25,4 +25,4 @@ function s.flipop(e,tp,re) return true end return false -end +end \ No newline at end of file diff --git a/unofficial/c152000018.lua b/unofficial/c152000018.lua index d796ae68ec..7d86b964b7 100644 --- a/unofficial/c152000018.lua +++ b/unofficial/c152000018.lua @@ -11,7 +11,7 @@ function s.flipcon(e,tp,eg,ep,ev,re,r,rp) end function s.flipop(e,tp,eg,ep,ev,re,r,rp) --opt Register - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,0) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,0) Duel.Hint(HINT_SKILL_FLIP,tp,id|(1<<32)) Duel.Hint(HINT_CARD,tp,id) if aux.CheckSkillNegation(e,tp) then return end diff --git a/unofficial/c153000000.lua b/unofficial/c153000000.lua index a6a668de79..e6bac74cc0 100644 --- a/unofficial/c153000000.lua +++ b/unofficial/c153000000.lua @@ -191,4 +191,4 @@ if not DeckMaster then 153000011,153000012,153000013,153000014,153000015,153000016,153000017} DeckMasterTable={153000001,153000002,153000003,153000004,153000005,153000006,153000007,153000008,153000009,153000010, 153000011,153000012,153000013,153000014,153000015,153000016,153000017,153000018} -end +end \ No newline at end of file diff --git a/unofficial/c153000001.lua b/unofficial/c153000001.lua index 0aa9b0ec95..6ca1cbde2c 100644 --- a/unofficial/c153000001.lua +++ b/unofficial/c153000001.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) DeckMaster.RegisterAbilities(c,dme1) end function s.dmtg(e,c) - return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_FUSION) + return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsFusionSummoned() and (Duel.IsDeckMaster(e:GetOwnerPlayer(),id) or c:GetMaterial() and c:GetMaterial():IsContains(e:GetOwner())) end \ No newline at end of file diff --git a/unofficial/c153000002.lua b/unofficial/c153000002.lua index c3ce2fb932..7e5a643b0b 100644 --- a/unofficial/c153000002.lua +++ b/unofficial/c153000002.lua @@ -59,4 +59,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,1-tp,id) Duel.BreakEffect() Duel.Destroy(Duel.GetAttacker(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c153000003.lua b/unofficial/c153000003.lua index 8537c87761..58c9bcf05c 100644 --- a/unofficial/c153000003.lua +++ b/unofficial/c153000003.lua @@ -45,4 +45,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.Damage(1-tp,at:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c153000004.lua b/unofficial/c153000004.lua index 5b084d4167..71247447e7 100644 --- a/unofficial/c153000004.lua +++ b/unofficial/c153000004.lua @@ -82,4 +82,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c153000005.lua b/unofficial/c153000005.lua index 775e6ac825..a0984d4b0a 100644 --- a/unofficial/c153000005.lua +++ b/unofficial/c153000005.lua @@ -47,4 +47,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c153000007.lua b/unofficial/c153000007.lua index 9977b14d19..9de53a379d 100644 --- a/unofficial/c153000007.lua +++ b/unofficial/c153000007.lua @@ -49,4 +49,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) else Duel.Hint(HINT_NUMBER,tp,c:Attack()) end -end +end \ No newline at end of file diff --git a/unofficial/c153000008.lua b/unofficial/c153000008.lua index 02b80c2b89..ef4759214c 100644 --- a/unofficial/c153000008.lua +++ b/unofficial/c153000008.lua @@ -32,4 +32,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_REMOVED) Duel.Damage(1-tp,ct*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c153000009.lua b/unofficial/c153000009.lua index e8b021fff6..bbab759dd8 100644 --- a/unofficial/c153000009.lua +++ b/unofficial/c153000009.lua @@ -30,4 +30,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if ct>0 then Duel.Damage(1-tp,ct*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c153000010.lua b/unofficial/c153000010.lua index dbb83773c5..31f3b9e1b9 100644 --- a/unofficial/c153000010.lua +++ b/unofficial/c153000010.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.subcon(e) - return e:GetHandler():IsLocation(LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE) + return e:GetHandler():IsLocation(LOCATION_HAND|LOCATION_ONFIELD|LOCATION_GRAVE) end function s.costfilter(c) return c:IsSpell() and c:IsDiscardable() @@ -37,4 +37,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,1-tp,id) Duel.BreakEffect() Fusion.SummonEffOP()(e,tp,eg,ep,ev,re,r,rp) -end +end \ No newline at end of file diff --git a/unofficial/c153000011.lua b/unofficial/c153000011.lua index 5638d8a647..71e0fe9bad 100644 --- a/unofficial/c153000011.lua +++ b/unofficial/c153000011.lua @@ -32,9 +32,9 @@ function s.cfilter(c) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c) end function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,e:GetHandler()) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,e:GetHandler()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,2,e:GetHandler()) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,2,e:GetHandler()) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -93,4 +93,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c153000012.lua b/unofficial/c153000012.lua index 21e26d5832..454b595db3 100644 --- a/unofficial/c153000012.lua +++ b/unofficial/c153000012.lua @@ -78,4 +78,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,1-tp,id) local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND,0,1,1,nil):GetFirst() Duel.SSet(tp,tc,tp,false) -end +end \ No newline at end of file diff --git a/unofficial/c153000013.lua b/unofficial/c153000013.lua index 85af388631..c1dab541a4 100644 --- a/unofficial/c153000013.lua +++ b/unofficial/c153000013.lua @@ -75,4 +75,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,1-tp,id) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c153000014.lua b/unofficial/c153000014.lua index e9365c7fd2..ab970c56c8 100644 --- a/unofficial/c153000014.lua +++ b/unofficial/c153000014.lua @@ -43,4 +43,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.Summon(tp,tc,true,nil) end -end +end \ No newline at end of file diff --git a/unofficial/c153000015.lua b/unofficial/c153000015.lua index 1213c068bc..d2323b5ff8 100644 --- a/unofficial/c153000015.lua +++ b/unofficial/c153000015.lua @@ -49,4 +49,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT) local te=s.usedSpell:FilterSelect(tp,s.filter,1,1,nil,tp):GetFirst():GetActivateEffect() Duel.Activate(te) -end +end \ No newline at end of file diff --git a/unofficial/c153000016.lua b/unofficial/c153000016.lua index 69a4c882fa..b639c759bc 100644 --- a/unofficial/c153000016.lua +++ b/unofficial/c153000016.lua @@ -23,4 +23,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_DOUBLE_TRIBUTE) e1:SetValue(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_LIGHT)) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c153000017.lua b/unofficial/c153000017.lua index 29fa625e71..4db23cd296 100644 --- a/unofficial/c153000017.lua +++ b/unofficial/c153000017.lua @@ -270,4 +270,4 @@ function s.chop(e,tp,eg,ep,ev,re,r,rp) c:Recreate(153000018,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,true) if not c:IsLocation(LOCATION_ONFIELD) then Duel.Hint(HINT_SKILL,tp,153000018) end if e:GetLabelObject():GetFirst() then Duel.SendtoGrave(e:GetLabelObject(),REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c153000018.lua b/unofficial/c153000018.lua index ed695dd349..ba48aebd2b 100644 --- a/unofficial/c153000018.lua +++ b/unofficial/c153000018.lua @@ -79,4 +79,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c153999999.lua b/unofficial/c153999999.lua index 892e668e41..e94ce92b01 100644 --- a/unofficial/c153999999.lua +++ b/unofficial/c153999999.lua @@ -31,4 +31,4 @@ function s.VirtualWorldStart() Duel.Hint(HINT_OPSELECTED,0,aux.Stringid(id,2)) Duel.Hint(HINT_OPSELECTED,1,aux.Stringid(id,2)) end -end +end \ No newline at end of file diff --git a/unofficial/c170000112.lua b/unofficial/c170000112.lua index 8046ba6f72..749e279525 100644 --- a/unofficial/c170000112.lua +++ b/unofficial/c170000112.lua @@ -3,4 +3,4 @@ local s,id=GetID() function s.initial_effect(c) PlusMinus.AddMagneticProcedure(c) -end +end \ No newline at end of file diff --git a/unofficial/c170000113.lua b/unofficial/c170000113.lua index b7b5a7a901..8acb7cd9df 100644 --- a/unofficial/c170000113.lua +++ b/unofficial/c170000113.lua @@ -3,4 +3,4 @@ local s,id=GetID() function s.initial_effect(c) PlusMinus.AddMagneticProcedure(c) -end +end \ No newline at end of file diff --git a/unofficial/c170000115.lua b/unofficial/c170000115.lua index 5bad145626..1688469461 100644 --- a/unofficial/c170000115.lua +++ b/unofficial/c170000115.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c170000116.lua b/unofficial/c170000116.lua index ad344eaa92..20fe6e8465 100644 --- a/unofficial/c170000116.lua +++ b/unofficial/c170000116.lua @@ -37,15 +37,15 @@ end function s.spcon(e,c) if c==nil then return true end local tp=c:GetControler() - local g1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,nil,TYPE_PLUS) - local g2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,nil,TYPE_MINUS) + local g1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,nil,TYPE_PLUS) + local g2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,nil,TYPE_MINUS) local g=g1:Clone() g:Merge(g2) return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2 and #g1>0 and #g2>0 and #g>1 and aux.SelectUnselectGroup(g,e,tp,2,2,s.rescon,0) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,c) - local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,nil,TYPE_PLUS+TYPE_MINUS) + local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,nil,TYPE_PLUS+TYPE_MINUS) local sg=aux.SelectUnselectGroup(g,e,tp,2,2,s.rescon,1,tp,HINTMSG_TOGRAVE,nil,nil,true) local cg=sg:Filter(Card.IsFacedown,nil) if #cg>0 then @@ -87,4 +87,4 @@ function s.atkgop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c170000117.lua b/unofficial/c170000117.lua index 389fb1e36d..faca85cfd8 100644 --- a/unofficial/c170000117.lua +++ b/unofficial/c170000117.lua @@ -50,7 +50,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end, function() - return Duel.GetTurnPlayer()==tp and (ct==1 or Duel.GetTurnCount()~=tid) + return Duel.IsTurnPlayer(tp) and (ct==1 or Duel.GetTurnCount()~=tid) end, RESET_PHASE|PHASE_STANDBY|RESET_SELF_TURN,ct) -end +end \ No newline at end of file diff --git a/unofficial/c170000119.lua b/unofficial/c170000119.lua index 4fde31d0a5..28d7064e90 100644 --- a/unofficial/c170000119.lua +++ b/unofficial/c170000119.lua @@ -29,4 +29,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c170000120.lua b/unofficial/c170000120.lua index 047052d01b..27dce4118e 100644 --- a/unofficial/c170000120.lua +++ b/unofficial/c170000120.lua @@ -36,4 +36,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not tc or not tc:IsRelateToEffect(e) then return end Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c170000122.lua b/unofficial/c170000122.lua index 03df44de92..b6242d46d1 100644 --- a/unofficial/c170000122.lua +++ b/unofficial/c170000122.lua @@ -87,4 +87,4 @@ function s.becon(e) end function s.atkval(e,c) return c:IsFaceup() and c:IsType(TYPE_MINUS) -end +end \ No newline at end of file diff --git a/unofficial/c170000123.lua b/unofficial/c170000123.lua index 3bfaa11e21..629cc46b80 100644 --- a/unofficial/c170000123.lua +++ b/unofficial/c170000123.lua @@ -87,4 +87,4 @@ function s.becon(e) end function s.atkval(e,c) return c:IsFaceup() and c:IsType(TYPE_PLUS) -end +end \ No newline at end of file diff --git a/unofficial/c170000126.lua b/unofficial/c170000126.lua index 034e105253..aeda2a60b9 100644 --- a/unofficial/c170000126.lua +++ b/unofficial/c170000126.lua @@ -12,18 +12,18 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x1034) + return c:IsFaceup() and c:IsSetCard(SET_CRYSTAL_BEAST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil) - and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_HAND,0,1,nil,0x1034) end + and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_HAND,0,1,nil,SET_CRYSTAL_BEAST) end Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() - local tc2=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_HAND,0,1,1,nil,0x1034):GetFirst() + local tc2=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_HAND,0,1,1,nil,SET_CRYSTAL_BEAST):GetFirst() if tc2 then Duel.MoveToField(tc2,tp,tp,LOCATION_SZONE,POS_FACEUP,true) local e0=Effect.CreateEffect(e:GetHandler()) @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c170000128.lua b/unofficial/c170000128.lua index ad7a196986..353a963247 100644 --- a/unofficial/c170000128.lua +++ b/unofficial/c170000128.lua @@ -16,7 +16,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return d and d:IsCode(69937550) and d:IsFaceup() and d:IsControler(tp) end function s.filter(c) - return c:IsSetCard(0x1034) and c:IsFaceup() + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsFaceup() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local tc=Duel.GetAttackTarget() @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c170000149.lua b/unofficial/c170000149.lua index c869069b9d..3e47547748 100644 --- a/unofficial/c170000149.lua +++ b/unofficial/c170000149.lua @@ -60,4 +60,4 @@ function s.eqlimit(e,c) end function s.atkcon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c170000150.lua b/unofficial/c170000150.lua index a4048701e5..4f5a9d5f12 100644 --- a/unofficial/c170000150.lua +++ b/unofficial/c170000150.lua @@ -42,4 +42,4 @@ function s.fdchkop(e,tp,eg,ep,ev,re,r,rp) if #conf>0 then Duel.ConfirmCards(tp,conf) end -end +end \ No newline at end of file diff --git a/unofficial/c170000151.lua b/unofficial/c170000151.lua index c623224d2b..18d05d428c 100644 --- a/unofficial/c170000151.lua +++ b/unofficial/c170000151.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentChain()==0 and Duel.IsMainPhase() and Duel.GetTurnPlayer()==tp + return Duel.GetCurrentChain()==0 and Duel.IsMainPhase() and Duel.IsTurnPlayer(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end @@ -55,4 +55,4 @@ function s.monval(e,c) else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c170000152.lua b/unofficial/c170000152.lua index 0e1da1ed4f..a01dc57400 100644 --- a/unofficial/c170000152.lua +++ b/unofficial/c170000152.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentChain()==0 and Duel.IsMainPhase() and Duel.GetTurnPlayer()==tp + return Duel.GetCurrentChain()==0 and Duel.IsMainPhase() and Duel.IsTurnPlayer(tp) end function s.filter1(c,e,tp) return Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,c:GetCode(),e,tp,c) @@ -63,4 +63,4 @@ function s.monval(e,c) else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c170000153.lua b/unofficial/c170000153.lua index 4fe725bf45..3576132b69 100644 --- a/unofficial/c170000153.lua +++ b/unofficial/c170000153.lua @@ -104,4 +104,4 @@ function s.monval(e,c) else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c170000154.lua b/unofficial/c170000154.lua index 99f0d2aa06..cd0f1deac0 100644 --- a/unofficial/c170000154.lua +++ b/unofficial/c170000154.lua @@ -44,4 +44,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end Duel.Damage(1-tp,dam,REASON_BATTLE) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c170000155.lua b/unofficial/c170000155.lua index 481f4273f7..c53f8531e7 100644 --- a/unofficial/c170000155.lua +++ b/unofficial/c170000155.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c170000157.lua b/unofficial/c170000157.lua index 4ac1a86ae2..65195b3712 100644 --- a/unofficial/c170000157.lua +++ b/unofficial/c170000157.lua @@ -34,4 +34,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not tc then return end if tc==c then tc=Duel.GetAttackTarget() end if tc:IsRelateToBattle() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c170000166.lua b/unofficial/c170000166.lua index caf636bea5..6ada9ccc11 100644 --- a/unofficial/c170000166.lua +++ b/unofficial/c170000166.lua @@ -43,8 +43,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND) end function s.filter(c,e,tp) return c:Alias()==7634581 and c:IsCanBeSpecialSummoned(e,0,tp,true,false) @@ -52,7 +52,7 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) local e1=Effect.CreateEffect(tc) @@ -74,4 +74,4 @@ function s.rdop(e,tp,eg,ep,ev,re,r,rp) if ep==tp then e:GetLabelObject():SetLabel(dam+ev) end -end +end \ No newline at end of file diff --git a/unofficial/c170000167.lua b/unofficial/c170000167.lua index e970cf5b4f..c02726dd28 100644 --- a/unofficial/c170000167.lua +++ b/unofficial/c170000167.lua @@ -96,12 +96,12 @@ function s.filter(c,e,tp) end function s.dstg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND) end function s.dsop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) @@ -110,17 +110,17 @@ function s.dsop(e,tp,eg,ep,ev,re,r,rp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,id+1) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,170000169) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp,id+1) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp,170000169) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK|LOCATION_HAND) end function s.spfilter(c,e,tp,code) return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=1 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end - local g1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,id+1) - local g2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,170000169) + local g1=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,id+1) + local g2=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,170000169) if #g1>0 and #g2>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg1=g1:Select(tp,1,1,nil) @@ -132,4 +132,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(sg2:GetFirst(),0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c170000168.lua b/unofficial/c170000168.lua index 3806d771e4..5fc7a88937 100644 --- a/unofficial/c170000168.lua +++ b/unofficial/c170000168.lua @@ -88,4 +88,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c170000169.lua b/unofficial/c170000169.lua index b1f66705bc..36247732e8 100644 --- a/unofficial/c170000169.lua +++ b/unofficial/c170000169.lua @@ -91,4 +91,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c170000172.lua b/unofficial/c170000172.lua index 9b1f4131d2..f823ae57d6 100644 --- a/unofficial/c170000172.lua +++ b/unofficial/c170000172.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsDefensePos() then Duel.ChangePosition(tc,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c170000173.lua b/unofficial/c170000173.lua index 0d61908f99..124f3f68f7 100644 --- a/unofficial/c170000173.lua +++ b/unofficial/c170000173.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c170000174.lua b/unofficial/c170000174.lua index 57b0395c93..c2c730e32e 100644 --- a/unofficial/c170000174.lua +++ b/unofficial/c170000174.lua @@ -32,7 +32,7 @@ function s.initial_effect(c) end s.listed_names={id+1} function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) + return e:GetHandler():IsRitualSummoned() end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -101,4 +101,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) tc:RegisterEffect(e1) end) -end +end \ No newline at end of file diff --git a/unofficial/c170000194.lua b/unofficial/c170000194.lua index 375c0cfa20..3d76761707 100644 --- a/unofficial/c170000194.lua +++ b/unofficial/c170000194.lua @@ -83,4 +83,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c170000196.lua b/unofficial/c170000196.lua index c3a6ff3ca2..9f665d7620 100644 --- a/unofficial/c170000196.lua +++ b/unofficial/c170000196.lua @@ -44,4 +44,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local sum=g:GetSum(Card.GetAttack) Duel.Damage(1-tp,sum,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c170000197.lua b/unofficial/c170000197.lua index 2030428bcd..6095c741c6 100644 --- a/unofficial/c170000197.lua +++ b/unofficial/c170000197.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,sum,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c170000201.lua b/unofficial/c170000201.lua index bf92734a67..b990535b3e 100644 --- a/unofficial/c170000201.lua +++ b/unofficial/c170000201.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_names={1784686,46232525,11082056,80019195,85800949,84565800,48179391,110000100,110000101} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentChain()==0 and Duel.IsMainPhase() and Duel.GetTurnPlayer()==tp + return Duel.GetCurrentChain()==0 and Duel.IsMainPhase() and Duel.IsTurnPlayer(tp) end function s.costfilter(c,code) return c:IsCode(code) and c:IsAbleToRemoveAsCost() @@ -75,7 +75,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) and Duel.IsExistingMatchingCard(s.spfilter,tp,0x33,0,1,nil,e,tp,85800949) and Duel.IsExistingMatchingCard(s.spfilter,tp,0x33,0,1,nil,e,tp,84565800) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,3,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,3,tp,LOCATION_HAND|LOCATION_DECK) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=2 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end diff --git a/unofficial/c170000202.lua b/unofficial/c170000202.lua index 9927a0e023..dcd51cd0e6 100644 --- a/unofficial/c170000202.lua +++ b/unofficial/c170000202.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Release(g,REASON_EFFECT) Duel.RaiseEvent(e:GetHandler(),id,e,REASON_EFFECT,tp,tp,sum) end -end +end \ No newline at end of file diff --git a/unofficial/c170000203.lua b/unofficial/c170000203.lua index 2068e6c28d..b7916fbf3c 100644 --- a/unofficial/c170000203.lua +++ b/unofficial/c170000203.lua @@ -21,17 +21,17 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.con(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil) + return Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil) and e:GetLabel()~=1 and e:GetHandler()==Duel.GetAttacker() and e:GetHandler():GetBattleTarget()~=nil - or Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil) + or Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil) and e:GetLabel()~=1 and e:GetHandler()==Duel.GetAttackTarget() and e:GetHandler():GetBattleTarget()~=nil end function s.filter1(c,e,tp,eg,ep,ev,re,r,rp) return c:CheckActivateEffect(false,true,false)~=nil and c:GetType()==TYPE_TRAP and c:IsAbleToRemove() end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil) end - local tc=Duel.SelectMatchingCard(tp,s.filter1,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter1,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil) end + local tc=Duel.SelectMatchingCard(tp,s.filter1,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,1,nil) e:SetLabel(1) local te,eg,ep,ev,re,r,rp=tc:GetFirst():CheckActivateEffect(false,true,true) e:SetLabelObject(tc:GetFirst()) @@ -50,4 +50,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local op=te:GetOperation() if op then op(e,tp,eg,ep,ev,re,r,rp) end e:SetLabel(0) -end +end \ No newline at end of file diff --git a/unofficial/c170000204.lua b/unofficial/c170000204.lua index 703b5fadec..dcfe2a9ea2 100644 --- a/unofficial/c170000204.lua +++ b/unofficial/c170000204.lua @@ -50,9 +50,9 @@ function s.cfilter(c) return c:IsType(TYPE_EFFECT) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.effcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) e:SetLabel(g:GetFirst():GetOriginalCode()) end @@ -123,4 +123,4 @@ function s.val(e,c) tc=g:GetNext() end return atk -end +end \ No newline at end of file diff --git a/unofficial/c170000207.lua b/unofficial/c170000207.lua index b8b7bd95b8..96c4eddf03 100644 --- a/unofficial/c170000207.lua +++ b/unofficial/c170000207.lua @@ -56,4 +56,4 @@ function s.indcost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.indop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c170000210.lua b/unofficial/c170000210.lua index 9a44e4856b..f6c2300874 100644 --- a/unofficial/c170000210.lua +++ b/unofficial/c170000210.lua @@ -55,7 +55,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,3,tp,0x13) end function s.spfilter(c,e,tp) - return c:IsSetCard(0xa0) and c:IsMonster() and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_LEGENDARY_KNIGHT) and c:IsMonster() and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end @@ -65,4 +65,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,3,3,nil) Duel.SpecialSummon(sg,0,tp,tp,true,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c171000111.lua b/unofficial/c171000111.lua index b42b665928..09ab309ad0 100644 --- a/unofficial/c171000111.lua +++ b/unofficial/c171000111.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c200000000.lua b/unofficial/c200000000.lua index 89d4d867a1..d02d410eb2 100644 --- a/unofficial/c200000000.lua +++ b/unofficial/c200000000.lua @@ -27,7 +27,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY,0,2) end function s.con(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetLP(tp)0 + return Duel.IsTurnPlayer(tp) and Duel.GetLP(tp)0 end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -46,4 +46,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmDecktop(tp,1) end Duel.RegisterFlagEffect(tp,id,0,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c200000002.lua b/unofficial/c200000002.lua index 486f54aa54..6f8e4a4a35 100644 --- a/unofficial/c200000002.lua +++ b/unofficial/c200000002.lua @@ -18,7 +18,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.AnnounceCard(tp,{id+1,OPCODE_ISCODE}) end function s.spfilter(c) - return c:IsFaceup() and c:IsSetCard(0x107f) and c:IsSetCard(0x1048) and c:IsType(TYPE_XYZ) and c:GetFlagEffect(id)==0 + return c:IsFaceup() and c:IsSetCard(SET_UTOPIA) and c:IsSetCard(SET_NUMBER_C) and c:IsType(TYPE_XYZ) and c:GetFlagEffect(id)==0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and s.spfilter(chkc) and chkc:IsLocation(LOCATION_MZONE) end @@ -54,4 +54,4 @@ end function s.winop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,tp,id) Duel.Win(tp,WIN_REASON_CREATOR_MIRACLE) -end +end \ No newline at end of file diff --git a/unofficial/c200000003.lua b/unofficial/c200000003.lua index b4b46e1125..372f937091 100644 --- a/unofficial/c200000003.lua +++ b/unofficial/c200000003.lua @@ -24,4 +24,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetMaterial() return g:IsExists(s.spfilter,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c200000004.lua b/unofficial/c200000004.lua index 3fe1bbb8f9..9ddc7147eb 100644 --- a/unofficial/c200000004.lua +++ b/unofficial/c200000004.lua @@ -22,7 +22,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.AnnounceCard(tp,s.announce_filter) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x48) and not c:IsSetCard(0x1048) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and not c:IsSetCard(SET_NUMBER_C) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(tc,c) end Duel.RegisterFlagEffect(tp,id,0,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c316000124.lua b/unofficial/c316000124.lua index ff6779bd58..55afc2b7ca 100644 --- a/unofficial/c316000124.lua +++ b/unofficial/c316000124.lua @@ -31,17 +31,17 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c344000000.lua b/unofficial/c344000000.lua index a6bc755fd1..8416a9a580 100644 --- a/unofficial/c344000000.lua +++ b/unofficial/c344000000.lua @@ -19,5 +19,4 @@ function s.spcon(e,c) end function s.spop(e,tp,eg,ep,ev,re,r,rp,c) Duel.PayLPCost(tp,1000) -end - +end \ No newline at end of file diff --git a/unofficial/c344000001.lua b/unofficial/c344000001.lua index a5f3e32780..79091c0b0a 100644 --- a/unofficial/c344000001.lua +++ b/unofficial/c344000001.lua @@ -31,4 +31,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c420.lua b/unofficial/c420.lua index 8a3e103095..abd646e3b0 100644 --- a/unofficial/c420.lua +++ b/unofficial/c420.lua @@ -1090,4 +1090,4 @@ if not AnimeArchetype then -- Fortress Whale -- Fortress Whale/Fortress Whale's Oath/Mega Fortress Whale Card.IsFortressWhale=MakeCheck({0x583},{62337487,77454922,96546575}) -end +end \ No newline at end of file diff --git a/unofficial/c450000000.lua b/unofficial/c450000000.lua index 465526aa57..674d8ccb20 100644 --- a/unofficial/c450000000.lua +++ b/unofficial/c450000000.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c450000001.lua b/unofficial/c450000001.lua index 05d65e2f48..a3fe1a955d 100644 --- a/unofficial/c450000001.lua +++ b/unofficial/c450000001.lua @@ -32,4 +32,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return aux.SelectUnselectGroup(g,e,tp,2,2,s.rescon,0) end local rg=aux.SelectUnselectGroup(g,e,tp,2,2,s.rescon,1,tp,HINTMSG_REMOVE) Duel.Remove(rg,POS_FACEUP,REASON_COST) -end +end \ No newline at end of file diff --git a/unofficial/c450000103.lua b/unofficial/c450000103.lua index 3c082115e9..52e5e86fc1 100644 --- a/unofficial/c450000103.lua +++ b/unofficial/c450000103.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,d,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c450000110.lua b/unofficial/c450000110.lua index 2fefafb84b..19bb1f7682 100644 --- a/unofficial/c450000110.lua +++ b/unofficial/c450000110.lua @@ -20,4 +20,4 @@ function s.initial_effect(c) end function s.target(e,c) return c:IsFacedown() -end +end \ No newline at end of file diff --git a/unofficial/c450000111.lua b/unofficial/c450000111.lua index 637db55126..678b5e823b 100644 --- a/unofficial/c450000111.lua +++ b/unofficial/c450000111.lua @@ -17,4 +17,4 @@ function s.ntcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c450000112.lua b/unofficial/c450000112.lua index 7713781b17..f07eb2c969 100644 --- a/unofficial/c450000112.lua +++ b/unofficial/c450000112.lua @@ -13,4 +13,4 @@ end s.listed_names={450000110} function s.pcon(e) return Duel.IsEnvironment(450000110) -end +end \ No newline at end of file diff --git a/unofficial/c450000130.lua b/unofficial/c450000130.lua index 4a47766cbb..f5dc028411 100644 --- a/unofficial/c450000130.lua +++ b/unofficial/c450000130.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if ct<5 then Duel.Draw(p,5-ct,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c450000348.lua b/unofficial/c450000348.lua index 6490c926db..5d41087032 100644 --- a/unofficial/c450000348.lua +++ b/unofficial/c450000348.lua @@ -14,12 +14,12 @@ function s.initial_effect(c) end s.listed_names={31801517} function s.filter(c) - return c:IsAbleToRemoveAsCost() and c:IsMonster() and (c:IsSetCard(0x55) or c:IsCode(31801517)) and aux.SpElimFilter(c,true) + return c:IsAbleToRemoveAsCost() and c:IsMonster() and (c:IsSetCard(SET_PHOTON) or c:IsCode(31801517)) and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,2,nil) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,2,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -31,4 +31,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c450000349.lua b/unofficial/c450000349.lua index ff170e8e48..ceaa23428d 100644 --- a/unofficial/c450000349.lua +++ b/unofficial/c450000349.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x1083) and c:IsDestructable() + return c:IsFaceup() and c:IsSetCard(SET_GIMMICK_PUPPET) and c:IsDestructable() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c450000350.lua b/unofficial/c450000350.lua index fddb8e81c2..4064559c3f 100644 --- a/unofficial/c450000350.lua +++ b/unofficial/c450000350.lua @@ -29,4 +29,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c450000351.lua b/unofficial/c450000351.lua index 7b638e9a8f..92c677b2ef 100644 --- a/unofficial/c450000351.lua +++ b/unofficial/c450000351.lua @@ -29,4 +29,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c450000352.lua b/unofficial/c450000352.lua index e50346714d..ca45ee3e17 100644 --- a/unofficial/c450000352.lua +++ b/unofficial/c450000352.lua @@ -29,4 +29,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c450000353.lua b/unofficial/c450000353.lua index 58164b1cdd..79e7e19eb3 100644 --- a/unofficial/c450000353.lua +++ b/unofficial/c450000353.lua @@ -29,4 +29,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c450000354.lua b/unofficial/c450000354.lua index 0575888ddd..4409b27e01 100644 --- a/unofficial/c450000354.lua +++ b/unofficial/c450000354.lua @@ -41,4 +41,4 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c450000357.lua b/unofficial/c450000357.lua index 35c329b035..04244ba9db 100644 --- a/unofficial/c450000357.lua +++ b/unofficial/c450000357.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c450000410.lua b/unofficial/c450000410.lua index 1b156a1987..84b060b76c 100644 --- a/unofficial/c450000410.lua +++ b/unofficial/c450000410.lua @@ -34,4 +34,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c500000006.lua b/unofficial/c500000006.lua index 7381c93263..4c83457c06 100644 --- a/unofficial/c500000006.lua +++ b/unofficial/c500000006.lua @@ -32,4 +32,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c500000008.lua b/unofficial/c500000008.lua index e0daa7a53b..61e444da98 100644 --- a/unofficial/c500000008.lua +++ b/unofficial/c500000008.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RDComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c500000051.lua b/unofficial/c500000051.lua index 7623577eab..70f94dd462 100644 --- a/unofficial/c500000051.lua +++ b/unofficial/c500000051.lua @@ -41,4 +41,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE|PHASE_DRAW) e1:SetValue(Duel.GetDrawCount(tp)+1) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c500000140.lua b/unofficial/c500000140.lua index e6e453f98d..db5da47eb9 100644 --- a/unofficial/c500000140.lua +++ b/unofficial/c500000140.lua @@ -17,9 +17,9 @@ function s.filter(c) return c:IsRace(RACE_WARRIOR) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -31,4 +31,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c500000141.lua b/unofficial/c500000141.lua index 8e0f3650da..329cfe712e 100644 --- a/unofficial/c500000141.lua +++ b/unofficial/c500000141.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c500000142.lua b/unofficial/c500000142.lua index f41abe1533..794cf1c97d 100644 --- a/unofficial/c500000142.lua +++ b/unofficial/c500000142.lua @@ -27,4 +27,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c500000143.lua b/unofficial/c500000143.lua index f20cc8587c..4accefa1ee 100644 --- a/unofficial/c500000143.lua +++ b/unofficial/c500000143.lua @@ -37,4 +37,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) rc:SetStatus(STATUS_ACTIVATE_DISABLED,false) Duel.RaiseEvent(rc,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c500000147.lua b/unofficial/c500000147.lua index 80dc0d9548..0746727a05 100644 --- a/unofficial/c500000147.lua +++ b/unofficial/c500000147.lua @@ -60,4 +60,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c500000149.lua b/unofficial/c500000149.lua index 888705f378..24cfd2f232 100644 --- a/unofficial/c500000149.lua +++ b/unofficial/c500000149.lua @@ -41,4 +41,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,800,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c500000152.lua b/unofficial/c500000152.lua index 758b4fff34..2d074cc8bc 100644 --- a/unofficial/c500000152.lua +++ b/unofficial/c500000152.lua @@ -38,4 +38,4 @@ function s.refcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c500008302.lua b/unofficial/c500008302.lua index 646fe1522a..5a88445948 100644 --- a/unofficial/c500008302.lua +++ b/unofficial/c500008302.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:CancelToGrave() Duel.Overlay(tc,c) end -end +end \ No newline at end of file diff --git a/unofficial/c500008902.lua b/unofficial/c500008902.lua index 7e88d18e29..4280e6950b 100644 --- a/unofficial/c500008902.lua +++ b/unofficial/c500008902.lua @@ -64,4 +64,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if c2<2 then Duel.Damage(1-tp,500-c2*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c500313101.lua b/unofficial/c500313101.lua index e60acb65af..49a668f913 100644 --- a/unofficial/c500313101.lua +++ b/unofficial/c500313101.lua @@ -74,4 +74,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RaiseEvent(tc,id,e,0,tp,0,0) tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c500314601.lua b/unofficial/c500314601.lua index cc0abd151c..e3575cc15c 100644 --- a/unofficial/c500314601.lua +++ b/unofficial/c500314601.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c500314701.lua b/unofficial/c500314701.lua index 933de3f608..bbc3d7925d 100644 --- a/unofficial/c500314701.lua +++ b/unofficial/c500314701.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(p,dc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c501000000.lua b/unofficial/c501000000.lua index 302e45e89a..b4877886ce 100644 --- a/unofficial/c501000000.lua +++ b/unofficial/c501000000.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_WINGEDBEAST) -end +end \ No newline at end of file diff --git a/unofficial/c501000001.lua b/unofficial/c501000001.lua index f22052179c..237c749343 100644 --- a/unofficial/c501000001.lua +++ b/unofficial/c501000001.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_BEASTWARRIOR) -end +end \ No newline at end of file diff --git a/unofficial/c501000002.lua b/unofficial/c501000002.lua index 48a1511214..a576824529 100644 --- a/unofficial/c501000002.lua +++ b/unofficial/c501000002.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_FIEND) -end +end \ No newline at end of file diff --git a/unofficial/c501000003.lua b/unofficial/c501000003.lua index 0a02a296cf..e230d7649e 100644 --- a/unofficial/c501000003.lua +++ b/unofficial/c501000003.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_FAIRY) -end +end \ No newline at end of file diff --git a/unofficial/c501000004.lua b/unofficial/c501000004.lua index afa355c659..efcbc9ebf8 100644 --- a/unofficial/c501000004.lua +++ b/unofficial/c501000004.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_SPELLCASTER) -end +end \ No newline at end of file diff --git a/unofficial/c501000005.lua b/unofficial/c501000005.lua index 6ee085a4e2..d7efd75625 100644 --- a/unofficial/c501000005.lua +++ b/unofficial/c501000005.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_WARRIOR) -end +end \ No newline at end of file diff --git a/unofficial/c501000006.lua b/unofficial/c501000006.lua index 0277bb3315..8afbba7911 100644 --- a/unofficial/c501000006.lua +++ b/unofficial/c501000006.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_BEAST) -end +end \ No newline at end of file diff --git a/unofficial/c501000007.lua b/unofficial/c501000007.lua index 2b0d688073..6bb7261e6b 100644 --- a/unofficial/c501000007.lua +++ b/unofficial/c501000007.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_THUNDER) -end +end \ No newline at end of file diff --git a/unofficial/c501000008.lua b/unofficial/c501000008.lua index b6cfb580a0..bf6be34618 100644 --- a/unofficial/c501000008.lua +++ b/unofficial/c501000008.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_FAIRY) -end +end \ No newline at end of file diff --git a/unofficial/c501000009.lua b/unofficial/c501000009.lua index 20153be0e7..3728d17e29 100644 --- a/unofficial/c501000009.lua +++ b/unofficial/c501000009.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_MACHINE) -end +end \ No newline at end of file diff --git a/unofficial/c501000010.lua b/unofficial/c501000010.lua index 7173cc5523..6b20b180ec 100644 --- a/unofficial/c501000010.lua +++ b/unofficial/c501000010.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_FIEND) -end +end \ No newline at end of file diff --git a/unofficial/c501000011.lua b/unofficial/c501000011.lua index a5f552fe3d..e1a4cc2ff2 100644 --- a/unofficial/c501000011.lua +++ b/unofficial/c501000011.lua @@ -25,4 +25,4 @@ end s.illegal=true function s.tlimit(e,c) return not c:IsRace(RACE_BEASTWARRIOR) -end +end \ No newline at end of file diff --git a/unofficial/c501000012.lua b/unofficial/c501000012.lua index 2c0f9cde1e..1c08315cbe 100644 --- a/unofficial/c501000012.lua +++ b/unofficial/c501000012.lua @@ -17,4 +17,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_MATCH_KILL) c:RegisterEffect(e2) end -s.illegal=true +s.illegal=true \ No newline at end of file diff --git a/unofficial/c501000013.lua b/unofficial/c501000013.lua index c22fedc92c..29633ab3fb 100644 --- a/unofficial/c501000013.lua +++ b/unofficial/c501000013.lua @@ -17,4 +17,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_MATCH_KILL) c:RegisterEffect(e2) end -s.illegal=true +s.illegal=true \ No newline at end of file diff --git a/unofficial/c501000014.lua b/unofficial/c501000014.lua index 3d328676b5..0ba34f65dd 100644 --- a/unofficial/c501000014.lua +++ b/unofficial/c501000014.lua @@ -25,4 +25,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetMaterial() return g:IsExists(s.spfilter,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c501000015.lua b/unofficial/c501000015.lua index c9438c7a45..ca447dfea8 100644 --- a/unofficial/c501000015.lua +++ b/unofficial/c501000015.lua @@ -25,4 +25,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetMaterial() return g:IsExists(s.spfilter,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c501000016.lua b/unofficial/c501000016.lua index 9eb95f4877..b35e1dc528 100644 --- a/unofficial/c501000016.lua +++ b/unofficial/c501000016.lua @@ -25,4 +25,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetMaterial() return g:IsExists(s.spfilter,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c501000017.lua b/unofficial/c501000017.lua index 547a4ebba4..213b6203ef 100644 --- a/unofficial/c501000017.lua +++ b/unofficial/c501000017.lua @@ -25,4 +25,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetMaterial() return g:IsExists(s.spfilter,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c501000018.lua b/unofficial/c501000018.lua index 92c2586b51..da0f104559 100644 --- a/unofficial/c501000018.lua +++ b/unofficial/c501000018.lua @@ -25,4 +25,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetMaterial() return g:IsExists(s.spfilter,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c501000019.lua b/unofficial/c501000019.lua index df966ecd82..9884dfccfa 100644 --- a/unofficial/c501000019.lua +++ b/unofficial/c501000019.lua @@ -25,4 +25,4 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetMaterial() return g:IsExists(s.spfilter,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c501000078.lua b/unofficial/c501000078.lua index f76c4ed34b..7537917f01 100644 --- a/unofficial/c501000078.lua +++ b/unofficial/c501000078.lua @@ -70,4 +70,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c501000079.lua b/unofficial/c501000079.lua index 6f27d19bbf..ae3cb4aedb 100644 --- a/unofficial/c501000079.lua +++ b/unofficial/c501000079.lua @@ -106,4 +106,4 @@ end function s.con(e) local tp=e:GetHandler():GetControler() return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1 -end +end \ No newline at end of file diff --git a/unofficial/c501000080.lua b/unofficial/c501000080.lua index 0c3ec0bbf6..7c8472906b 100644 --- a/unofficial/c501000080.lua +++ b/unofficial/c501000080.lua @@ -102,4 +102,4 @@ end function s.con(e) local tp=e:GetHandler():GetControler() return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1 -end +end \ No newline at end of file diff --git a/unofficial/c501000081.lua b/unofficial/c501000081.lua index 172a83793c..0833a1c4c3 100644 --- a/unofficial/c501000081.lua +++ b/unofficial/c501000081.lua @@ -70,4 +70,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c501000082.lua b/unofficial/c501000082.lua index ef7dbde722..92c76a7268 100644 --- a/unofficial/c501000082.lua +++ b/unofficial/c501000082.lua @@ -70,4 +70,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c501000083.lua b/unofficial/c501000083.lua index 98b5f46cf4..3594e08845 100644 --- a/unofficial/c501000083.lua +++ b/unofficial/c501000083.lua @@ -102,4 +102,4 @@ end function s.con(e) local tp=e:GetHandler():GetControler() return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1 -end +end \ No newline at end of file diff --git a/unofficial/c501000084.lua b/unofficial/c501000084.lua index 600a6abe00..b01089dbc9 100644 --- a/unofficial/c501000084.lua +++ b/unofficial/c501000084.lua @@ -26,4 +26,4 @@ function s.con(e) end function s.limit(e,se,sp,st) return (st&SUMMON_TYPE_LINK)==SUMMON_TYPE_LINK -end +end \ No newline at end of file diff --git a/unofficial/c501000085.lua b/unofficial/c501000085.lua index 7142bf178f..28d782d267 100644 --- a/unofficial/c501000085.lua +++ b/unofficial/c501000085.lua @@ -26,4 +26,4 @@ function s.con(e) end function s.limit(e,se,sp,st) return (st&SUMMON_TYPE_LINK)==SUMMON_TYPE_LINK -end +end \ No newline at end of file diff --git a/unofficial/c511000001.lua b/unofficial/c511000001.lua index eface0a565..26cdf4abef 100644 --- a/unofficial/c511000001.lua +++ b/unofficial/c511000001.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000002.lua b/unofficial/c511000002.lua index 3dba5a5693..884488f81c 100644 --- a/unofficial/c511000002.lua +++ b/unofficial/c511000002.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000003.lua b/unofficial/c511000003.lua index 7bdffec4a7..536c86dc21 100644 --- a/unofficial/c511000003.lua +++ b/unofficial/c511000003.lua @@ -59,4 +59,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) else c:CancelToGrave(false) end -end +end \ No newline at end of file diff --git a/unofficial/c511000004.lua b/unofficial/c511000004.lua index e085aa6333..f464479ad0 100644 --- a/unofficial/c511000004.lua +++ b/unofficial/c511000004.lua @@ -28,4 +28,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards(e) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000005.lua b/unofficial/c511000005.lua index 5793166039..f1d3687a26 100644 --- a/unofficial/c511000005.lua +++ b/unofficial/c511000005.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) end s.listed_names={id} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,e,tp) return c:IsCode(id) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK) @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511000006.lua b/unofficial/c511000006.lua index 8bfb69d9e9..52e52d8c59 100644 --- a/unofficial/c511000006.lua +++ b/unofficial/c511000006.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000007.lua b/unofficial/c511000007.lua index fe6b897bce..36fbbe7fc8 100644 --- a/unofficial/c511000007.lua +++ b/unofficial/c511000007.lua @@ -28,15 +28,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,true,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000008.lua b/unofficial/c511000008.lua index c39ca66b9b..ab7b07600d 100644 --- a/unofficial/c511000008.lua +++ b/unofficial/c511000008.lua @@ -51,4 +51,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000010.lua b/unofficial/c511000010.lua index d408dcc096..8dfe9f066d 100644 --- a/unofficial/c511000010.lua +++ b/unofficial/c511000010.lua @@ -2,5 +2,4 @@ local s,id=GetID() function s.initial_effect(c) Ritual.AddProcGreaterCode(c,6,nil,511000009) -end - +end \ No newline at end of file diff --git a/unofficial/c511000011.lua b/unofficial/c511000011.lua index 7c0bf4334b..b95a75ecc4 100644 --- a/unofficial/c511000011.lua +++ b/unofficial/c511000011.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) local e2=e1:Clone() e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) c:RegisterEffect(e2) end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511000012.lua b/unofficial/c511000012.lua index 0f2bd42e46..73cc951ef5 100644 --- a/unofficial/c511000012.lua +++ b/unofficial/c511000012.lua @@ -91,4 +91,4 @@ function s.spcop(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EFFECT_CANNOT_BP) Duel.RegisterEffect(e3,tp) aux.RegisterClientHint(c,EFFECT_FLAG_OATH,tp,1,0,aux.Stringid(id,1)) -end +end \ No newline at end of file diff --git a/unofficial/c511000013.lua b/unofficial/c511000013.lua index f91c89d57e..b97200a52f 100644 --- a/unofficial/c511000013.lua +++ b/unofficial/c511000013.lua @@ -80,4 +80,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_CANNOT_MSET) Duel.RegisterEffect(e2,tp) aux.RegisterClientHint(c,EFFECT_FLAG_OATH,tp,1,0,aux.Stringid(id,1)) -end +end \ No newline at end of file diff --git a/unofficial/c511000014.lua b/unofficial/c511000014.lua index 21e6691825..b69a9c1f8e 100644 --- a/unofficial/c511000014.lua +++ b/unofficial/c511000014.lua @@ -31,4 +31,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000015.lua b/unofficial/c511000015.lua index f193636de0..e6591b2140 100644 --- a/unofficial/c511000015.lua +++ b/unofficial/c511000015.lua @@ -48,4 +48,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Damage(tc:GetPreviousControler(),800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000016.lua b/unofficial/c511000016.lua index b1c43dac8e..2bfc2dc7c6 100644 --- a/unofficial/c511000016.lua +++ b/unofficial/c511000016.lua @@ -58,4 +58,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and c:IsFaceup() then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000017.lua b/unofficial/c511000017.lua index 6eab44303d..053bfb3e04 100644 --- a/unofficial/c511000017.lua +++ b/unofficial/c511000017.lua @@ -21,4 +21,4 @@ function s.initial_effect(c) e3:SetRange(LOCATION_SZONE) e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511000018.lua b/unofficial/c511000018.lua index 50d0bfbae2..0d5e52e0d7 100644 --- a/unofficial/c511000018.lua +++ b/unofficial/c511000018.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=g:Select(tp,1,1,nil):GetFirst() end Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000019.lua b/unofficial/c511000019.lua index 7483ff754e..f3a3e55928 100644 --- a/unofficial/c511000019.lua +++ b/unofficial/c511000019.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x15) and c:IsCanAddCounter(0x1f,3) + return c:IsFaceup() and c:IsSetCard(SET_BES) and c:IsCanAddCounter(SET_NEO_SPACIAN,3) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -24,7 +24,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() - if tc:IsFaceup() and tc:IsSetCard(0x15) and tc:IsRelateToEffect(e) then + if tc:IsFaceup() and tc:IsSetCard(SET_BES) and tc:IsRelateToEffect(e) then tc:AddCounter(0x1f,3) end -end +end \ No newline at end of file diff --git a/unofficial/c511000021.lua b/unofficial/c511000021.lua index 28daf5fd42..fd1abddea2 100644 --- a/unofficial/c511000021.lua +++ b/unofficial/c511000021.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,ct1*300,REASON_EFFECT,true) Duel.Damage(1-tp,ct2*300,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000022.lua b/unofficial/c511000022.lua index 95d0b5a666..f24c342052 100644 --- a/unofficial/c511000022.lua +++ b/unofficial/c511000022.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,0,nil) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000023.lua b/unofficial/c511000023.lua index 11675e23aa..92f892788c 100644 --- a/unofficial/c511000023.lua +++ b/unofficial/c511000023.lua @@ -52,4 +52,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000024.lua b/unofficial/c511000024.lua index f093e09ba3..c82fab00ec 100644 --- a/unofficial/c511000024.lua +++ b/unofficial/c511000024.lua @@ -69,4 +69,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000026.lua b/unofficial/c511000026.lua index 990a3bb59e..71b2cf7147 100644 --- a/unofficial/c511000026.lua +++ b/unofficial/c511000026.lua @@ -37,4 +37,4 @@ function s.condition(e) end function s.value(e,c) return Duel.GetMatchingGroupCount(Card.IsType,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,nil,TYPE_SPELL+TYPE_TRAP) -end +end \ No newline at end of file diff --git a/unofficial/c511000027.lua b/unofficial/c511000027.lua index 67e02a0b6b..19c926d108 100644 --- a/unofficial/c511000027.lua +++ b/unofficial/c511000027.lua @@ -35,7 +35,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 + return Duel.IsMainPhase() end function s.target(e,c) return c:IsPosition(POS_FACEUP_DEFENSE) diff --git a/unofficial/c511000028.lua b/unofficial/c511000028.lua index 0ab6f8fff4..fbde6372b8 100644 --- a/unofficial/c511000028.lua +++ b/unofficial/c511000028.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000029.lua b/unofficial/c511000029.lua index 19f41e6e37..7c8c96190d 100644 --- a/unofficial/c511000029.lua +++ b/unofficial/c511000029.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return not re:GetHandler():IsImmuneToEffect(e) and re:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c511000030.lua b/unofficial/c511000030.lua index 334c70e7f8..9b73ef3fcc 100644 --- a/unofficial/c511000030.lua +++ b/unofficial/c511000030.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) end s.listed_series={0x4a} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x4a),tp,LOCATION_MZONE,0,1,nil) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_TIMELORD),tp,LOCATION_MZONE,0,1,nil) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local ct=Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsType,TYPE_SYNCHRO),tp,0,LOCATION_MZONE,nil)*2 @@ -45,4 +45,4 @@ function s.actcon(e) if res then return teg:IsExists(s.cfilter,1,nil,1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000031.lua b/unofficial/c511000031.lua index 2efb54e82b..dece95f92d 100644 --- a/unofficial/c511000031.lua +++ b/unofficial/c511000031.lua @@ -28,4 +28,4 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp) ec:RegisterEffect(e1) end Duel.Recover(tp,lp,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000032.lua b/unofficial/c511000032.lua index 3c9f20429d..2a148a178d 100644 --- a/unofficial/c511000032.lua +++ b/unofficial/c511000032.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000035.lua b/unofficial/c511000035.lua index 74098bc78a..127724eb09 100644 --- a/unofficial/c511000035.lua +++ b/unofficial/c511000035.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetCode(EVENT_CHAINING) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetOperation(s.operation) c:RegisterEffect(e1) end @@ -54,4 +54,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511000036.lua b/unofficial/c511000036.lua index e51f8c3eca..4c600ecaf1 100644 --- a/unofficial/c511000036.lua +++ b/unofficial/c511000036.lua @@ -32,7 +32,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_PHASE_START+PHASE_END) e1:SetOperation(s.countop) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_END then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_END then e1:SetLabel(1) else e1:SetLabel(0) diff --git a/unofficial/c511000037.lua b/unofficial/c511000037.lua index 4d9af74129..a64e7caac2 100644 --- a/unofficial/c511000037.lua +++ b/unofficial/c511000037.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsControler(tp) and tc:IsRelateToEffect(e) then Duel.Damage(1-tp,tc:GetDefense(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000038.lua b/unofficial/c511000038.lua index d410dc8214..c695b4150a 100644 --- a/unofficial/c511000038.lua +++ b/unofficial/c511000038.lua @@ -37,4 +37,4 @@ function s.sop(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000039.lua b/unofficial/c511000039.lua index a7efeb816e..5c057c8047 100644 --- a/unofficial/c511000039.lua +++ b/unofficial/c511000039.lua @@ -37,4 +37,4 @@ function s.sumsuc(e,tp,eg,ep,ev,re,r,rp) end function s.elimit(re,rp,tp) return not (re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and re:IsHasType(EFFECT_TYPE_ACTIVATE)) -end +end \ No newline at end of file diff --git a/unofficial/c511000040.lua b/unofficial/c511000040.lua index 80597d566a..142bf18d9c 100644 --- a/unofficial/c511000040.lua +++ b/unofficial/c511000040.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000041.lua b/unofficial/c511000041.lua index 83cff0ebac..855daf0ebc 100644 --- a/unofficial/c511000041.lua +++ b/unofficial/c511000041.lua @@ -54,4 +54,4 @@ function s.caop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.ChainAttack(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000043.lua b/unofficial/c511000043.lua index 8cc1919fd2..8a28113be2 100644 --- a/unofficial/c511000043.lua +++ b/unofficial/c511000043.lua @@ -76,4 +76,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local dg=g:Filter(Card.HasFlagEffect,nil,id) Duel.Destroy(dg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000044.lua b/unofficial/c511000044.lua index bc37802acf..bfc5935d06 100644 --- a/unofficial/c511000044.lua +++ b/unofficial/c511000044.lua @@ -58,4 +58,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() Duel.BreakEffect() Duel.Damage(1-tp,tc:GetAttack()/2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000046.lua b/unofficial/c511000046.lua index 89cdd8c2f1..57c6838b23 100644 --- a/unofficial/c511000046.lua +++ b/unofficial/c511000046.lua @@ -52,7 +52,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.filter(c,e,tp) - return c:IsSetCard(0x12) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_FROG) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.con(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL+1) @@ -74,4 +74,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.atcon(e) return Duel.IsExistingMatchingCard(aux.TRUE,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511000047.lua b/unofficial/c511000047.lua index 8b0749d041..843e0c13a0 100644 --- a/unofficial/c511000047.lua +++ b/unofficial/c511000047.lua @@ -34,8 +34,8 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp - and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) + return Duel.IsTurnPlayer(tp) + and Duel.IsMainPhase() end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -68,4 +68,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:CanAttack() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000048.lua b/unofficial/c511000048.lua index bcc1256e42..49921bc178 100644 --- a/unofficial/c511000048.lua +++ b/unofficial/c511000048.lua @@ -49,4 +49,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if ct<=0 then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000050.lua b/unofficial/c511000050.lua index 7e3a9df4ec..318dd7cd61 100644 --- a/unofficial/c511000050.lua +++ b/unofficial/c511000050.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(0,1) e1:SetReset(RESET_PHASE+PHASE_BATTLE+RESET_OPPO_TURN,1) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000051.lua b/unofficial/c511000051.lua index 50c94253cb..af9243e791 100644 --- a/unofficial/c511000051.lua +++ b/unofficial/c511000051.lua @@ -39,4 +39,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000052.lua b/unofficial/c511000052.lua index f74319e01e..dbd3a42748 100644 --- a/unofficial/c511000052.lua +++ b/unofficial/c511000052.lua @@ -30,4 +30,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000053.lua b/unofficial/c511000053.lua index 36a909c187..beaf02fe53 100644 --- a/unofficial/c511000053.lua +++ b/unofficial/c511000053.lua @@ -36,7 +36,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetCondition(s.spcon) e1:SetOperation(s.spop) e1:SetLabel(code) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) else e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,1) @@ -45,7 +45,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter2(c,code,e,tp) return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 @@ -56,4 +56,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000054.lua b/unofficial/c511000054.lua index 93691b60c7..836322563b 100644 --- a/unofficial/c511000054.lua +++ b/unofficial/c511000054.lua @@ -35,4 +35,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) local dam=Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsLevelBelow,4),tp,0,LOCATION_MZONE,nil)*500 Duel.Damage(1-tp,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000055.lua b/unofficial/c511000055.lua index 759a2aaf47..2bc5004655 100644 --- a/unofficial/c511000055.lua +++ b/unofficial/c511000055.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetValue(-800) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000056.lua b/unofficial/c511000056.lua index b78cca584d..78ce6d0b8d 100644 --- a/unofficial/c511000056.lua +++ b/unofficial/c511000056.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000059.lua b/unofficial/c511000059.lua index c88ddba2df..7e44b4b679 100644 --- a/unofficial/c511000059.lua +++ b/unofficial/c511000059.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(a,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000060.lua b/unofficial/c511000060.lua index d424ae1dbc..4e557b63da 100644 --- a/unofficial/c511000060.lua +++ b/unofficial/c511000060.lua @@ -21,4 +21,4 @@ function s.attg(e,c) local _,atk=Group.GetMinGroup(g,Card.GetAttack) return c:IsMonster() and c:IsFaceup() and c:IsLevelBelow(2) and c:IsRace(RACE_SPELLCASTER) and not c:IsHasEffect(EFFECT_CANNOT_ATTACK) and c:GetAttack()4 and c:IsClear() - and Duel.IsExistingMatchingCard(s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,mi,nil) and not c:IsPublic() + and Duel.IsExistingMatchingCard(s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,mi,nil) and not c:IsPublic() end function s.rfilter(c) return c:IsMonster() and c:IsClear() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) @@ -34,7 +34,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.ShuffleHand(tp) local mi,ma=tc:GetTributeRequirement() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local rg=Duel.SelectMatchingCard(tp,s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,mi,ma,nil) + local rg=Duel.SelectMatchingCard(tp,s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,mi,ma,nil) Duel.Remove(rg,POS_FACEUP,REASON_COST) Duel.SetTargetCard(tc) end @@ -54,4 +54,4 @@ end function s.ntcon(e,c,minc) if c==nil then return true end return minc==0 and c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000086.lua b/unofficial/c511000086.lua index 38ee78dee2..d1738be74b 100644 --- a/unofficial/c511000086.lua +++ b/unofficial/c511000086.lua @@ -64,4 +64,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) etc:ReleaseEffectRelation(te) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000087.lua b/unofficial/c511000087.lua index ddb15d2455..4891c5f6dc 100644 --- a/unofficial/c511000087.lua +++ b/unofficial/c511000087.lua @@ -62,4 +62,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND,0,ct,ct,nil,e,tp) if #g==0 then return end Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511000088.lua b/unofficial/c511000088.lua index 0317f76ed9..f2b65c0f56 100644 --- a/unofficial/c511000088.lua +++ b/unofficial/c511000088.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,false,true,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000089.lua b/unofficial/c511000089.lua index e72b581ca0..93ae191f68 100644 --- a/unofficial/c511000089.lua +++ b/unofficial/c511000089.lua @@ -69,4 +69,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000090.lua b/unofficial/c511000090.lua index b4eba259d0..464a533cc2 100644 --- a/unofficial/c511000090.lua +++ b/unofficial/c511000090.lua @@ -88,4 +88,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) end function s.eftg(e,c) return c:GetSequence()==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511000091.lua b/unofficial/c511000091.lua index f4ccab0ae0..42fdbe6cbf 100644 --- a/unofficial/c511000091.lua +++ b/unofficial/c511000091.lua @@ -18,14 +18,14 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetTurnPlayer() - Duel.SkipPhase(p,PHASE_DRAW,RESET_PHASE+PHASE_END,4) - Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE+PHASE_END,4) - Duel.SkipPhase(p,PHASE_BATTLE,RESET_PHASE+PHASE_END,2,2) - Duel.SkipPhase(p,PHASE_MAIN2,RESET_PHASE+PHASE_END,2) - Duel.SkipPhase(1-p,PHASE_DRAW,RESET_PHASE+PHASE_END,3) - Duel.SkipPhase(1-p,PHASE_MAIN1,RESET_PHASE+PHASE_END,3) - Duel.SkipPhase(1-p,PHASE_BATTLE,RESET_PHASE+PHASE_END,3,3) - Duel.SkipPhase(1-p,PHASE_MAIN2,RESET_PHASE+PHASE_END,3) + Duel.SkipPhase(p,PHASE_DRAW,RESET_PHASE|PHASE_END,4) + Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE|PHASE_END,4) + Duel.SkipPhase(p,PHASE_BATTLE,RESET_PHASE|PHASE_END,2,2) + Duel.SkipPhase(p,PHASE_MAIN2,RESET_PHASE|PHASE_END,2) + Duel.SkipPhase(1-p,PHASE_DRAW,RESET_PHASE|PHASE_END,3) + Duel.SkipPhase(1-p,PHASE_MAIN1,RESET_PHASE|PHASE_END,3) + Duel.SkipPhase(1-p,PHASE_BATTLE,RESET_PHASE|PHASE_END,3,3) + Duel.SkipPhase(1-p,PHASE_MAIN2,RESET_PHASE|PHASE_END,3) local e1=Effect.GlobalEffect() e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD) diff --git a/unofficial/c511000092.lua b/unofficial/c511000092.lua index b65beceb92..d45405e345 100644 --- a/unofficial/c511000092.lua +++ b/unofficial/c511000092.lua @@ -37,4 +37,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000093.lua b/unofficial/c511000093.lua index dbfd7174de..cc1c19465f 100644 --- a/unofficial/c511000093.lua +++ b/unofficial/c511000093.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and not tc:IsAttackPos() then Duel.ChangePosition(tc,0,0,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511000094.lua b/unofficial/c511000094.lua index a59d33d320..56dd022246 100644 --- a/unofficial/c511000094.lua +++ b/unofficial/c511000094.lua @@ -31,4 +31,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000096.lua b/unofficial/c511000096.lua index f0ccdaafe5..36470c7b50 100644 --- a/unofficial/c511000096.lua +++ b/unofficial/c511000096.lua @@ -24,4 +24,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) Duel.SpecialSummonStep(token,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000098.lua b/unofficial/c511000098.lua index 82ab1ff7b6..4f2867b9e5 100644 --- a/unofficial/c511000098.lua +++ b/unofficial/c511000098.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(tc2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000099.lua b/unofficial/c511000099.lua index 8c3bc4f799..c7e740b9fd 100644 --- a/unofficial/c511000099.lua +++ b/unofficial/c511000099.lua @@ -70,4 +70,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,opG:GetSum(Card.GetLevel)*200,REASON_EFFECT,true) end Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000100.lua b/unofficial/c511000100.lua index 9032c9eea2..192da196a5 100644 --- a/unofficial/c511000100.lua +++ b/unofficial/c511000100.lua @@ -20,14 +20,14 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000103.lua b/unofficial/c511000103.lua index b96d4190d5..36516e1bc5 100644 --- a/unofficial/c511000103.lua +++ b/unofficial/c511000103.lua @@ -52,4 +52,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,id+1) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000105.lua b/unofficial/c511000105.lua index 45fe5926a0..242c3844c1 100644 --- a/unofficial/c511000105.lua +++ b/unofficial/c511000105.lua @@ -33,4 +33,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000106.lua b/unofficial/c511000106.lua index de61afd3b7..5cff7737a9 100644 --- a/unofficial/c511000106.lua +++ b/unofficial/c511000106.lua @@ -27,7 +27,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) else e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN) diff --git a/unofficial/c511000108.lua b/unofficial/c511000108.lua index 6dcf8a7efd..ffcdde505c 100644 --- a/unofficial/c511000108.lua +++ b/unofficial/c511000108.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e2) end -s.listed_names={511000107} +s.listed_names={511000107} \ No newline at end of file diff --git a/unofficial/c511000109.lua b/unofficial/c511000109.lua index b4c3ddd832..5aa4d73124 100644 --- a/unofficial/c511000109.lua +++ b/unofficial/c511000109.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e2) end -s.listed_names={511000107} +s.listed_names={511000107} \ No newline at end of file diff --git a/unofficial/c511000110.lua b/unofficial/c511000110.lua index 354d0805e6..d04d39bc18 100644 --- a/unofficial/c511000110.lua +++ b/unofficial/c511000110.lua @@ -44,4 +44,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000111.lua b/unofficial/c511000111.lua index b0f93477b9..5b75184c54 100644 --- a/unofficial/c511000111.lua +++ b/unofficial/c511000111.lua @@ -35,4 +35,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000112.lua b/unofficial/c511000112.lua index 2703bbe33f..b8a7ec427a 100644 --- a/unofficial/c511000112.lua +++ b/unofficial/c511000112.lua @@ -59,4 +59,4 @@ function s.op(code1,code2) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000116.lua b/unofficial/c511000116.lua index 1939b510df..0b7c239cc8 100644 --- a/unofficial/c511000116.lua +++ b/unofficial/c511000116.lua @@ -36,4 +36,4 @@ end function s.atkop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return false end Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511000117.lua b/unofficial/c511000117.lua index ce35f9542a..1448b6d3f9 100644 --- a/unofficial/c511000117.lua +++ b/unofficial/c511000117.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.mtcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.mtop(e,tp,eg,ep,ev,re,r,rp) if Duel.CheckLPCost(tp,500) and Duel.SelectYesNo(tp,aux.Stringid(57496978,0)) then @@ -32,4 +32,4 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(e:GetHandler(),REASON_COST) end -end +end \ No newline at end of file diff --git a/unofficial/c511000118.lua b/unofficial/c511000118.lua index eb64fca9d6..09eac38c6b 100644 --- a/unofficial/c511000118.lua +++ b/unofficial/c511000118.lua @@ -74,4 +74,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEUP_ATTACK) then Duel.SendtoGrave(c,REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c511000119.lua b/unofficial/c511000119.lua index 019af2c0a5..e8f38b452d 100644 --- a/unofficial/c511000119.lua +++ b/unofficial/c511000119.lua @@ -159,7 +159,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end end function s.mtcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,31829185) + return Duel.IsTurnPlayer(tp) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,31829185) and e:GetHandler():GetFlagEffect(511000118)==0 end function s.mtop(e,tp,eg,ep,ev,re,r,rp) @@ -283,7 +283,7 @@ function s.tar(e,tp,eg,ep,ev,re,r,rp,chk) local te=c:GetActivateEffect() local tg=te:GetTarget() local op=te:GetOperation() - if chk==0 then return (not tg or tg(e,tp,eg,ep,ev,re,r,rp,0)) and Duel.GetTurnPlayer()==tp + if chk==0 then return (not tg or tg(e,tp,eg,ep,ev,re,r,rp,0)) and Duel.IsTurnPlayer(tp) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,31829185) end c:CreateEffectRelation(e) diff --git a/unofficial/c511000121.lua b/unofficial/c511000121.lua index 426f347433..caa37a44df 100644 --- a/unofficial/c511000121.lua +++ b/unofficial/c511000121.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local ctf=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,LOCATION_MZONE) local ct=ctf+Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsMonster),tp,LOCATION_REMOVED,LOCATION_REMOVED,nil) Duel.DiscardDeck(tp,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000122.lua b/unofficial/c511000122.lua index f1bb9f048d..2462111c1a 100644 --- a/unofficial/c511000122.lua +++ b/unofficial/c511000122.lua @@ -78,7 +78,7 @@ function s.respop(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_PHASE+PHASE_END) - e1:SetRange(LOCATION_GRAVE+LOCATION_REMOVED) + e1:SetRange(LOCATION_GRAVE|LOCATION_REMOVED) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) e1:SetCountLimit(1) e1:SetOperation(s.spcop) diff --git a/unofficial/c511000123.lua b/unofficial/c511000123.lua index fb2c8e0484..c6914b94cc 100644 --- a/unofficial/c511000123.lua +++ b/unofficial/c511000123.lua @@ -48,7 +48,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end function s.mtcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.mtop(e,tp,eg,ep,ev,re,r,rp) if Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,nil) @@ -59,4 +59,4 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(e:GetHandler(),REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c511000124.lua b/unofficial/c511000124.lua index 08adbf7cd8..cc1af3337e 100644 --- a/unofficial/c511000124.lua +++ b/unofficial/c511000124.lua @@ -68,7 +68,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if ft<=0 or not e:GetHandler():IsRelateToEffect(e) then return end if ft>2 then ft=2 end if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then ft=1 end - local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,nil,e,tp) + local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,nil,e,tp) if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(525110,0)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,1,ft,nil) @@ -90,14 +90,14 @@ function s.filter(c) return c:IsCode(id+1) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end - Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil) end + Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE) end function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil) if #g>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000125.lua b/unofficial/c511000125.lua index b0b177234b..c15d5765df 100644 --- a/unofficial/c511000125.lua +++ b/unofficial/c511000125.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if not Duel.SelectYesNo(tp,aux.Stringid(id,0)) then c:CancelToGrave(false) end -end +end \ No newline at end of file diff --git a/unofficial/c511000126.lua b/unofficial/c511000126.lua index ad95ae50e0..645a789f83 100644 --- a/unofficial/c511000126.lua +++ b/unofficial/c511000126.lua @@ -55,4 +55,4 @@ function s.chkop(e,tp,eg,ep,ev,re,r,rp) end function s.clear(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():SetLabel(0) -end +end \ No newline at end of file diff --git a/unofficial/c511000127.lua b/unofficial/c511000127.lua index acea9e8240..0bb223f29a 100644 --- a/unofficial/c511000127.lua +++ b/unofficial/c511000127.lua @@ -35,4 +35,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000128.lua b/unofficial/c511000128.lua index 67ee67de7e..c09acffdb7 100644 --- a/unofficial/c511000128.lua +++ b/unofficial/c511000128.lua @@ -27,4 +27,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.desfilter,tp,0,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000129.lua b/unofficial/c511000129.lua index 62255b9042..ad60262f3e 100644 --- a/unofficial/c511000129.lua +++ b/unofficial/c511000129.lua @@ -56,5 +56,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.repval(e,c) return e:GetLabelObject():IsContains(c) -end - +end \ No newline at end of file diff --git a/unofficial/c511000130.lua b/unofficial/c511000130.lua index c9070d5999..10c08dce33 100644 --- a/unofficial/c511000130.lua +++ b/unofficial/c511000130.lua @@ -41,4 +41,4 @@ function s.atkfilter(c) end function s.val(e,c) return Duel.GetMatchingGroupCount(s.atkfilter,c:GetControler(),LOCATION_GRAVE,LOCATION_GRAVE,nil)*500 -end +end \ No newline at end of file diff --git a/unofficial/c511000131.lua b/unofficial/c511000131.lua index 18f6cde6d6..6d36a253ee 100644 --- a/unofficial/c511000131.lua +++ b/unofficial/c511000131.lua @@ -27,4 +27,4 @@ end function s.damval(e,re,val,r,rp,rc) if rp~=e:GetHandlerPlayer() and (r&REASON_EFFECT)~=0 then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511000132.lua b/unofficial/c511000132.lua index 08dd4f3b42..48a693b36d 100644 --- a/unofficial/c511000132.lua +++ b/unofficial/c511000132.lua @@ -31,15 +31,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000133.lua b/unofficial/c511000133.lua index a45a976035..04f8376ecd 100644 --- a/unofficial/c511000133.lua +++ b/unofficial/c511000133.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000134.lua b/unofficial/c511000134.lua index 8ebebb5f0f..891fd76ab4 100644 --- a/unofficial/c511000134.lua +++ b/unofficial/c511000134.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c) return c:IsDestructable() @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000135.lua b/unofficial/c511000135.lua index e87b795505..0766da642e 100644 --- a/unofficial/c511000135.lua +++ b/unofficial/c511000135.lua @@ -52,4 +52,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000136.lua b/unofficial/c511000136.lua index eab7650e52..d9e7a49bac 100644 --- a/unofficial/c511000136.lua +++ b/unofficial/c511000136.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000137.lua b/unofficial/c511000137.lua index c46a46547a..1a2c30b62e 100644 --- a/unofficial/c511000137.lua +++ b/unofficial/c511000137.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e2:SetValue(1) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000141.lua b/unofficial/c511000141.lua index 97f8aebae8..1e401104bf 100644 --- a/unofficial/c511000141.lua +++ b/unofficial/c511000141.lua @@ -57,4 +57,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000142.lua b/unofficial/c511000142.lua index dd2c12a28a..55fb7ce08f 100644 --- a/unofficial/c511000142.lua +++ b/unofficial/c511000142.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000143.lua b/unofficial/c511000143.lua index e8ffb042c0..0f7ec9a33a 100644 --- a/unofficial/c511000143.lua +++ b/unofficial/c511000143.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000145.lua b/unofficial/c511000145.lua index 8f6815df7e..ca72c6d01e 100644 --- a/unofficial/c511000145.lua +++ b/unofficial/c511000145.lua @@ -86,4 +86,4 @@ function s.ctcon(e,tp,eg,ep,ev,re,r,rp) end function s.ctop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():AddCounter(0x1097,1) -end +end \ No newline at end of file diff --git a/unofficial/c511000146.lua b/unofficial/c511000146.lua index 34db961698..d95fbc2ad9 100644 --- a/unofficial/c511000146.lua +++ b/unofficial/c511000146.lua @@ -14,7 +14,7 @@ end function s.filter1(c,e,tp,eg,ep,ev,re,r,rp) local te=c:CheckActivateEffect(false,false,false) if c:IsSpell() and c:IsFaceup() and te then - if c:IsSetCard(0x95) then + if c:IsSetCard(SET_RANK_UP_MAGIC) then local tg=te:GetTarget() return not tg or tg(e,tp,eg,ep,ev,re,r,rp,0) else @@ -26,7 +26,7 @@ end function s.filter2(c,e,tp,eg,ep,ev,re,r,rp) local te=c:CheckActivateEffect(false,false,false) if c:IsSpell() and c:IsFaceup() and not c:IsType(TYPE_EQUIP+TYPE_CONTINUOUS) and te then - if c:IsSetCard(0x95) then + if c:IsSetCard(SET_RANK_UP_MAGIC) then local tg=te:GetTarget() return not tg or tg(e,tp,eg,ep,ev,re,r,rp,0) else @@ -73,7 +73,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:CreateEffectRelation(te) if co then co(te,tp,eg,ep,ev,re,r,rp,1) end if tg then - if tc:IsSetCard(0x95) then + if tc:IsSetCard(SET_RANK_UP_MAGIC) then tg(e,tp,eg,ep,ev,re,r,rp,1) else tg(te,tp,eg,ep,ev,re,r,rp,1) @@ -87,7 +87,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) etc=g:GetNext() end if op then - if tc:IsSetCard(0x95) then + if tc:IsSetCard(SET_RANK_UP_MAGIC) then op(e,tp,eg,ep,ev,re,r,rp) else op(te,tp,eg,ep,ev,re,r,rp) @@ -99,4 +99,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) etc:ReleaseEffectRelation(te) etc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000148.lua b/unofficial/c511000148.lua index 936e85e466..ca2d532d90 100644 --- a/unofficial/c511000148.lua +++ b/unofficial/c511000148.lua @@ -31,21 +31,21 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=4 then return false end e:SetLabel(0) return not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,CARD_KURIBOH) - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,44632120) - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,71036835) - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,7021574) - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,34419588) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp,CARD_KURIBOH) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp,44632120) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp,71036835) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp,7021574) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp,34419588) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_DECK+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=4 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end - local g1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,CARD_KURIBOH) - local g2=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,44632120) - local g3=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,71036835) - local g4=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,7021574) - local g5=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,34419588) + local g1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,CARD_KURIBOH) + local g2=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,44632120) + local g3=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,71036835) + local g4=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,7021574) + local g5=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,34419588) if #g1>0 and #g2>0 and #g3>0 and #g4>0 and #g5>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg1=g1:Select(tp,1,1,nil) @@ -73,4 +73,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511000150.lua b/unofficial/c511000150.lua index 3ab7219025..e06098c522 100644 --- a/unofficial/c511000150.lua +++ b/unofficial/c511000150.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.sptg) e2:SetOperation(s.spop) c:RegisterEffect(e2) @@ -101,4 +101,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) sg1:Merge(sg5) Duel.SpecialSummon(sg1,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000151.lua b/unofficial/c511000151.lua index 1b9aad28b9..eabc7543a4 100644 --- a/unofficial/c511000151.lua +++ b/unofficial/c511000151.lua @@ -27,4 +27,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511000152.lua b/unofficial/c511000152.lua index 10b2f4a621..89c09361f4 100644 --- a/unofficial/c511000152.lua +++ b/unofficial/c511000152.lua @@ -59,14 +59,14 @@ function s.filter(c,e,tp) return c:IsCode(16404809) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp,c) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000153.lua b/unofficial/c511000153.lua index 520578bf0c..675f616247 100644 --- a/unofficial/c511000153.lua +++ b/unofficial/c511000153.lua @@ -75,4 +75,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000154.lua b/unofficial/c511000154.lua index f65e3ee9ea..15da2cedd9 100644 --- a/unofficial/c511000154.lua +++ b/unofficial/c511000154.lua @@ -44,4 +44,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000155.lua b/unofficial/c511000155.lua index d458fb8ba6..35c0541468 100644 --- a/unofficial/c511000155.lua +++ b/unofficial/c511000155.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e2,tp) Duel.BreakEffect() Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD) -end +end \ No newline at end of file diff --git a/unofficial/c511000158.lua b/unofficial/c511000158.lua index 89afebe3bc..97512f8de5 100644 --- a/unofficial/c511000158.lua +++ b/unofficial/c511000158.lua @@ -44,4 +44,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000160.lua b/unofficial/c511000160.lua index 93d1449105..25e89e1b5e 100644 --- a/unofficial/c511000160.lua +++ b/unofficial/c511000160.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local atk=og:GetSum(Card.GetAttack) if Duel.GetLP(tp)>=atk or #cg>0 then return false end Duel.SetLP(tp,(Duel.GetLP(tp)*2),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000161.lua b/unofficial/c511000161.lua index 288e7f0035..7f12c5ce6e 100644 --- a/unofficial/c511000161.lua +++ b/unofficial/c511000161.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() e2:SetCode(EFFECT_AVOID_BATTLE_DAMAGE) d:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000162.lua b/unofficial/c511000162.lua index 2624d722a2..4ed69cf521 100644 --- a/unofficial/c511000162.lua +++ b/unofficial/c511000162.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000165.lua b/unofficial/c511000165.lua index 89f7da822b..327ea557cb 100644 --- a/unofficial/c511000165.lua +++ b/unofficial/c511000165.lua @@ -28,4 +28,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) Duel.SendtoHand(g,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000167.lua b/unofficial/c511000167.lua index 735e070547..1700bdd3db 100644 --- a/unofficial/c511000167.lua +++ b/unofficial/c511000167.lua @@ -19,4 +19,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetAttacker():IsControler(1-tp) and not Duel.GetAttackTarget() then Duel.ChangeBattleDamage(tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511000168.lua b/unofficial/c511000168.lua index 5fec25e177..75d5651e27 100644 --- a/unofficial/c511000168.lua +++ b/unofficial/c511000168.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,tp,REASON_EFFECT) Duel.ConfirmCards(tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000169.lua b/unofficial/c511000169.lua index d1ea08935b..57e131cbf9 100644 --- a/unofficial/c511000169.lua +++ b/unofficial/c511000169.lua @@ -29,7 +29,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() e2:SetCode(EFFECT_SET_PROC) Duel.RegisterEffect(e2,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end function s.rmfilter(c) return c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c) @@ -38,16 +38,16 @@ function s.otcon(e,c,minc) if c==nil then return true end local tp=c:GetControler() return minc<=2 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) - and Duel.IsExistingMatchingCard(s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil) + and Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) + and Duel.IsExistingMatchingCard(s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,nil) end function s.ottg(e,c) local mi=c:GetTributeRequirement() return mi>0 end function s.sumtg(e,tp,eg,ep,ev,re,r,rp,c) - local mg1=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) - local mg2=Duel.GetMatchingGroup(s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil) + local mg1=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) + local mg2=Duel.GetMatchingGroup(s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,nil) ::restart:: Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELF) local g1=mg1:Select(tp,1,1,true,nil) @@ -68,4 +68,4 @@ function s.otop(e,tp,eg,ep,ev,re,r,rp,c) Duel.Remove(sg,POS_FACEUP,REASON_COST) sg:DeleteGroup() Duel.ResetFlagEffect(tp,id) -end +end \ No newline at end of file diff --git a/unofficial/c511000170.lua b/unofficial/c511000170.lua index 9669db54d9..3975dc6b01 100644 --- a/unofficial/c511000170.lua +++ b/unofficial/c511000170.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,tp,REASON_EFFECT) Duel.Draw(1-tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000171.lua b/unofficial/c511000171.lua index 18230d15e6..98ee46aeb4 100644 --- a/unofficial/c511000171.lua +++ b/unofficial/c511000171.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c511000172.lua b/unofficial/c511000172.lua index 1ac7943f58..28def0d285 100644 --- a/unofficial/c511000172.lua +++ b/unofficial/c511000172.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,tp) - return c:IsControler(1-tp) and c:IsPreviousLocation(LOCATION_DECK+LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_REMOVED) + return c:IsControler(1-tp) and c:IsPreviousLocation(LOCATION_DECK|LOCATION_ONFIELD|LOCATION_GRAVE|LOCATION_REMOVED) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return (r&REASON_EFFECT)~=0 and eg:IsExists(s.cfilter,1,nil,tp) @@ -49,4 +49,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000173.lua b/unofficial/c511000173.lua index 3d67951a20..cf998f004e 100644 --- a/unofficial/c511000173.lua +++ b/unofficial/c511000173.lua @@ -78,4 +78,4 @@ function s.atkcon(e) end function s.atktg(e,c) return not c:IsHasEffect(id) -end +end \ No newline at end of file diff --git a/unofficial/c511000174.lua b/unofficial/c511000174.lua index 0342461ada..c0af104541 100644 --- a/unofficial/c511000174.lua +++ b/unofficial/c511000174.lua @@ -40,4 +40,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511000175.lua b/unofficial/c511000175.lua index 13bbb56093..31ae3b2373 100644 --- a/unofficial/c511000175.lua +++ b/unofficial/c511000175.lua @@ -43,4 +43,4 @@ end function s.dop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.DiscardDeck(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000176.lua b/unofficial/c511000176.lua index d85961f768..b7e673f323 100644 --- a/unofficial/c511000176.lua +++ b/unofficial/c511000176.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000177.lua b/unofficial/c511000177.lua index b4bb93d8f3..9215aa9332 100644 --- a/unofficial/c511000177.lua +++ b/unofficial/c511000177.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end s.spfilter=aux.FaceupFilter(Card.IsRace,RACE_ZOMBIE) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -43,4 +43,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) token:RegisterEffect(e1,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000179.lua b/unofficial/c511000179.lua index cd1dcc1acc..9e2c12fcd4 100644 --- a/unofficial/c511000179.lua +++ b/unofficial/c511000179.lua @@ -37,4 +37,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) local fid=eg:GetFirst():GetFieldID() e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetLabelObject():SetLabel(fid) -end +end \ No newline at end of file diff --git a/unofficial/c511000182.lua b/unofficial/c511000182.lua index d88ae25b7d..b69a30eb72 100644 --- a/unofficial/c511000182.lua +++ b/unofficial/c511000182.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000184.lua b/unofficial/c511000184.lua index e6d6d4681f..59c1dd6022 100644 --- a/unofficial/c511000184.lua +++ b/unofficial/c511000184.lua @@ -68,5 +68,5 @@ function s.dfilter(c,atk) return c:IsFaceup() and c:IsDestructable() and c:GetAttack()<=atk end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511000185.lua b/unofficial/c511000185.lua index 077514e882..15dd9e6603 100644 --- a/unofficial/c511000185.lua +++ b/unofficial/c511000185.lua @@ -44,4 +44,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,e:GetLabel(),REASON_EFFECT,true) Duel.Damage(1-tp,e:GetLabel(),REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000188.lua b/unofficial/c511000188.lua index e6b2ba991e..95e1f7a3fb 100644 --- a/unofficial/c511000188.lua +++ b/unofficial/c511000188.lua @@ -38,4 +38,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SSet(tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000189.lua b/unofficial/c511000189.lua index c55f45c6e7..5c4eefed92 100644 --- a/unofficial/c511000189.lua +++ b/unofficial/c511000189.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetValue(4) e2:SetRange(LOCATION_SZONE) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000190.lua b/unofficial/c511000190.lua index 8543ad715c..6a7c79713a 100644 --- a/unofficial/c511000190.lua +++ b/unofficial/c511000190.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tg:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000191.lua b/unofficial/c511000191.lua index d09d580c7c..2f91279366 100644 --- a/unofficial/c511000191.lua +++ b/unofficial/c511000191.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(1-tp,2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000197.lua b/unofficial/c511000197.lua index ae696f8028..dee78e8e1d 100644 --- a/unofficial/c511000197.lua +++ b/unofficial/c511000197.lua @@ -30,4 +30,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) if dam>0 then Duel.Recover(tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000198.lua b/unofficial/c511000198.lua index f9e9ec8fd3..82dc72d84e 100644 --- a/unofficial/c511000198.lua +++ b/unofficial/c511000198.lua @@ -87,4 +87,4 @@ function s.atkdn(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(-800) e:GetHandler():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000201.lua b/unofficial/c511000201.lua index 537ca1d77c..edb210e100 100644 --- a/unofficial/c511000201.lua +++ b/unofficial/c511000201.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RaiseEvent(tc,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000202.lua b/unofficial/c511000202.lua index 5d2480afee..2f5f38506c 100644 --- a/unofficial/c511000202.lua +++ b/unofficial/c511000202.lua @@ -33,4 +33,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() e:GetHandler():RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511000203.lua b/unofficial/c511000203.lua index d4c6c03424..e24a8fb0f9 100644 --- a/unofficial/c511000203.lua +++ b/unofficial/c511000203.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) a:RegisterEffect(e3) local e4=e3:Clone() d:RegisterEffect(e4) -end +end \ No newline at end of file diff --git a/unofficial/c511000204.lua b/unofficial/c511000204.lua index 56d9853dc2..3d61bc8d5a 100644 --- a/unofficial/c511000204.lua +++ b/unofficial/c511000204.lua @@ -40,25 +40,25 @@ function s.initial_effect(c) end function s.checkop1(e,tp,eg,ep,ev,re,r,rp) if re:IsActiveType(TYPE_SPELL) then - Duel.RegisterFlagEffect(rp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(rp,id,RESET_PHASE|PHASE_END,0,1) end end function s.checkop2(e,tp,eg,ep,ev,re,r,rp) for ec in aux.Next(eg) do - Duel.RegisterFlagEffect(ec:GetReasonPlayer(),id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ec:GetReasonPlayer(),id,RESET_PHASE|PHASE_END,0,1) end end function s.checkop3(e,tp,eg,ep,ev,re,r,rp) for ec in aux.Next(eg) do if ec:IsPreviousPosition(POS_FACEUP) and ec:IsFacedown() then - Duel.RegisterFlagEffect(ec:GetReasonPlayer(),id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ec:GetReasonPlayer(),id,RESET_PHASE|PHASE_END,0,1) end end end function s.checkop4(e,tp,eg,ep,ev,re,r,rp) for ec in aux.Next(eg) do if ec:IsFacedown() then - Duel.RegisterFlagEffect(ec:GetSummonPlayer(),id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ec:GetSummonPlayer(),id,RESET_PHASE|PHASE_END,0,1) end end end @@ -108,4 +108,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000205.lua b/unofficial/c511000205.lua index 1495ddd53f..845ea17193 100644 --- a/unofficial/c511000205.lua +++ b/unofficial/c511000205.lua @@ -26,4 +26,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000206.lua b/unofficial/c511000206.lua index ce96b7c58e..474f1040fc 100644 --- a/unofficial/c511000206.lua +++ b/unofficial/c511000206.lua @@ -20,4 +20,4 @@ function s.atcon(e) local g1=Duel.GetMatchingGroup(Card.IsFaceup,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil) local g2=Duel.GetMatchingGroup(Card.IsFaceup,e:GetHandlerPlayer(),0,LOCATION_MZONE,nil) return g1:GetSum(Card.GetLevel)>g2:GetSum(Card.GetLevel) -end +end \ No newline at end of file diff --git a/unofficial/c511000207.lua b/unofficial/c511000207.lua index f8c8c19210..4d3d49e973 100644 --- a/unofficial/c511000207.lua +++ b/unofficial/c511000207.lua @@ -30,4 +30,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000208.lua b/unofficial/c511000208.lua index 3323463064..ca24961c75 100644 --- a/unofficial/c511000208.lua +++ b/unofficial/c511000208.lua @@ -102,4 +102,4 @@ function s.negop2(e,tp,eg,ep,ev,re,r,rp,chk) local g=eg:Filter(s.filter,nil,e:GetLabel()) Duel.NegateSummon(g) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000209.lua b/unofficial/c511000209.lua index e86cb04670..314fdf3b13 100644 --- a/unofficial/c511000209.lua +++ b/unofficial/c511000209.lua @@ -14,12 +14,12 @@ end s.listed_series={0x7f,0x48} function s.filter1(c,e,tp) local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ) - return #pg<=1 and c:IsFaceup() and c:IsSetCard(0x7f) + return #pg<=1 and c:IsFaceup() and c:IsSetCard(SET_UTOPIC) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,pg) end function s.filter2(c,e,tp,mc,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end - return mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(10) and c:IsSetCard(0x48) and mc:IsCanBeXyzMaterial(c,tp) + return mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(10) and c:IsSetCard(SET_NUMBER) and mc:IsCanBeXyzMaterial(c,tp) and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 end @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(sc,c) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000210.lua b/unofficial/c511000210.lua index cfd36a79b9..abf2f2184a 100644 --- a/unofficial/c511000210.lua +++ b/unofficial/c511000210.lua @@ -58,4 +58,4 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp) end function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511000212.lua b/unofficial/c511000212.lua index f9a2ca0e6d..227256e701 100644 --- a/unofficial/c511000212.lua +++ b/unofficial/c511000212.lua @@ -62,4 +62,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE|PHASE_BATTLE) Duel.RegisterEffect(e1,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000215.lua b/unofficial/c511000215.lua index 16744dbe30..d723628149 100644 --- a/unofficial/c511000215.lua +++ b/unofficial/c511000215.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000217.lua b/unofficial/c511000217.lua index 1b5f2d068c..1d1db60bbc 100644 --- a/unofficial/c511000217.lua +++ b/unofficial/c511000217.lua @@ -52,4 +52,4 @@ function s.tohand(e,tp,eg,ep,ev,re,r,rp) end end else e:SetLabel(ct+1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000218.lua b/unofficial/c511000218.lua index d529e99f83..056f31bc2f 100644 --- a/unofficial/c511000218.lua +++ b/unofficial/c511000218.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,gc2,REASON_EFFECT) Duel.Draw(1-tp,gc1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000219.lua b/unofficial/c511000219.lua index 3ace4b31dc..fca9cb7d36 100644 --- a/unofficial/c511000219.lua +++ b/unofficial/c511000219.lua @@ -17,4 +17,4 @@ function s.condtion(e) end function s.atkval(e,c) return Duel.GetAttackTarget():GetDefense()+100 -end +end \ No newline at end of file diff --git a/unofficial/c511000220.lua b/unofficial/c511000220.lua index fe0a1c1475..04d7c4e48d 100644 --- a/unofficial/c511000220.lua +++ b/unofficial/c511000220.lua @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.CalculateDamage(ga:GetFirst(),gd:GetFirst()) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000223.lua b/unofficial/c511000223.lua index 65dd57f73e..66eca58e5b 100644 --- a/unofficial/c511000223.lua +++ b/unofficial/c511000223.lua @@ -58,4 +58,4 @@ end function s.ntcon(e,c) if c==nil then return true end return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000225.lua b/unofficial/c511000225.lua index 95e17511f5..d43d4fe8ac 100644 --- a/unofficial/c511000225.lua +++ b/unofficial/c511000225.lua @@ -16,7 +16,7 @@ s.listed_series={0x48} function s.filter(c,e,tp) local rk=c:GetRank() local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ) - return #pg<=1 and rk>0 and c:IsPreviousControler(tp) and c:IsSetCard(0x48) + return #pg<=1 and rk>0 and c:IsPreviousControler(tp) and c:IsSetCard(SET_NUMBER) and Duel.IsExistingMatchingCard(s.sfilter,tp,LOCATION_EXTRA,0,1,nil,rk,e,tp,c,pg) and c:IsCanBeEffectTarget(e) end @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:CompleteProcedure() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000226.lua b/unofficial/c511000226.lua index 8475f47508..d907296f05 100644 --- a/unofficial/c511000226.lua +++ b/unofficial/c511000226.lua @@ -54,4 +54,4 @@ function s.remop(e,tp,eg,ep,ev,re,r,rp) if c:IsFaceup() and c:IsRelateToEffect(e) then c:RemoveCounter(tp,0x1098,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000227.lua b/unofficial/c511000227.lua index 302efca19b..13c4f215f1 100644 --- a/unofficial/c511000227.lua +++ b/unofficial/c511000227.lua @@ -43,4 +43,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,e:GetLabel(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000230.lua b/unofficial/c511000230.lua index 3c6a62d4cf..d4e9f16ff1 100644 --- a/unofficial/c511000230.lua +++ b/unofficial/c511000230.lua @@ -18,16 +18,16 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e2) end s.listed_series={0x48,0x14b} s.xyz_number=1 function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x14b),tp,LOCATION_MZONE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_NUMERON),tp,LOCATION_MZONE,0,1,nil) end end function s.operation(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,0x14b),tp,LOCATION_MZONE,0,nil) + local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_NUMERON),tp,LOCATION_MZONE,0,nil) if g and #g>0 then for tc in aux.Next(g) do local e1=Effect.CreateEffect(e:GetHandler()) @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000231.lua b/unofficial/c511000231.lua index 3d29879079..1155847452 100644 --- a/unofficial/c511000231.lua +++ b/unofficial/c511000231.lua @@ -18,16 +18,16 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e2) end s.listed_series={0x48,0x14b} s.xyz_number=2 function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x14b),tp,LOCATION_MZONE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_NUMERON),tp,LOCATION_MZONE,0,1,nil) end end function s.operation(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,0x14b),tp,LOCATION_MZONE,0,nil) + local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_NUMERON),tp,LOCATION_MZONE,0,nil) if g and #g>0 then for tc in aux.Next(g) do local e1=Effect.CreateEffect(e:GetHandler()) @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000232.lua b/unofficial/c511000232.lua index 893946b8a1..cc9210266e 100644 --- a/unofficial/c511000232.lua +++ b/unofficial/c511000232.lua @@ -18,16 +18,16 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e2) end s.listed_series={0x48,0x14b} s.xyz_number=3 function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x14b),tp,LOCATION_MZONE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_NUMERON),tp,LOCATION_MZONE,0,1,nil) end end function s.operation(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,0x14b),tp,LOCATION_MZONE,0,nil) + local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_NUMERON),tp,LOCATION_MZONE,0,nil) if g and #g>0 then for tc in aux.Next(g) do local e1=Effect.CreateEffect(e:GetHandler()) @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000233.lua b/unofficial/c511000233.lua index e1d97e0249..3d44723202 100644 --- a/unofficial/c511000233.lua +++ b/unofficial/c511000233.lua @@ -18,16 +18,16 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e2) end s.listed_series={0x48,0x14b} s.xyz_number=4 function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x14b),tp,LOCATION_MZONE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_NUMERON),tp,LOCATION_MZONE,0,1,nil) end end function s.operation(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,0x14b),tp,LOCATION_MZONE,0,nil) + local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_NUMERON),tp,LOCATION_MZONE,0,nil) if g and #g>0 then for tc in aux.Next(g) do local e1=Effect.CreateEffect(e:GetHandler()) @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000234.lua b/unofficial/c511000234.lua index 17899c39fd..31b0e9c214 100644 --- a/unofficial/c511000234.lua +++ b/unofficial/c511000234.lua @@ -110,7 +110,7 @@ function s.spr(e,tp,eg,ep,ev,re,r,rp) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) - if Duel.GetTurnPlayer()==tp and ph==PHASE_MAIN1 then + if Duel.IsTurnPlayer(tp) and ph==PHASE_MAIN1 then e1:SetLabel(Duel.GetTurnCount()) e1:SetCondition(s.risecon2) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_MAIN1+RESET_SELF_TURN,2) @@ -163,4 +163,4 @@ function s.riseop(e,tp,eg,ep,ev,re,r,rp) e2:SetCondition(s.atcon) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000239.lua b/unofficial/c511000239.lua index 261d4ca6cd..1419c8ee70 100644 --- a/unofficial/c511000239.lua +++ b/unofficial/c511000239.lua @@ -93,4 +93,4 @@ function s.nofieldcon(e) end function s.nofieldop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000240.lua b/unofficial/c511000240.lua index 736d50151f..8e00d6f264 100644 --- a/unofficial/c511000240.lua +++ b/unofficial/c511000240.lua @@ -104,4 +104,4 @@ function s.resetatk(e,tp,eg,ep,ev,re,r,rp) if c:GetFlagEffect(id)>0 then c:ResetFlagEffect(id) end -end +end \ No newline at end of file diff --git a/unofficial/c511000241.lua b/unofficial/c511000241.lua index 7440e6abf2..e5a7f3a927 100644 --- a/unofficial/c511000241.lua +++ b/unofficial/c511000241.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000242.lua b/unofficial/c511000242.lua index baeae94675..e63eb916d5 100644 --- a/unofficial/c511000242.lua +++ b/unofficial/c511000242.lua @@ -101,4 +101,4 @@ function s.nofieldcon(e) end function s.nofieldop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000243.lua b/unofficial/c511000243.lua index 24d92d4e45..e239478dcb 100644 --- a/unofficial/c511000243.lua +++ b/unofficial/c511000243.lua @@ -87,4 +87,4 @@ function s.winop(e,tp,eg,ep,ev,re,r,rp) elseif wtp and wntp then Duel.Win(PLAYER_NONE,WIN_REASON_EXODIUS) end -end +end \ No newline at end of file diff --git a/unofficial/c511000244.lua b/unofficial/c511000244.lua index 4036f4400a..8ceae480b1 100644 --- a/unofficial/c511000244.lua +++ b/unofficial/c511000244.lua @@ -27,22 +27,22 @@ end s.listed_series={0x40} s.listed_names={13893596} function s.condition(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil,0x40) + local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_HAND|LOCATION_GRAVE,0,nil,SET_FORBIDDEN_ONE) return g:GetClassCount(Card.GetCode)>=5 end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_HAND,0,nil,0x40) + local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_HAND,0,nil,SET_FORBIDDEN_ONE) Duel.ConfirmCards(1-tp,g) end function s.filter(c,e,tp) return c:IsCode(13893596) and c:IsCanBeSpecialSummoned(e,0,tp,false,c:IsOriginalCode(511000243)) end function s.dfilter(c) - return c:IsSetCard(0x40) and c:IsAbleToGrave() + return c:IsSetCard(SET_FORBIDDEN_ONE) and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - local rg=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,0x40) + local rg=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,SET_FORBIDDEN_ONE) if chk==0 then local c=e:GetHandler() local eff={c:GetCardEffect(EFFECT_NECRO_VALLEY)} @@ -53,26 +53,26 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and #rg>0 and not rg:IsExists(aux.NOT(Card.IsAbleToDeck),1,nil) and Duel.IsExistingMatchingCard(s.dfilter,tp,LOCATION_HAND,0,2,nil) - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_TODECK,rg,#rg,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,2,tp,LOCATION_HAND) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local rg=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,0x40) + local rg=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,SET_FORBIDDEN_ONE) Duel.SendtoDeck(rg,nil,2,REASON_EFFECT) - if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) or not Duel.IsExistingMatchingCard(s.dfilter,tp,LOCATION_HAND,0,2,nil) then return end + if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) or not Duel.IsExistingMatchingCard(s.dfilter,tp,LOCATION_HAND,0,2,nil) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local tg=Duel.SelectMatchingCard(tp,s.dfilter,tp,LOCATION_HAND,0,2,2,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() Duel.SendtoGrave(tg,REASON_EFFECT) Duel.SpecialSummon(tc,0,tp,tp,false,tc:IsOriginalCode(511000243),POS_FACEUP) tc:CompleteProcedure() end function s.retfilter(c) - return c:IsSetCard(0x40) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_RETURN) and c:GetReasonEffect() + return c:IsSetCard(SET_FORBIDDEN_ONE) and c:IsReason(REASON_EFFECT) and not c:IsReason(REASON_RETURN) and c:GetReasonEffect() and not (c:GetReasonEffect():GetHandler():IsCode(13893596) or Duel.GetChainInfo(0,CHAININFO_TRIGGERING_CODE)==13893596) end function s.retcon(e,tp,eg,ep,ev,re,r,rp) @@ -82,4 +82,4 @@ end function s.retop(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(aux.NecroValleyFilter(s.retfilter),nil) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000246.lua b/unofficial/c511000246.lua index e6c9a52404..065d97c8f0 100644 --- a/unofficial/c511000246.lua +++ b/unofficial/c511000246.lua @@ -136,4 +136,4 @@ function s.nodmgop(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_PHASE|PHASE_END) e3:SetTargetRange(1,0) Duel.RegisterEffect(e3,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000247.lua b/unofficial/c511000247.lua index f3308cd71d..1fa3cbd6ee 100644 --- a/unofficial/c511000247.lua +++ b/unofficial/c511000247.lua @@ -109,4 +109,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000248.lua b/unofficial/c511000248.lua index 988495ae4d..efa822bd2d 100644 --- a/unofficial/c511000248.lua +++ b/unofficial/c511000248.lua @@ -44,4 +44,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000250.lua b/unofficial/c511000250.lua index bd23edfad9..d750b0d5d5 100644 --- a/unofficial/c511000250.lua +++ b/unofficial/c511000250.lua @@ -84,4 +84,4 @@ function s.nofieldcon(e) end function s.nofieldop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000251.lua b/unofficial/c511000251.lua index 1ea36c358f..2d23c96b34 100644 --- a/unofficial/c511000251.lua +++ b/unofficial/c511000251.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) token:RegisterEffect(e1,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000252.lua b/unofficial/c511000252.lua index 88aeadd2d2..e67899dda7 100644 --- a/unofficial/c511000252.lua +++ b/unofficial/c511000252.lua @@ -98,4 +98,4 @@ function s.nofieldcon(e) end function s.nofieldop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000253.lua b/unofficial/c511000253.lua index eb7d7eb948..9dc42053e1 100644 --- a/unofficial/c511000253.lua +++ b/unofficial/c511000253.lua @@ -102,4 +102,4 @@ function s.sscon(e,tp,eg,ep,ev,re,r,rp) end function s.ssop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():CompleteProcedure() -end +end \ No newline at end of file diff --git a/unofficial/c511000255.lua b/unofficial/c511000255.lua index 3fdc6e1f29..873762b4b5 100644 --- a/unofficial/c511000255.lua +++ b/unofficial/c511000255.lua @@ -88,4 +88,4 @@ function s.nofieldcon(e) end function s.nofieldop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000258.lua b/unofficial/c511000258.lua index 08787d3382..2440576af8 100644 --- a/unofficial/c511000258.lua +++ b/unofficial/c511000258.lua @@ -35,4 +35,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000260.lua b/unofficial/c511000260.lua index 71c7a17362..7306f029b0 100644 --- a/unofficial/c511000260.lua +++ b/unofficial/c511000260.lua @@ -108,4 +108,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000261.lua b/unofficial/c511000261.lua index ccca4465e2..6db69ec028 100644 --- a/unofficial/c511000261.lua +++ b/unofficial/c511000261.lua @@ -113,4 +113,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000262.lua b/unofficial/c511000262.lua index c074dc9d2d..3b5763283c 100644 --- a/unofficial/c511000262.lua +++ b/unofficial/c511000262.lua @@ -109,4 +109,4 @@ function s.nofieldcon(e) end function s.nofieldop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000263.lua b/unofficial/c511000263.lua index 4613b92cff..778e2a5b7d 100644 --- a/unofficial/c511000263.lua +++ b/unofficial/c511000263.lua @@ -84,4 +84,4 @@ function s.nofieldcon(e) end function s.nofieldop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000264.lua b/unofficial/c511000264.lua index 09fd4213cb..4f2eaeb237 100644 --- a/unofficial/c511000264.lua +++ b/unofficial/c511000264.lua @@ -210,4 +210,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp,c,og) end Duel.BreakEffect() return -end +end \ No newline at end of file diff --git a/unofficial/c511000265.lua b/unofficial/c511000265.lua index c91d8fe472..f566fc08b1 100644 --- a/unofficial/c511000265.lua +++ b/unofficial/c511000265.lua @@ -133,4 +133,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_MZONE,0,nil,e:GetHandler()) Duel.Destroy(dg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000266.lua b/unofficial/c511000266.lua index a481fc66ad..cd36ba6c8c 100644 --- a/unofficial/c511000266.lua +++ b/unofficial/c511000266.lua @@ -60,4 +60,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000267.lua b/unofficial/c511000267.lua index b9cbbe6412..6e31057f79 100644 --- a/unofficial/c511000267.lua +++ b/unofficial/c511000267.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000268.lua b/unofficial/c511000268.lua index cd1d65ee3c..c28df1579e 100644 --- a/unofficial/c511000268.lua +++ b/unofficial/c511000268.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000269.lua b/unofficial/c511000269.lua index 2307e9dd5d..65a2ba9378 100644 --- a/unofficial/c511000269.lua +++ b/unofficial/c511000269.lua @@ -17,10 +17,10 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local tid=Duel.GetTurnCount() if chkc then return s.filter(chkc,e,tp,tid) end - if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,nil,e,tp,tid) end - if Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp,tid) and Duel.IsExistingTarget(s.filter,tp,0,LOCATION_GRAVE+LOCATION_REMOVED,1,nil,e,tp,tid) then + if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,LOCATION_GRAVE|LOCATION_REMOVED,1,nil,e,tp,tid) end + if Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,1,nil,e,tp,tid) and Duel.IsExistingTarget(s.filter,tp,0,LOCATION_GRAVE|LOCATION_REMOVED,1,nil,e,tp,tid) then Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,1000) - elseif Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp,tid) then + elseif Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,1,nil,e,tp,tid) then Duel.SetTargetPlayer(tp) Duel.SetTargetParam(1000) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,1000) @@ -32,11 +32,11 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tid=Duel.GetTurnCount() - if Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp,tid) and Duel.IsExistingTarget(s.filter,tp,0,LOCATION_GRAVE+LOCATION_REMOVED,1,nil,e,tp,tid) then + if Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,1,nil,e,tp,tid) and Duel.IsExistingTarget(s.filter,tp,0,LOCATION_GRAVE|LOCATION_REMOVED,1,nil,e,tp,tid) then Duel.Damage(1-tp,1000,REASON_EFFECT) Duel.Damage(tp,1000,REASON_EFFECT) else local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000270.lua b/unofficial/c511000270.lua index c3986458ff..ec420c75f1 100644 --- a/unofficial/c511000270.lua +++ b/unofficial/c511000270.lua @@ -104,4 +104,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleDeck(tp) Duel.Draw(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000271.lua b/unofficial/c511000271.lua index 80c792b726..b0dc1215d4 100644 --- a/unofficial/c511000271.lua +++ b/unofficial/c511000271.lua @@ -76,4 +76,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(p) end -end +end \ No newline at end of file diff --git a/unofficial/c511000272.lua b/unofficial/c511000272.lua index f0f6ff5c0c..7d4e9de0d1 100644 --- a/unofficial/c511000272.lua +++ b/unofficial/c511000272.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000273.lua b/unofficial/c511000273.lua index a30e4a3c67..185e976c90 100644 --- a/unofficial/c511000273.lua +++ b/unofficial/c511000273.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000274.lua b/unofficial/c511000274.lua index 3c7c13e242..c5411dca16 100644 --- a/unofficial/c511000274.lua +++ b/unofficial/c511000274.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000275.lua b/unofficial/c511000275.lua index 481fae8cab..24949891ea 100644 --- a/unofficial/c511000275.lua +++ b/unofficial/c511000275.lua @@ -73,7 +73,7 @@ function s.numcon(e,tp,eg,ep,ev,re,r,rp) end function s.tgfilter(c,e,tp,eg,ep,ev,re,r,rp,chain,chk) local te=c:GetActivateEffect() - if not c:IsSetCard(0x14b) or not c:IsAbleToGrave() or not te then return end + if not c:IsSetCard(SET_NUMERON) or not c:IsAbleToGrave() or not te then return end local condition=te:GetCondition() local cost=te:GetCost() local target=te:GetTarget() @@ -126,4 +126,4 @@ function s.numop(e,tp,eg,ep,ev,re,r,rp) if op then op(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000276.lua b/unofficial/c511000276.lua index 1dd1aea27e..198b3de154 100644 --- a/unofficial/c511000276.lua +++ b/unofficial/c511000276.lua @@ -18,7 +18,7 @@ function s.con(e,tp,eg,ep,ev,re,r,rp) return Duel.IsEnvironment(CARD_NUMERON_NETWORK) end function s.filter(c,e,tp) - return c:IsAttackBelow(1000) and c:IsSetCard(0x14b) and c:IsType(TYPE_XYZ) + return c:IsAttackBelow(1000) and c:IsSetCard(SET_NUMERON) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>3 end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -70,4 +70,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.rmfilter,nil,e:GetLabel()) g:DeleteGroup() Duel.Remove(tg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000277.lua b/unofficial/c511000277.lua index 393bba3d5e..c2ca4b57d2 100644 --- a/unofficial/c511000277.lua +++ b/unofficial/c511000277.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e3) end s.listed_series={0x48} @@ -40,7 +40,7 @@ function s.descon(e) return not Duel.IsEnvironment(CARD_NUMERON_NETWORK) end function s.bancon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) + return e:GetHandler():IsXyzSummoned() end function s.bantg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -114,4 +114,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000278.lua b/unofficial/c511000278.lua index 66112194f1..58894cd279 100644 --- a/unofficial/c511000278.lua +++ b/unofficial/c511000278.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp,PHASE_END,2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000279.lua b/unofficial/c511000279.lua index 120367d9fc..c71f79160e 100644 --- a/unofficial/c511000279.lua +++ b/unofficial/c511000279.lua @@ -94,4 +94,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000280.lua b/unofficial/c511000280.lua index 4f45784f84..91afa91fa0 100644 --- a/unofficial/c511000280.lua +++ b/unofficial/c511000280.lua @@ -33,4 +33,4 @@ function s.dammul(e,re,val,r,rp,rc) local cc=Duel.GetCurrentChain() if cc==0 or (r&REASON_EFFECT)==0 then return end return val*2 -end +end \ No newline at end of file diff --git a/unofficial/c511000281.lua b/unofficial/c511000281.lua index 0a8d6dae76..e84e6a37df 100644 --- a/unofficial/c511000281.lua +++ b/unofficial/c511000281.lua @@ -60,4 +60,4 @@ function s.rescon(e) end function s.resop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():SetLabel(0) -end +end \ No newline at end of file diff --git a/unofficial/c511000284.lua b/unofficial/c511000284.lua index b1dc99942e..5edfcc5c70 100644 --- a/unofficial/c511000284.lua +++ b/unofficial/c511000284.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_series={0x52} function s.filter(c) - return c:IsSetCard(0x52) and c:IsMonster() + return c:IsSetCard(SET_GUARDIAN) and c:IsMonster() end function s.condition(e,tp,eg,ep,ev,re,r,rp) return not Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil) @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000285.lua b/unofficial/c511000285.lua index 1c09d04d7c..01238a74d9 100644 --- a/unofficial/c511000285.lua +++ b/unofficial/c511000285.lua @@ -79,4 +79,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511000288.lua b/unofficial/c511000288.lua index f052d9864c..d439233fd5 100644 --- a/unofficial/c511000288.lua +++ b/unofficial/c511000288.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x1034} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1034) + return c:IsFaceup() and c:IsSetCard(SET_CRYSTAL_BEAST) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTarget(aux.TargetBoolFunction(Card.IsAttackBelow,atk)) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000289.lua b/unofficial/c511000289.lua index 41bbd79ec1..f11ef8b11f 100644 --- a/unofficial/c511000289.lua +++ b/unofficial/c511000289.lua @@ -41,4 +41,4 @@ end Duel.SpecialSummonStep(g2:GetFirst(),0,1-tp,1-tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000290.lua b/unofficial/c511000290.lua index 5045e0166b..bb562f310f 100644 --- a/unofficial/c511000290.lua +++ b/unofficial/c511000290.lua @@ -54,7 +54,7 @@ function s.addcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(e:GetHandler(),REASON_COST) end function s.filter(c) - return c:IsSetCard(0x6) and c:IsAbleToHand() + return c:IsSetCard(SET_DARK_WORLD) and c:IsAbleToHand() end function s.addtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:GetLocation()==LOCATION_GRAVE and chkc:GetControler()==tp and c98494543.filter(chkc) end @@ -69,4 +69,4 @@ function s.addop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000291.lua b/unofficial/c511000291.lua index 79bd3d60bd..e1d6c2ee35 100644 --- a/unofficial/c511000291.lua +++ b/unofficial/c511000291.lua @@ -18,4 +18,4 @@ function s.initial_effect(c) end function s.con(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_HAND,0)==0 -end +end \ No newline at end of file diff --git a/unofficial/c511000293.lua b/unofficial/c511000293.lua index d7fe4cf6e4..408404a783 100644 --- a/unofficial/c511000293.lua +++ b/unofficial/c511000293.lua @@ -88,8 +88,8 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if not Duel.NegateAttack() then return end - Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_END,1,1) - Duel.SkipPhase(1-tp,PHASE_MAIN2,RESET_PHASE+PHASE_END,1) + Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE|PHASE_END,1,1) + Duel.SkipPhase(1-tp,PHASE_MAIN2,RESET_PHASE|PHASE_END,1) local tc=Duel.GetAttackTarget() if not tc or tc:IsFacedown() or not tc:IsRelateToBattle() or tc:IsControler(1-tp) or tc:IsImmuneToEffect(e) then return end local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(tc),tp,nil,nil,REASON_XYZ) @@ -102,4 +102,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000294.lua b/unofficial/c511000294.lua index 7c661f15c5..3d3a0a8fba 100644 --- a/unofficial/c511000294.lua +++ b/unofficial/c511000294.lua @@ -57,7 +57,7 @@ function s.initial_effect(c) local e6=Effect.CreateEffect(c) e6:SetType(EFFECT_TYPE_SINGLE) e6:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e6:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e6:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e6) end s.listed_series={0x48} @@ -143,4 +143,4 @@ function s.bpop(e,tp,eg,ep,ev,re,r,rp) g=g:Select(tp,ft,ft,nil) end Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) -end +end \ No newline at end of file diff --git a/unofficial/c511000295.lua b/unofficial/c511000295.lua index 160f23ffb1..06308ab13b 100644 --- a/unofficial/c511000295.lua +++ b/unofficial/c511000295.lua @@ -27,7 +27,7 @@ end function s.checkop(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.cfilter,nil) for tc in aux.Next(g) do - Duel.RegisterFlagEffect(tc:GetPreviousControler(),id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tc:GetPreviousControler(),id,RESET_PHASE|PHASE_END,0,1) end end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -83,11 +83,11 @@ function s.xyzfilter(c,mg,tp) return c:IsXyzSummonable(nil,mg,5,5) and Duel.GetLocationCountFromEx(tp,tp,mg,c)>0 end function s.matfilter(c) - return c:IsSetCard(0x48) and c:IsMonster() + return c:IsSetCard(SET_NUMBER) and c:IsMonster() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - local mg1=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil,CARD_NUMERON_NETWORK) - local mg2=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil) + local mg1=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,nil,CARD_NUMERON_NETWORK) + local mg2=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,nil) if chk==0 then return mg1:IsExists(s.filterchk1,1,nil,mg2,Group.CreateGroup(),tp) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) end @@ -95,8 +95,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end local c=e:GetHandler() local matg=Group.CreateGroup() - local mg1=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil,CARD_NUMERON_NETWORK) - local mg2=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,nil) + local mg1=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,nil,CARD_NUMERON_NETWORK) + local mg2=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) local sg1=mg1:FilterSelect(tp,s.filterchk1,1,1,nil,mg2,matg,tp) local tc1=sg1:GetFirst() @@ -143,4 +143,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) eff:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000296.lua b/unofficial/c511000296.lua index 0939c20c28..93751aa74a 100644 --- a/unofficial/c511000296.lua +++ b/unofficial/c511000296.lua @@ -66,7 +66,7 @@ function s.initial_effect(c) local e8=Effect.CreateEffect(c) e8:SetType(EFFECT_TYPE_SINGLE) e8:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e8:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e8:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e8) aux.GlobalCheck(s,function() local ge1=Effect.CreateEffect(c) @@ -82,8 +82,8 @@ s.listed_series={0x48} s.listed_names={89477759} s.xyz_number=1000 function s.check(e,tp,eg,ep,ev,re,r,rp) - if Duel.GetTurnPlayer()==tp or Duel.GetFlagEffect(tp,id)~=0 then return end - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + if Duel.IsTurnPlayer(tp) or Duel.GetFlagEffect(tp,id)~=0 then return end + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end function s.cfilter(c,e,tp,xyz) return c:IsCode(89477759) and c:IsPreviousControler(tp) and c:IsReason(REASON_DESTROY) @@ -115,7 +115,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.wincon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp and Duel.GetFlagEffect(tp,id)==0 + return Duel.IsTurnPlayer(1-tp) and Duel.GetFlagEffect(tp,id)==0 end function s.winop(e,tp,eg,ep,ev,re,r,rp) Duel.Win(tp,WIN_REASON_NUMBER_iC1000) @@ -136,4 +136,4 @@ function s.naop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.Recover(tp,Duel.GetAttacker():GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000297.lua b/unofficial/c511000297.lua index f0e0e3057c..11df611061 100644 --- a/unofficial/c511000297.lua +++ b/unofficial/c511000297.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511000298.lua b/unofficial/c511000298.lua index 120c17bcf7..9e32f4e77c 100644 --- a/unofficial/c511000298.lua +++ b/unofficial/c511000298.lua @@ -28,4 +28,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000299.lua b/unofficial/c511000299.lua index da165e26e1..f2ab7fdb16 100644 --- a/unofficial/c511000299.lua +++ b/unofficial/c511000299.lua @@ -34,5 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end tc:RegisterEffect(e1) end -end - +end \ No newline at end of file diff --git a/unofficial/c511000300.lua b/unofficial/c511000300.lua index d4f4a7f2da..29817f14ae 100644 --- a/unofficial/c511000300.lua +++ b/unofficial/c511000300.lua @@ -90,4 +90,4 @@ function s.dfilter(c) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsStatus(STATUS_ACTIVATED) -end +end \ No newline at end of file diff --git a/unofficial/c511000301.lua b/unofficial/c511000301.lua index 38d1bba46a..ff16d03a5a 100644 --- a/unofficial/c511000301.lua +++ b/unofficial/c511000301.lua @@ -54,4 +54,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000302.lua b/unofficial/c511000302.lua index f0300d760b..a6f0837ef2 100644 --- a/unofficial/c511000302.lua +++ b/unofficial/c511000302.lua @@ -71,4 +71,4 @@ function s.redirectOp(e,tp,eg,ep,ev,re,r,rp) local tg=Duel.GetTargetCards(e) local g=e:GetLabelObject():Filter(Card.IsRelateToEffect,nil,e) Duel.ChangeTargetCard(ev+(e:IsHasType(EFFECT_TYPE_ACTIVATE) and 1 or 0),tg+g) -end +end \ No newline at end of file diff --git a/unofficial/c511000303.lua b/unofficial/c511000303.lua index 7217113e62..f65a963bc3 100644 --- a/unofficial/c511000303.lua +++ b/unofficial/c511000303.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x55) + return c:IsFaceup() and c:IsSetCard(SET_PHOTON) end function s.con(e,tp,eg,ep,ev,re,r,rp) if rp==tp or not Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) then return false end @@ -37,4 +37,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511000304.lua b/unofficial/c511000304.lua index a2e752b4f9..889c454cd9 100644 --- a/unofficial/c511000304.lua +++ b/unofficial/c511000304.lua @@ -1,7 +1,7 @@ --Photon Wing local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x55)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_PHOTON)) --gain and direct local e3=Effect.CreateEffect(c) e3:SetDescription(aux.Stringid(id,0)) @@ -52,4 +52,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) eq:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000305.lua b/unofficial/c511000305.lua index 067296bf45..800398de80 100644 --- a/unofficial/c511000305.lua +++ b/unofficial/c511000305.lua @@ -31,4 +31,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000306.lua b/unofficial/c511000306.lua index fe1b2e1964..a7653dbd0a 100644 --- a/unofficial/c511000306.lua +++ b/unofficial/c511000306.lua @@ -128,5 +128,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) if not s.PlayerIsAffectedByClearWorld(tp,ATTRIBUTE_FIRE) then return end Duel.Damage(tp,1000,REASON_EFFECT) -end - +end \ No newline at end of file diff --git a/unofficial/c511000307.lua b/unofficial/c511000307.lua index 7d239a458d..a55ecf37e9 100644 --- a/unofficial/c511000307.lua +++ b/unofficial/c511000307.lua @@ -63,4 +63,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511000308.lua b/unofficial/c511000308.lua index 10b9aa3af9..ee1d00b2a3 100644 --- a/unofficial/c511000308.lua +++ b/unofficial/c511000308.lua @@ -55,14 +55,14 @@ end function s.dogmacon(e,c) if c==nil then return true end local g=Duel.GetReleaseGroup(c:GetControler()) - local d=g:FilterCount(Card.IsSetCard,nil,0xc008) + local d=g:FilterCount(Card.IsSetCard,nil,SET_DESTINY_HERO) local d3=g:FilterCount(Card.IsHasEffect,nil,id) return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-2 and d>0 and #g>1 and d3>0 end function s.dogmaop(e,tp,eg,ep,ev,re,r,rp,c) local g=Duel.GetReleaseGroup(tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) - local sg1=g:FilterSelect(tp,Card.IsSetCard,1,1,nil,0xc008) + local sg1=g:FilterSelect(tp,Card.IsSetCard,1,1,nil,SET_DESTINY_HERO) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) local sg2=g:FilterSelect(tp,Card.IsHasEffect,1,1,sg1:GetFirst(),id) sg1:Merge(sg2) @@ -133,5 +133,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.condition(e,c) - return c:IsSetCard(0xc008) -end + return c:IsSetCard(SET_DESTINY_HERO) +end \ No newline at end of file diff --git a/unofficial/c511000309.lua b/unofficial/c511000309.lua index 45e996ebe3..c6db6f224a 100644 --- a/unofficial/c511000309.lua +++ b/unofficial/c511000309.lua @@ -25,4 +25,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler(),TYPE_SPELL+TYPE_TRAP) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000310.lua b/unofficial/c511000310.lua index fcc2acc345..33b41417d2 100644 --- a/unofficial/c511000310.lua +++ b/unofficial/c511000310.lua @@ -31,14 +31,14 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then if chkcost then e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,e,tp) else return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end end if chkcost then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,e,tp) Duel.Remove(g,POS_FACEUP,REASON_COST) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) diff --git a/unofficial/c511000311.lua b/unofficial/c511000311.lua index 93b46c1629..65e5d17b0e 100644 --- a/unofficial/c511000311.lua +++ b/unofficial/c511000311.lua @@ -45,7 +45,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.dacon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE end function s.emfilter(c) return c:GetEquipCount()>0 @@ -76,4 +76,4 @@ function s.daop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000312.lua b/unofficial/c511000312.lua index 0a5c880c30..f7ba0910cd 100644 --- a/unofficial/c511000312.lua +++ b/unofficial/c511000312.lua @@ -17,4 +17,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(1-tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000314.lua b/unofficial/c511000314.lua index b766826529..692bd926e3 100644 --- a/unofficial/c511000314.lua +++ b/unofficial/c511000314.lua @@ -34,5 +34,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) -end + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) +end \ No newline at end of file diff --git a/unofficial/c511000316.lua b/unofficial/c511000316.lua index 5edc984d72..dfb889a68a 100644 --- a/unofficial/c511000316.lua +++ b/unofficial/c511000316.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #eg>0 then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000317.lua b/unofficial/c511000317.lua index c75a0d2551..bc8cb8a0db 100644 --- a/unofficial/c511000317.lua +++ b/unofficial/c511000317.lua @@ -13,7 +13,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) local p=e:GetHandler():GetControler() local at=Duel.GetAttackTarget() local a=Duel.GetAttacker() - return Duel.GetBattleDamage(p)>=Duel.GetLP(p) and ((at and at:IsSetCard(0x8) and at:IsControler(p)) or (a and a:IsSetCard(0x8) and a:IsControler(p))) + return Duel.GetBattleDamage(p)>=Duel.GetLP(p) and ((at and at:IsSetCard(SET_HERO) and at:IsControler(p)) or (a and a:IsSetCard(SET_HERO) and a:IsControler(p))) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=e:GetHandler():GetControler() @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511000318.lua b/unofficial/c511000318.lua index 45a98e26f6..3f06bf2394 100644 --- a/unofficial/c511000318.lua +++ b/unofficial/c511000318.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg:GetFirst(),tp,REASON_EFFECT) Duel.ShuffleHand(1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000319.lua b/unofficial/c511000319.lua index 47326e51bd..c878df1b25 100644 --- a/unofficial/c511000319.lua +++ b/unofficial/c511000319.lua @@ -61,4 +61,4 @@ function s.atktg(e,c) end function s.atkval(e,c) return c==e:GetHandler():GetEquipTarget() -end +end \ No newline at end of file diff --git a/unofficial/c511000320.lua b/unofficial/c511000320.lua index 5094a8d171..9e3befa459 100644 --- a/unofficial/c511000320.lua +++ b/unofficial/c511000320.lua @@ -24,4 +24,4 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,1000,REASON_EFFECT) Duel.Recover(tp,1000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000321.lua b/unofficial/c511000321.lua index b29c2e79bc..9919a69485 100644 --- a/unofficial/c511000321.lua +++ b/unofficial/c511000321.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.MoveToField(g:GetFirst(),tp,1-tp,loc,POS_FACEDOWN,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511000322.lua b/unofficial/c511000322.lua index 9313ab0042..8c590e3f96 100644 --- a/unofficial/c511000322.lua +++ b/unofficial/c511000322.lua @@ -29,4 +29,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000323.lua b/unofficial/c511000323.lua index 2450cec613..48df3472f1 100644 --- a/unofficial/c511000323.lua +++ b/unofficial/c511000323.lua @@ -39,4 +39,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000326.lua b/unofficial/c511000326.lua index 4e713d827a..5d536c13bc 100644 --- a/unofficial/c511000326.lua +++ b/unofficial/c511000326.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_EQUIP) e1:SetCode(EFFECT_SWAP_AD) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000328.lua b/unofficial/c511000328.lua index 88f17f776a..25951d7e71 100644 --- a/unofficial/c511000328.lua +++ b/unofficial/c511000328.lua @@ -59,4 +59,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RegisterEffect(e2,tp) Duel.Draw(1-tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000330.lua b/unofficial/c511000330.lua index a1a8d1cb58..894b01dfb7 100644 --- a/unofficial/c511000330.lua +++ b/unofficial/c511000330.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,g) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000331.lua b/unofficial/c511000331.lua index 7a3483d92a..ff9ea7b0db 100644 --- a/unofficial/c511000331.lua +++ b/unofficial/c511000331.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(sg,nil,0,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000332.lua b/unofficial/c511000332.lua index b1d87caa0b..5d19970ac2 100644 --- a/unofficial/c511000332.lua +++ b/unofficial/c511000332.lua @@ -82,4 +82,4 @@ function s.polyop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000333.lua b/unofficial/c511000333.lua index 9528ac2060..1f61c88c47 100644 --- a/unofficial/c511000333.lua +++ b/unofficial/c511000333.lua @@ -59,4 +59,4 @@ function s.atkcon(e) end function s.atktg(e,c) return not c:IsLevelBelow(4) -end +end \ No newline at end of file diff --git a/unofficial/c511000334.lua b/unofficial/c511000334.lua index 0313ca8389..1fc540da42 100644 --- a/unofficial/c511000334.lua +++ b/unofficial/c511000334.lua @@ -59,4 +59,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000335.lua b/unofficial/c511000335.lua index 3930bbd747..4a22ef45e3 100644 --- a/unofficial/c511000335.lua +++ b/unofficial/c511000335.lua @@ -14,7 +14,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tc=eg:GetFirst() if chk==0 then return tc:IsPreviousPosition(POS_FACEUP) and #eg==1 and tc:IsControler(tp) - and tc:IsLocation(LOCATION_GRAVE) and tc:IsSetCard(0xf) and tc:IsAbleToDeck() and Duel.IsPlayerCanDraw(tp,2) end + and tc:IsLocation(LOCATION_GRAVE) and tc:IsSetCard(SET_OJAMA) and tc:IsAbleToDeck() and Duel.IsPlayerCanDraw(tp,2) end tc:CreateEffectRelation(e) end function s.activate(e,tp,eg,ep,ev,re,r,rp) @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,2,REASON_EFFECT) Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD) end -end +end \ No newline at end of file diff --git a/unofficial/c511000336.lua b/unofficial/c511000336.lua index 673d9a9e85..5fe591825a 100644 --- a/unofficial/c511000336.lua +++ b/unofficial/c511000336.lua @@ -33,7 +33,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.spfilter(c,e,tp) - return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0xf) + return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(SET_OJAMA) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -50,4 +50,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.rmcon(e) return e:GetHandler():IsFacedown() and e:GetHandler():IsLocation(LOCATION_ONFIELD) -end +end \ No newline at end of file diff --git a/unofficial/c511000337.lua b/unofficial/c511000337.lua index 0aadf2bd59..19cb949728 100644 --- a/unofficial/c511000337.lua +++ b/unofficial/c511000337.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000338.lua b/unofficial/c511000338.lua index 2bf73b406f..5a65d2dcda 100644 --- a/unofficial/c511000338.lua +++ b/unofficial/c511000338.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000339.lua b/unofficial/c511000339.lua index b3af5c00f0..2b512f5bda 100644 --- a/unofficial/c511000339.lua +++ b/unofficial/c511000339.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000340.lua b/unofficial/c511000340.lua index 854a26332c..61cbba9318 100644 --- a/unofficial/c511000340.lua +++ b/unofficial/c511000340.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000341.lua b/unofficial/c511000341.lua index 89a337165f..04767e50c1 100644 --- a/unofficial/c511000341.lua +++ b/unofficial/c511000341.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000342.lua b/unofficial/c511000342.lua index 68dfa507d7..c493c952bc 100644 --- a/unofficial/c511000342.lua +++ b/unofficial/c511000342.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000343.lua b/unofficial/c511000343.lua index b9c12d31e7..8811ed1c73 100644 --- a/unofficial/c511000343.lua +++ b/unofficial/c511000343.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000344.lua b/unofficial/c511000344.lua index 90d23dbcf7..511c964e23 100644 --- a/unofficial/c511000344.lua +++ b/unofficial/c511000344.lua @@ -16,7 +16,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_GRAVE,0)>0 and Duel.IsPlayerCanDraw(tp,2) end - local g=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_GRAVE,0) + local g=Duel.GetFieldGroup(tp,LOCATION_HAND|LOCATION_GRAVE,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,#g,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000345.lua b/unofficial/c511000345.lua index 150d96e23f..f1295bd30e 100644 --- a/unofficial/c511000345.lua +++ b/unofficial/c511000345.lua @@ -17,9 +17,9 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc,e,tp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end + and Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,1,nil,e,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp) + local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,1,1,nil,e,tp) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000346.lua b/unofficial/c511000346.lua index 09bbdd2306..4991dcb8d9 100644 --- a/unofficial/c511000346.lua +++ b/unofficial/c511000346.lua @@ -34,4 +34,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local sg=g:Filter(Card.IsRelateToEffect,nil,e) local ct=Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511000347.lua b/unofficial/c511000347.lua index 0e4a99a8c6..9867e415b2 100644 --- a/unofficial/c511000347.lua +++ b/unofficial/c511000347.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000348.lua b/unofficial/c511000348.lua index 19d4dfbbee..5d3dab4c6f 100644 --- a/unofficial/c511000348.lua +++ b/unofficial/c511000348.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(eqg,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000349.lua b/unofficial/c511000349.lua index 653e82c2dc..6c78a2538f 100644 --- a/unofficial/c511000349.lua +++ b/unofficial/c511000349.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000350.lua b/unofficial/c511000350.lua index d0c90f2658..c2b3eea2dc 100644 --- a/unofficial/c511000350.lua +++ b/unofficial/c511000350.lua @@ -55,4 +55,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000351.lua b/unofficial/c511000351.lua index 57c1814b16..77e5441654 100644 --- a/unofficial/c511000351.lua +++ b/unofficial/c511000351.lua @@ -17,4 +17,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_DRAGON)) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000352.lua b/unofficial/c511000352.lua index 8d6ff95101..e733678c7e 100644 --- a/unofficial/c511000352.lua +++ b/unofficial/c511000352.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000353.lua b/unofficial/c511000353.lua index 6c3d89e6b5..408293bed7 100644 --- a/unofficial/c511000353.lua +++ b/unofficial/c511000353.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(dg) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000355.lua b/unofficial/c511000355.lua index 8d14196df8..be88e10c0f 100644 --- a/unofficial/c511000355.lua +++ b/unofficial/c511000355.lua @@ -19,4 +19,4 @@ function s.filter(c) end function s.value(e,c) return Duel.GetMatchingGroupCount(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil)*400 -end +end \ No newline at end of file diff --git a/unofficial/c511000356.lua b/unofficial/c511000356.lua index 6d6ade0417..ffa6249ad6 100644 --- a/unofficial/c511000356.lua +++ b/unofficial/c511000356.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000357.lua b/unofficial/c511000357.lua index 8f9acaaeb5..5a632f7cbb 100644 --- a/unofficial/c511000357.lua +++ b/unofficial/c511000357.lua @@ -18,9 +18,9 @@ function s.costfilter(c) return c:IsCode(47297616) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.spfilter(c,e,tp) @@ -43,4 +43,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000359.lua b/unofficial/c511000359.lua index 89cdd266e7..989ade9b83 100644 --- a/unofficial/c511000359.lua +++ b/unofficial/c511000359.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sp,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000360.lua b/unofficial/c511000360.lua index 0f66fd5117..7e1aa2e924 100644 --- a/unofficial/c511000360.lua +++ b/unofficial/c511000360.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000361.lua b/unofficial/c511000361.lua index a9b065951e..1c2e38e8fc 100644 --- a/unofficial/c511000361.lua +++ b/unofficial/c511000361.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000362.lua b/unofficial/c511000362.lua index 7189905763..36c437eb98 100644 --- a/unofficial/c511000362.lua +++ b/unofficial/c511000362.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000363.lua b/unofficial/c511000363.lua index 0801957c01..abd52d86a8 100644 --- a/unofficial/c511000363.lua +++ b/unofficial/c511000363.lua @@ -27,4 +27,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-300) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000364.lua b/unofficial/c511000364.lua index e5901fb043..c6764513f6 100644 --- a/unofficial/c511000364.lua +++ b/unofficial/c511000364.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e4:SetCode(EFFECT_UPDATE_DEFENSE) tc:RegisterEffect(e4) end -end +end \ No newline at end of file diff --git a/unofficial/c511000365.lua b/unofficial/c511000365.lua index 8d963d56d0..2232433d21 100644 --- a/unofficial/c511000365.lua +++ b/unofficial/c511000365.lua @@ -21,4 +21,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000367.lua b/unofficial/c511000367.lua index 1e62641628..1e2ac9ab73 100644 --- a/unofficial/c511000367.lua +++ b/unofficial/c511000367.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000369.lua b/unofficial/c511000369.lua index 9c0e875a7f..3014f7b419 100644 --- a/unofficial/c511000369.lua +++ b/unofficial/c511000369.lua @@ -66,7 +66,7 @@ s.listed_series={0x48} s.xyz_number=100 function s.spcon(e,tp,eg,ep,ev,re,r,rp) local at=Duel.GetAttacker() - return at:GetControler()==1-tp and at:IsType(TYPE_XYZ) and Duel.GetAttackTarget()==nil and Duel.GetFieldGroupCount(tp,LOCATION_HAND+LOCATION_ONFIELD,0)==0 + return at:GetControler()==1-tp and at:IsType(TYPE_XYZ) and Duel.GetAttackTarget()==nil and Duel.GetFieldGroupCount(tp,LOCATION_HAND|LOCATION_ONFIELD,0)==0 end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -169,7 +169,7 @@ function s.atkupop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end function s.stcheck(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(Card.IsType,nil,TYPE_SPELL+TYPE_TRAP) @@ -180,8 +180,8 @@ function s.stcheck(e,tp,eg,ep,ev,re,r,rp) if tc:IsPreviousLocation(LOCATION_PZONE) then pzone=1 end - tc:RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,1,tc:GetPreviousPosition()+(tc:GetPreviousSequence()<<4)+(tc:GetPreviousControler()<<8)+(pzone<<16)) + tc:RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,1,tc:GetPreviousPosition()+(tc:GetPreviousSequence()<<4)+(tc:GetPreviousControler()<<8)+(pzone<<16)) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000370.lua b/unofficial/c511000370.lua index 343cd1a2d6..36f6525fb8 100644 --- a/unofficial/c511000370.lua +++ b/unofficial/c511000370.lua @@ -71,4 +71,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000373.lua b/unofficial/c511000373.lua index 47d899b516..e4f4f3234a 100644 --- a/unofficial/c511000373.lua +++ b/unofficial/c511000373.lua @@ -13,9 +13,9 @@ function s.initial_effect(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,5) - and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND+LOCATION_MZONE,0,1,e:GetHandler()) end + and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND|LOCATION_MZONE,0,1,e:GetHandler()) end Duel.SetTargetPlayer(tp) - Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND+LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND|LOCATION_MZONE) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,5) end function s.filter(c,p) @@ -23,11 +23,11 @@ function s.filter(c,p) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) - local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND+LOCATION_MZONE,0,nil) + local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_HAND|LOCATION_MZONE,0,nil) if #g==0 or Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)==0 then return end local og=Duel.GetOperatedGroup() - if not og:IsExists(Card.IsLocation,1,nil,LOCATION_DECK+LOCATION_EXTRA) then return end + if not og:IsExists(Card.IsLocation,1,nil,LOCATION_DECK|LOCATION_EXTRA) then return end if og:IsExists(s.filter,1,nil,p) then Duel.ShuffleDeck(p) end Duel.BreakEffect() Duel.Draw(p,5,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000374.lua b/unofficial/c511000374.lua index 107630643d..0aedfb4511 100644 --- a/unofficial/c511000374.lua +++ b/unofficial/c511000374.lua @@ -23,12 +23,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT) - e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) + e1:SetTargetRange(LOCATION_HAND|LOCATION_MZONE,0) e1:SetTarget(aux.TargetBoolFunction(s.sumfilter)) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end function s.sumfilter(c) return c:GetLevel()<=3 -end +end \ No newline at end of file diff --git a/unofficial/c511000375.lua b/unofficial/c511000375.lua index b40cddb9ae..5ce5558bc1 100644 --- a/unofficial/c511000375.lua +++ b/unofficial/c511000375.lua @@ -1,11 +1,11 @@ --Penguin Sword local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x5a)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_PENGUIN)) --Atk up local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_EQUIP) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetValue(800) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000377.lua b/unofficial/c511000377.lua index ff5b0caffd..d8f24c603b 100644 --- a/unofficial/c511000377.lua +++ b/unofficial/c511000377.lua @@ -81,4 +81,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(atk) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000378.lua b/unofficial/c511000378.lua index 6b165838b0..790e267b1d 100644 --- a/unofficial/c511000378.lua +++ b/unofficial/c511000378.lua @@ -41,4 +41,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-500) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000379.lua b/unofficial/c511000379.lua index ffcda2d369..a1267caba2 100644 --- a/unofficial/c511000379.lua +++ b/unofficial/c511000379.lua @@ -29,4 +29,4 @@ function s.srop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000380.lua b/unofficial/c511000380.lua index 6454405b04..bcf84a14eb 100644 --- a/unofficial/c511000380.lua +++ b/unofficial/c511000380.lua @@ -15,4 +15,4 @@ function s.initial_effect(c) e1:SetTargetRange(1,1) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000381.lua b/unofficial/c511000381.lua index b527a62a54..660b38b8bb 100644 --- a/unofficial/c511000381.lua +++ b/unofficial/c511000381.lua @@ -13,8 +13,8 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,e:GetHandler()) end - local g=Duel.GetMatchingGroup(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND+LOCATION_ONFIELD,0,e:GetHandler()) + if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND|LOCATION_ONFIELD,0,1,e:GetHandler()) end + local g=Duel.GetMatchingGroup(Card.IsAbleToRemoveAsCost,tp,LOCATION_HAND|LOCATION_ONFIELD,0,e:GetHandler()) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -35,7 +35,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_DISABLE) - e1:SetTargetRange(0,LOCATION_ONFIELD+LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA) + e1:SetTargetRange(0,LOCATION_ONFIELD|LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE|LOCATION_REMOVED|LOCATION_EXTRA) e1:SetTarget(s.distarget) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.distarget(e,c) return c~=e:GetHandler() and c:IsType(TYPE_TRAP+TYPE_SPELL+TYPE_MONSTER) -end +end \ No newline at end of file diff --git a/unofficial/c511000382.lua b/unofficial/c511000382.lua index 2a587db593..372066a429 100644 --- a/unofficial/c511000382.lua +++ b/unofficial/c511000382.lua @@ -46,4 +46,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000384.lua b/unofficial/c511000384.lua index f28db92292..da1ac69dfe 100644 --- a/unofficial/c511000384.lua +++ b/unofficial/c511000384.lua @@ -20,4 +20,4 @@ function s.initial_effect(c) end function s.infilter(e,c) return c:GetCode()==511000380 -end +end \ No newline at end of file diff --git a/unofficial/c511000385.lua b/unofficial/c511000385.lua index de4f7c4555..60fb62c530 100644 --- a/unofficial/c511000385.lua +++ b/unofficial/c511000385.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000386.lua b/unofficial/c511000386.lua index 889cfe1722..2f2bd1b36c 100644 --- a/unofficial/c511000386.lua +++ b/unofficial/c511000386.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000387.lua b/unofficial/c511000387.lua index fc18a9bb4a..e29a793271 100644 --- a/unofficial/c511000387.lua +++ b/unofficial/c511000387.lua @@ -32,4 +32,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000389.lua b/unofficial/c511000389.lua index 76dddd6b08..5001e8f6a5 100644 --- a/unofficial/c511000389.lua +++ b/unofficial/c511000389.lua @@ -15,4 +15,4 @@ function s.efilter(e,te) end function s.con(e) return Duel.IsPlayerAffectedByEffect(e:GetHandlerPlayer(),511000380) -end +end \ No newline at end of file diff --git a/unofficial/c511000390.lua b/unofficial/c511000390.lua index ec4048f3cf..69b43c18ab 100644 --- a/unofficial/c511000390.lua +++ b/unofficial/c511000390.lua @@ -33,4 +33,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000391.lua b/unofficial/c511000391.lua index 7f08d265fa..5199365bc8 100644 --- a/unofficial/c511000391.lua +++ b/unofficial/c511000391.lua @@ -31,4 +31,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000392.lua b/unofficial/c511000392.lua index 254918756b..20cbf62caf 100644 --- a/unofficial/c511000392.lua +++ b/unofficial/c511000392.lua @@ -14,4 +14,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsPlayerAffectedByEffect(c:GetControler(),511000380) -end +end \ No newline at end of file diff --git a/unofficial/c511000393.lua b/unofficial/c511000393.lua index d5aed683b1..213d924025 100644 --- a/unofficial/c511000393.lua +++ b/unofficial/c511000393.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000395.lua b/unofficial/c511000395.lua index ece56ef034..dae75e09ca 100644 --- a/unofficial/c511000395.lua +++ b/unofficial/c511000395.lua @@ -57,4 +57,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.cttg(e,c) return c:GetCounter(0x1015)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000396.lua b/unofficial/c511000396.lua index 5fe879aae5..601c42c0f5 100644 --- a/unofficial/c511000396.lua +++ b/unofficial/c511000396.lua @@ -22,4 +22,4 @@ function s.initial_effect(c) end function s.target(e,c) return c:GetCounter(0x1015)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511000397.lua b/unofficial/c511000397.lua index 8ae81fb76c..dba3b75dee 100644 --- a/unofficial/c511000397.lua +++ b/unofficial/c511000397.lua @@ -28,4 +28,4 @@ function s.infilter(e,c) end function s.efilter(e,te) return te:GetOwner()~=e:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511000400.lua b/unofficial/c511000400.lua index 122c73fbd3..d84cb53ba5 100644 --- a/unofficial/c511000400.lua +++ b/unofficial/c511000400.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) Duel.ChangeAttackTarget(tc,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511000401.lua b/unofficial/c511000401.lua index 9bf70ab7f5..bf1fd12094 100644 --- a/unofficial/c511000401.lua +++ b/unofficial/c511000401.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFacedown() then Duel.ConfirmCards(tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000402.lua b/unofficial/c511000402.lua index 4ca2e4d566..4294586af7 100644 --- a/unofficial/c511000402.lua +++ b/unofficial/c511000402.lua @@ -50,4 +50,4 @@ function s.exfilter(c) end function s.sdcon(e) return not Duel.IsExistingMatchingCard(s.exfilter,e:GetHandler():GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511000403.lua b/unofficial/c511000403.lua index b1cfa33438..1343fe596b 100644 --- a/unofficial/c511000403.lua +++ b/unofficial/c511000403.lua @@ -38,7 +38,7 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentPhase()==PHASE_STANDBY and Duel.GetTurnPlayer()==tp + return Duel.GetCurrentPhase()==PHASE_STANDBY and Duel.IsTurnPlayer(tp) end function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end diff --git a/unofficial/c511000404.lua b/unofficial/c511000404.lua index 3f46a25e6c..4f17d866ff 100644 --- a/unofficial/c511000404.lua +++ b/unofficial/c511000404.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000406.lua b/unofficial/c511000406.lua index ba7d090af2..fba6ba3218 100644 --- a/unofficial/c511000406.lua +++ b/unofficial/c511000406.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Group.FromCards(tc) Duel.ChangeTargetCard(ev,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000407.lua b/unofficial/c511000407.lua index aec8472f93..e6b033a5d0 100644 --- a/unofficial/c511000407.lua +++ b/unofficial/c511000407.lua @@ -86,4 +86,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if op then op(e,tp,teg,tep,tev,tre,tr,trp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000411.lua b/unofficial/c511000411.lua index 7069ab0956..a0635ad07e 100644 --- a/unofficial/c511000411.lua +++ b/unofficial/c511000411.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ct*500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000412.lua b/unofficial/c511000412.lua index dca17af020..a0d543a9a0 100644 --- a/unofficial/c511000412.lua +++ b/unofficial/c511000412.lua @@ -33,4 +33,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000413.lua b/unofficial/c511000413.lua index fa585d2067..aa5e8e8d3e 100644 --- a/unofficial/c511000413.lua +++ b/unofficial/c511000413.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.CalculateDamage(tc,bt) end -end +end \ No newline at end of file diff --git a/unofficial/c511000414.lua b/unofficial/c511000414.lua index 1637f76f20..dccc129a89 100644 --- a/unofficial/c511000414.lua +++ b/unofficial/c511000414.lua @@ -43,4 +43,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000415.lua b/unofficial/c511000415.lua index 41e66a8eec..dadbb716e6 100644 --- a/unofficial/c511000415.lua +++ b/unofficial/c511000415.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000416.lua b/unofficial/c511000416.lua index 9ab0acda33..8125857d6b 100644 --- a/unofficial/c511000416.lua +++ b/unofficial/c511000416.lua @@ -50,4 +50,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsFaceup() and tc:IsRelateToBattle() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000417.lua b/unofficial/c511000417.lua index ba0966279e..47bb45246b 100644 --- a/unofficial/c511000417.lua +++ b/unofficial/c511000417.lua @@ -22,4 +22,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,ev/10) -end +end \ No newline at end of file diff --git a/unofficial/c511000418.lua b/unofficial/c511000418.lua index 4037a7f77d..0ea6785a31 100644 --- a/unofficial/c511000418.lua +++ b/unofficial/c511000418.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000421.lua b/unofficial/c511000421.lua index a2bbac0e69..ee67aebfb3 100644 --- a/unofficial/c511000421.lua +++ b/unofficial/c511000421.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc:IsCode(ac) then Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000422.lua b/unofficial/c511000422.lua index 4435e4893e..e218545809 100644 --- a/unofficial/c511000422.lua +++ b/unofficial/c511000422.lua @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000423.lua b/unofficial/c511000423.lua index 846bca314b..0350fe69f9 100644 --- a/unofficial/c511000423.lua +++ b/unofficial/c511000423.lua @@ -33,4 +33,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000424.lua b/unofficial/c511000424.lua index 03308cc1ab..fcecf29110 100644 --- a/unofficial/c511000424.lua +++ b/unofficial/c511000424.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-tp,1000) -end +end \ No newline at end of file diff --git a/unofficial/c511000427.lua b/unofficial/c511000427.lua index c15d363e4d..e88f0428a9 100644 --- a/unofficial/c511000427.lua +++ b/unofficial/c511000427.lua @@ -34,4 +34,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511000428.lua b/unofficial/c511000428.lua index af880a12a7..b41ddaeabd 100644 --- a/unofficial/c511000428.lua +++ b/unofficial/c511000428.lua @@ -41,4 +41,4 @@ function s.regcon(e,tp,eg,ep,ev,re,r,rp) end function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id+rp,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) -end +end \ No newline at end of file diff --git a/unofficial/c511000429.lua b/unofficial/c511000429.lua index a3252bdef1..f339915104 100644 --- a/unofficial/c511000429.lua +++ b/unofficial/c511000429.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,1-tp,2,REASON_EFFECT) Duel.BreakEffect() Duel.Draw(p,#g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000430.lua b/unofficial/c511000430.lua index 42393cda1c..e869d849fe 100644 --- a/unofficial/c511000430.lua +++ b/unofficial/c511000430.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,500,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000431.lua b/unofficial/c511000431.lua index d3e4ab836a..96fc98b1a0 100644 --- a/unofficial/c511000431.lua +++ b/unofficial/c511000431.lua @@ -32,8 +32,8 @@ function s.filter(c,e,tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE) end function s.acfilter(c) return c:IsCode(9677699) and c:CheckActivateEffect(false,false,false)~=nil @@ -42,9 +42,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,1,1,nil,e,tp) if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then - local ag=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.acfilter),tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,nil) + local ag=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.acfilter),tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,nil) if #ag>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(48680970,0)) then local ac=ag:Select(tp,1,1,nil) local tc=ac:GetFirst() diff --git a/unofficial/c511000434.lua b/unofficial/c511000434.lua index 1d1dbba73a..de10b92b1d 100644 --- a/unofficial/c511000434.lua +++ b/unofficial/c511000434.lua @@ -24,4 +24,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(400) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000436.lua b/unofficial/c511000436.lua index 425142fdb8..ae709db5b8 100644 --- a/unofficial/c511000436.lua +++ b/unofficial/c511000436.lua @@ -32,4 +32,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000437.lua b/unofficial/c511000437.lua index a73270bdac..fbe02fcb79 100644 --- a/unofficial/c511000437.lua +++ b/unofficial/c511000437.lua @@ -29,4 +29,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000438.lua b/unofficial/c511000438.lua index e11958dd82..0e3c715d09 100644 --- a/unofficial/c511000438.lua +++ b/unofficial/c511000438.lua @@ -41,4 +41,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0 then Duel.Damage(1-tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000439.lua b/unofficial/c511000439.lua index 59ea08c3ea..b30b16948e 100644 --- a/unofficial/c511000439.lua +++ b/unofficial/c511000439.lua @@ -20,4 +20,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end Duel.Draw(tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000440.lua b/unofficial/c511000440.lua index 995619265a..870435d14f 100644 --- a/unofficial/c511000440.lua +++ b/unofficial/c511000440.lua @@ -22,7 +22,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local d=Duel.GetAttackTarget() local ft=0 if e:GetHandler():IsLocation(LOCATION_HAND) then ft=1 end - if chk==0 then return d:IsFaceup() and d:IsSetCard(0x52) and Duel.GetLocationCount(tp,LOCATION_SZONE)>ft + if chk==0 then return d:IsFaceup() and d:IsSetCard(SET_GUARDIAN) and Duel.GetLocationCount(tp,LOCATION_SZONE)>ft and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end Duel.SetTargetCard(d) @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Equip(tp,ec,tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000441.lua b/unofficial/c511000441.lua index bdac299d4d..5aaeb0cc34 100644 --- a/unofficial/c511000441.lua +++ b/unofficial/c511000441.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000442.lua b/unofficial/c511000442.lua index 096f300374..e81e985d2c 100644 --- a/unofficial/c511000442.lua +++ b/unofficial/c511000442.lua @@ -49,4 +49,4 @@ end function s.indtg(e,c) local bc=e:GetHandler():GetEquipTarget():GetBattleTarget() return bc and bc==c -end +end \ No newline at end of file diff --git a/unofficial/c511000443.lua b/unofficial/c511000443.lua index fb6c791c7f..06c245cb1d 100644 --- a/unofficial/c511000443.lua +++ b/unofficial/c511000443.lua @@ -7,4 +7,4 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_EQUIP) e2:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000444.lua b/unofficial/c511000444.lua index 995a6938cd..5929d95690 100644 --- a/unofficial/c511000444.lua +++ b/unofficial/c511000444.lua @@ -39,4 +39,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e) return e:GetHandler():IsAttackPos() -end +end \ No newline at end of file diff --git a/unofficial/c511000445.lua b/unofficial/c511000445.lua index 726ab5be42..33243ef5b9 100644 --- a/unofficial/c511000445.lua +++ b/unofficial/c511000445.lua @@ -33,13 +33,13 @@ function s.spfilter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end @@ -48,4 +48,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) if eg:IsExists(s.cfilter,1,nil,tp) then Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_DAMAGE,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000446.lua b/unofficial/c511000446.lua index fd4679dd1c..dbcb01797b 100644 --- a/unofficial/c511000446.lua +++ b/unofficial/c511000446.lua @@ -54,4 +54,4 @@ end function s.tgcon(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetHandler():GetFirstCardTarget() return tc and eg:IsContains(tc) -end +end \ No newline at end of file diff --git a/unofficial/c511000447.lua b/unofficial/c511000447.lua index 4344438d11..264229d4ae 100644 --- a/unofficial/c511000447.lua +++ b/unofficial/c511000447.lua @@ -43,4 +43,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local g=eg:Filter(Card.IsRelateToBattle,nil) Duel.ChangePosition(g,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511000448.lua b/unofficial/c511000448.lua index d48240dbac..17d72a1179 100644 --- a/unofficial/c511000448.lua +++ b/unofficial/c511000448.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(tc:GetBaseDefense()) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000449.lua b/unofficial/c511000449.lua index 3e45dd2c3d..4d4a48a938 100644 --- a/unofficial/c511000449.lua +++ b/unofficial/c511000449.lua @@ -57,4 +57,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000450.lua b/unofficial/c511000450.lua index 57f86e4d51..9806747c96 100644 --- a/unofficial/c511000450.lua +++ b/unofficial/c511000450.lua @@ -22,4 +22,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000451.lua b/unofficial/c511000451.lua index 03f63bf82c..eabaf34d91 100644 --- a/unofficial/c511000451.lua +++ b/unofficial/c511000451.lua @@ -45,4 +45,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000453.lua b/unofficial/c511000453.lua index 0b9fde20bb..fde9c5ccba 100644 --- a/unofficial/c511000453.lua +++ b/unofficial/c511000453.lua @@ -76,4 +76,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.indval(e,re,tp) return e:GetOwner()~=re:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511000454.lua b/unofficial/c511000454.lua index 4d80678a35..4d20b02ab0 100644 --- a/unofficial/c511000454.lua +++ b/unofficial/c511000454.lua @@ -16,22 +16,22 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.con(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.filter(c,e,tp) return c:IsCode(id) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000455.lua b/unofficial/c511000455.lua index 461781dee4..3c3c7f79a3 100644 --- a/unofficial/c511000455.lua +++ b/unofficial/c511000455.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000456.lua b/unofficial/c511000456.lua index 13c455dce1..22ba905cba 100644 --- a/unofficial/c511000456.lua +++ b/unofficial/c511000456.lua @@ -24,4 +24,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local atk=e:GetLabelObject():GetAttack() Duel.Recover(tp,atk,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000457.lua b/unofficial/c511000457.lua index ff2c6a4909..853abaeae8 100644 --- a/unofficial/c511000457.lua +++ b/unofficial/c511000457.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(LOCATION_MZONE,0) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000458.lua b/unofficial/c511000458.lua index 072793c2d1..566ec3703b 100644 --- a/unofficial/c511000458.lua +++ b/unofficial/c511000458.lua @@ -18,4 +18,4 @@ function s.initial_effect(c) end function s.con(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_MZONE,0)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000460.lua b/unofficial/c511000460.lua index 0b8c37b4bd..8cf7f7bcb5 100644 --- a/unofficial/c511000460.lua +++ b/unofficial/c511000460.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.Damage(1-tp,dam+500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000461.lua b/unofficial/c511000461.lua index e3040cad00..a7feb671b5 100644 --- a/unofficial/c511000461.lua +++ b/unofficial/c511000461.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e2:SetCode(EFFECT_BECOME_QUICK) - e2:SetRange(LOCATION_SZONE+LOCATION_HAND) + e2:SetRange(LOCATION_SZONE|LOCATION_HAND) e2:SetCondition(s.condition) c:RegisterEffect(e2) end @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tg,0,tp,tp,false,false,pos) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000462.lua b/unofficial/c511000462.lua index 63777b1ad0..e0fef00073 100644 --- a/unofficial/c511000462.lua +++ b/unofficial/c511000462.lua @@ -17,4 +17,4 @@ function s.contactfilter(tp) end function s.contactop(g,tp,c) Duel.SendtoGrave(g,REASON_COST+REASON_MATERIAL+REASON_FUSION) -end +end \ No newline at end of file diff --git a/unofficial/c511000463.lua b/unofficial/c511000463.lua index f44179a1de..f2ae2893d4 100644 --- a/unofficial/c511000463.lua +++ b/unofficial/c511000463.lua @@ -24,4 +24,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000465.lua b/unofficial/c511000465.lua index 851ef44258..f16b3b0d24 100644 --- a/unofficial/c511000465.lua +++ b/unofficial/c511000465.lua @@ -43,4 +43,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE|PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000466.lua b/unofficial/c511000466.lua index a6b92d321a..17ce3f2872 100644 --- a/unofficial/c511000466.lua +++ b/unofficial/c511000466.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.BreakEffect() Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000467.lua b/unofficial/c511000467.lua index b753de2e1a..7d534fb61f 100644 --- a/unofficial/c511000467.lua +++ b/unofficial/c511000467.lua @@ -42,4 +42,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) if e:GetLabel()>=3000 then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000468.lua b/unofficial/c511000468.lua index a6a1c09917..069156ea5a 100644 --- a/unofficial/c511000468.lua +++ b/unofficial/c511000468.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsSetCard(0x6) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_DARK_WORLD) and c:IsMonster() and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000469.lua b/unofficial/c511000469.lua index d82011e50e..63bd26ecfd 100644 --- a/unofficial/c511000469.lua +++ b/unofficial/c511000469.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000470.lua b/unofficial/c511000470.lua index db700bd350..3e765829b9 100644 --- a/unofficial/c511000470.lua +++ b/unofficial/c511000470.lua @@ -76,4 +76,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(e:GetHandler(),nil,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000471.lua b/unofficial/c511000471.lua index 3f2f7fc629..92ac5f4c18 100644 --- a/unofficial/c511000471.lua +++ b/unofficial/c511000471.lua @@ -29,9 +29,9 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,tc) if tc:IsCode(ac) then Duel.BreakEffect() - local sg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD+LOCATION_HAND,nil) + local sg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD|LOCATION_HAND,nil) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end Duel.ShuffleHand(1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000472.lua b/unofficial/c511000472.lua index 30d7ca8032..f32140f62f 100644 --- a/unofficial/c511000472.lua +++ b/unofficial/c511000472.lua @@ -51,4 +51,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,1000,REASON_EFFECT) end Duel.ShuffleHand(ep) -end +end \ No newline at end of file diff --git a/unofficial/c511000474.lua b/unofficial/c511000474.lua index 31e222c186..9c8cca09a2 100644 --- a/unofficial/c511000474.lua +++ b/unofficial/c511000474.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(Duel.GetLP(1-p)) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000477.lua b/unofficial/c511000477.lua index c82a2d8985..fefbae0757 100644 --- a/unofficial/c511000477.lua +++ b/unofficial/c511000477.lua @@ -70,4 +70,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and c:IsPosition(POS_FACEUP_ATTACK) then Duel.ChangePosition(c,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511000478.lua b/unofficial/c511000478.lua index 2129cb50dc..08bf135c38 100644 --- a/unofficial/c511000478.lua +++ b/unofficial/c511000478.lua @@ -44,4 +44,4 @@ function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(1-Duel.GetTurnPlayer(),1,REASON_RULE) -end +end \ No newline at end of file diff --git a/unofficial/c511000479.lua b/unofficial/c511000479.lua index 481d94d66a..4f523b2792 100644 --- a/unofficial/c511000479.lua +++ b/unofficial/c511000479.lua @@ -59,4 +59,4 @@ function s.atkop(p) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000480.lua b/unofficial/c511000480.lua index ca18fcc884..71eeab6d3b 100644 --- a/unofficial/c511000480.lua +++ b/unofficial/c511000480.lua @@ -23,14 +23,14 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_DICE,nil,0,tp,1) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_GRAVE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local dice=Duel.TossDice(tp,1) if dice==1 or dice==2 then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD) - e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) + e1:SetTargetRange(LOCATION_HAND|LOCATION_MZONE,0) e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT) Duel.RegisterEffect(e1,tp) elseif (dice==3 or dice==4) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then @@ -57,4 +57,4 @@ function s.ntcon(e,c) end function s.nttg(e,c) return c:IsLevelAbove(5) -end +end \ No newline at end of file diff --git a/unofficial/c511000481.lua b/unofficial/c511000481.lua index 74cc5a77f0..d261b3a2c9 100644 --- a/unofficial/c511000481.lua +++ b/unofficial/c511000481.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,ct*100,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511000482.lua b/unofficial/c511000482.lua index 116556ff90..cce22e56bb 100644 --- a/unofficial/c511000482.lua +++ b/unofficial/c511000482.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.con(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsPosition(POS_FACEUP_ATTACK) and Duel.GetTurnPlayer()==tp + return e:GetHandler():IsPosition(POS_FACEUP_ATTACK) and Duel.IsTurnPlayer(tp) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckLPCost(tp,500) end @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000483.lua b/unofficial/c511000483.lua index a4d8c0b22f..95ffbde173 100644 --- a/unofficial/c511000483.lua +++ b/unofficial/c511000483.lua @@ -20,7 +20,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return d and d:IsFaceup() end function s.cfilter(c) - return c:IsSetCard(0x3008) + return c:IsSetCard(SET_ELEMENTAL_HERO) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.cfilter,tp,LOCATION_GRAVE,0,1,nil) end @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()) d:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000484.lua b/unofficial/c511000484.lua index 32ee71430f..7b5de7b7c2 100644 --- a/unofficial/c511000484.lua +++ b/unofficial/c511000484.lua @@ -29,7 +29,7 @@ function s.negcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(e:GetHandler(),REASON_COST) end function s.spfilter(c,e,tp) - return c:GetLevel()<=4 and c:IsSetCard(0x3008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:GetLevel()<=4 and c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.negop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then @@ -41,4 +41,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000485.lua b/unofficial/c511000485.lua index 27ebf723bf..8ee1fc46bd 100644 --- a/unofficial/c511000485.lua +++ b/unofficial/c511000485.lua @@ -47,8 +47,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.retop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() - if tc and tc:IsLocation(LOCATION_HAND+LOCATION_SZONE) and tc:IsControler(tp) then + if tc and tc:IsLocation(LOCATION_HAND|LOCATION_SZONE) and tc:IsControler(tp) then Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000486.lua b/unofficial/c511000486.lua index e052b6825b..1d2286c613 100644 --- a/unofficial/c511000486.lua +++ b/unofficial/c511000486.lua @@ -45,7 +45,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e3) end function s.turncon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.turnop(e,tp,eg,ep,ev,re,r,rp) local ct=e:GetLabel() @@ -70,4 +70,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end Duel.ShuffleHand(tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000487.lua b/unofficial/c511000487.lua index b8eeca50fd..fb97b2777f 100644 --- a/unofficial/c511000487.lua +++ b/unofficial/c511000487.lua @@ -56,4 +56,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000488.lua b/unofficial/c511000488.lua index 151342856c..570357d004 100644 --- a/unofficial/c511000488.lua +++ b/unofficial/c511000488.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=sg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000489.lua b/unofficial/c511000489.lua index 766f12f268..f09e204444 100644 --- a/unofficial/c511000489.lua +++ b/unofficial/c511000489.lua @@ -28,4 +28,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(bc:GetAttack()) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) ec:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000491.lua b/unofficial/c511000491.lua index 99169da97b..4ec339e53e 100644 --- a/unofficial/c511000491.lua +++ b/unofficial/c511000491.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) end function s.cfilter(c,tp) return c:IsReason(REASON_DESTROY) and c:IsPreviousControler(tp) and c:GetPreviousLocation()==LOCATION_MZONE - and (c:GetPreviousPosition()&POS_FACEUP)~=0 and c:GetReasonPlayer()==1-tp and c:IsSetCard(0x3008) + and (c:GetPreviousPosition()&POS_FACEUP)~=0 and c:GetReasonPlayer()==1-tp and c:IsSetCard(SET_ELEMENTAL_HERO) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000492.lua b/unofficial/c511000492.lua index 4ed79040a6..42e62d5f93 100644 --- a/unofficial/c511000492.lua +++ b/unofficial/c511000492.lua @@ -63,8 +63,8 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x3008) + return c:IsFaceup() and c:IsSetCard(SET_ELEMENTAL_HERO) end function s.value(e,c) return Duel.GetMatchingGroupCount(s.filter,e:GetHandler():GetControler(),LOCATION_MZONE,0,nil)*300 -end +end \ No newline at end of file diff --git a/unofficial/c511000493.lua b/unofficial/c511000493.lua index 56979fbc00..3f4c78f568 100644 --- a/unofficial/c511000493.lua +++ b/unofficial/c511000493.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.tfilter(c,atk,e,tp) - return c:IsSetCard(0x3008) and c:GetAttack()==atk and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:GetAttack()==atk and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.filter(c,e,tp) return c:IsFaceup() and Duel.IsExistingMatchingCard(s.tfilter,tp,LOCATION_HAND,0,1,nil,c:GetAttack(),e,tp) @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000494.lua b/unofficial/c511000494.lua index 7c52bd8e17..9e7cc29f8a 100644 --- a/unofficial/c511000494.lua +++ b/unofficial/c511000494.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000495.lua b/unofficial/c511000495.lua index c96530d5c2..a6a6b6e666 100644 --- a/unofficial/c511000495.lua +++ b/unofficial/c511000495.lua @@ -79,4 +79,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(1-tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000496.lua b/unofficial/c511000496.lua index be7c1c51d5..825a7eccc5 100644 --- a/unofficial/c511000496.lua +++ b/unofficial/c511000496.lua @@ -68,4 +68,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000497.lua b/unofficial/c511000497.lua index 78e6848e8d..0e045ed803 100644 --- a/unofficial/c511000497.lua +++ b/unofficial/c511000497.lua @@ -75,4 +75,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000499.lua b/unofficial/c511000499.lua index b52c4aa4f4..29e7620e73 100644 --- a/unofficial/c511000499.lua +++ b/unofficial/c511000499.lua @@ -13,10 +13,10 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() - return #eg==1 and tc:IsControler(tp) and tc:IsSetCard(0x3008) + return #eg==1 and tc:IsControler(tp) and tc:IsSetCard(SET_ELEMENTAL_HERO) end function s.spfilter(c,e,tp) - return c:IsAttackBelow(1000) and c:IsSetCard(0x3008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsAttackBelow(1000) and c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000500.lua b/unofficial/c511000500.lua index b680643d95..5d9ea8e01c 100644 --- a/unofficial/c511000500.lua +++ b/unofficial/c511000500.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000502.lua b/unofficial/c511000502.lua index a0216f8386..b378e33f7f 100644 --- a/unofficial/c511000502.lua +++ b/unofficial/c511000502.lua @@ -30,4 +30,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000503.lua b/unofficial/c511000503.lua index 3d34bb1485..e727ab3a57 100644 --- a/unofficial/c511000503.lua +++ b/unofficial/c511000503.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x8} function s.filter(c) - return c:IsLevelAbove(4) and c:IsSetCard(0x8) + return c:IsLevelAbove(4) and c:IsSetCard(SET_HERO) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,2,nil) @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000504.lua b/unofficial/c511000504.lua index 4c02d8705b..c6ffbfdc14 100644 --- a/unofficial/c511000504.lua +++ b/unofficial/c511000504.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000505.lua b/unofficial/c511000505.lua index 89d4546860..2029835675 100644 --- a/unofficial/c511000505.lua +++ b/unofficial/c511000505.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c511000506.lua b/unofficial/c511000506.lua index 8799652e2d..90a1d69781 100644 --- a/unofficial/c511000506.lua +++ b/unofficial/c511000506.lua @@ -17,4 +17,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,3,REASON_EFFECT) Duel.Draw(1-tp,3,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000508.lua b/unofficial/c511000508.lua index 07aa03f9d0..86833673c7 100644 --- a/unofficial/c511000508.lua +++ b/unofficial/c511000508.lua @@ -53,4 +53,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.value(e,c) return e:GetHandler():GetFlagEffect(id)*1000 -end +end \ No newline at end of file diff --git a/unofficial/c511000510.lua b/unofficial/c511000510.lua index f7bfa95460..a6a845f55b 100644 --- a/unofficial/c511000510.lua +++ b/unofficial/c511000510.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetValue(4) e2:SetRange(LOCATION_SZONE) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000511.lua b/unofficial/c511000511.lua index 7e46554730..59f369d84c 100644 --- a/unofficial/c511000511.lua +++ b/unofficial/c511000511.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000512.lua b/unofficial/c511000512.lua index d577559eb1..661c5d77bf 100644 --- a/unofficial/c511000512.lua +++ b/unofficial/c511000512.lua @@ -43,5 +43,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,Duel.GetFieldGroupCount(p,LOCATION_HAND,0)*500,REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511000513.lua b/unofficial/c511000513.lua index 9ac7e37bb3..285c679360 100644 --- a/unofficial/c511000513.lua +++ b/unofficial/c511000513.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) local e5=Effect.CreateEffect(c) e5:SetType(EFFECT_TYPE_SINGLE) e5:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e5:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e5:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e5) end s.listed_series={0x48} @@ -58,4 +58,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) c:RemoveOverlayCard(tp,1,1,REASON_COST) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511000515.lua b/unofficial/c511000515.lua index 480dea2b38..a6bf398f67 100644 --- a/unofficial/c511000515.lua +++ b/unofficial/c511000515.lua @@ -121,5 +121,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(rg,POS_FACEUP,REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511000519.lua b/unofficial/c511000519.lua index a31d17f586..1455fff08c 100644 --- a/unofficial/c511000519.lua +++ b/unofficial/c511000519.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g<3 then return end local sg=g:Select(tp,3,3,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511000520.lua b/unofficial/c511000520.lua index a829dd507c..be1e5f2bfd 100644 --- a/unofficial/c511000520.lua +++ b/unofficial/c511000520.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000521.lua b/unofficial/c511000521.lua index 9c4812ef62..2307519615 100644 --- a/unofficial/c511000521.lua +++ b/unofficial/c511000521.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) end function s.dircon(e) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsRace,RACE_INSECT),e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511000522.lua b/unofficial/c511000522.lua index 797c895d74..80b27201f8 100644 --- a/unofficial/c511000522.lua +++ b/unofficial/c511000522.lua @@ -22,4 +22,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.ChangePosition(g,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511000523.lua b/unofficial/c511000523.lua index 71a1d4fa75..ea891cb95c 100644 --- a/unofficial/c511000523.lua +++ b/unofficial/c511000523.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511000524.lua b/unofficial/c511000524.lua index 4b062df25f..1da5c3013d 100644 --- a/unofficial/c511000524.lua +++ b/unofficial/c511000524.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000525.lua b/unofficial/c511000525.lua index 334631a139..2de33c5205 100644 --- a/unofficial/c511000525.lua +++ b/unofficial/c511000525.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_REPTILE)) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000526.lua b/unofficial/c511000526.lua index 31545668ac..0bc82b7510 100644 --- a/unofficial/c511000526.lua +++ b/unofficial/c511000526.lua @@ -19,15 +19,15 @@ function s.desfilter(c,lv,race) return c:IsFaceup() and c:HasLevel() and c:GetLevel()0 and Duel.Remove(g,POS_FACEUP,REASON_EFFECT)>0 then local tc=Duel.SelectMatchingCard(tp,s.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,g:GetFirst():GetLevel(),g:GetFirst():GetRace()) Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000527.lua b/unofficial/c511000527.lua index 3f327ac57d..9db7c7e36e 100644 --- a/unofficial/c511000527.lua +++ b/unofficial/c511000527.lua @@ -27,4 +27,4 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000531.lua b/unofficial/c511000531.lua index 895919f1b3..78dfa74f55 100644 --- a/unofficial/c511000531.lua +++ b/unofficial/c511000531.lua @@ -30,4 +30,4 @@ end function s.rmtarget(e,c) local race=e:GetLabel() return c:IsRace(race) and not c:IsLocation(0x80) and not c:IsSpellTrap() -end +end \ No newline at end of file diff --git a/unofficial/c511000532.lua b/unofficial/c511000532.lua index 97b4caee19..03c51ee010 100644 --- a/unofficial/c511000532.lua +++ b/unofficial/c511000532.lua @@ -17,9 +17,9 @@ function s.costfilter(c) return c:IsCode(CARD_JINZO) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil) Duel.SendtoGrave(g,REASON_COST) end function s.cfilter(c) @@ -44,4 +44,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000533.lua b/unofficial/c511000533.lua index 239256b394..d75e4d6623 100644 --- a/unofficial/c511000533.lua +++ b/unofficial/c511000533.lua @@ -17,4 +17,4 @@ function s.initial_effect(c) end function s.efilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) -end +end \ No newline at end of file diff --git a/unofficial/c511000534.lua b/unofficial/c511000534.lua index 3dbc082d29..275d54f0ab 100644 --- a/unofficial/c511000534.lua +++ b/unofficial/c511000534.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e6:SetCode(EFFECT_REMOVE_TYPE) e6:SetValue(TYPE_TRAP) c:RegisterEffect(e6) -end +end \ No newline at end of file diff --git a/unofficial/c511000535.lua b/unofficial/c511000535.lua index fee7cc24c6..2d0c664493 100644 --- a/unofficial/c511000535.lua +++ b/unofficial/c511000535.lua @@ -55,4 +55,4 @@ function s.descon2(e,tp,eg,ep,ev,re,r,rp) end function s.desop2(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000536.lua b/unofficial/c511000536.lua index 896082c360..25310e8feb 100644 --- a/unofficial/c511000536.lua +++ b/unofficial/c511000536.lua @@ -72,4 +72,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(ev) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000537.lua b/unofficial/c511000537.lua index e2189d8181..03d1055378 100644 --- a/unofficial/c511000537.lua +++ b/unofficial/c511000537.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000538.lua b/unofficial/c511000538.lua index dea4f8b895..350d5bc458 100644 --- a/unofficial/c511000538.lua +++ b/unofficial/c511000538.lua @@ -55,4 +55,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.lv(e,c,rc) return c:GetRank()+1 -end +end \ No newline at end of file diff --git a/unofficial/c511000539.lua b/unofficial/c511000539.lua index e712a326aa..63283b113f 100644 --- a/unofficial/c511000539.lua +++ b/unofficial/c511000539.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) - e1:SetRange(LOCATION_HAND+LOCATION_DECK) + e1:SetRange(LOCATION_HAND|LOCATION_DECK) e1:SetCode(71625222) e1:SetCondition(s.spcon) e1:SetCost(s.spcost) @@ -39,4 +39,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) and Duel.SpecialSummon(e:GetHandler(),0,tp,tp,true,false,POS_FACEUP)>0 then e:GetHandler():CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000540.lua b/unofficial/c511000540.lua index fd6a07516f..5424c03aae 100644 --- a/unofficial/c511000540.lua +++ b/unofficial/c511000540.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000541.lua b/unofficial/c511000541.lua index 6c0c2dd9c0..a59659f872 100644 --- a/unofficial/c511000541.lua +++ b/unofficial/c511000541.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000543.lua b/unofficial/c511000543.lua index e0a5159bc2..b7d0da165f 100644 --- a/unofficial/c511000543.lua +++ b/unofficial/c511000543.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(1-p) end -end +end \ No newline at end of file diff --git a/unofficial/c511000544.lua b/unofficial/c511000544.lua index 3631db27fb..32194895be 100644 --- a/unofficial/c511000544.lua +++ b/unofficial/c511000544.lua @@ -37,18 +37,18 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if e:GetHandler():GetSequence()<5 then ft=ft+1 end if chk==0 then return ft>2 and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,3,nil,e,tp,id+1) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,3,0,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,3,nil,e,tp,id+1) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,3,0,LOCATION_HAND|LOCATION_DECK) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if #g~=3 or ft<3 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,3,3,nil,e,tp,id+1) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,3,3,nil,e,tp,id+1) local tc=g:GetFirst() while tc do Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) tc:RegisterFlagEffect(id+1,RESET_EVENT+RESETS_STANDARD_DISABLE,0,0) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000545.lua b/unofficial/c511000545.lua index f274659084..39cc068d08 100644 --- a/unofficial/c511000545.lua +++ b/unofficial/c511000545.lua @@ -11,4 +11,4 @@ function s.initial_effect(c) end function s.lvcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetFlagEffect(id)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000546.lua b/unofficial/c511000546.lua index e46630b0e1..473859a71f 100644 --- a/unofficial/c511000546.lua +++ b/unofficial/c511000546.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000548.lua b/unofficial/c511000548.lua index 5cd9f580a5..02ab86d6f9 100644 --- a/unofficial/c511000548.lua +++ b/unofficial/c511000548.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #tc>0 then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511000549.lua b/unofficial/c511000549.lua index a6d04a9f02..39e6410e22 100644 --- a/unofficial/c511000549.lua +++ b/unofficial/c511000549.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000550.lua b/unofficial/c511000550.lua index 79d7cd1c78..83d7b20443 100644 --- a/unofficial/c511000550.lua +++ b/unofficial/c511000550.lua @@ -63,4 +63,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) local bc=ec:GetBattleTarget() local g=Duel.SelectMatchingCard(tp,aux.FaceupFilter(Card.IsRace,RACE_INSECT),tp,0,LOCATION_MZONE,1,1,bc) Duel.CalculateDamage(g:GetFirst(),ec) -end +end \ No newline at end of file diff --git a/unofficial/c511000551.lua b/unofficial/c511000551.lua index 7307680a8b..93ff587df9 100644 --- a/unofficial/c511000551.lua +++ b/unofficial/c511000551.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local val=Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,e:GetHandler(),TYPE_SPELL+TYPE_TRAP)*500 local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Recover(p,val,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000552.lua b/unofficial/c511000552.lua index d9d15a3bd9..1b2e30d317 100644 --- a/unofficial/c511000552.lua +++ b/unofficial/c511000552.lua @@ -41,4 +41,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(tp,ct,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000553.lua b/unofficial/c511000553.lua index 54016791d3..e907c2431e 100644 --- a/unofficial/c511000553.lua +++ b/unofficial/c511000553.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.val(e,c) return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsRace,RACE_FAIRY),c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())*300 -end +end \ No newline at end of file diff --git a/unofficial/c511000554.lua b/unofficial/c511000554.lua index 74bcf57506..e833e48cb1 100644 --- a/unofficial/c511000554.lua +++ b/unofficial/c511000554.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(1-tp) Duel.DiscardHand(1-tp,aux.TRUE,2,2,REASON_EFFECT+REASON_DISCARD) end -end +end \ No newline at end of file diff --git a/unofficial/c511000555.lua b/unofficial/c511000555.lua index ad137b6216..ceb59ce4e2 100644 --- a/unofficial/c511000555.lua +++ b/unofficial/c511000555.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ct*300) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000556.lua b/unofficial/c511000556.lua index 369cb34ec5..3ee0bce3a4 100644 --- a/unofficial/c511000556.lua +++ b/unofficial/c511000556.lua @@ -82,4 +82,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetLabelObject():GetLabel()) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000557.lua b/unofficial/c511000557.lua index ed8b44e652..5b062ca8a8 100644 --- a/unofficial/c511000557.lua +++ b/unofficial/c511000557.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.Draw(p,ct,REASON_EFFECT) then Duel.Recover(tp,ct*1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000558.lua b/unofficial/c511000558.lua index 6944c63cb0..24f4277fb0 100644 --- a/unofficial/c511000558.lua +++ b/unofficial/c511000558.lua @@ -90,4 +90,4 @@ function s.valcheck(e,c) e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000561.lua b/unofficial/c511000561.lua index 32660b95a0..565314c56f 100644 --- a/unofficial/c511000561.lua +++ b/unofficial/c511000561.lua @@ -73,4 +73,4 @@ function s.atktg(e,c) end function s.val(e,c) return c:GetAttack()*2 -end +end \ No newline at end of file diff --git a/unofficial/c511000577.lua b/unofficial/c511000577.lua index 559be3a942..5690ebad29 100644 --- a/unofficial/c511000577.lua +++ b/unofficial/c511000577.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000578.lua b/unofficial/c511000578.lua index 86dbc8e907..5ab6d87e47 100644 --- a/unofficial/c511000578.lua +++ b/unofficial/c511000578.lua @@ -41,10 +41,10 @@ function s.rmfilter(c) return c:IsMonster() and c:IsAbleToRemove() and aux.SpElimFilter(c) end function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(1-tp) and s.rmfilter(chkc) end - if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and chkc:IsControler(1-tp) and s.rmfilter(chkc) end + if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,1,nil) + local g=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1) end diff --git a/unofficial/c511000579.lua b/unofficial/c511000579.lua index 03f140d1be..80633c7c21 100644 --- a/unofficial/c511000579.lua +++ b/unofficial/c511000579.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000580.lua b/unofficial/c511000580.lua index 605a5fb714..e40d2be26a 100644 --- a/unofficial/c511000580.lua +++ b/unofficial/c511000580.lua @@ -58,4 +58,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:CompleteProcedure() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000581.lua b/unofficial/c511000581.lua index aa49d8a3c2..ad48e3c310 100644 --- a/unofficial/c511000581.lua +++ b/unofficial/c511000581.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511000582.lua b/unofficial/c511000582.lua index 8b82ee2971..49b4b7dbc8 100644 --- a/unofficial/c511000582.lua +++ b/unofficial/c511000582.lua @@ -28,4 +28,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000583.lua b/unofficial/c511000583.lua index 0be7fb89d2..1b884c738b 100644 --- a/unofficial/c511000583.lua +++ b/unofficial/c511000583.lua @@ -58,4 +58,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,1000,REASON_EFFECT) e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511000584.lua b/unofficial/c511000584.lua index 6ccee73d18..4e66dc7ff7 100644 --- a/unofficial/c511000584.lua +++ b/unofficial/c511000584.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,tp) - return c:IsLocation(LOCATION_ONFIELD+LOCATION_HAND+LOCATION_GRAVE) and c:IsControler(1-tp) + return c:IsLocation(LOCATION_ONFIELD|LOCATION_HAND|LOCATION_GRAVE) and c:IsControler(1-tp) end function s.discon(e,tp,eg,ep,ev,re,r,rp) if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end @@ -29,4 +29,4 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp) end function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateActivation(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511000585.lua b/unofficial/c511000585.lua index 2f0da506b9..2728ad0a36 100644 --- a/unofficial/c511000585.lua +++ b/unofficial/c511000585.lua @@ -14,10 +14,10 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local rg1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) Duel.SendtoDeck(rg1,nil,2,REASON_EFFECT) - rg1=Duel.GetOperatedGroup():Match(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA) + rg1=Duel.GetOperatedGroup():Match(Card.IsLocation,nil,LOCATION_DECK|LOCATION_EXTRA) local rg2=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil) Duel.SendtoDeck(rg2,nil,2,REASON_EFFECT) - rg2=Duel.GetOperatedGroup():Match(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA) + rg2=Duel.GetOperatedGroup():Match(Card.IsLocation,nil,LOCATION_DECK|LOCATION_EXTRA) Duel.BreakEffect() if #rg1>0 then Duel.ShuffleDeck(tp) @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.ShuffleHand(tp) Duel.ShuffleHand(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000587.lua b/unofficial/c511000587.lua index 6b4115dbee..5d4573dce3 100644 --- a/unofficial/c511000587.lua +++ b/unofficial/c511000587.lua @@ -65,4 +65,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.ChangePosition(g,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511000589.lua b/unofficial/c511000589.lua index cdfa25ee3e..473c127b6f 100644 --- a/unofficial/c511000589.lua +++ b/unofficial/c511000589.lua @@ -17,17 +17,16 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end - local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,nil,e,tp) + local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,nil,e,tp) if #g>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,1,1,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) Duel.ConfirmCards(1-tp,sg) end -end - +end \ No newline at end of file diff --git a/unofficial/c511000592.lua b/unofficial/c511000592.lua index c571689ad6..84d11eee6e 100644 --- a/unofficial/c511000592.lua +++ b/unofficial/c511000592.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e4:SetTargetRange(0,LOCATION_MZONE) e4:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e4,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000593.lua b/unofficial/c511000593.lua index d474192109..1f472aedf2 100644 --- a/unofficial/c511000593.lua +++ b/unofficial/c511000593.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetOperation(s.operation) c:RegisterEffect(e1) end @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000594.lua b/unofficial/c511000594.lua index 4c3f3fcfe7..04ac825c68 100644 --- a/unofficial/c511000594.lua +++ b/unofficial/c511000594.lua @@ -6,4 +6,4 @@ function s.initial_effect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_PIERCE) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511000595.lua b/unofficial/c511000595.lua index fa9e10cbb7..05545b0917 100644 --- a/unofficial/c511000595.lua +++ b/unofficial/c511000595.lua @@ -52,7 +52,7 @@ function s.initial_effect(c) end function s.retop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - if Duel.GetTurnPlayer()==tp and c:GetAttackedCount()==0 then + if Duel.IsTurnPlayer(tp) and c:GetAttackedCount()==0 then Duel.Damage(tp,800,REASON_EFFECT) end end @@ -82,4 +82,4 @@ end function s.damop2(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000596.lua b/unofficial/c511000596.lua index 89a738aa2c..a6cd17c478 100644 --- a/unofficial/c511000596.lua +++ b/unofficial/c511000596.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x155d)) e3:SetValue(300) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511000597.lua b/unofficial/c511000597.lua index 3692bbd7d1..8779d6aba5 100644 --- a/unofficial/c511000597.lua +++ b/unofficial/c511000597.lua @@ -32,9 +32,9 @@ function s.cfilter(c,...) return c:IsCode(...) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) - local rg1=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,511000596) - local rg2=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,511000594) - local rg3=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,511000593) + local rg1=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,511000596) + local rg2=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,511000594) + local rg3=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,511000593) local rg=rg1:Clone() rg:Merge(rg2) rg:Merge(rg3) @@ -60,4 +60,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.ShuffleDeck(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000598.lua b/unofficial/c511000598.lua index 7808180055..fc67ab9ce5 100644 --- a/unofficial/c511000598.lua +++ b/unofficial/c511000598.lua @@ -92,7 +92,7 @@ function s.skipcon(e) return Duel.GetTurnCount()~=e:GetLabel() end function s.turncon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.turnop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -115,4 +115,4 @@ function s.turnop(e,tp,eg,ep,ev,re,r,rp) end if re then re:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000599.lua b/unofficial/c511000599.lua index d3e623a1c4..1ae51da8c0 100644 --- a/unofficial/c511000599.lua +++ b/unofficial/c511000599.lua @@ -23,11 +23,11 @@ function s.filter(c,tp,turn) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA,0,1,nil,tp,Duel.GetTurnCount()) end + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE|LOCATION_REMOVED|LOCATION_EXTRA,0,1,nil,tp,Duel.GetTurnCount()) end end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA,0,nil,tp,Duel.GetTurnCount()) + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE|LOCATION_REMOVED|LOCATION_EXTRA,0,nil,tp,Duel.GetTurnCount()) local tc=g:GetFirst() while tc do if tc:IsPreviousPosition(POS_FACEUP_ATTACK) then @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000600.lua b/unofficial/c511000600.lua index 9c62836898..c6ce73ab48 100644 --- a/unofficial/c511000600.lua +++ b/unofficial/c511000600.lua @@ -77,4 +77,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) etc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000601.lua b/unofficial/c511000601.lua index 59e71a04c2..9343ff47fe 100644 --- a/unofficial/c511000601.lua +++ b/unofficial/c511000601.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.tgfilter(c) - return c:IsMonster() and c:IsAbleToGrave() and c:IsSetCard(0x5) + return c:IsMonster() and c:IsAbleToGrave() and c:IsSetCard(SET_ARCANA_FORCE) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil) end @@ -42,4 +42,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.cfil,nil,1-tp) local tc=g:GetFirst() Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000602.lua b/unofficial/c511000602.lua index 15e9d7c4de..23069023b7 100644 --- a/unofficial/c511000602.lua +++ b/unofficial/c511000602.lua @@ -35,7 +35,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return s[tp] end function s.spfilter(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0x5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and c:IsSetCard(SET_ARCANA_FORCE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000603.lua b/unofficial/c511000603.lua index 79b126f102..9aad4a95e5 100644 --- a/unofficial/c511000603.lua +++ b/unofficial/c511000603.lua @@ -27,4 +27,4 @@ function s.cfilter(c,tp) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000604.lua b/unofficial/c511000604.lua index 2abfeceecd..a5bd82b2ab 100644 --- a/unofficial/c511000604.lua +++ b/unofficial/c511000604.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000605.lua b/unofficial/c511000605.lua index 3f3ff93187..02ddf927de 100644 --- a/unofficial/c511000605.lua +++ b/unofficial/c511000605.lua @@ -30,7 +30,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCountLimit(1) e1:SetOperation(s.thop) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY then e1:SetCondition(s.skipcon) e1:SetLabel(Duel.GetTurnCount()) e1:SetReset(RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,2) @@ -65,4 +65,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if g2 then Duel.SendtoHand(g2,nil,REASON_EFFECT) end if tc1 then Duel.ConfirmCards(1-tp,tc1) end if tc2 then Duel.ConfirmCards(tp,tc2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000606.lua b/unofficial/c511000606.lua index 98ac2225dd..c32e66b73b 100644 --- a/unofficial/c511000606.lua +++ b/unofficial/c511000606.lua @@ -29,4 +29,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000607.lua b/unofficial/c511000607.lua index 30cb114103..7645ff93b9 100644 --- a/unofficial/c511000607.lua +++ b/unofficial/c511000607.lua @@ -65,4 +65,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) token:RegisterEffect(e2,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000609.lua b/unofficial/c511000609.lua index d8fe6311f4..bb258b7eac 100644 --- a/unofficial/c511000609.lua +++ b/unofficial/c511000609.lua @@ -38,4 +38,4 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(dg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000610.lua b/unofficial/c511000610.lua index 81b99658ea..cf4ba29b72 100644 --- a/unofficial/c511000610.lua +++ b/unofficial/c511000610.lua @@ -20,7 +20,7 @@ function s.rescon(sg,e,tp,mg) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(1) - local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,nil) + local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,nil) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-4 and #g>3 and aux.SelectUnselectGroup(g,e,tp,4,4,s.rescon,0) end local sg=aux.SelectUnselectGroup(g,e,tp,4,4,s.rescon,1,tp,HINTMSG_TOGRAVE) @@ -36,13 +36,13 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,nil) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,1,nil) and Duel.IsExistingMatchingCard(s.spfilter,tp,0x11,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) - local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil):GetFirst() + local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,1,1,nil):GetFirst() if not tc then return end local tpe=tc:GetType() local te=tc:GetActivateEffect() @@ -93,9 +93,9 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local sg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp) + local sg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,e,tp) if #sg>0 then Duel.BreakEffect() Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000611.lua b/unofficial/c511000611.lua index 600eff3f1f..300c7d86b9 100644 --- a/unofficial/c511000611.lua +++ b/unofficial/c511000611.lua @@ -58,4 +58,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000612.lua b/unofficial/c511000612.lua index 7107e78c09..dbb1b7e7f2 100644 --- a/unofficial/c511000612.lua +++ b/unofficial/c511000612.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000613.lua b/unofficial/c511000613.lua index 354ee1c661..857916e810 100644 --- a/unofficial/c511000613.lua +++ b/unofficial/c511000613.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else c:CancelToGrave(false) end -end +end \ No newline at end of file diff --git a/unofficial/c511000614.lua b/unofficial/c511000614.lua index 20b5aa55b7..0f6b36d42e 100644 --- a/unofficial/c511000614.lua +++ b/unofficial/c511000614.lua @@ -159,4 +159,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) and rc:IsRelateToEffect(re) then Duel.Destroy(rc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000615.lua b/unofficial/c511000615.lua index 646b7bad4c..b15432cba8 100644 --- a/unofficial/c511000615.lua +++ b/unofficial/c511000615.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil)*500 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000616.lua b/unofficial/c511000616.lua index a87e4e8da0..f506442b48 100644 --- a/unofficial/c511000616.lua +++ b/unofficial/c511000616.lua @@ -48,4 +48,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,1000,REASON_EFFECT) e:GetLabelObject():ResetFlagEffect(id) end -end +end \ No newline at end of file diff --git a/unofficial/c511000617.lua b/unofficial/c511000617.lua index bbce2cb6a2..0f085af0de 100644 --- a/unofficial/c511000617.lua +++ b/unofficial/c511000617.lua @@ -78,4 +78,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local tg=g:Filter(s.rmfilter,nil,e:GetLabel()) Duel.Remove(tg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000618.lua b/unofficial/c511000618.lua index 9156e2d80f..fec5437e2f 100644 --- a/unofficial/c511000618.lua +++ b/unofficial/c511000618.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)-Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Draw(p,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000619.lua b/unofficial/c511000619.lua index 2044153196..9bbfe0eb82 100644 --- a/unofficial/c511000619.lua +++ b/unofficial/c511000619.lua @@ -60,4 +60,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000620.lua b/unofficial/c511000620.lua index 8375db64e6..cdabbed02b 100644 --- a/unofficial/c511000620.lua +++ b/unofficial/c511000620.lua @@ -121,4 +121,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(g,REASON_EFFECT) g=g:Filter(s.senfilter,nil) Duel.SendtoGrave(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000621.lua b/unofficial/c511000621.lua index d0605bd3be..86e68b991d 100644 --- a/unofficial/c511000621.lua +++ b/unofficial/c511000621.lua @@ -53,4 +53,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.atktarget(e,c) return c:IsType(TYPE_SYNCHRO) -end +end \ No newline at end of file diff --git a/unofficial/c511000622.lua b/unofficial/c511000622.lua index 003471d62a..3faefa92f3 100644 --- a/unofficial/c511000622.lua +++ b/unofficial/c511000622.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000623.lua b/unofficial/c511000623.lua index ba4091fb1c..751c37cf0d 100644 --- a/unofficial/c511000623.lua +++ b/unofficial/c511000623.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000624.lua b/unofficial/c511000624.lua index 142255e1d9..763e07c629 100644 --- a/unofficial/c511000624.lua +++ b/unofficial/c511000624.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if #g~=2 or ft<2 then return end Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) -end +end \ No newline at end of file diff --git a/unofficial/c511000625.lua b/unofficial/c511000625.lua index 0b74e1a633..70244b8671 100644 --- a/unofficial/c511000625.lua +++ b/unofficial/c511000625.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.atkcon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_HAND,0)==0 -end +end \ No newline at end of file diff --git a/unofficial/c511000626.lua b/unofficial/c511000626.lua index 480a01256a..ac45aba077 100644 --- a/unofficial/c511000626.lua +++ b/unofficial/c511000626.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.defcon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_HAND,0)==0 -end +end \ No newline at end of file diff --git a/unofficial/c511000627.lua b/unofficial/c511000627.lua index a9c6967fdd..a8df6a6b0d 100644 --- a/unofficial/c511000627.lua +++ b/unofficial/c511000627.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,5,REASON_EFFECT) Duel.Draw(1-tp,5,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000629.lua b/unofficial/c511000629.lua index 3d1772e3da..2c10185949 100644 --- a/unofficial/c511000629.lua +++ b/unofficial/c511000629.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000630.lua b/unofficial/c511000630.lua index cea34a1d3f..9a07a6a37b 100644 --- a/unofficial/c511000630.lua +++ b/unofficial/c511000630.lua @@ -31,4 +31,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000631.lua b/unofficial/c511000631.lua index d640080e44..598087bd71 100644 --- a/unofficial/c511000631.lua +++ b/unofficial/c511000631.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(g2:GetFirst(),0,1-tp,1-tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000632.lua b/unofficial/c511000632.lua index 5fa41ad609..3a25150154 100644 --- a/unofficial/c511000632.lua +++ b/unofficial/c511000632.lua @@ -64,4 +64,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511000633.lua b/unofficial/c511000633.lua index 7d623908b9..9191a2ce9a 100644 --- a/unofficial/c511000633.lua +++ b/unofficial/c511000633.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_SKIP_DP) e1:SetReset(RESET_PHASE+PHASE_DRAW+RESET_OPPO_TURN) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000635.lua b/unofficial/c511000635.lua index 007379e845..c6e46b5692 100644 --- a/unofficial/c511000635.lua +++ b/unofficial/c511000635.lua @@ -26,5 +26,5 @@ function s.stage2(e,tc,tp,sg,chk) end function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE|LOCATION_GRAVE) end \ No newline at end of file diff --git a/unofficial/c511000636.lua b/unofficial/c511000636.lua index 5521b1f8a2..70514a1484 100644 --- a/unofficial/c511000636.lua +++ b/unofficial/c511000636.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000637.lua b/unofficial/c511000637.lua index 92a945ddf0..f39713919a 100644 --- a/unofficial/c511000637.lua +++ b/unofficial/c511000637.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511000638.lua b/unofficial/c511000638.lua index 8b49271ae5..308522561c 100644 --- a/unofficial/c511000638.lua +++ b/unofficial/c511000638.lua @@ -21,4 +21,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(nil,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000639.lua b/unofficial/c511000639.lua index 33600ff155..41e1dfe3f8 100644 --- a/unofficial/c511000639.lua +++ b/unofficial/c511000639.lua @@ -29,4 +29,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000640.lua b/unofficial/c511000640.lua index 8351aa7bfa..d8c76672db 100644 --- a/unofficial/c511000640.lua +++ b/unofficial/c511000640.lua @@ -21,4 +21,4 @@ function s.val(e,c) if not (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) then return end return c:IsFaceup() and c:IsRelateToBattle() and c:GetBattleTarget()~=nil and c:IsLevelBelow(4) and c:IsType(TYPE_FUSION) -end +end \ No newline at end of file diff --git a/unofficial/c511000641.lua b/unofficial/c511000641.lua index a0faa83a03..b1953f587b 100644 --- a/unofficial/c511000641.lua +++ b/unofficial/c511000641.lua @@ -46,5 +46,5 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) end end function s.tg(e,c) - return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsLevelBelow(4) and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_FUSION) -end + return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsLevelBelow(4) and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsFusionSummoned() +end \ No newline at end of file diff --git a/unofficial/c511000642.lua b/unofficial/c511000642.lua index 2684ec9dcb..2831b9b7ac 100644 --- a/unofficial/c511000642.lua +++ b/unofficial/c511000642.lua @@ -30,4 +30,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000643.lua b/unofficial/c511000643.lua index 74aea10b9f..0ba37c89bf 100644 --- a/unofficial/c511000643.lua +++ b/unofficial/c511000643.lua @@ -38,4 +38,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) end function s.tglimit(e,c) return c~=e:GetHandler() and c:IsAttribute(ATTRIBUTE_WATER) -end +end \ No newline at end of file diff --git a/unofficial/c511000644.lua b/unofficial/c511000644.lua index 4868e0014d..c3abe15f9e 100644 --- a/unofficial/c511000644.lua +++ b/unofficial/c511000644.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(1-tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000645.lua b/unofficial/c511000645.lua index b97c743ceb..11893ca787 100644 --- a/unofficial/c511000645.lua +++ b/unofficial/c511000645.lua @@ -32,4 +32,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) end Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000646.lua b/unofficial/c511000646.lua index 0cdd3ccf78..92f770414a 100644 --- a/unofficial/c511000646.lua +++ b/unofficial/c511000646.lua @@ -34,7 +34,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.coscond(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.costop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLP(tp)>=500 then diff --git a/unofficial/c511000647.lua b/unofficial/c511000647.lua index 5871e73c05..96fdc2edc3 100644 --- a/unofficial/c511000647.lua +++ b/unofficial/c511000647.lua @@ -74,4 +74,4 @@ function s.atklimit(e,tp,eg,ep,ev,re,r,rp) end function s.adval(e,c) return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)*1000 -end +end \ No newline at end of file diff --git a/unofficial/c511000648.lua b/unofficial/c511000648.lua index 65f65b8484..382c7c5941 100644 --- a/unofficial/c511000648.lua +++ b/unofficial/c511000648.lua @@ -33,4 +33,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000649.lua b/unofficial/c511000649.lua index 18d9e39223..c191891ae6 100644 --- a/unofficial/c511000649.lua +++ b/unofficial/c511000649.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) g:RemoveCard(sg:GetFirst()) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000650.lua b/unofficial/c511000650.lua index da5db9c1e7..65408485e2 100644 --- a/unofficial/c511000650.lua +++ b/unofficial/c511000650.lua @@ -62,4 +62,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511000651.lua b/unofficial/c511000651.lua index d50c04e3b0..fbe42e3d02 100644 --- a/unofficial/c511000651.lua +++ b/unofficial/c511000651.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Group.CreateGroup() Duel.ChangeTargetCard(ev,g) Duel.ChangeChainOperation(ev,s.repop) -end +end \ No newline at end of file diff --git a/unofficial/c511000652.lua b/unofficial/c511000652.lua index 07d47b9954..be0bbbec59 100644 --- a/unofficial/c511000652.lua +++ b/unofficial/c511000652.lua @@ -11,4 +11,4 @@ end s.listed_names={511000017} function s.dircon(e) return Duel.IsEnvironment(511000017) -end +end \ No newline at end of file diff --git a/unofficial/c511000653.lua b/unofficial/c511000653.lua index 67c70034a7..c1dcafaed5 100644 --- a/unofficial/c511000653.lua +++ b/unofficial/c511000653.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.tg(e,c) return c:IsRace(RACE_FAIRY) -end +end \ No newline at end of file diff --git a/unofficial/c511000655.lua b/unofficial/c511000655.lua index ae9e500e18..c41f2f0333 100644 --- a/unofficial/c511000655.lua +++ b/unofficial/c511000655.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Damage(1-tp,tc:GetLevel()*300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000656.lua b/unofficial/c511000656.lua index bce9b629e0..88c60c409b 100644 --- a/unofficial/c511000656.lua +++ b/unofficial/c511000656.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000657.lua b/unofficial/c511000657.lua index 34b7a19fdc..b4fb1dfb7a 100644 --- a/unofficial/c511000657.lua +++ b/unofficial/c511000657.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1,true) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511000658.lua b/unofficial/c511000658.lua index b64f17560b..a7b9db8935 100644 --- a/unofficial/c511000658.lua +++ b/unofficial/c511000658.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(1-tp,def,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000659.lua b/unofficial/c511000659.lua index 60e11fd31e..ca6b026975 100644 --- a/unofficial/c511000659.lua +++ b/unofficial/c511000659.lua @@ -50,4 +50,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) local e3=e2:Clone() d:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511000660.lua b/unofficial/c511000660.lua index 49610d6828..6a14ff63b0 100644 --- a/unofficial/c511000660.lua +++ b/unofficial/c511000660.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsLocation(LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA+LOCATION_ONFIELD) + return e:GetHandler():IsLocation(LOCATION_GRAVE|LOCATION_REMOVED|LOCATION_EXTRA|LOCATION_ONFIELD) end function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckLPCost(tp,800) end @@ -30,4 +30,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511000661.lua b/unofficial/c511000661.lua index 6801ac6ccb..12420b9f59 100644 --- a/unofficial/c511000661.lua +++ b/unofficial/c511000661.lua @@ -19,7 +19,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end end function s.filter(c) - return c:IsSetCard(0x16) and c:IsAbleToHand() + return c:IsSetCard(SET_ROID) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local rt=Duel.GetTargetCount(s.filter,tp,LOCATION_GRAVE,0,nil) @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sel,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sel) end -end +end \ No newline at end of file diff --git a/unofficial/c511000662.lua b/unofficial/c511000662.lua index fc84a1d210..1ee46c8ea9 100644 --- a/unofficial/c511000662.lua +++ b/unofficial/c511000662.lua @@ -14,10 +14,10 @@ function s.initial_effect(c) end s.listed_series={0x93} function s.cfilter(c) - return c:IsSetCard(0x93) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_CYBER) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.filter(c,e,tp) - return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0x93) and c:GetLevel()==10 + return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(SET_CYBER) and c:GetLevel()==10 end function s.mzfilter(c) return c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5 @@ -32,7 +32,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end local g=Duel.IsPlayerAffectedByEffect(tp,69832741) and Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE,0,nil) - or Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + or Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) end diff --git a/unofficial/c511000664.lua b/unofficial/c511000664.lua index e22c90ce88..7f28a904c6 100644 --- a/unofficial/c511000664.lua +++ b/unofficial/c511000664.lua @@ -37,7 +37,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCountLimit(1) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY then e1:SetLabel(Duel.GetTurnCount()) e1:SetCondition(s.retcon) e1:SetReset(RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,2) @@ -65,4 +65,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) end Duel.ReturnToField(ec) Duel.Equip(tp,c,ec) -end +end \ No newline at end of file diff --git a/unofficial/c511000665.lua b/unofficial/c511000665.lua index dc31bf16b5..8506e23de9 100644 --- a/unofficial/c511000665.lua +++ b/unofficial/c511000665.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,dam,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000666.lua b/unofficial/c511000666.lua index 6f397cfa34..b40d971431 100644 --- a/unofficial/c511000666.lua +++ b/unofficial/c511000666.lua @@ -30,4 +30,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c511000667.lua b/unofficial/c511000667.lua index fc9f47dcd6..7d65edfa91 100644 --- a/unofficial/c511000667.lua +++ b/unofficial/c511000667.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000668.lua b/unofficial/c511000668.lua index f8ccfa872f..60346cdf08 100644 --- a/unofficial/c511000668.lua +++ b/unofficial/c511000668.lua @@ -31,4 +31,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,500,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000669.lua b/unofficial/c511000669.lua index 74d602fd75..bebf4e134a 100644 --- a/unofficial/c511000669.lua +++ b/unofficial/c511000669.lua @@ -85,4 +85,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(re:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000670.lua b/unofficial/c511000670.lua index b3b2f3203f..ca22e212f2 100644 --- a/unofficial/c511000670.lua +++ b/unofficial/c511000670.lua @@ -107,4 +107,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000671.lua b/unofficial/c511000671.lua index 6f01943a09..12a97ec61c 100644 --- a/unofficial/c511000671.lua +++ b/unofficial/c511000671.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) eq:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000672.lua b/unofficial/c511000672.lua index 7f1549ebc2..0a1925c4f8 100644 --- a/unofficial/c511000672.lua +++ b/unofficial/c511000672.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511000673.lua b/unofficial/c511000673.lua index 0faceef851..c9c4f67cac 100644 --- a/unofficial/c511000673.lua +++ b/unofficial/c511000673.lua @@ -101,4 +101,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_DAMAGE) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000674.lua b/unofficial/c511000674.lua index 149af28591..b0f2db7376 100644 --- a/unofficial/c511000674.lua +++ b/unofficial/c511000674.lua @@ -35,17 +35,17 @@ function s.initial_effect(c) c:RegisterEffect(e4,false,REGISTER_FLAG_DETACH_XMAT) end function s.bttg(e,c) - return not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return not c:IsSpecialSummoned() end function s.atkfilter(e,c) - return c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsSpecialSummoned() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) end function s.filter(c) - return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsFaceup() and c:GetAttack()>0 + return c:IsSpecialSummoned() and c:IsFaceup() and c:GetAttack()>0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_MZONE,1,nil) end @@ -60,4 +60,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) e:GetHandler():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000676.lua b/unofficial/c511000676.lua index 17b23cbe56..c90772b270 100644 --- a/unofficial/c511000676.lua +++ b/unofficial/c511000676.lua @@ -15,7 +15,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return tp~=Duel.GetTurnPlayer() end function s.filter(c,e,tp) - return c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK)>0 then Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000677.lua b/unofficial/c511000677.lua index 363a250a38..cc768e9519 100644 --- a/unofficial/c511000677.lua +++ b/unofficial/c511000677.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsFaceup() and c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -28,4 +28,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000678.lua b/unofficial/c511000678.lua index 8dda1894fa..4f665f8cd6 100644 --- a/unofficial/c511000678.lua +++ b/unofficial/c511000678.lua @@ -17,7 +17,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.filter(c) - return c:IsSetCard(0x1034) and c:IsFaceup() + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsFaceup() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000679.lua b/unofficial/c511000679.lua index b33d5f3a79..099e0f728c 100644 --- a/unofficial/c511000679.lua +++ b/unofficial/c511000679.lua @@ -26,14 +26,14 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_HAND,0,1,nil,0x1034) + if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_HAND,0,1,nil,SET_CRYSTAL_BEAST) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end end function s.activate(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_SZONE) if ft<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) - local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_HAND,0,ft,ft,nil,0x1034) + local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_HAND,0,ft,ft,nil,SET_CRYSTAL_BEAST) if #g>0 then local tc=g:GetFirst() while tc do @@ -48,7 +48,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end Duel.RaiseEvent(g,47408488,e,0,tp,0,0) - local d=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_SZONE,0,nil,0x1034)*500 + local d=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_SZONE,0,nil,SET_CRYSTAL_BEAST)*500 Duel.Damage(1-tp,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000680.lua b/unofficial/c511000680.lua index ca3071be8b..684a8de38f 100644 --- a/unofficial/c511000680.lua +++ b/unofficial/c511000680.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000682.lua b/unofficial/c511000682.lua index 91da015669..bf32ddb238 100644 --- a/unofficial/c511000682.lua +++ b/unofficial/c511000682.lua @@ -16,7 +16,7 @@ function s.cfilter(c,rk) end function s.filter(c,tp) local rk=c:GetRank() - return c:IsFaceup() and c:IsSetCard(0x48) and not Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil,rk) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) and not Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil,rk) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(tc,c) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000683.lua b/unofficial/c511000683.lua index 64c2abc440..778560b5ad 100644 --- a/unofficial/c511000683.lua +++ b/unofficial/c511000683.lua @@ -1,7 +1,7 @@ --Number Frame local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,0,aux.FilterBoolFunction(Card.IsSetCard,0x7f),nil,nil,nil,s.op) + aux.AddEquipProcedure(c,0,aux.FilterBoolFunction(Card.IsSetCard,SET_UTOPIC),nil,nil,nil,s.op) --Atk local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_EQUIP) @@ -13,11 +13,11 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tc=Duel.GetFirstTarget() if c:IsRelateToEffect(e) and tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then - local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_EXTRA,0,nil,0x48) + local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_EXTRA,0,nil,SET_NUMBER) if #g>=2 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) local og=g:Select(tp,2,2,nil) Duel.Overlay(tc,og) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000684.lua b/unofficial/c511000684.lua index 3d8e47412a..a5aec074ea 100644 --- a/unofficial/c511000684.lua +++ b/unofficial/c511000684.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(ct+1) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000685.lua b/unofficial/c511000685.lua index b342a2a08a..885491e036 100644 --- a/unofficial/c511000685.lua +++ b/unofficial/c511000685.lua @@ -70,4 +70,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(sg:GetFirst(),ovg) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000686.lua b/unofficial/c511000686.lua index 75cbd0b7b0..e05edbed60 100644 --- a/unofficial/c511000686.lua +++ b/unofficial/c511000686.lua @@ -75,4 +75,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc2:RegisterEffect(e4,true) tc2:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000687.lua b/unofficial/c511000687.lua index 42d4804ffb..0c84f17d6e 100644 --- a/unofficial/c511000687.lua +++ b/unofficial/c511000687.lua @@ -71,4 +71,4 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000688.lua b/unofficial/c511000688.lua index bbc3d49c58..0e180c94e5 100644 --- a/unofficial/c511000688.lua +++ b/unofficial/c511000688.lua @@ -15,4 +15,4 @@ function s.filter(c) end function s.atkval(e,c) return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,nil)*400 -end +end \ No newline at end of file diff --git a/unofficial/c511000690.lua b/unofficial/c511000690.lua index 3c9d6e7a77..82029c72d8 100644 --- a/unofficial/c511000690.lua +++ b/unofficial/c511000690.lua @@ -33,4 +33,4 @@ function s.diract(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000691.lua b/unofficial/c511000691.lua index e05899abbc..440ce4f930 100644 --- a/unofficial/c511000691.lua +++ b/unofficial/c511000691.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,g1) Duel.SendtoHand(g1,1-tp,REASON_EFFECT) Duel.SendtoHand(g2,tp,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000692.lua b/unofficial/c511000692.lua index 3de0fb4a72..743a454bed 100644 --- a/unofficial/c511000692.lua +++ b/unofficial/c511000692.lua @@ -64,4 +64,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsPosition,tp,LOCATION_MZONE,0,nil,POS_FACEUP_ATTACK) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000693.lua b/unofficial/c511000693.lua index 9843aeddf3..55eb012631 100644 --- a/unofficial/c511000693.lua +++ b/unofficial/c511000693.lua @@ -71,4 +71,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000694.lua b/unofficial/c511000694.lua index 177e3d98c2..3d28304c33 100644 --- a/unofficial/c511000694.lua +++ b/unofficial/c511000694.lua @@ -35,7 +35,7 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end function s.dpop(e,tp,eg,ep,ev,re,r,rp) - if Duel.GetTurnPlayer()==tp and Duel.SelectYesNo(tp,aux.Stringid(51670553,0)) then + if Duel.IsTurnPlayer(tp) and Duel.SelectYesNo(tp,aux.Stringid(51670553,0)) then Duel.SkipPhase(tp,PHASE_DRAW,RESET_PHASE+PHASE_DRAW,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000695.lua b/unofficial/c511000695.lua index 2dab07f127..55feeab07d 100644 --- a/unofficial/c511000695.lua +++ b/unofficial/c511000695.lua @@ -50,4 +50,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsPlayerCanSpecialSummonMonster(tp,id+1,0,TYPES_TOKEN,1200,0,4,RACE_INSECT,ATTRIBUTE_EARTH) then return end local token=Duel.CreateToken(tp,id+1) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_ATTACK) -end +end \ No newline at end of file diff --git a/unofficial/c511000697.lua b/unofficial/c511000697.lua index a29836e341..0ef041e4b2 100644 --- a/unofficial/c511000697.lua +++ b/unofficial/c511000697.lua @@ -39,7 +39,7 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() Duel.SendtoGrave(c,REASON_EFFECT|REASON_REPLACE) - if Duel.GetTurnPlayer()==tp and Duel.IsBattlePhase() then + if Duel.IsTurnPlayer(tp) and Duel.IsBattlePhase() then if Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATKDEF) local ec=c:GetPreviousEquipTarget() @@ -67,4 +67,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ec:RegisterEffect(e3) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000698.lua b/unofficial/c511000698.lua index 87b1d12d96..711dc92d21 100644 --- a/unofficial/c511000698.lua +++ b/unofficial/c511000698.lua @@ -45,4 +45,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local xyz=xyzg:Select(tp,1,1,nil):GetFirst() Duel.XyzSummon(tp,xyz,matg,matg,3,3) end -end +end \ No newline at end of file diff --git a/unofficial/c511000699.lua b/unofficial/c511000699.lua index 359b53fae8..1b5b4da2b2 100644 --- a/unofficial/c511000699.lua +++ b/unofficial/c511000699.lua @@ -68,4 +68,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) te:SetCountLimit(ctmax,{ctcode,hopt},ctflag) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000700.lua b/unofficial/c511000700.lua index 24cd90bded..ced08304e6 100644 --- a/unofficial/c511000700.lua +++ b/unofficial/c511000700.lua @@ -33,7 +33,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end s.listed_series={0x48} function s.cfilter(c) - return c:IsSetCard(0x48) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP) + return c:IsSetCard(SET_NUMBER) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP) and (c:GetReason()&REASON_DESTROY)==REASON_DESTROY end function s.checkop(e,tp,eg,ep,ev,re,r,rp) @@ -93,4 +93,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000701.lua b/unofficial/c511000701.lua index 3c4729904c..d4b87506ff 100644 --- a/unofficial/c511000701.lua +++ b/unofficial/c511000701.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) g:GetFirst():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000702.lua b/unofficial/c511000702.lua index 16f3b59936..a0072020f3 100644 --- a/unofficial/c511000702.lua +++ b/unofficial/c511000702.lua @@ -27,4 +27,4 @@ s.listed_names={511000706} function s.spcon(e,c) if c==nil then return true end return not Duel.IsEnvironment(511000706) and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000703.lua b/unofficial/c511000703.lua index 531998ec56..fd986f4fa4 100644 --- a/unofficial/c511000703.lua +++ b/unofficial/c511000703.lua @@ -27,4 +27,4 @@ s.listed_names={511000706} function s.spcon(e,c) if c==nil then return true end return not Duel.IsEnvironment(511000706) and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000704.lua b/unofficial/c511000704.lua index a4c45eed53..92c0f5c667 100644 --- a/unofficial/c511000704.lua +++ b/unofficial/c511000704.lua @@ -27,4 +27,4 @@ s.listed_names={511000706} function s.spcon(e,c) if c==nil then return true end return not Duel.IsEnvironment(511000706) and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000705.lua b/unofficial/c511000705.lua index 71864480c1..f7ad48930e 100644 --- a/unofficial/c511000705.lua +++ b/unofficial/c511000705.lua @@ -17,4 +17,4 @@ function s.initial_effect(c) e4:SetCode(EFFECT_SET_DEFENSE_FINAL) c:RegisterEffect(e4) end -s.material_setcode={0xdd,0x550} +s.material_setcode={0xdd,0x550} \ No newline at end of file diff --git a/unofficial/c511000706.lua b/unofficial/c511000706.lua index 1da4603caa..cbe3b28ae0 100644 --- a/unofficial/c511000706.lua +++ b/unofficial/c511000706.lua @@ -16,4 +16,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_DISABLE) c:RegisterEffect(e2) end -s.listed_series={0x550} +s.listed_series={0x550} \ No newline at end of file diff --git a/unofficial/c511000707.lua b/unofficial/c511000707.lua index 159e44cf7e..ccb4677932 100644 --- a/unofficial/c511000707.lua +++ b/unofficial/c511000707.lua @@ -27,4 +27,4 @@ s.listed_names={511000706} function s.spcon(e,c) if c==nil then return true end return not Duel.IsEnvironment(511000706) and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000708.lua b/unofficial/c511000708.lua index 2c2bb40e7e..dcd6e28ce8 100644 --- a/unofficial/c511000708.lua +++ b/unofficial/c511000708.lua @@ -80,4 +80,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.leaveop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(e:GetHandler(),nil,-2,REASON_RULE) -end +end \ No newline at end of file diff --git a/unofficial/c511000709.lua b/unofficial/c511000709.lua index 98f99f989c..fa60160f0f 100644 --- a/unofficial/c511000709.lua +++ b/unofficial/c511000709.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsFacedown() and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000710.lua b/unofficial/c511000710.lua index ae8b706e14..25d97d9785 100644 --- a/unofficial/c511000710.lua +++ b/unofficial/c511000710.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.distarget(e,c) return c~=e:GetHandler() and c:IsSpellTrap() and c:GetFlagEffect(id)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511000711.lua b/unofficial/c511000711.lua index 2acf60908e..793157a273 100644 --- a/unofficial/c511000711.lua +++ b/unofficial/c511000711.lua @@ -16,4 +16,4 @@ function s.dcon(e,tp,eg,ep,ev,re,r,rp) end function s.dop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,ev*2) -end +end \ No newline at end of file diff --git a/unofficial/c511000712.lua b/unofficial/c511000712.lua index ffd11707d9..b15ee0b631 100644 --- a/unofficial/c511000712.lua +++ b/unofficial/c511000712.lua @@ -38,4 +38,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000713.lua b/unofficial/c511000713.lua index cc3ee4cd9b..2d5e5ecf9f 100644 --- a/unofficial/c511000713.lua +++ b/unofficial/c511000713.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.CalculateDamage(tc,tg) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000714.lua b/unofficial/c511000714.lua index 1a94200a1d..2a3779d9b2 100644 --- a/unofficial/c511000714.lua +++ b/unofficial/c511000714.lua @@ -47,4 +47,4 @@ function s.ddop(e,tp,eg,ep,ev,re,r,rp) Duel.DiscardDeck(p,5,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000715.lua b/unofficial/c511000715.lua index 03e1a8995d..cd0c3700f7 100644 --- a/unofficial/c511000715.lua +++ b/unofficial/c511000715.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000717.lua b/unofficial/c511000717.lua index dd12c04311..0436afef4f 100644 --- a/unofficial/c511000717.lua +++ b/unofficial/c511000717.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ac=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000718.lua b/unofficial/c511000718.lua index ec73f7fe29..6f1d427401 100644 --- a/unofficial/c511000718.lua +++ b/unofficial/c511000718.lua @@ -117,4 +117,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(nil,tp,LOCATION_MZONE,LOCATION_MZONE,ats):RandomSelect(tp,1) Duel.ChangeAttackTarget(g:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511000719.lua b/unofficial/c511000719.lua index 9e8a8d5e82..9285b58bcf 100644 --- a/unofficial/c511000719.lua +++ b/unofficial/c511000719.lua @@ -25,4 +25,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) e1:SetValue(300) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000720.lua b/unofficial/c511000720.lua index 8e443fa5bd..e9a47fda77 100644 --- a/unofficial/c511000720.lua +++ b/unofficial/c511000720.lua @@ -25,4 +25,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) e1:SetValue(1000) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000721.lua b/unofficial/c511000721.lua index 2b3900b2e6..830b57f9ba 100644 --- a/unofficial/c511000721.lua +++ b/unofficial/c511000721.lua @@ -27,4 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000722.lua b/unofficial/c511000722.lua index 639c711726..90f271f01a 100644 --- a/unofficial/c511000722.lua +++ b/unofficial/c511000722.lua @@ -46,4 +46,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.cfilter,e:GetHandler():GetControler(),LOCATION_ONFIELD,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511000723.lua b/unofficial/c511000723.lua index 3b7589e460..1197fa3c51 100644 --- a/unofficial/c511000723.lua +++ b/unofficial/c511000723.lua @@ -74,4 +74,4 @@ function s.cbcon(e,tp,eg,ep,ev,re,r,rp) end function s.cbop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(Duel.GetAttacker(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000724.lua b/unofficial/c511000724.lua index 56a8398d0b..5530b13b26 100644 --- a/unofficial/c511000724.lua +++ b/unofficial/c511000724.lua @@ -37,4 +37,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.GetFlagEffect(0,id) Duel.Damage(1-tp,ct*500,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000726.lua b/unofficial/c511000726.lua index 3f261d2692..64c80a4bd4 100644 --- a/unofficial/c511000726.lua +++ b/unofficial/c511000726.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(e:GetHandler(),eg:GetFirst():GetControler(),REASON_EFFECT) Duel.BreakEffect() Duel.DiscardDeck(eg:GetFirst():GetControler(),3,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000727.lua b/unofficial/c511000727.lua index bbd21c6cfc..20c72b5474 100644 --- a/unofficial/c511000727.lua +++ b/unofficial/c511000727.lua @@ -56,4 +56,4 @@ function s.dirfilter(c) end function s.dirtg(e,c) return not Duel.IsExistingMatchingCard(s.dirfilter,c:GetControler(),0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511000728.lua b/unofficial/c511000728.lua index 012bf48e3f..28f4e43cd2 100644 --- a/unofficial/c511000728.lua +++ b/unofficial/c511000728.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk,chkc) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000729.lua b/unofficial/c511000729.lua index dcc211dcf4..af4007c231 100644 --- a/unofficial/c511000729.lua +++ b/unofficial/c511000729.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.befilter(c) return c:GetFlagEffect(id)~=0 and c:CanAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511000730.lua b/unofficial/c511000730.lua index c563df6ab2..a75cdcf15d 100644 --- a/unofficial/c511000730.lua +++ b/unofficial/c511000730.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,true,false,tc:GetPosition()) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000731.lua b/unofficial/c511000731.lua index 003d17aea1..aba3f55269 100644 --- a/unofficial/c511000731.lua +++ b/unofficial/c511000731.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) e3:SetType(EFFECT_TYPE_EQUIP) e3:SetCode(EFFECT_PIERCE) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511000732.lua b/unofficial/c511000732.lua index 9641abd6c0..0ac5ea00cc 100644 --- a/unofficial/c511000732.lua +++ b/unofficial/c511000732.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000733.lua b/unofficial/c511000733.lua index b0578d9b7c..d36a5ab128 100644 --- a/unofficial/c511000733.lua +++ b/unofficial/c511000733.lua @@ -66,4 +66,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000734.lua b/unofficial/c511000734.lua index 619a8c6301..6dbd13afa3 100644 --- a/unofficial/c511000734.lua +++ b/unofficial/c511000734.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.spfilter(c,e,tp) return c:IsLevelBelow(4) and c:IsRace(RACE_REPTILE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -38,4 +38,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,1-tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000735.lua b/unofficial/c511000735.lua index cb1c6faf3c..6377d1474f 100644 --- a/unofficial/c511000735.lua +++ b/unofficial/c511000735.lua @@ -41,4 +41,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000736.lua b/unofficial/c511000736.lua index 8f221c6d7e..58fe1ed308 100644 --- a/unofficial/c511000736.lua +++ b/unofficial/c511000736.lua @@ -43,4 +43,4 @@ end function s.regop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Draw(tp,e:GetLabel(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000737.lua b/unofficial/c511000737.lua index 487d85dff2..2d416953c4 100644 --- a/unofficial/c511000737.lua +++ b/unofficial/c511000737.lua @@ -45,4 +45,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000738.lua b/unofficial/c511000738.lua index 64e207118e..4a5c3062bf 100644 --- a/unofficial/c511000738.lua +++ b/unofficial/c511000738.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) e1:SetCode(EVENT_FREE_CHAIN) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetOperation(s.operation) c:RegisterEffect(e1) end @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(800) a:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000740.lua b/unofficial/c511000740.lua index 716d68916f..bf0b3b6624 100644 --- a/unofficial/c511000740.lua +++ b/unofficial/c511000740.lua @@ -24,4 +24,4 @@ function s.indop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD) rc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000743.lua b/unofficial/c511000743.lua index 1735045b4d..3a65c0b1b7 100644 --- a/unofficial/c511000743.lua +++ b/unofficial/c511000743.lua @@ -33,4 +33,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000744.lua b/unofficial/c511000744.lua index a283041477..d9b0460494 100644 --- a/unofficial/c511000744.lua +++ b/unofficial/c511000744.lua @@ -34,7 +34,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then local c=e:GetHandler() local tuners=Duel.GetMatchingGroup(s.tunerfilter,tp,LOCATION_MZONE,0,nil) - local nontuners=Duel.GetMatchingGroup(s.matfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil) + local nontuners=Duel.GetMatchingGroup(s.matfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,nil) local reset={} for tc in aux.Next(tuners) do local e1=Effect.CreateEffect(c) @@ -71,7 +71,7 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tuners=Duel.GetMatchingGroup(s.tunerfilter,tp,LOCATION_MZONE,0,nil) - local nontuners=Duel.GetMatchingGroup(s.matfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil) + local nontuners=Duel.GetMatchingGroup(s.matfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,nil) local reset={} for tc in aux.Next(tuners) do local e1=Effect.CreateEffect(c) @@ -120,4 +120,4 @@ end function s.syncheck(e,c) c:AssumeProperty(ASSUME_LEVEL,2) return true -end +end \ No newline at end of file diff --git a/unofficial/c511000745.lua b/unofficial/c511000745.lua index 248a7382e9..f9ffbec5f0 100644 --- a/unofficial/c511000745.lua +++ b/unofficial/c511000745.lua @@ -40,4 +40,4 @@ function s.atkop(e) c:RegisterEffect(e1) end return false -end +end \ No newline at end of file diff --git a/unofficial/c511000746.lua b/unofficial/c511000746.lua index bb6656abc3..b3496b22b5 100644 --- a/unofficial/c511000746.lua +++ b/unofficial/c511000746.lua @@ -24,4 +24,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(0,1) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e1,p) -end +end \ No newline at end of file diff --git a/unofficial/c511000747.lua b/unofficial/c511000747.lua index 9819833844..30226a4260 100644 --- a/unofficial/c511000747.lua +++ b/unofficial/c511000747.lua @@ -35,4 +35,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local tc=g:GetFirst() Duel.Damage(1-tp,tc:GetLevel()*100,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000748.lua b/unofficial/c511000748.lua index bc7fe6bd4d..7acd219da7 100644 --- a/unofficial/c511000748.lua +++ b/unofficial/c511000748.lua @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000749.lua b/unofficial/c511000749.lua index 3668627926..0a144c211a 100644 --- a/unofficial/c511000749.lua +++ b/unofficial/c511000749.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sp=rg:Select(tp,1,1,nil) Duel.SpecialSummon(sp,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000750.lua b/unofficial/c511000750.lua index 31fd6653fb..9ffb59f72f 100644 --- a/unofficial/c511000750.lua +++ b/unofficial/c511000750.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000751.lua b/unofficial/c511000751.lua index 7d0b94738b..d5c6d8b9f5 100644 --- a/unofficial/c511000751.lua +++ b/unofficial/c511000751.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) e4:SetCategory(CATEGORY_TOHAND) e4:SetType(EFFECT_TYPE_IGNITION) e4:SetRange(LOCATION_GRAVE) - e4:SetCost(aux.bfgcost) + e4:SetCost(Cost.SelfBanish) e4:SetTarget(s.thtg) e4:SetOperation(s.thop) c:RegisterEffect(e4) @@ -30,4 +30,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,tp,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000752.lua b/unofficial/c511000752.lua index dddd64c5c1..edacd808a1 100644 --- a/unofficial/c511000752.lua +++ b/unofficial/c511000752.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000753.lua b/unofficial/c511000753.lua index 2d9dea616d..87713975bf 100644 --- a/unofficial/c511000753.lua +++ b/unofficial/c511000753.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0x43} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x43) + return c:IsFaceup() and c:IsSetCard(SET_JUNK) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil)*500 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000754.lua b/unofficial/c511000754.lua index eb3ed64ad7..2574425283 100644 --- a/unofficial/c511000754.lua +++ b/unofficial/c511000754.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(dg2) Duel.Destroy(dg2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000755.lua b/unofficial/c511000755.lua index 54877b8b5c..c73fedb68f 100644 --- a/unofficial/c511000755.lua +++ b/unofficial/c511000755.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000756.lua b/unofficial/c511000756.lua index 81fca60e2f..755404f33a 100644 --- a/unofficial/c511000756.lua +++ b/unofficial/c511000756.lua @@ -32,4 +32,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000757.lua b/unofficial/c511000757.lua index d2b8f84486..c3bcea693d 100644 --- a/unofficial/c511000757.lua +++ b/unofficial/c511000757.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000758.lua b/unofficial/c511000758.lua index 689733bd1a..9ca7293e2a 100644 --- a/unofficial/c511000758.lua +++ b/unofficial/c511000758.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UPDATE_LEVEL) e3:SetValue(-1) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511000759.lua b/unofficial/c511000759.lua index 6f69b9740f..396b0f0673 100644 --- a/unofficial/c511000759.lua +++ b/unofficial/c511000759.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) for ec in aux.Next(eg) do - Duel.RegisterFlagEffect(ec:GetControler(),id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ec:GetControler(),id,RESET_PHASE|PHASE_END,0,1) end end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -71,4 +71,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:CancelToGrave() Duel.SynchroSummon(tp,sc,c,mg) end -end +end \ No newline at end of file diff --git a/unofficial/c511000760.lua b/unofficial/c511000760.lua index 1c99d5ba43..25760aea94 100644 --- a/unofficial/c511000760.lua +++ b/unofficial/c511000760.lua @@ -11,13 +11,13 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end @@ -128,4 +128,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(p) end -end +end \ No newline at end of file diff --git a/unofficial/c511000761.lua b/unofficial/c511000761.lua index 9d97202b78..3b592fe3c4 100644 --- a/unofficial/c511000761.lua +++ b/unofficial/c511000761.lua @@ -30,4 +30,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000762.lua b/unofficial/c511000762.lua index 42649459fa..0ac91b8018 100644 --- a/unofficial/c511000762.lua +++ b/unofficial/c511000762.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil)*400 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000763.lua b/unofficial/c511000763.lua index 8eeeb78752..a25d019aad 100644 --- a/unofficial/c511000763.lua +++ b/unofficial/c511000763.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,math.abs(lv-tclv)*200,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000764.lua b/unofficial/c511000764.lua index 56749a03f1..0a45835106 100644 --- a/unofficial/c511000764.lua +++ b/unofficial/c511000764.lua @@ -23,4 +23,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_HAND,LOCATION_HAND,nil) Duel.SendtoGrave(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000765.lua b/unofficial/c511000765.lua index fcca7197ad..6e09be687b 100644 --- a/unofficial/c511000765.lua +++ b/unofficial/c511000765.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) end function s.filter(c,e,tp) if not c:IsType(TYPE_SYNCHRO) then return false end - return Duel.IsExistingMatchingCard(s.matfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,tp,c) + return Duel.IsExistingMatchingCard(s.matfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,tp,c) end function s.matfilter1(c,tp,syncard) local loc @@ -34,7 +34,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local tc=g:Select(tp,1,1,nil):GetFirst() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL) - local g1=Duel.SelectMatchingCard(tp,s.matfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,tp,tc) + local g1=Duel.SelectMatchingCard(tp,s.matfilter1,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,tp,tc) local loc if g1:GetFirst():IsLocation(LOCATION_MZONE) then loc=LOCATION_GRAVE else loc=LOCATION_MZONE end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SMATERIAL) @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) g2:Merge(g1) Duel.SynchroSummon(tp,tc,nil,g2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000767.lua b/unofficial/c511000767.lua index 205149d9dd..ea9070bfe4 100644 --- a/unofficial/c511000767.lua +++ b/unofficial/c511000767.lua @@ -18,4 +18,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511000769.lua b/unofficial/c511000769.lua index 346fc1daa3..d847889825 100644 --- a/unofficial/c511000769.lua +++ b/unofficial/c511000769.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.toss_coin=true function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.CountHeads(Duel.TossCoin(tp,3)) diff --git a/unofficial/c511000770.lua b/unofficial/c511000770.lua index 0cbbbacf08..5ae4cbfca3 100644 --- a/unofficial/c511000770.lua +++ b/unofficial/c511000770.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --Synchro summon - Synchro.AddProcedure(c,nil,1,1,Synchro.NonTunerEx(Card.IsSetCard,0x9a),1,99) + Synchro.AddProcedure(c,nil,1,1,Synchro.NonTunerEx(Card.IsSetCard,SET_SUPERHEAVY_SAMURAI),1,99) c:EnableReviveLimit() --Attack while in Defense position local e1=Effect.CreateEffect(c) @@ -109,4 +109,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(LOCATION_REMOVED) tc:RegisterEffect(e1,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511000772.lua b/unofficial/c511000772.lua index a33366f706..e5b4e2d612 100644 --- a/unofficial/c511000772.lua +++ b/unofficial/c511000772.lua @@ -86,4 +86,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.RDComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000773.lua b/unofficial/c511000773.lua index 72c0df1b6e..bc3607864b 100644 --- a/unofficial/c511000773.lua +++ b/unofficial/c511000773.lua @@ -76,4 +76,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000774.lua b/unofficial/c511000774.lua index 89a4e01ec3..18c722b82d 100644 --- a/unofficial/c511000774.lua +++ b/unofficial/c511000774.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_GRAVE) - e3:SetCost(aux.bfgcost) + e3:SetCost(Cost.SelfBanish) e3:SetTarget(s.sptg) e3:SetOperation(s.spop) c:RegisterEffect(e3) @@ -47,7 +47,7 @@ function s.value(e,c) return c:IsLocation(LOCATION_ONFIELD) and c:IsControler(e:GetHandlerPlayer()) end function s.desop(e,tp,eg,ep,ev,re,r,rp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) Duel.RaiseEvent(e:GetHandler(),id,e,0,0,tp,0) end function s.con(e,tp,eg,ep,ev,re,r,rp) @@ -66,7 +66,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():SetLabel(0) end function s.filter(c,e,tp) - return c:IsSetCard(0xa3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_STARDUST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc,e,tp) end @@ -81,4 +81,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000775.lua b/unofficial/c511000775.lua index 7510808db0..9a86944d40 100644 --- a/unofficial/c511000775.lua +++ b/unofficial/c511000775.lua @@ -12,10 +12,10 @@ function s.initial_effect(c) end s.listed_series={0x33} function s.spfilter(c,e,tp,tid) - return c:IsSetCard(0x33) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetTurnID()==tid and c:IsReason(REASON_DESTROY) + return c:IsSetCard(SET_BLACKWING) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetTurnID()==tid and c:IsReason(REASON_DESTROY) end function s.eqfilter(c) - return c:IsFaceup() and c:IsSetCard(0x33) + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tid=Duel.GetTurnCount() @@ -60,4 +60,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return e:GetLabelObject()==c -end +end \ No newline at end of file diff --git a/unofficial/c511000776.lua b/unofficial/c511000776.lua index 30cb33ed1f..760f5ffb16 100644 --- a/unofficial/c511000776.lua +++ b/unofficial/c511000776.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(atk) e2:SetReset(RESET_EVENT+RESETS_STANDARD) a:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000777.lua b/unofficial/c511000777.lua index cb68230bd3..48bb15b86e 100644 --- a/unofficial/c511000777.lua +++ b/unofficial/c511000777.lua @@ -17,7 +17,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) and Duel.GetAttacker():IsStatus(STATUS_OPPO_BATTLE) end function s.costfilter(c) - return c:IsSetCard(0x33) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_BLACKWING) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end @@ -57,4 +57,4 @@ function s.discon(e) end function s.distg(e,c) return c==e:GetLabelObject():GetBattleTarget() -end +end \ No newline at end of file diff --git a/unofficial/c511000778.lua b/unofficial/c511000778.lua index 86279407a0..631ed2b20e 100644 --- a/unofficial/c511000778.lua +++ b/unofficial/c511000778.lua @@ -64,4 +64,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tg=c:GetEquipTarget() Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000779.lua b/unofficial/c511000779.lua index cee16b556b..1d1c6bdc3c 100644 --- a/unofficial/c511000779.lua +++ b/unofficial/c511000779.lua @@ -46,4 +46,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local ct=eg:FilterCount(s.cfilter,nil,tp) Duel.Damage(1-tp,ct*300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000780.lua b/unofficial/c511000780.lua index 26cf466ba0..afb4c21021 100644 --- a/unofficial/c511000780.lua +++ b/unofficial/c511000780.lua @@ -51,7 +51,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCode(100100090) e1:SetTargetRange(1,0) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e1:SetLabel(Duel.GetTurnCount()) e1:SetCondition(s.turncon1) res=4 @@ -104,4 +104,4 @@ function s.turnop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():Reset() if re then re:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000781.lua b/unofficial/c511000781.lua index 4899bf59e6..75711a86a2 100644 --- a/unofficial/c511000781.lua +++ b/unofficial/c511000781.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetFieldGroupCount(tp,LOCATION_HAND+LOCATION_ONFIELD,0)<=1 + return Duel.GetFieldGroupCount(tp,LOCATION_HAND|LOCATION_ONFIELD,0)<=1 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp) end @@ -41,4 +41,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000782.lua b/unofficial/c511000782.lua index bdb73c9643..eb526708fa 100644 --- a/unofficial/c511000782.lua +++ b/unofficial/c511000782.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsBattlePhase() and not Duel.GetAttacker() and Duel.GetTurnPlayer()==tp + return Duel.IsBattlePhase() and not Duel.GetAttacker() and Duel.IsTurnPlayer(tp) end function s.filter(c) return c:IsPosition(POS_FACEUP_ATTACK) and c:CanAttack() @@ -107,4 +107,4 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():SetCountLimit(1) end e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511000783.lua b/unofficial/c511000783.lua index d64178c6c6..337cbd7cbf 100644 --- a/unofficial/c511000783.lua +++ b/unofficial/c511000783.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetFieldGroupCount(tp,LOCATION_HAND+LOCATION_ONFIELD,0)<=1 + return Duel.GetFieldGroupCount(tp,LOCATION_HAND|LOCATION_ONFIELD,0)<=1 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp) and Duel.GetMatchingGroupCount(Card.IsFaceup,tp,0,LOCATION_ONFIELD,nil)>0 end @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetMatchingGroupCount(Card.IsFaceup,tp,0,LOCATION_ONFIELD,nil) Duel.Draw(p,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000784.lua b/unofficial/c511000784.lua index 24e8eaec74..597f111491 100644 --- a/unofficial/c511000784.lua +++ b/unofficial/c511000784.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0) Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000785.lua b/unofficial/c511000785.lua index 929a3e772e..56b9d73bad 100644 --- a/unofficial/c511000785.lua +++ b/unofficial/c511000785.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) end s.listed_series={0x26} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x26) + return c:IsFaceup() and c:IsSetCard(SET_MORPHTRONIC) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil):RandomSelect(tp,1) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) -end +end \ No newline at end of file diff --git a/unofficial/c511000786.lua b/unofficial/c511000786.lua index be815ab94b..b0cfe46efd 100644 --- a/unofficial/c511000786.lua +++ b/unofficial/c511000786.lua @@ -147,4 +147,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000787.lua b/unofficial/c511000787.lua index de166090b1..6f6a189ed4 100644 --- a/unofficial/c511000787.lua +++ b/unofficial/c511000787.lua @@ -28,4 +28,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000788.lua b/unofficial/c511000788.lua index eb80fb645e..f6e575e88d 100644 --- a/unofficial/c511000788.lua +++ b/unofficial/c511000788.lua @@ -9,14 +9,14 @@ function s.initial_effect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) end s.listed_series={0x123} function s.filter(c,e,tp) - return c:IsSetCard(0x123) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ROSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000789.lua b/unofficial/c511000789.lua index 7f88e9d3a1..5a20772b2a 100644 --- a/unofficial/c511000789.lua +++ b/unofficial/c511000789.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000790.lua b/unofficial/c511000790.lua index b8bf230059..9cac101752 100644 --- a/unofficial/c511000790.lua +++ b/unofficial/c511000790.lua @@ -17,7 +17,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>2 end function s.filter(c,e,tp) - return c:IsSetCard(0xb) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_INFERNITY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND,0,1,nil,e,tp) @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000791.lua b/unofficial/c511000791.lua index b918aec2ee..c162991aa6 100644 --- a/unofficial/c511000791.lua +++ b/unofficial/c511000791.lua @@ -15,7 +15,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttackTarget()==nil and Duel.GetAttacker():GetControler()~=tp end function s.filter(c,e,tp) - return c:IsSetCard(0xb) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_INFERNITY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sp,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000792.lua b/unofficial/c511000792.lua index b725e26dd1..907d7f34ae 100644 --- a/unofficial/c511000792.lua +++ b/unofficial/c511000792.lua @@ -16,4 +16,4 @@ function s.initial_effect(c) e2:SetCondition(function(_,tp) return not Duel.IsExistingMatchingCard(nil,tp,LOCATION_HAND,0,1,nil) end) e2:SetOperation(function() Duel.NegateAttack() end) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511000793.lua b/unofficial/c511000793.lua index bfb6b982f2..130ac5f012 100644 --- a/unofficial/c511000793.lua +++ b/unofficial/c511000793.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) aux.LP0ActivationValidity(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetFieldGroupCount(tp,LOCATION_HAND+LOCATION_ONFIELD,0)<=0 + return Duel.GetFieldGroupCount(tp,LOCATION_HAND|LOCATION_ONFIELD,0)<=0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -38,7 +38,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_CHAIN) e1:SetCode(EFFECT_CANNOT_LOSE_LP) Duel.RegisterEffect(e1,tp) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_EXTRA) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE|LOCATION_EXTRA) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end @@ -74,4 +74,4 @@ function s.lcon(e,tp,eg,ep,ev,re,r,rp) end function s.leaveop(e,tp,eg,ep,ev,re,r,rp) Duel.Win(e:GetLabel(),WIN_REASON_ZERO_GATE) -end +end \ No newline at end of file diff --git a/unofficial/c511000794.lua b/unofficial/c511000794.lua index 2530a92523..269ad4ac45 100644 --- a/unofficial/c511000794.lua +++ b/unofficial/c511000794.lua @@ -16,4 +16,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511000795.lua b/unofficial/c511000795.lua index 0d84bf47b2..0ab1fa1454 100644 --- a/unofficial/c511000795.lua +++ b/unofficial/c511000795.lua @@ -18,4 +18,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_MZONE,0,2,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511000796.lua b/unofficial/c511000796.lua index 04639a99ef..6648f0bf3c 100644 --- a/unofficial/c511000796.lua +++ b/unofficial/c511000796.lua @@ -19,4 +19,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,Duel.GetMatchingGroupCount(Card.IsRace,tp,LOCATION_GRAVE,0,nil,RACE_INSECT)*200,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000797.lua b/unofficial/c511000797.lua index 51d6918fc7..79ba5d2903 100644 --- a/unofficial/c511000797.lua +++ b/unofficial/c511000797.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000798.lua b/unofficial/c511000798.lua index fb6584e328..61a2178e5c 100644 --- a/unofficial/c511000798.lua +++ b/unofficial/c511000798.lua @@ -32,4 +32,4 @@ function s.condition(e) end function s.val(e,c) return c:GetAttack()*2 -end +end \ No newline at end of file diff --git a/unofficial/c511000799.lua b/unofficial/c511000799.lua index 01e0ddd3dd..1b0e3b57b2 100644 --- a/unofficial/c511000799.lua +++ b/unofficial/c511000799.lua @@ -65,4 +65,4 @@ end function s.synlimit(e,c) if not c then return false end return not c:IsSetCard(0x601) -end +end \ No newline at end of file diff --git a/unofficial/c511000800.lua b/unofficial/c511000800.lua index 24cc6b8966..67821b04a4 100644 --- a/unofficial/c511000800.lua +++ b/unofficial/c511000800.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000801.lua b/unofficial/c511000801.lua index 46e995212d..12949f0151 100644 --- a/unofficial/c511000801.lua +++ b/unofficial/c511000801.lua @@ -25,4 +25,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local d=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,LOCATION_MZONE)*100 Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000803.lua b/unofficial/c511000803.lua index 070c2e3516..8d2836bb2a 100644 --- a/unofficial/c511000803.lua +++ b/unofficial/c511000803.lua @@ -39,7 +39,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK) local tg=g:GetFirst() while tg do - tg:RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,1) + tg:RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,1) tg=g:GetNext() end local e1=Effect.CreateEffect(e:GetHandler()) @@ -60,4 +60,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local sum=sg:GetSum(Card.GetAttack) Duel.Damage(1-tp,sum,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000804.lua b/unofficial/c511000804.lua index 0f034af1d6..bc116961de 100644 --- a/unofficial/c511000804.lua +++ b/unofficial/c511000804.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,ec:GetAttack()/2,REASON_EFFECT,true) Duel.Damage(tp,ec:GetAttack()/2,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000805.lua b/unofficial/c511000805.lua index 06936a8c45..6c37b98155 100644 --- a/unofficial/c511000805.lua +++ b/unofficial/c511000805.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,1,1,nil) Duel.SSet(tp,sg:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511000806.lua b/unofficial/c511000806.lua index 41a004619d..d1705cdc04 100644 --- a/unofficial/c511000806.lua +++ b/unofficial/c511000806.lua @@ -69,4 +69,4 @@ function s.synop(e,tg,ntg,sg,lv,sc,tp) else return true,false end -end +end \ No newline at end of file diff --git a/unofficial/c511000807.lua b/unofficial/c511000807.lua index 44f2249d2f..90573a068f 100644 --- a/unofficial/c511000807.lua +++ b/unofficial/c511000807.lua @@ -61,14 +61,14 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end function s.regop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - if Duel.GetTurnPlayer()==tp and Duel.GetActivityCount(tp,ACTIVITY_SUMMON)==0 + if Duel.IsTurnPlayer(tp) and Duel.GetActivityCount(tp,ACTIVITY_SUMMON)==0 and Duel.GetActivityCount(tp,ACTIVITY_FLIPSUMMON)==0 and Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 and Duel.GetActivityCount(tp,ACTIVITY_ATTACK)==0 then Duel.RaiseEvent(e:GetHandler(),id,e,0,0,tp,0) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -83,4 +83,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local dam=g:GetFirst():GetAttack() Duel.Damage(p,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000808.lua b/unofficial/c511000808.lua index f7807ed4bc..5256b0d691 100644 --- a/unofficial/c511000808.lua +++ b/unofficial/c511000808.lua @@ -29,4 +29,4 @@ function s.target(e,c) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511000809.lua b/unofficial/c511000809.lua index 79e2c8373e..ce67458109 100644 --- a/unofficial/c511000809.lua +++ b/unofficial/c511000809.lua @@ -20,9 +20,9 @@ function s.costfilter(c) return c:IsAttribute(ATTRIBUTE_DARK) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.uncost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.unop(e,tp,eg,ep,ev,re,r,rp) @@ -35,4 +35,4 @@ function s.unop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) e1:SetValue(1) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000810.lua b/unofficial/c511000810.lua index ff867a85fa..32bacb6fdf 100644 --- a/unofficial/c511000810.lua +++ b/unofficial/c511000810.lua @@ -28,4 +28,4 @@ function s.atkval(e,c) end function s.ind(e,c) return c:IsType(TYPE_SYNCHRO) -end +end \ No newline at end of file diff --git a/unofficial/c511000811.lua b/unofficial/c511000811.lua index 3250706037..88625cb303 100644 --- a/unofficial/c511000811.lua +++ b/unofficial/c511000811.lua @@ -2,4 +2,4 @@ local s,id=GetID() function s.initial_effect(c) Ritual.AddProcGreaterCode(c,7,nil,511000810) -end +end \ No newline at end of file diff --git a/unofficial/c511000812.lua b/unofficial/c511000812.lua index 1bdab5a2d7..40b236e404 100644 --- a/unofficial/c511000812.lua +++ b/unofficial/c511000812.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Damage(1-p,#g*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000813.lua b/unofficial/c511000813.lua index 46499e9c91..bd31046dd5 100644 --- a/unofficial/c511000813.lua +++ b/unofficial/c511000813.lua @@ -22,4 +22,4 @@ function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.DiscardHand(1-tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511000814.lua b/unofficial/c511000814.lua index 08c5ad71e6..db00d4f5ab 100644 --- a/unofficial/c511000814.lua +++ b/unofficial/c511000814.lua @@ -14,4 +14,4 @@ function s.fextra(e,tp,mg) end function s.exfilter(c) return c:IsType(TYPE_FUSION) and c:IsAbleToGrave() -end +end \ No newline at end of file diff --git a/unofficial/c511000815.lua b/unofficial/c511000815.lua index 7deb29fd44..6804df8f6f 100644 --- a/unofficial/c511000815.lua +++ b/unofficial/c511000815.lua @@ -32,4 +32,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.handcon(e) return Duel.GetTurnPlayer()==e:GetHandler():GetControler() -end +end \ No newline at end of file diff --git a/unofficial/c511000816.lua b/unofficial/c511000816.lua index 68d65ee0b1..9de5f93470 100644 --- a/unofficial/c511000816.lua +++ b/unofficial/c511000816.lua @@ -33,4 +33,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.handcon(e) return Duel.GetTurnPlayer()==e:GetHandler():GetControler() -end +end \ No newline at end of file diff --git a/unofficial/c511000817.lua b/unofficial/c511000817.lua index 08339ed625..0baa63a230 100644 --- a/unofficial/c511000817.lua +++ b/unofficial/c511000817.lua @@ -94,7 +94,7 @@ end s.listed_series={0xc2} function s.spfilter(c,e,tp,ct) return c:IsCanBeSpecialSummoned(e,0,tp,false,false) - and (c:IsRace(RACE_DRAGON) or c:IsSetCard(0xc2)) + and (c:IsRace(RACE_DRAGON) or c:IsSetCard(SET_POWER_TOOL)) and (not ct or Duel.GetLocationCountFromEx(tp,tp,nil,c)>=ct) end function s.cfilter(c,p) @@ -121,7 +121,7 @@ end function s.chkop(e,tp,eg,ep,ev,re,r,rp) for i=0,1 do if eg:IsExists(s.cfilter,1,nil,i) then - Duel.RegisterFlagEffect(i,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(i,id,RESET_PHASE|PHASE_END,0,1) end end end @@ -132,7 +132,7 @@ function s.sumlimit(e,c,sump,sumtype,sumpos,targetp) return sumpos&POS_FACEDOWN==POS_FACEDOWN and not c:IsLocation(LOCATION_ONFIELD) and Duel.GetFlagEffect(sump,id)>0 end function s.ddfilter(c) - return (c:IsRace(RACE_DRAGON) or c:IsSetCard(0xc2)) and c:IsFaceup() + return (c:IsRace(RACE_DRAGON) or c:IsSetCard(SET_POWER_TOOL)) and c:IsFaceup() end function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return not e:GetHandler():IsReason(REASON_REPLACE) end @@ -165,4 +165,4 @@ function s.batop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000826.lua b/unofficial/c511000826.lua index 6200495525..db1ede1dd4 100644 --- a/unofficial/c511000826.lua +++ b/unofficial/c511000826.lua @@ -16,4 +16,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local ct=eg:FilterCount(s.filter,nil) Duel.Damage(1-tp,ct*400,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000828.lua b/unofficial/c511000828.lua index 56230c8b32..2e7196f981 100644 --- a/unofficial/c511000828.lua +++ b/unofficial/c511000828.lua @@ -32,7 +32,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(g,REASON_COST) else Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local sg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil,tp) + local sg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,1,1,nil,tp) Duel.SendtoGrave(sg,REASON_COST) end end @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) end) -end +end \ No newline at end of file diff --git a/unofficial/c511000829.lua b/unofficial/c511000829.lua index 14d42f642c..8e32b3d834 100644 --- a/unofficial/c511000829.lua +++ b/unofficial/c511000829.lua @@ -54,4 +54,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_XYZ,tp,tp,false,true,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511000830.lua b/unofficial/c511000830.lua index c108b689d8..773921454a 100644 --- a/unofficial/c511000830.lua +++ b/unofficial/c511000830.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local d=g:GetFirst():GetOverlayCount() Duel.Draw(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000831.lua b/unofficial/c511000831.lua index e68a066ee0..e14f90f8cd 100644 --- a/unofficial/c511000831.lua +++ b/unofficial/c511000831.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Damage(1-tp,eg:GetFirst():GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000832.lua b/unofficial/c511000832.lua index d0c235cb89..46417c2652 100644 --- a/unofficial/c511000832.lua +++ b/unofficial/c511000832.lua @@ -29,4 +29,4 @@ end function s.dop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,ev+1000) Duel.ChangeBattleDamage(1-tp,ev+1000) -end +end \ No newline at end of file diff --git a/unofficial/c511000833.lua b/unofficial/c511000833.lua index bb97e28d66..0e40906641 100644 --- a/unofficial/c511000833.lua +++ b/unofficial/c511000833.lua @@ -28,4 +28,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=e:GetHandler():GetEquipTarget():GetControler() Duel.Damage(p,300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000834.lua b/unofficial/c511000834.lua index 4831adf38a..9de5c1cdde 100644 --- a/unofficial/c511000834.lua +++ b/unofficial/c511000834.lua @@ -86,4 +86,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,2000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000835.lua b/unofficial/c511000835.lua index 245e067478..1ab950f3f1 100644 --- a/unofficial/c511000835.lua +++ b/unofficial/c511000835.lua @@ -31,4 +31,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000836.lua b/unofficial/c511000836.lua index a9033a84ae..8a21f7a4dd 100644 --- a/unofficial/c511000836.lua +++ b/unofficial/c511000836.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK+LOCATION_EXTRA)>0 end + if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK|LOCATION_EXTRA)>0 end s.announce_filter={TYPE_MONSTER,OPCODE_ISTYPE} Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CODE) local ac=Duel.AnnounceCard(tp,table.unpack(s.announce_filter)) @@ -22,7 +22,7 @@ function s.filter(c,code) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local ac=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) - local sg=Duel.GetMatchingGroup(s.filter,1-tp,LOCATION_DECK+LOCATION_EXTRA,0,nil,ac) + local sg=Duel.GetMatchingGroup(s.filter,1-tp,LOCATION_DECK|LOCATION_EXTRA,0,nil,ac) Duel.ConfirmCards(tp,sg) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) local g=sg:Select(tp,1,1,nil) @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.Damage(1-tp,tc:GetAttack()/2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000837.lua b/unofficial/c511000837.lua index 532c71a3dc..2807c6e3fb 100644 --- a/unofficial/c511000837.lua +++ b/unofficial/c511000837.lua @@ -17,5 +17,4 @@ function s.initial_effect(c) e2:SetCondition(function() return Duel.GetAttackTarget()~=nil end) e2:SetValue(DOUBLE_DAMAGE) c:RegisterEffect(e2) -end - +end \ No newline at end of file diff --git a/unofficial/c511000838.lua b/unofficial/c511000838.lua index ea825fb1f4..585a6853aa 100644 --- a/unofficial/c511000838.lua +++ b/unofficial/c511000838.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xb) + return c:IsFaceup() and c:IsSetCard(SET_INFERNITY) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil)*800 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000839.lua b/unofficial/c511000839.lua index 5a6c91990f..bc17fb60e0 100644 --- a/unofficial/c511000839.lua +++ b/unofficial/c511000839.lua @@ -40,4 +40,4 @@ function s.refcon(e,re,val,r,rp,rc) e:Reset() end return val -end +end \ No newline at end of file diff --git a/unofficial/c511000840.lua b/unofficial/c511000840.lua index 5ec00e6fbe..cb89f073f7 100644 --- a/unofficial/c511000840.lua +++ b/unofficial/c511000840.lua @@ -21,4 +21,4 @@ function s.condition(e) local ct=#g local tg=g:GetFirst() return ct==1 and tg:IsFaceup() and tg:IsLevelBelow(4) -end +end \ No newline at end of file diff --git a/unofficial/c511000841.lua b/unofficial/c511000841.lua index b9359624ae..bb7016b3ab 100644 --- a/unofficial/c511000841.lua +++ b/unofficial/c511000841.lua @@ -37,4 +37,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000842.lua b/unofficial/c511000842.lua index 3637fcd5e9..c899f154e1 100644 --- a/unofficial/c511000842.lua +++ b/unofficial/c511000842.lua @@ -41,4 +41,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000843.lua b/unofficial/c511000843.lua index cfc6dc1a1e..8af002ce8b 100644 --- a/unofficial/c511000843.lua +++ b/unofficial/c511000843.lua @@ -72,4 +72,4 @@ end function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end return true -end +end \ No newline at end of file diff --git a/unofficial/c511000844.lua b/unofficial/c511000844.lua index 12de338c99..35056f2af1 100644 --- a/unofficial/c511000844.lua +++ b/unofficial/c511000844.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-e:GetLabel(),800,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000846.lua b/unofficial/c511000846.lua index 9a477f4e74..f06540912b 100644 --- a/unofficial/c511000846.lua +++ b/unofficial/c511000846.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end Duel.CalculateDamage(at,tc) -end +end \ No newline at end of file diff --git a/unofficial/c511000847.lua b/unofficial/c511000847.lua index 750e46252d..f054a82a43 100644 --- a/unofficial/c511000847.lua +++ b/unofficial/c511000847.lua @@ -154,4 +154,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(tc,REASON_EFFECT) Duel.SendtoGrave(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000848.lua b/unofficial/c511000848.lua index fdb5a2a4e3..809dc07f21 100644 --- a/unofficial/c511000848.lua +++ b/unofficial/c511000848.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end Duel.CalculateDamage(tc,at) -end +end \ No newline at end of file diff --git a/unofficial/c511000849.lua b/unofficial/c511000849.lua index 6db2a42e47..90f119239b 100644 --- a/unofficial/c511000849.lua +++ b/unofficial/c511000849.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(0,1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000850.lua b/unofficial/c511000850.lua index 60d62136c8..cb335bd244 100644 --- a/unofficial/c511000850.lua +++ b/unofficial/c511000850.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ct) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000851.lua b/unofficial/c511000851.lua index 5705221921..bdf5212248 100644 --- a/unofficial/c511000851.lua +++ b/unofficial/c511000851.lua @@ -35,4 +35,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000852.lua b/unofficial/c511000852.lua index e7766d2931..08abf91bc6 100644 --- a/unofficial/c511000852.lua +++ b/unofficial/c511000852.lua @@ -78,4 +78,4 @@ function s.loseop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000853.lua b/unofficial/c511000853.lua index 614b1952ee..3ff1a77a90 100644 --- a/unofficial/c511000853.lua +++ b/unofficial/c511000853.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.atkcon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_HAND)==0 -end +end \ No newline at end of file diff --git a/unofficial/c511000855.lua b/unofficial/c511000855.lua index 81ca89167c..510dc8031a 100644 --- a/unofficial/c511000855.lua +++ b/unofficial/c511000855.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.ftarget(e,c) return e:GetLabel()~=c:GetFieldID() -end +end \ No newline at end of file diff --git a/unofficial/c511000856.lua b/unofficial/c511000856.lua index 21f7689d74..7928a1b742 100644 --- a/unofficial/c511000856.lua +++ b/unofficial/c511000856.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000857.lua b/unofficial/c511000857.lua index 5840d4f4c4..66232251cf 100644 --- a/unofficial/c511000857.lua +++ b/unofficial/c511000857.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)~=0 then Duel.Damage(1-tp,tc:GetAttack()/2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000858.lua b/unofficial/c511000858.lua index c51b80b9fc..893cb505a6 100644 --- a/unofficial/c511000858.lua +++ b/unofficial/c511000858.lua @@ -34,4 +34,4 @@ function s.refcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511000859.lua b/unofficial/c511000859.lua index ae9bd47f41..5cb1933d17 100644 --- a/unofficial/c511000859.lua +++ b/unofficial/c511000859.lua @@ -52,4 +52,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000860.lua b/unofficial/c511000860.lua index a22fb89f6b..6172c5bcb6 100644 --- a/unofficial/c511000860.lua +++ b/unofficial/c511000860.lua @@ -61,7 +61,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -95,4 +95,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,opG:GetSum(Card.GetAttack)/2,REASON_EFFECT,true) end Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000861.lua b/unofficial/c511000861.lua index 4f9afcf749..698726db5a 100644 --- a/unofficial/c511000861.lua +++ b/unofficial/c511000861.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(e:GetLabel(),1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000862.lua b/unofficial/c511000862.lua index 672fb3bedb..adbb88daea 100644 --- a/unofficial/c511000862.lua +++ b/unofficial/c511000862.lua @@ -67,4 +67,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(RESET_TURN_SET) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000863.lua b/unofficial/c511000863.lua index 878a6a3ae7..02ef853fc2 100644 --- a/unofficial/c511000863.lua +++ b/unofficial/c511000863.lua @@ -25,4 +25,4 @@ end function s.recop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000864.lua b/unofficial/c511000864.lua index 3be4071a53..09c4e9d54d 100644 --- a/unofficial/c511000864.lua +++ b/unofficial/c511000864.lua @@ -53,4 +53,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetLevel()*100) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000865.lua b/unofficial/c511000865.lua index 15723fba15..294347f4cf 100644 --- a/unofficial/c511000865.lua +++ b/unofficial/c511000865.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000866.lua b/unofficial/c511000866.lua index 8c6f5379cb..89aca8b858 100644 --- a/unofficial/c511000866.lua +++ b/unofficial/c511000866.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Draw(p,tc:GetRank(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000867.lua b/unofficial/c511000867.lua index abbf2766db..bba96ef2c8 100644 --- a/unofficial/c511000867.lua +++ b/unofficial/c511000867.lua @@ -41,4 +41,4 @@ function s.rescon(e) end function s.resop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():SetLabel(0) -end +end \ No newline at end of file diff --git a/unofficial/c511000869.lua b/unofficial/c511000869.lua index d57237d267..5ccf6fb36f 100644 --- a/unofficial/c511000869.lua +++ b/unofficial/c511000869.lua @@ -90,4 +90,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) end function s.rmop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000870.lua b/unofficial/c511000870.lua index 54f009554b..bc86ca7941 100644 --- a/unofficial/c511000870.lua +++ b/unofficial/c511000870.lua @@ -34,4 +34,4 @@ function s.caop(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(LOCATION_MZONE,0) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511000871.lua b/unofficial/c511000871.lua index 363cf929bc..99356a2418 100644 --- a/unofficial/c511000871.lua +++ b/unofficial/c511000871.lua @@ -37,4 +37,4 @@ end function s.recon(e) local c=e:GetHandler() return c:IsReason(REASON_DESTROY) -end +end \ No newline at end of file diff --git a/unofficial/c511000872.lua b/unofficial/c511000872.lua index f2b24e13ad..8440f7af7b 100644 --- a/unofficial/c511000872.lua +++ b/unofficial/c511000872.lua @@ -54,4 +54,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511000873.lua b/unofficial/c511000873.lua index 3af6f48305..3a2ad8951d 100644 --- a/unofficial/c511000873.lua +++ b/unofficial/c511000873.lua @@ -42,7 +42,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) end og:KeepAlive() local c=e:GetHandler() - local res=Duel.GetTurnPlayer()==1-tp and 4 or 3 + local res=Duel.IsTurnPlayer(1-tp) and 4 or 3 local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_PHASE+PHASE_END) @@ -72,7 +72,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) e3:SetOperation(s.retop) e3:SetReset(RESET_PHASE+PHASE_BATTLE+RESET_OPPO_TURN,res) Duel.RegisterEffect(e3,tp) - Duel.RegisterFlagEffect(0,e1:GetFieldID()+id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(0,e1:GetFieldID()+id,RESET_PHASE|PHASE_END,0,1) end end function s.reset(e,tp,eg,ep,ev,re,r,rp) @@ -117,4 +117,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) g:DeleteGroup() e:Reset() e:GetLabelObject():Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511000874.lua b/unofficial/c511000874.lua index c73cc62a74..b3d933ac4d 100644 --- a/unofficial/c511000874.lua +++ b/unofficial/c511000874.lua @@ -63,4 +63,4 @@ function s.disoperation(e,tp,eg,ep,ev,re,r,rp) if tl==LOCATION_ONFIELD and (re:IsActiveType(TYPE_CONTINUOUS) or re:IsActiveType(TYPE_EFFECT)) then Duel.NegateEffect(ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511000875.lua b/unofficial/c511000875.lua index 930748f47d..32b57894a2 100644 --- a/unofficial/c511000875.lua +++ b/unofficial/c511000875.lua @@ -19,7 +19,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) local ex,dg=Duel.GetOperationInfo(0,CATEGORY_DESTROY) local ex2,dg2=Duel.GetOperationInfo(0,CATEGORY_REMOVE) e:SetLabelObject(tc) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE and tc:IsControler(tp) and tc:IsMonster() and ((dg and #dg==1 and dg:GetFirst()==tc) or (dg2 and #dg2==1 and dg2:GetFirst()==tc)) end @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000876.lua b/unofficial/c511000876.lua index a0c4307b7b..3f24445910 100644 --- a/unofficial/c511000876.lua +++ b/unofficial/c511000876.lua @@ -28,7 +28,7 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local ph=Duel.GetCurrentPhase() - return Duel.GetTurnPlayer()==tp and ph>=0x08 and ph<=0x20 + return Duel.IsTurnPlayer(tp) and ph>=0x08 and ph<=0x20 end function s.filter(c) return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) @@ -57,4 +57,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000877.lua b/unofficial/c511000877.lua index 4b486ed5aa..65fcacfd9c 100644 --- a/unofficial/c511000877.lua +++ b/unofficial/c511000877.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if ct>0 then Duel.Damage(1-tp,ct*1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000878.lua b/unofficial/c511000878.lua index 590fe610c1..05d9e39b5e 100644 --- a/unofficial/c511000878.lua +++ b/unofficial/c511000878.lua @@ -63,4 +63,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.SpecialSummon(sg:Select(tp,1,1,nil),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000880.lua b/unofficial/c511000880.lua index 28161a5ed8..09375f545f 100644 --- a/unofficial/c511000880.lua +++ b/unofficial/c511000880.lua @@ -16,4 +16,4 @@ function s.upval(e,c) end function s.upfilter(c) return c:IsFaceup() and c:IsCode(511000882) -end +end \ No newline at end of file diff --git a/unofficial/c511000881.lua b/unofficial/c511000881.lua index cefd8e0924..8bb30a2d99 100644 --- a/unofficial/c511000881.lua +++ b/unofficial/c511000881.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511000883.lua b/unofficial/c511000883.lua index f64fe885a6..3cb26e287a 100644 --- a/unofficial/c511000883.lua +++ b/unofficial/c511000883.lua @@ -76,4 +76,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000884.lua b/unofficial/c511000884.lua index fd8aeef2fb..e19fa58218 100644 --- a/unofficial/c511000884.lua +++ b/unofficial/c511000884.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=sg:GetNext() end Duel.RaiseEvent(sg,EVENT_SSET,e,REASON_EFFECT,1-tp,tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511000885.lua b/unofficial/c511000885.lua index c8dd9fb707..04cb2f784c 100644 --- a/unofficial/c511000885.lua +++ b/unofficial/c511000885.lua @@ -65,4 +65,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000886.lua b/unofficial/c511000886.lua index 7f642ebd51..df014a8725 100644 --- a/unofficial/c511000886.lua +++ b/unofficial/c511000886.lua @@ -89,7 +89,7 @@ function s.dirtg(e,c) return not Duel.IsExistingMatchingCard(s.dirfilter,c:GetControler(),0,LOCATION_MZONE,1,nil) end function s.desop(e,tp,eg,ep,ev,re,r,rp) - if Duel.GetTurnPlayer()==tp then return end + if Duel.IsTurnPlayer(tp) then return end local c=e:GetHandler() local ct=c:GetTurnCounter() ct=ct+1 @@ -144,4 +144,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(c,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000887.lua b/unofficial/c511000887.lua index f0e8d805cf..bc8bdee19a 100644 --- a/unofficial/c511000887.lua +++ b/unofficial/c511000887.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.dmcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.dmtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -35,4 +35,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) or e:GetHandler():IsFacedown() then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000888.lua b/unofficial/c511000888.lua index 643d2e2994..287c854232 100644 --- a/unofficial/c511000888.lua +++ b/unofficial/c511000888.lua @@ -29,4 +29,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000889.lua b/unofficial/c511000889.lua index e99623b82a..ef44ebb410 100644 --- a/unofficial/c511000889.lua +++ b/unofficial/c511000889.lua @@ -46,4 +46,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,cg) Duel.ShuffleDeck(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000890.lua b/unofficial/c511000890.lua index 78bd42c940..9ad166f612 100644 --- a/unofficial/c511000890.lua +++ b/unofficial/c511000890.lua @@ -59,4 +59,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000892.lua b/unofficial/c511000892.lua index f674e5d911..916e5517aa 100644 --- a/unofficial/c511000892.lua +++ b/unofficial/c511000892.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeAttackTarget(sc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000894.lua b/unofficial/c511000894.lua index 5f650cb8ca..8ff2da6a65 100644 --- a/unofficial/c511000894.lua +++ b/unofficial/c511000894.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() Duel.Draw(1-tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000895.lua b/unofficial/c511000895.lua index d27643df68..897e4a05d2 100644 --- a/unofficial/c511000895.lua +++ b/unofficial/c511000895.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000896.lua b/unofficial/c511000896.lua index cc820723d7..c9dd488211 100644 --- a/unofficial/c511000896.lua +++ b/unofficial/c511000896.lua @@ -79,4 +79,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000897.lua b/unofficial/c511000897.lua index f829484722..dd900158bd 100644 --- a/unofficial/c511000897.lua +++ b/unofficial/c511000897.lua @@ -107,4 +107,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,chk) if tc and tc:GetFlagEffect(id)>0 and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000898.lua b/unofficial/c511000898.lua index 3fb1db1307..e489751dc7 100644 --- a/unofficial/c511000898.lua +++ b/unofficial/c511000898.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sum=g:GetSum(Card.GetAttack) Duel.Damage(1-tp,sum,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000899.lua b/unofficial/c511000899.lua index e17f8a8d9a..6968a176fa 100644 --- a/unofficial/c511000899.lua +++ b/unofficial/c511000899.lua @@ -52,4 +52,4 @@ function s.dircon(e) hatk=g:GetMaxGroup(Card.GetAttack):GetFirst():GetAttack() end return atk0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000903.lua b/unofficial/c511000903.lua index 29bb26fea5..e90ec67f9f 100644 --- a/unofficial/c511000903.lua +++ b/unofficial/c511000903.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000904.lua b/unofficial/c511000904.lua index 5b3aef5362..a260a9d900 100644 --- a/unofficial/c511000904.lua +++ b/unofficial/c511000904.lua @@ -24,4 +24,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000905.lua b/unofficial/c511000905.lua index 223051a737..49cea18e48 100644 --- a/unofficial/c511000905.lua +++ b/unofficial/c511000905.lua @@ -19,7 +19,7 @@ function s.cfilter(c) return c:IsType(TYPE_SYNCHRO) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.filter(c,tp) - return c:IsPosition(POS_FACEUP_DEFENSE) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,c) + return c:IsPosition(POS_FACEUP_DEFENSE) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc,tp) end @@ -65,4 +65,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() Duel.Destroy(a,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000906.lua b/unofficial/c511000906.lua index b560a0860c..1277c92844 100644 --- a/unofficial/c511000906.lua +++ b/unofficial/c511000906.lua @@ -32,4 +32,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards(e) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000907.lua b/unofficial/c511000907.lua index 8fbbc09308..4ead664832 100644 --- a/unofficial/c511000907.lua +++ b/unofficial/c511000907.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000908.lua b/unofficial/c511000908.lua index 3879f6d98e..9313982ede 100644 --- a/unofficial/c511000908.lua +++ b/unofficial/c511000908.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000909.lua b/unofficial/c511000909.lua index 6334302f02..e39ddd309c 100644 --- a/unofficial/c511000909.lua +++ b/unofficial/c511000909.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000910.lua b/unofficial/c511000910.lua index 2d54e7c1f0..5db0b821f8 100644 --- a/unofficial/c511000910.lua +++ b/unofficial/c511000910.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000912.lua b/unofficial/c511000912.lua index ba65a4cb2c..d6ae5d0e79 100644 --- a/unofficial/c511000912.lua +++ b/unofficial/c511000912.lua @@ -67,4 +67,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000913.lua b/unofficial/c511000913.lua index e15f3fd9ce..2b6e4cba7c 100644 --- a/unofficial/c511000913.lua +++ b/unofficial/c511000913.lua @@ -21,4 +21,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_REMOVED,LOCATION_REMOVED,nil) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000914.lua b/unofficial/c511000914.lua index 172de54c99..36ab8619d7 100644 --- a/unofficial/c511000914.lua +++ b/unofficial/c511000914.lua @@ -32,18 +32,18 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.cfilter(c) return c:IsRace(RACE_PLANT) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,c) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,c) end c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1) c:RegisterFlagEffect(e:GetFieldID(),RESET_CHAIN,0,1,c:GetFlagEffect(id)) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,c) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,c) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -65,4 +65,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.sdcon(e) return not Duel.IsExistingMatchingCard(Card.IsRace,e:GetHandler():GetControler(),LOCATION_GRAVE,0,1,nil,RACE_PLANT) -end +end \ No newline at end of file diff --git a/unofficial/c511000915.lua b/unofficial/c511000915.lua index e88c2374ff..fe97860525 100644 --- a/unofficial/c511000915.lua +++ b/unofficial/c511000915.lua @@ -63,4 +63,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000917.lua b/unofficial/c511000917.lua index 3001ee14f6..89d54ab6c5 100644 --- a/unofficial/c511000917.lua +++ b/unofficial/c511000917.lua @@ -27,4 +27,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000918.lua b/unofficial/c511000918.lua index c0016db1a3..23bab326c5 100644 --- a/unofficial/c511000918.lua +++ b/unofficial/c511000918.lua @@ -28,4 +28,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000919.lua b/unofficial/c511000919.lua index 0807d8a1ff..82b66bc9d7 100644 --- a/unofficial/c511000919.lua +++ b/unofficial/c511000919.lua @@ -51,11 +51,11 @@ function s.filter(c,tp) return c:IsCode(100000080) and c:GetActivateEffect():IsActivatable(tp,true,true) end function s.actg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,tp) end + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,tp) end end function s.acop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,tp):GetFirst() if tc then local loc=LOCATION_SZONE if (tpe&TYPE_FIELD)~=0 then @@ -73,4 +73,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) Duel.MoveToField(tc,tp,tp,loc,POS_FACEUP,true) Duel.RaiseEvent(tc,EVENT_CHAIN_SOLVED,tc:GetActivateEffect(),0,tp,tp,Duel.GetCurrentChain()) end -end +end \ No newline at end of file diff --git a/unofficial/c511000920.lua b/unofficial/c511000920.lua index e7fec726bd..0dea2df60e 100644 --- a/unofficial/c511000920.lua +++ b/unofficial/c511000920.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if of and Duel.Destroy(of,REASON_RULE)==0 then Duel.SendtoGrave(tc,REASON_RULE) end Duel.MoveSequence(tc,5) end -end +end \ No newline at end of file diff --git a/unofficial/c511000922.lua b/unofficial/c511000922.lua index 9628ca3430..7583c54af6 100644 --- a/unofficial/c511000922.lua +++ b/unofficial/c511000922.lua @@ -61,4 +61,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000923.lua b/unofficial/c511000923.lua index aab16fe468..e51f78be3e 100644 --- a/unofficial/c511000923.lua +++ b/unofficial/c511000923.lua @@ -41,4 +41,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) g:GetFirst():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000925.lua b/unofficial/c511000925.lua index 527c54df56..3a3ca7c27b 100644 --- a/unofficial/c511000925.lua +++ b/unofficial/c511000925.lua @@ -74,4 +74,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000926.lua b/unofficial/c511000926.lua index 15a029c680..5e118d0006 100644 --- a/unofficial/c511000926.lua +++ b/unofficial/c511000926.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Equip(tp,ec,tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000927.lua b/unofficial/c511000927.lua index 9e3e4cdca0..df9a31d1fa 100644 --- a/unofficial/c511000927.lua +++ b/unofficial/c511000927.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0)>0 then Duel.NegateAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c511000928.lua b/unofficial/c511000928.lua index 1dd02f37df..c53e04d8ca 100644 --- a/unofficial/c511000928.lua +++ b/unofficial/c511000928.lua @@ -50,4 +50,4 @@ function s.atkup(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000929.lua b/unofficial/c511000929.lua index 2b78d3687f..0d48e8765d 100644 --- a/unofficial/c511000929.lua +++ b/unofficial/c511000929.lua @@ -38,4 +38,4 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-ep,ev,REASON_EFFECT) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000930.lua b/unofficial/c511000930.lua index ef06af2c34..a88ff1534b 100644 --- a/unofficial/c511000930.lua +++ b/unofficial/c511000930.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c511000931.lua b/unofficial/c511000931.lua index 4e0dd2dc24..e65a0016c3 100644 --- a/unofficial/c511000931.lua +++ b/unofficial/c511000931.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(3000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000932.lua b/unofficial/c511000932.lua index 7fc9d05880..e1e9f4db30 100644 --- a/unofficial/c511000932.lua +++ b/unofficial/c511000932.lua @@ -16,10 +16,10 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return tp~=Duel.GetTurnPlayer() and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE end function s.filter(c) - return c:IsFaceup() and c:IsDestructable() and c:IsSetCard(0x26) + return c:IsFaceup() and c:IsDestructable() and c:IsSetCard(SET_MORPHTRONIC) end function s.spfilter(c,e,tp,lv) - return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0x26) and c:GetLevel()0 then Duel.SpecialSummon(sp,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000943.lua b/unofficial/c511000943.lua index a2aa9f7baa..6163e76b1c 100644 --- a/unofficial/c511000943.lua +++ b/unofficial/c511000943.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000944.lua b/unofficial/c511000944.lua index c20e640b66..12350895c1 100644 --- a/unofficial/c511000944.lua +++ b/unofficial/c511000944.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000945.lua b/unofficial/c511000945.lua index 14c48ee24a..1c6d5a6686 100644 --- a/unofficial/c511000945.lua +++ b/unofficial/c511000945.lua @@ -24,4 +24,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000946.lua b/unofficial/c511000946.lua index 04ddb7b052..ac52777723 100644 --- a/unofficial/c511000946.lua +++ b/unofficial/c511000946.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.RDComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000947.lua b/unofficial/c511000947.lua index a6f2736f48..55a11f399b 100644 --- a/unofficial/c511000947.lua +++ b/unofficial/c511000947.lua @@ -66,4 +66,4 @@ function s.dirop(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000949.lua b/unofficial/c511000949.lua index 4b3f251d22..8b934a2c37 100644 --- a/unofficial/c511000949.lua +++ b/unofficial/c511000949.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UNRELEASABLE_NONSUM) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511000950.lua b/unofficial/c511000950.lua index 2c2305e26b..4093a4c9f7 100644 --- a/unofficial/c511000950.lua +++ b/unofficial/c511000950.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,d,REASON_EFFECT,true) Duel.Damage(tp,d,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000951.lua b/unofficial/c511000951.lua index 83960be602..003a1a5971 100644 --- a/unofficial/c511000951.lua +++ b/unofficial/c511000951.lua @@ -43,4 +43,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():GetAttackedCount()>0 then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000952.lua b/unofficial/c511000952.lua index 5386f4c965..092157909b 100644 --- a/unofficial/c511000952.lua +++ b/unofficial/c511000952.lua @@ -136,4 +136,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if g and (tpe&TYPE_EQUIP)>0 and not e:GetHandler():GetEquipTarget() then Duel.Equip(tp,e:GetHandler(),g:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511000953.lua b/unofficial/c511000953.lua index 9cd854d73a..3ed0380d9c 100644 --- a/unofficial/c511000953.lua +++ b/unofficial/c511000953.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) e1:SetValue(-1000) a:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000955.lua b/unofficial/c511000955.lua index 909c7bc7ce..0fd7a671e8 100644 --- a/unofficial/c511000955.lua +++ b/unofficial/c511000955.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511000956.lua b/unofficial/c511000956.lua index ab512b1a2e..7ba854d1bd 100644 --- a/unofficial/c511000956.lua +++ b/unofficial/c511000956.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x4B) + return c:IsFaceup() and c:IsSetCard(SET_AESIR) end function s.con(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:IsActiveType(TYPE_SPELL+TYPE_TRAP) and te:GetOwnerPlayer()==e:GetHandler():GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511000957.lua b/unofficial/c511000957.lua index 00815731c2..7b984ba92e 100644 --- a/unofficial/c511000957.lua +++ b/unofficial/c511000957.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,0,POS_FACEUP_ATTACK,0) Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511000958.lua b/unofficial/c511000958.lua index 26bd6d910c..a20866a01f 100644 --- a/unofficial/c511000958.lua +++ b/unofficial/c511000958.lua @@ -36,4 +36,4 @@ function s.filter(c) end function s.descon(e) return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511000959.lua b/unofficial/c511000959.lua index 52fea2306c..c0dafa37b0 100644 --- a/unofficial/c511000959.lua +++ b/unofficial/c511000959.lua @@ -35,4 +35,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000960.lua b/unofficial/c511000960.lua index ba6acc2f09..2c0e822c57 100644 --- a/unofficial/c511000960.lua +++ b/unofficial/c511000960.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Destroy(d,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000961.lua b/unofficial/c511000961.lua index 60ae936c0a..df323087dd 100644 --- a/unofficial/c511000961.lua +++ b/unofficial/c511000961.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,d,REASON_EFFECT,true) Duel.Damage(tp,d,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000962.lua b/unofficial/c511000962.lua index 47342e5be1..2316660bd2 100644 --- a/unofficial/c511000962.lua +++ b/unofficial/c511000962.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000965.lua b/unofficial/c511000965.lua index f28ecf8fab..9bf68b053e 100644 --- a/unofficial/c511000965.lua +++ b/unofficial/c511000965.lua @@ -24,14 +24,14 @@ function s.filter(c) return c:IsCode(511000964) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end - Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil) end + Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil) if #g>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511000966.lua b/unofficial/c511000966.lua index fcb26dd286..e36ee51cde 100644 --- a/unofficial/c511000966.lua +++ b/unofficial/c511000966.lua @@ -30,4 +30,4 @@ end function s.valcon2(e) local c=e:GetHandler() return Duel.IsExistingMatchingCard(s.vfilter,c:GetControler(),LOCATION_MZONE,0,1,nil,511000964) -end +end \ No newline at end of file diff --git a/unofficial/c511000967.lua b/unofficial/c511000967.lua index 34de122f01..4e9258d36c 100644 --- a/unofficial/c511000967.lua +++ b/unofficial/c511000967.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_SZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x43)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_JUNK)) e2:SetValue(500) c:RegisterEffect(e2) --to deck @@ -32,7 +32,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) if a:IsControler(1-tp) then a,d=d,a end if a:IsStatus(STATUS_BATTLE_DESTROYED) then return false end return d and d:IsStatus(STATUS_BATTLE_DESTROYED) and not d:IsType(TYPE_TOKEN) and d:GetLeaveFieldDest()==0 - and a:IsSetCard(0x43) + and a:IsSetCard(SET_JUNK) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() @@ -55,4 +55,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000968.lua b/unofficial/c511000968.lua index 72b5eff12a..6567475ce0 100644 --- a/unofficial/c511000968.lua +++ b/unofficial/c511000968.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x43) and c:IsLocation(LOCATION_GRAVE) and c:IsPreviousControler(tp) and c:IsReason(REASON_BATTLE) + return c:IsSetCard(SET_JUNK) and c:IsLocation(LOCATION_GRAVE) and c:IsPreviousControler(tp) and c:IsReason(REASON_BATTLE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.con(e,tp,eg,ep,ev,re,r,rp) @@ -32,4 +32,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetLabelObject():IsLocation(LOCATION_GRAVE) then Duel.SpecialSummon(e:GetLabelObject(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000969.lua b/unofficial/c511000969.lua index f5180013e6..2ca56f3232 100644 --- a/unofficial/c511000969.lua +++ b/unofficial/c511000969.lua @@ -54,4 +54,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) token:RegisterEffect(e3,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511000970.lua b/unofficial/c511000970.lua index 26794c128d..390dc41c56 100644 --- a/unofficial/c511000970.lua +++ b/unofficial/c511000970.lua @@ -44,4 +44,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511000971.lua b/unofficial/c511000971.lua index ddbc9d56b9..7e5c436a37 100644 --- a/unofficial/c511000971.lua +++ b/unofficial/c511000971.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000972.lua b/unofficial/c511000972.lua index 1e7d0a5415..477ade926c 100644 --- a/unofficial/c511000972.lua +++ b/unofficial/c511000972.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000973.lua b/unofficial/c511000973.lua index 30e326c93a..bf95c64d53 100644 --- a/unofficial/c511000973.lua +++ b/unofficial/c511000973.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511000974.lua b/unofficial/c511000974.lua index c2bf451bbe..a3625ea48d 100644 --- a/unofficial/c511000974.lua +++ b/unofficial/c511000974.lua @@ -21,4 +21,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) if ep~=tp then return end local ct=math.floor(ev/100) c:AddCounter(0x1100,ct) -end +end \ No newline at end of file diff --git a/unofficial/c511000975.lua b/unofficial/c511000975.lua index b3df5f89cc..3edf8827d0 100644 --- a/unofficial/c511000975.lua +++ b/unofficial/c511000975.lua @@ -68,4 +68,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) tc:SetStatus(STATUS_SUMMON_TURN+STATUS_FORM_CHANGED,false) tc=sg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511000976.lua b/unofficial/c511000976.lua index a732ee1522..3c3d8f1752 100644 --- a/unofficial/c511000976.lua +++ b/unofficial/c511000976.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsFacedown() and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000977.lua b/unofficial/c511000977.lua index f272be5080..a93b3b7c1d 100644 --- a/unofficial/c511000977.lua +++ b/unofficial/c511000977.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil)*300 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000978.lua b/unofficial/c511000978.lua index 5b4f33e8e1..3725fb0d2a 100644 --- a/unofficial/c511000978.lua +++ b/unofficial/c511000978.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Recover(tp,lp,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000979.lua b/unofficial/c511000979.lua index 3399b247b8..168875dc24 100644 --- a/unofficial/c511000979.lua +++ b/unofficial/c511000979.lua @@ -34,4 +34,4 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp) end function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511000980.lua b/unofficial/c511000980.lua index 46dbccad39..f23e3009c6 100644 --- a/unofficial/c511000980.lua +++ b/unofficial/c511000980.lua @@ -50,4 +50,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:GetHandler():IsSpell() and re:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c511000981.lua b/unofficial/c511000981.lua index c4af88afe9..064a653805 100644 --- a/unofficial/c511000981.lua +++ b/unofficial/c511000981.lua @@ -51,7 +51,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end function s.sdescon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.sdesop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -61,4 +61,4 @@ function s.sdesop(e,tp,eg,ep,ev,re,r,rp) if ct==3 then Duel.Destroy(c,REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c511000982.lua b/unofficial/c511000982.lua index 0734606298..84febd93d3 100644 --- a/unofficial/c511000982.lua +++ b/unofficial/c511000982.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000983.lua b/unofficial/c511000983.lua index 3cff2ecb5d..32f381ec51 100644 --- a/unofficial/c511000983.lua +++ b/unofficial/c511000983.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToBattle() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000984.lua b/unofficial/c511000984.lua index 2888c140a1..20b278c31c 100644 --- a/unofficial/c511000984.lua +++ b/unofficial/c511000984.lua @@ -98,4 +98,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) etc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511000985.lua b/unofficial/c511000985.lua index cbb594e7fa..6a9abe182b 100644 --- a/unofficial/c511000985.lua +++ b/unofficial/c511000985.lua @@ -27,9 +27,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()~=1 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,nil) end + return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local rg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,2,nil) + local rg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,2,nil) Duel.Remove(rg,POS_FACEUP,REASON_COST) local sum=rg:GetSum(Card.GetAttack) Duel.SetTargetParam(sum) @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-sum) a:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511000986.lua b/unofficial/c511000986.lua index 59da70027d..17ee0a8afc 100644 --- a/unofficial/c511000986.lua +++ b/unofficial/c511000986.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) Duel.RegisterEffect(e1,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511000987.lua b/unofficial/c511000987.lua index e503c46e8a..12a67065ca 100644 --- a/unofficial/c511000987.lua +++ b/unofficial/c511000987.lua @@ -56,7 +56,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.SendtoDeck(tc,nil,0,REASON_EFFECT)~=0 then Duel.BreakEffect() Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) - if tc:IsSummonType(SUMMON_TYPE_FUSION) and ct>0 and ct<=Duel.GetLocationCount(p,LOCATION_MZONE) + if tc:IsFusionSummoned() and ct>0 and ct<=Duel.GetLocationCount(p,LOCATION_MZONE) and mg:FilterCount(aux.NecroValleyFilter(s.mgfilter),nil,e,p,tc,mg)==ct and (ct<=1 or not Duel.IsPlayerAffectedByEffect(p,CARD_BLUEEYES_SPIRIT)) then Duel.SpecialSummon(mg,0,tp,p,false,false,POS_FACEUP) @@ -70,4 +70,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE|PHASE_BATTLE,1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000988.lua b/unofficial/c511000988.lua index 80c21334dd..0de4ae2a93 100644 --- a/unofficial/c511000988.lua +++ b/unofficial/c511000988.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.RaiseSingleEvent(c,EVENT_FLIP,e,r,rp,ep,ev) end end -end +end \ No newline at end of file diff --git a/unofficial/c511000989.lua b/unofficial/c511000989.lua index e28eb5019b..8af8b308b4 100644 --- a/unofficial/c511000989.lua +++ b/unofficial/c511000989.lua @@ -29,4 +29,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000990.lua b/unofficial/c511000990.lua index 59a1024851..986623c9cb 100644 --- a/unofficial/c511000990.lua +++ b/unofficial/c511000990.lua @@ -23,4 +23,4 @@ end function s.mtval(e,c) if not c then return false end return c:IsOriginalCode(id) -end +end \ No newline at end of file diff --git a/unofficial/c511000992.lua b/unofficial/c511000992.lua index 48587e5e37..f537bde483 100644 --- a/unofficial/c511000992.lua +++ b/unofficial/c511000992.lua @@ -70,4 +70,4 @@ function s.resop(e,tp,eg,ep,ev,re,r,rp) if e:GetLabelObject():GetLabel()~=0 then e:GetLabelObject():SetLabel(0) end -end +end \ No newline at end of file diff --git a/unofficial/c511000993.lua b/unofficial/c511000993.lua index 31bb0ce4d6..e8b2d899a1 100644 --- a/unofficial/c511000993.lua +++ b/unofficial/c511000993.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) end s.listed_names={65305468} function s.filter(c,e,tp) - return c:IsSetCard(0x48) and c:GetAttribute()~=ATTRIBUTE_LIGHT and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and c:GetAttribute()~=ATTRIBUTE_LIGHT and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -57,7 +57,7 @@ function s.eqfilter(c) return c:GetFlagEffect(id)>0 end function s.ufilter(c) - return c:IsFaceup() and (c:IsCode(65305468) or c:IsSetCard(0x7f)) + return c:IsFaceup() and (c:IsCode(65305468) or c:IsSetCard(SET_UTOPIC)) end function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.eqfilter(chkc) end @@ -138,4 +138,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) e1:SetValue(eq:GetAttack()*2) eq:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511000994.lua b/unofficial/c511000994.lua index c1dd7df209..fdf681baa4 100644 --- a/unofficial/c511000994.lua +++ b/unofficial/c511000994.lua @@ -92,4 +92,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local eq=c:GetEquipTarget() Duel.Overlay(eq,c) -end +end \ No newline at end of file diff --git a/unofficial/c511000995.lua b/unofficial/c511000995.lua index 1f9511655d..a26adcab50 100644 --- a/unofficial/c511000995.lua +++ b/unofficial/c511000995.lua @@ -72,4 +72,4 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511000996.lua b/unofficial/c511000996.lua index 5f6590c66c..7474bff2ce 100644 --- a/unofficial/c511000996.lua +++ b/unofficial/c511000996.lua @@ -35,7 +35,7 @@ function s.cfilter(c) return c:IsPosition(POS_FACEUP_DEFENSE) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.IsExistingMatchingCard(Card.IsAttackPos,tp,LOCATION_MZONE,0,1,nil) + return Duel.IsTurnPlayer(tp) and Duel.IsExistingMatchingCard(Card.IsAttackPos,tp,LOCATION_MZONE,0,1,nil) and Duel.GetActivityCount(tp,ACTIVITY_ATTACK)==0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511000997.lua b/unofficial/c511000997.lua index 901169b581..4a7f0307ef 100644 --- a/unofficial/c511000997.lua +++ b/unofficial/c511000997.lua @@ -80,4 +80,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511000998.lua b/unofficial/c511000998.lua index 531e3c95ca..5e60a67ab5 100644 --- a/unofficial/c511000998.lua +++ b/unofficial/c511000998.lua @@ -32,4 +32,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511000999.lua b/unofficial/c511000999.lua index ece4580c0a..0f18e7732c 100644 --- a/unofficial/c511000999.lua +++ b/unofficial/c511000999.lua @@ -42,4 +42,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if ep~=tp then Duel.Damage(1-tp,def,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001000.lua b/unofficial/c511001000.lua index d67c3afb31..d2c0ea5e04 100644 --- a/unofficial/c511001000.lua +++ b/unofficial/c511001000.lua @@ -36,4 +36,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,id+1) Duel.SpecialSummon(token,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001003.lua b/unofficial/c511001003.lua index ea7d2168da..56b8f6c83d 100644 --- a/unofficial/c511001003.lua +++ b/unofficial/c511001003.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) Duel.DiscardDeck(1-p,3,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001004.lua b/unofficial/c511001004.lua index c4976eafc1..2a7c2c8d11 100644 --- a/unofficial/c511001004.lua +++ b/unofficial/c511001004.lua @@ -85,4 +85,4 @@ function s.winop(e,tp,eg,ep,ev,re,r,rp) elseif Duel.GetFlagEffect(1,id)>1 then Duel.Win(1,WIN_REASON_DEUCE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001005.lua b/unofficial/c511001005.lua index c62eeca86e..2a7177b539 100644 --- a/unofficial/c511001005.lua +++ b/unofficial/c511001005.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp and Duel.GetAttackTarget()==nil + return Duel.IsTurnPlayer(1-tp) and Duel.GetAttackTarget()==nil end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tg=Duel.GetAttacker() @@ -40,4 +40,4 @@ end function s.mgfilter(c,e,tp,tc) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) -end +end \ No newline at end of file diff --git a/unofficial/c511001006.lua b/unofficial/c511001006.lua index c0e5b0e0ce..0225a7f9a6 100644 --- a/unofficial/c511001006.lua +++ b/unofficial/c511001006.lua @@ -98,4 +98,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,chk) if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)==0 then return end Duel.Damage(tp,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001010.lua b/unofficial/c511001010.lua index fb9cc4ea4f..ba5abd3fab 100644 --- a/unofficial/c511001010.lua +++ b/unofficial/c511001010.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001013.lua b/unofficial/c511001013.lua index 03f49786d9..19eaf4514d 100644 --- a/unofficial/c511001013.lua +++ b/unofficial/c511001013.lua @@ -103,4 +103,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_ONFIELD) Duel.Damage(p,ct*200,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001014.lua b/unofficial/c511001014.lua index 01f2ff9527..663406eb3b 100644 --- a/unofficial/c511001014.lua +++ b/unofficial/c511001014.lua @@ -22,16 +22,16 @@ function s.filter(c,e,tp,tid) end function s.spfilter(c,e,tp,rk,mc,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end - return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk+1) and c:IsSetCard(0xba) and mc:IsCanBeXyzMaterial(c,tp) + return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk+1) and c:IsSetCard(SET_RAIDRAPTOR) and mc:IsCanBeXyzMaterial(c,tp) and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local tid=Duel.GetTurnCount() - if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and s.filter(chkc,e,tp,tid) end + if chkc then return chkc:IsLocation(LOCATION_GRAVE|LOCATION_REMOVED) and chkc:IsControler(tp) and s.filter(chkc,e,tp,tid) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsPlayerCanSpecialSummonCount(tp,2) - and Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp,tid) end + and Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,1,nil,e,tp,tid) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp,tid) + local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,1,1,nil,e,tp,tid) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) end function s.spop(e,tp,eg,ep,ev,re,r,rp) @@ -49,4 +49,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc2:CompleteProcedure() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001015.lua b/unofficial/c511001015.lua index 07f9e815e2..e394f743a5 100644 --- a/unofficial/c511001015.lua +++ b/unofficial/c511001015.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) end) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) - if Duel.GetAttacker():IsSetCard(0xba) then + if Duel.GetAttacker():IsSetCard(SET_RAIDRAPTOR) then s[0]=true s[1]=true end @@ -35,7 +35,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return s[tp] end function s.filter(c) - return c:IsSetCard(0xba) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsMonster() and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001016.lua b/unofficial/c511001016.lua index 0685224b3e..33262042dd 100644 --- a/unofficial/c511001016.lua +++ b/unofficial/c511001016.lua @@ -40,4 +40,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001017.lua b/unofficial/c511001017.lua index 43cf5c8745..8ff9665247 100644 --- a/unofficial/c511001017.lua +++ b/unofficial/c511001017.lua @@ -54,4 +54,4 @@ function s.desact(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001018.lua b/unofficial/c511001018.lua index 15aaf57b1c..cbac6655b4 100644 --- a/unofficial/c511001018.lua +++ b/unofficial/c511001018.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and Duel.GetControl(tc,tp) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001019.lua b/unofficial/c511001019.lua index 295d2cb1c9..5c5a6809ed 100644 --- a/unofficial/c511001019.lua +++ b/unofficial/c511001019.lua @@ -65,4 +65,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511001020.lua b/unofficial/c511001020.lua index f2253ebcef..1fb88991ec 100644 --- a/unofficial/c511001020.lua +++ b/unofficial/c511001020.lua @@ -32,4 +32,4 @@ function s.damop2(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001021.lua b/unofficial/c511001021.lua index 811e5f13f3..93a5bf8aeb 100644 --- a/unofficial/c511001021.lua +++ b/unofficial/c511001021.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001022.lua b/unofficial/c511001022.lua index 209c018554..1eff312c0e 100644 --- a/unofficial/c511001022.lua +++ b/unofficial/c511001022.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001023.lua b/unofficial/c511001023.lua index e6d3f0a6e4..c1da32cf7a 100644 --- a/unofficial/c511001023.lua +++ b/unofficial/c511001023.lua @@ -20,10 +20,10 @@ function s.confilter(c) return c:IsFaceup() and c:IsCode(20210570) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE+LOCATION_MZONE+LOCATION_EXTRA,0,1,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE|LOCATION_MZONE|LOCATION_EXTRA,0,1,nil) and Duel.GetActivityCount(tp,ACTIVITY_ATTACK)==0 end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE+LOCATION_MZONE+LOCATION_EXTRA,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE|LOCATION_MZONE|LOCATION_EXTRA,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD) @@ -51,4 +51,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,0,nil) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001024.lua b/unofficial/c511001024.lua index 46c130fc73..525a00cc94 100644 --- a/unofficial/c511001024.lua +++ b/unofficial/c511001024.lua @@ -27,9 +27,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()~=1 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) local atk=g:GetFirst():GetAttack()/2 if atk<0 then atk=0 end Duel.Remove(g,POS_FACEUP,REASON_COST) @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001025.lua b/unofficial/c511001025.lua index 6cc29a4958..9ea410ad94 100644 --- a/unofficial/c511001025.lua +++ b/unofficial/c511001025.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001026.lua b/unofficial/c511001026.lua index b0f63a0311..b8a5e416de 100644 --- a/unofficial/c511001026.lua +++ b/unofficial/c511001026.lua @@ -38,4 +38,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if c:IsFacedown() or not c:IsRelateToEffect(e) then return end Duel.Damage(1-tp,e:GetLabel()*300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001027.lua b/unofficial/c511001027.lua index 43ecbbbb9f..621fa85cc0 100644 --- a/unofficial/c511001027.lua +++ b/unofficial/c511001027.lua @@ -29,7 +29,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return (s.cfilter(Duel.GetFieldCard(tp,LOCATION_FZONE,0)) or s.cfilter(Duel.GetFieldCard(1-tp,LOCATION_FZONE,0))) end function s.filter(c,e,tp) - return c:IsSetCard(0x6a) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_BUTTERSPY) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) @@ -43,5 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>1 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end - +end \ No newline at end of file diff --git a/unofficial/c511001028.lua b/unofficial/c511001028.lua index ce5df30514..d6eab1667f 100644 --- a/unofficial/c511001028.lua +++ b/unofficial/c511001028.lua @@ -53,4 +53,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local g=Duel.GetMatchingGroup(s.desfilter,Duel.GetTurnPlayer(),LOCATION_MZONE,0,e:GetHandler()) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001029.lua b/unofficial/c511001029.lua index 82a38e10e2..4d53e86179 100644 --- a/unofficial/c511001029.lua +++ b/unofficial/c511001029.lua @@ -76,4 +76,4 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(e:GetHandler(),REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001030.lua b/unofficial/c511001030.lua index 732ffdf235..895518457e 100644 --- a/unofficial/c511001030.lua +++ b/unofficial/c511001030.lua @@ -37,4 +37,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001031.lua b/unofficial/c511001031.lua index 26227d88e1..f2765e8e7b 100644 --- a/unofficial/c511001031.lua +++ b/unofficial/c511001031.lua @@ -32,4 +32,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001032.lua b/unofficial/c511001032.lua index d607cca026..b4d7c0cb7e 100644 --- a/unofficial/c511001032.lua +++ b/unofficial/c511001032.lua @@ -58,4 +58,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) d:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001033.lua b/unofficial/c511001033.lua index 005e50045e..c646232c73 100644 --- a/unofficial/c511001033.lua +++ b/unofficial/c511001033.lua @@ -12,11 +12,11 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter1(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0x70) and c:GetLevel()>0 + return c:IsFaceup() and c:IsSetCard(SET_CHRONOMALY) and c:GetLevel()>0 and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_HAND,0,1,nil,c:GetLevel(),e,tp) end function s.filter2(c,lv,e,tp) - return c:IsSetCard(0x70) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetLevel()==lv+1 + return c:IsSetCard(SET_CHRONOMALY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetLevel()==lv+1 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter1(chkc,e,tp) end @@ -34,5 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_HAND,0,1,1,nil,tc:GetLevel(),e,tp) local sc=g:GetFirst() Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP) -end - +end \ No newline at end of file diff --git a/unofficial/c511001034.lua b/unofficial/c511001034.lua index e2e56c6b6e..df41c8259e 100644 --- a/unofficial/c511001034.lua +++ b/unofficial/c511001034.lua @@ -15,7 +15,7 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local at=Duel.GetAttackTarget() - return a:IsSetCard(0x70) and at and at:IsRelateToBattle() and not at:IsStatus(STATUS_BATTLE_DESTROYED) + return a:IsSetCard(SET_CHRONOMALY) and at and at:IsRelateToBattle() and not at:IsStatus(STATUS_BATTLE_DESTROYED) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local a=Duel.GetAttacker() @@ -28,5 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.ChainAttack() end -end - +end \ No newline at end of file diff --git a/unofficial/c511001035.lua b/unofficial/c511001035.lua index 97f00b78ba..c8bb0f0fc3 100644 --- a/unofficial/c511001035.lua +++ b/unofficial/c511001035.lua @@ -44,4 +44,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001036.lua b/unofficial/c511001036.lua index 9986512ad4..a2c37c6e25 100644 --- a/unofficial/c511001036.lua +++ b/unofficial/c511001036.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.skipcon(e) return Duel.GetTurnCount()~=e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511001037.lua b/unofficial/c511001037.lua index 6e3d29acc8..777b0f846d 100644 --- a/unofficial/c511001037.lua +++ b/unofficial/c511001037.lua @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001038.lua b/unofficial/c511001038.lua index 2ee490edfe..bc451ff81c 100644 --- a/unofficial/c511001038.lua +++ b/unofficial/c511001038.lua @@ -21,4 +21,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE|PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001040.lua b/unofficial/c511001040.lua index d3456aeb39..be862c53db 100644 --- a/unofficial/c511001040.lua +++ b/unofficial/c511001040.lua @@ -87,4 +87,4 @@ function s.defval(e,c) tc=g:GetNext() end return def -end +end \ No newline at end of file diff --git a/unofficial/c511001041.lua b/unofficial/c511001041.lua index dffae5a421..5b0b013f5f 100644 --- a/unofficial/c511001041.lua +++ b/unofficial/c511001041.lua @@ -26,4 +26,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001042.lua b/unofficial/c511001042.lua index dabb4b0d22..436e329931 100644 --- a/unofficial/c511001042.lua +++ b/unofficial/c511001042.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x2016) + return c:IsFaceup() and c:IsSetCard(SET_SPEEDROID) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001043.lua b/unofficial/c511001043.lua index 8382782c4c..900d15558c 100644 --- a/unofficial/c511001043.lua +++ b/unofficial/c511001043.lua @@ -25,10 +25,10 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.sccon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,lsc,rsc) - return c:IsFaceup() and c:IsAbleToGrave() and (c:IsLevelBelow(lsc) or c:IsLevelBelow(rsc)) and c:IsSummonType(SUMMON_TYPE_PENDULUM) + return c:IsFaceup() and c:IsAbleToGrave() and (c:IsLevelBelow(lsc) or c:IsLevelBelow(rsc)) and c:IsPendulumSummoned() end function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -71,4 +71,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001044.lua b/unofficial/c511001044.lua index 3b61aa3018..5fdde6e352 100644 --- a/unofficial/c511001044.lua +++ b/unofficial/c511001044.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.sccon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,lv) return c:IsFaceup() and c:IsAbleToGrave() and c:IsLevelBelow(lv) and c:GetSummonType()==SUMMON_TYPE_PENDULUM @@ -74,4 +74,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001045.lua b/unofficial/c511001045.lua index c85acda996..b5a4b687b7 100644 --- a/unofficial/c511001045.lua +++ b/unofficial/c511001045.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001048.lua b/unofficial/c511001048.lua index 6a760e7aa0..6e7a90accc 100644 --- a/unofficial/c511001048.lua +++ b/unofficial/c511001048.lua @@ -30,13 +30,13 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xaf) + return c:IsFaceup() and c:IsSetCard(SET_DD) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return not eg:IsContains(e:GetHandler()) and eg:IsExists(s.cfilter,1,nil) end function s.spfilter(c,e,tp) - return c:IsSetCard(0xaf) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_DD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -69,4 +69,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp,chk) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001049.lua b/unofficial/c511001049.lua index 081d161000..ac2b4c8e4a 100644 --- a/unofficial/c511001049.lua +++ b/unofficial/c511001049.lua @@ -74,4 +74,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,100,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001050.lua b/unofficial/c511001050.lua index a119374e94..1e2f11144b 100644 --- a/unofficial/c511001050.lua +++ b/unofficial/c511001050.lua @@ -73,4 +73,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001051.lua b/unofficial/c511001051.lua index e29feaccb1..5db0a376fd 100644 --- a/unofficial/c511001051.lua +++ b/unofficial/c511001051.lua @@ -65,4 +65,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001052.lua b/unofficial/c511001052.lua index 1a3576b796..59846f1957 100644 --- a/unofficial/c511001052.lua +++ b/unofficial/c511001052.lua @@ -46,4 +46,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001055.lua b/unofficial/c511001055.lua index 812ff4747b..41b922bad2 100644 --- a/unofficial/c511001055.lua +++ b/unofficial/c511001055.lua @@ -11,10 +11,10 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x10db) and c:GetLevel()==3 + return c:IsFaceup() and c:IsSetCard(SET_THE_PHANTOM_KNIGHTS) and c:GetLevel()==3 end function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511001056.lua b/unofficial/c511001056.lua index f669b0b546..3ddb3bcf21 100644 --- a/unofficial/c511001056.lua +++ b/unofficial/c511001056.lua @@ -20,4 +20,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT,1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001057.lua b/unofficial/c511001057.lua index 820ea3dfeb..eb4c7bbf34 100644 --- a/unofficial/c511001057.lua +++ b/unofficial/c511001057.lua @@ -17,4 +17,4 @@ end s.listed_names={44203504,46700124} function s.val(e,c) return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsRace,RACE_MACHINE),c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,nil)*500 -end +end \ No newline at end of file diff --git a/unofficial/c511001058.lua b/unofficial/c511001058.lua index aa2af8ea2b..93ae90fdc8 100644 --- a/unofficial/c511001058.lua +++ b/unofficial/c511001058.lua @@ -40,4 +40,4 @@ function s.con(e) end function s.val(e) return e:GetHandler():GetFirstCardTarget():GetLevel() -end +end \ No newline at end of file diff --git a/unofficial/c511001059.lua b/unofficial/c511001059.lua index bfc1289b7e..84b83ba65a 100644 --- a/unofficial/c511001059.lua +++ b/unofficial/c511001059.lua @@ -16,4 +16,4 @@ function s.negcon(e,tp,eg,ep,ev,re,r,rp) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511001060.lua b/unofficial/c511001060.lua index 95a1b29fc4..18e482f58b 100644 --- a/unofficial/c511001060.lua +++ b/unofficial/c511001060.lua @@ -16,7 +16,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 end function s.filter(c,e,tp) - return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001061.lua b/unofficial/c511001061.lua index 1c69fd59c9..bf792e0c6e 100644 --- a/unofficial/c511001061.lua +++ b/unofficial/c511001061.lua @@ -16,7 +16,7 @@ function s.cfilter(c,tp) return c:IsPreviousControler(1-tp) and c:IsMonster() end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x86) + return c:IsFaceup() and c:IsSetCard(SET_STAR_SERAPH) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) @@ -30,4 +30,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001062.lua b/unofficial/c511001062.lua index d77784dd79..ba4531beba 100644 --- a/unofficial/c511001062.lua +++ b/unofficial/c511001062.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511001063.lua b/unofficial/c511001063.lua index c936dbafcc..696f194974 100644 --- a/unofficial/c511001063.lua +++ b/unofficial/c511001063.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local dg=sg:Filter(Card.IsLocation,nil,LOCATION_HAND) local sum=dg:GetSum(Card.GetLevel) Duel.Damage(1-tp,sum*500,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001064.lua b/unofficial/c511001064.lua index 3b259d2433..16e394adc9 100644 --- a/unofficial/c511001064.lua +++ b/unofficial/c511001064.lua @@ -96,4 +96,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001065.lua b/unofficial/c511001065.lua index e6fac8f6f1..d294fdb712 100644 --- a/unofficial/c511001065.lua +++ b/unofficial/c511001065.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end) end -end +end \ No newline at end of file diff --git a/unofficial/c511001066.lua b/unofficial/c511001066.lua index 9393e3338c..3d45e25aa2 100644 --- a/unofficial/c511001066.lua +++ b/unofficial/c511001066.lua @@ -31,7 +31,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end local chkcost=e:GetLabel()==1 and true or false - local rg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if chk==0 then if chkcost then @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001067.lua b/unofficial/c511001067.lua index fac386fb23..cc60badaef 100644 --- a/unofficial/c511001067.lua +++ b/unofficial/c511001067.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001068.lua b/unofficial/c511001068.lua index b9a205712f..341418280b 100644 --- a/unofficial/c511001068.lua +++ b/unofficial/c511001068.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001069.lua b/unofficial/c511001069.lua index eaccf1cd3f..a5cf39e683 100644 --- a/unofficial/c511001069.lua +++ b/unofficial/c511001069.lua @@ -28,5 +28,5 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_ONFIELD,0,1,nil) end function s.tdtg(e,c) - return (c:IsFacedown() or not c:IsSetCard(0xb3)) and c:IsReason(REASON_EFFECT) -end + return (c:IsFacedown() or not c:IsSetCard(SET_YOSENJU)) and c:IsReason(REASON_EFFECT) +end \ No newline at end of file diff --git a/unofficial/c511001070.lua b/unofficial/c511001070.lua index 27e7ff83c9..0ec90e6486 100644 --- a/unofficial/c511001070.lua +++ b/unofficial/c511001070.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x8} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x8) + return c:IsFaceup() and c:IsSetCard(SET_HERO) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -58,7 +58,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.eqlimit(e,c) - return c:GetControler()==e:GetOwnerPlayer() and c:IsSetCard(0x8) + return c:GetControler()==e:GetOwnerPlayer() and c:IsSetCard(SET_HERO) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -84,4 +84,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) local ct=math.floor(Duel.GetBattleDamage(tp)/1000) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Draw(p,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001071.lua b/unofficial/c511001071.lua index 494bc62e46..f45a5ec1f0 100644 --- a/unofficial/c511001071.lua +++ b/unofficial/c511001071.lua @@ -17,18 +17,18 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) end function s.cfilter(c) - return c:IsSetCard(0x8) and c:IsMonster() and c:IsAbleToRemove() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_HERO) and c:IsMonster() and c:IsAbleToRemove() and aux.SpElimFilter(c,true) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local d=Duel.GetAttackTarget() - if chk==0 then return (d and d:IsSetCard(0x8)) - or (Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) and Duel.IsPlayerCanDraw(tp,1)) end - if not d or not d:IsSetCard(0x8) then + if chk==0 then return (d and d:IsSetCard(SET_HERO)) + or (Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) and Duel.IsPlayerCanDraw(tp,1)) end + if not d or not d:IsSetCard(SET_HERO) then Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end end function s.filter(c,tp) - return c:IsSetCard(0x8) and c:IsControler(tp) + return c:IsSetCard(SET_HERO) and c:IsControler(tp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() @@ -41,7 +41,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) tc:RegisterEffect(e1) end - local sg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local sg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if #sg<=0 then return end if #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(52687916,2)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) @@ -63,4 +63,4 @@ function s.damval(e,re,val,r,rp,rc) if r==REASON_BATTLE then return val/2 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511001072.lua b/unofficial/c511001072.lua index b017f319b4..9408c38ce3 100644 --- a/unofficial/c511001072.lua +++ b/unofficial/c511001072.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:GetAttackAnnouncedCount()==0 and c:IsFaceup() and c:IsSetCard(0x3008) + return c:GetAttackAnnouncedCount()==0 and c:IsFaceup() and c:IsSetCard(SET_ELEMENTAL_HERO) and Duel.IsExistingMatchingCard(s.dfilter,c:GetControler(),0,LOCATION_MZONE,1,c,c:GetBaseAttack()) end function s.dfilter(c,atk) @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.SelectMatchingCard(tp,s.dfilter,tp,0,LOCATION_MZONE,1,1,nil,tc:GetBaseAttack()) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001073.lua b/unofficial/c511001073.lua index 7c271cdf39..7c098918d2 100644 --- a/unofficial/c511001073.lua +++ b/unofficial/c511001073.lua @@ -18,7 +18,7 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.cfilter,nil,e,tp) local ph=Duel.GetCurrentPhase() - return #g==1 and Duel.GetTurnPlayer()==tp and ph>=0x08 and ph<=0x20 + return #g==1 and Duel.IsTurnPlayer(tp) and ph>=0x08 and ph<=0x20 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,0,LOCATION_MZONE,1,nil) @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001074.lua b/unofficial/c511001074.lua index d6407eb331..2dbaa5d2a4 100644 --- a/unofficial/c511001074.lua +++ b/unofficial/c511001074.lua @@ -35,17 +35,17 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.thfilter(c) - return c:IsSetCard(0x46) and c:IsAbleToHand() + return c:IsSetCard(SET_FUSION) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end - Duel.SetOperationInfo(0,CATEGORY_TOHAND,0,1,0,LOCATION_DECK+LOCATION_GRAVE) + if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil) end + Duel.SetOperationInfo(0,CATEGORY_TOHAND,0,1,0,LOCATION_DECK|LOCATION_GRAVE) end function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil) if #g>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001075.lua b/unofficial/c511001075.lua index 332af31406..05a2ae22a2 100644 --- a/unofficial/c511001075.lua +++ b/unofficial/c511001075.lua @@ -83,4 +83,4 @@ function s.value(e,c) else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c511001077.lua b/unofficial/c511001077.lua index efe9d09811..0deff48a9b 100644 --- a/unofficial/c511001077.lua +++ b/unofficial/c511001077.lua @@ -25,4 +25,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511001078.lua b/unofficial/c511001078.lua index 60c0fd6f15..666f5336fe 100644 --- a/unofficial/c511001078.lua +++ b/unofficial/c511001078.lua @@ -18,14 +18,14 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,e:GetHandler(),e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,e:GetHandler(),e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_GRAVE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,e:GetHandler(),e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,1,e:GetHandler(),e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001079.lua b/unofficial/c511001079.lua index 08abebd2a9..a32ad03ad7 100644 --- a/unofficial/c511001079.lua +++ b/unofficial/c511001079.lua @@ -19,4 +19,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_MZONE,0,2,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511001080.lua b/unofficial/c511001080.lua index e4c064e2b0..bfb648a019 100644 --- a/unofficial/c511001080.lua +++ b/unofficial/c511001080.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.bttg(e,c) return c~=e:GetHandler() and c:IsSetCard(0x512) -end +end \ No newline at end of file diff --git a/unofficial/c511001081.lua b/unofficial/c511001081.lua index 9ddceadb3c..688eb8af35 100644 --- a/unofficial/c511001081.lua +++ b/unofficial/c511001081.lua @@ -78,4 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001082.lua b/unofficial/c511001082.lua index 91780161a0..0ff61dd26c 100644 --- a/unofficial/c511001082.lua +++ b/unofficial/c511001082.lua @@ -78,4 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001083.lua b/unofficial/c511001083.lua index e919bbc0e1..93e0be1dd1 100644 --- a/unofficial/c511001083.lua +++ b/unofficial/c511001083.lua @@ -78,4 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001084.lua b/unofficial/c511001084.lua index 954ef97753..034147b011 100644 --- a/unofficial/c511001084.lua +++ b/unofficial/c511001084.lua @@ -78,4 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001085.lua b/unofficial/c511001085.lua index d9957ec58d..0ba5daaba5 100644 --- a/unofficial/c511001085.lua +++ b/unofficial/c511001085.lua @@ -78,4 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001086.lua b/unofficial/c511001086.lua index b6a793b235..4928bc0bed 100644 --- a/unofficial/c511001086.lua +++ b/unofficial/c511001086.lua @@ -54,4 +54,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,0,nil) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001087.lua b/unofficial/c511001087.lua index d783ac7acb..ba3513be5a 100644 --- a/unofficial/c511001087.lua +++ b/unofficial/c511001087.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(Group.FromCards(fc)) Duel.Overlay(fc,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001088.lua b/unofficial/c511001088.lua index 3f85ec84e6..9ca0753883 100644 --- a/unofficial/c511001088.lua +++ b/unofficial/c511001088.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001089.lua b/unofficial/c511001089.lua index 8bd05c256e..727f3ee941 100644 --- a/unofficial/c511001089.lua +++ b/unofficial/c511001089.lua @@ -45,4 +45,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK) Duel.Damage(1-tp,#g*300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001090.lua b/unofficial/c511001090.lua index ded046da67..3958dec8e7 100644 --- a/unofficial/c511001090.lua +++ b/unofficial/c511001090.lua @@ -61,4 +61,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001091.lua b/unofficial/c511001091.lua index 9d6a9bf229..fb433ff2e0 100644 --- a/unofficial/c511001091.lua +++ b/unofficial/c511001091.lua @@ -61,4 +61,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001092.lua b/unofficial/c511001092.lua index 41b1b93af3..c398f7507c 100644 --- a/unofficial/c511001092.lua +++ b/unofficial/c511001092.lua @@ -61,4 +61,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001093.lua b/unofficial/c511001093.lua index 5a0a135bc0..36dfc77e64 100644 --- a/unofficial/c511001093.lua +++ b/unofficial/c511001093.lua @@ -61,4 +61,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001094.lua b/unofficial/c511001094.lua index 25f469ab28..dcecf3cec5 100644 --- a/unofficial/c511001094.lua +++ b/unofficial/c511001094.lua @@ -42,4 +42,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001095.lua b/unofficial/c511001095.lua index b57458ee1e..d919614187 100644 --- a/unofficial/c511001095.lua +++ b/unofficial/c511001095.lua @@ -61,4 +61,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001096.lua b/unofficial/c511001096.lua index 731b0a04c6..c99e8772ad 100644 --- a/unofficial/c511001096.lua +++ b/unofficial/c511001096.lua @@ -61,4 +61,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001097.lua b/unofficial/c511001097.lua index 4e9643687c..f6960082e0 100644 --- a/unofficial/c511001097.lua +++ b/unofficial/c511001097.lua @@ -61,4 +61,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001098.lua b/unofficial/c511001098.lua index e01d871bce..e6b039a402 100644 --- a/unofficial/c511001098.lua +++ b/unofficial/c511001098.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(1-tp,1,REASON_EFFECT) Duel.Recover(1-tp,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001100.lua b/unofficial/c511001100.lua index 84e0fb60c5..843535e3ca 100644 --- a/unofficial/c511001100.lua +++ b/unofficial/c511001100.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RDComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001101.lua b/unofficial/c511001101.lua index 2a112ba6c7..8bd9aceb08 100644 --- a/unofficial/c511001101.lua +++ b/unofficial/c511001101.lua @@ -67,13 +67,13 @@ function s.crystalop(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RaiseEvent(c,47408488,e,0,tp,0,0) end function s.placetg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,0x33,0,1,nil,0x1034) + if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,SET_BLACKWING,0,1,nil,SET_CRYSTAL_BEAST) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end end function s.placeop(e,tp,eg,ep,ev,re,r,rp,chk) if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) - local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,0x33,0,1,1,nil,0x1034) + local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,SET_BLACKWING,0,1,1,nil,SET_CRYSTAL_BEAST) if #g>0 then local tc=g:GetFirst() Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) @@ -86,4 +86,4 @@ function s.placeop(e,tp,eg,ep,ev,re,r,rp,chk) tc:RegisterEffect(e1) Duel.RaiseEvent(tc,47408488,e,0,tp,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511001102.lua b/unofficial/c511001102.lua index c95b1a0399..8b5c8a1ab8 100644 --- a/unofficial/c511001102.lua +++ b/unofficial/c511001102.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001103.lua b/unofficial/c511001103.lua index 9f0939591c..279189d050 100644 --- a/unofficial/c511001103.lua +++ b/unofficial/c511001103.lua @@ -50,4 +50,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001104.lua b/unofficial/c511001104.lua index 8edf2f9856..0a2fa5c4cf 100644 --- a/unofficial/c511001104.lua +++ b/unofficial/c511001104.lua @@ -45,4 +45,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001105.lua b/unofficial/c511001105.lua index f2e199f65d..966649bb23 100644 --- a/unofficial/c511001105.lua +++ b/unofficial/c511001105.lua @@ -17,9 +17,9 @@ function s.filter(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and s.filter(chk) end - if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) end function s.mgfilter(c,e,tp,sync) @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001106.lua b/unofficial/c511001106.lua index 8400d9d58e..42e2e4fa9f 100644 --- a/unofficial/c511001106.lua +++ b/unofficial/c511001106.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() - return tc:IsSummonType(SUMMON_TYPE_SYNCHRO) and ep~=tp + return tc:IsSynchroSummoned() and ep~=tp end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return eg:GetFirst():IsAbleToExtra() end @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e3=e2:Clone() e3:SetCode(EFFECT_CANNOT_FLIP_SUMMON) Duel.RegisterEffect(e3,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001108.lua b/unofficial/c511001108.lua index f5b65a9910..1b9663e0ff 100644 --- a/unofficial/c511001108.lua +++ b/unofficial/c511001108.lua @@ -20,14 +20,14 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x1034) end + if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,SET_CRYSTAL_BEAST) end Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,nil,1,tp,LOCATION_GRAVE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_SZONE) if ft<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOFIELD) - local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_GRAVE,0,ft,ft,nil,0x1034) + local g=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_GRAVE,0,ft,ft,nil,SET_CRYSTAL_BEAST) if #g>0 then local tc=g:GetFirst() while tc do @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.RaiseEvent(g,47408488,e,0,tp,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511001109.lua b/unofficial/c511001109.lua index df7ec3e284..e7c96d210b 100644 --- a/unofficial/c511001109.lua +++ b/unofficial/c511001109.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) Duel.CalculateDamage(tc,nil) end -end +end \ No newline at end of file diff --git a/unofficial/c511001111.lua b/unofficial/c511001111.lua index eb9eaa2c6e..af1e125f2d 100644 --- a/unofficial/c511001111.lua +++ b/unofficial/c511001111.lua @@ -63,7 +63,7 @@ function s.crystalop(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RaiseEvent(c,47408488,e,0,tp,0,0) end function s.returnfilter(c) - return c:IsSetCard(0x1034) and c:IsAbleToHand() and c:IsFaceup() + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsAbleToHand() and c:IsFaceup() end function s.returntg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and s.returnfilter(chkc) end @@ -77,4 +77,4 @@ function s.returnop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoDeck(tc,nil,0,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001112.lua b/unofficial/c511001112.lua index fd629183db..c3b6b14e24 100644 --- a/unofficial/c511001112.lua +++ b/unofficial/c511001112.lua @@ -76,4 +76,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if op then op(e,tp,eg,ep,ev,re,r,rp) end c:CancelToGrave() end -end +end \ No newline at end of file diff --git a/unofficial/c511001113.lua b/unofficial/c511001113.lua index 009c6d03f8..ab773ce695 100644 --- a/unofficial/c511001113.lua +++ b/unofficial/c511001113.lua @@ -60,4 +60,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,tc1:GetBaseAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001114.lua b/unofficial/c511001114.lua index 399368f594..5fae169f58 100644 --- a/unofficial/c511001114.lua +++ b/unofficial/c511001114.lua @@ -70,7 +70,7 @@ function s.crystalop(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RaiseEvent(c,47408488,e,0,tp,0,0) end function s.crystalstobeastfilter(c,e,sp) - return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,sp,true,false) + return c:IsFaceup() and c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsCanBeSpecialSummoned(e,0,sp,true,false) end function s.crystalstobeaststg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.crystalstobeastfilter,tp,LOCATION_SZONE,0,1,nil,e,tp) @@ -108,4 +108,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001115.lua b/unofficial/c511001115.lua index 104ab5fe85..483f61a5fc 100644 --- a/unofficial/c511001115.lua +++ b/unofficial/c511001115.lua @@ -70,4 +70,4 @@ function s.rdcon(e,tp,eg,ep,ev,re,r,rp) end function s.rdop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,ev/2) -end +end \ No newline at end of file diff --git a/unofficial/c511001116.lua b/unofficial/c511001116.lua index f2ec003217..61fb4c2d31 100644 --- a/unofficial/c511001116.lua +++ b/unofficial/c511001116.lua @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001117.lua b/unofficial/c511001117.lua index 8f804e8d55..de44f75e18 100644 --- a/unofficial/c511001117.lua +++ b/unofficial/c511001117.lua @@ -84,4 +84,4 @@ end function s.atkval(e,c) local tp=e:GetHandlerPlayer() return Duel.GetFieldGroupCount(tp,LOCATION_GRAVE,0)*100 -end +end \ No newline at end of file diff --git a/unofficial/c511001118.lua b/unofficial/c511001118.lua index 9ca257e787..d9cea2d5b8 100644 --- a/unofficial/c511001118.lua +++ b/unofficial/c511001118.lua @@ -39,8 +39,8 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() while tc do if tc:IsLocation(LOCATION_GRAVE) then - tc:RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,2,1) + tc:RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,2,1) end tc=eg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001119.lua b/unofficial/c511001119.lua index 5e2117aef4..c272978989 100644 --- a/unofficial/c511001119.lua +++ b/unofficial/c511001119.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) g=g:RandomSelect(tp,10) Duel.DisableShuffleCheck() Duel.SendtoGrave(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001120.lua b/unofficial/c511001120.lua index 641d9e8224..3f5f2f0549 100644 --- a/unofficial/c511001120.lua +++ b/unofficial/c511001120.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if (op==0 and atk>2000) or (op==1 and atk<2000) then Duel.SendtoHand(tc,tp,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001121.lua b/unofficial/c511001121.lua index 558a887906..106e841f99 100644 --- a/unofficial/c511001121.lua +++ b/unofficial/c511001121.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001122.lua b/unofficial/c511001122.lua index ee7de3b7da..b79eccaddd 100644 --- a/unofficial/c511001122.lua +++ b/unofficial/c511001122.lua @@ -199,4 +199,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SSet(tp,tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001123.lua b/unofficial/c511001123.lua index c13805c445..a105232218 100644 --- a/unofficial/c511001123.lua +++ b/unofficial/c511001123.lua @@ -84,4 +84,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001124.lua b/unofficial/c511001124.lua index d24183e61e..897b43bc73 100644 --- a/unofficial/c511001124.lua +++ b/unofficial/c511001124.lua @@ -68,4 +68,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) end function s.repval(e,re,r,rp) return (r&REASON_BATTLE)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511001125.lua b/unofficial/c511001125.lua index 51c2c17a03..29fe8c8df3 100644 --- a/unofficial/c511001125.lua +++ b/unofficial/c511001125.lua @@ -69,4 +69,4 @@ function s.resetop(e,tp,eg,ep,ev,re,r,rp) c:RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD,0,0) local ct=c:GetFlagEffect(id) c:SetTurnCounter(ct) -end +end \ No newline at end of file diff --git a/unofficial/c511001127.lua b/unofficial/c511001127.lua index 942a1db5be..2918937134 100644 --- a/unofficial/c511001127.lua +++ b/unofficial/c511001127.lua @@ -29,15 +29,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001129.lua b/unofficial/c511001129.lua index 6046f68053..08755d5c4f 100644 --- a/unofficial/c511001129.lua +++ b/unofficial/c511001129.lua @@ -43,4 +43,4 @@ function s.plop(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511001130.lua b/unofficial/c511001130.lua index f800f060fa..55b9fc24d5 100644 --- a/unofficial/c511001130.lua +++ b/unofficial/c511001130.lua @@ -71,4 +71,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end e:SetLabel(0) e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511001131.lua b/unofficial/c511001131.lua index bc41957608..6d60c0c144 100644 --- a/unofficial/c511001131.lua +++ b/unofficial/c511001131.lua @@ -68,4 +68,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) Duel.AttackCostPaid(2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001132.lua b/unofficial/c511001132.lua index 8f8123bf3d..64c65e6945 100644 --- a/unofficial/c511001132.lua +++ b/unofficial/c511001132.lua @@ -66,7 +66,7 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) for tc in aux.Next(eg) do if tc:IsMonster() and tc:IsPreviousLocation(LOCATION_MZONE) then tc:RegisterFlagEffect(id+tc:GetPreviousControler(),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) - Duel.RegisterFlagEffect(tc:GetPreviousControler(),id+2,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tc:GetPreviousControler(),id+2,RESET_PHASE|PHASE_END,0,1) end end end @@ -108,4 +108,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.PayLPCost(tp,1000) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001134.lua b/unofficial/c511001134.lua index f9fe364441..1ab73fc06e 100644 --- a/unofficial/c511001134.lua +++ b/unofficial/c511001134.lua @@ -77,4 +77,4 @@ function s.shellop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511001135.lua b/unofficial/c511001135.lua index a7998d29a9..4ddb90e31c 100644 --- a/unofficial/c511001135.lua +++ b/unofficial/c511001135.lua @@ -63,8 +63,8 @@ end function s.protectcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local bt=eg:GetFirst() - return r~=REASON_REPLACE and c~=bt and bt:IsFaceup() and bt:IsSetCard(0x1034) and bt:GetControler()==c:GetControler() + return r~=REASON_REPLACE and c~=bt and bt:IsFaceup() and bt:IsSetCard(SET_CRYSTAL_BEAST) and bt:GetControler()==c:GetControler() end function s.protectop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeAttackTarget(e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511001136.lua b/unofficial/c511001136.lua index f5396b0fbf..7a88bbd691 100644 --- a/unofficial/c511001136.lua +++ b/unofficial/c511001136.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.SendtoHand(g,tp,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001137.lua b/unofficial/c511001137.lua index 355522bb23..088c5c7548 100644 --- a/unofficial/c511001137.lua +++ b/unofficial/c511001137.lua @@ -35,4 +35,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD) e1:SetValue(500) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001138.lua b/unofficial/c511001138.lua index 7d21cf2a5b..a792f7feeb 100644 --- a/unofficial/c511001138.lua +++ b/unofficial/c511001138.lua @@ -29,15 +29,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001139.lua b/unofficial/c511001139.lua index b25fc4c96f..d217c80c58 100644 --- a/unofficial/c511001139.lua +++ b/unofficial/c511001139.lua @@ -125,4 +125,4 @@ function s.banop(e,tp,eg,ep,ev,re,r,rp) if ct<7 then Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001140.lua b/unofficial/c511001140.lua index 9d3d38b006..b07df8c622 100644 --- a/unofficial/c511001140.lua +++ b/unofficial/c511001140.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001141.lua b/unofficial/c511001141.lua index ead3c846e5..ee30723615 100644 --- a/unofficial/c511001141.lua +++ b/unofficial/c511001141.lua @@ -32,4 +32,4 @@ function s.rop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD) e1:SetValue(ct*500) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001142.lua b/unofficial/c511001142.lua index bab651e7b1..fbc3bad311 100644 --- a/unofficial/c511001142.lua +++ b/unofficial/c511001142.lua @@ -27,4 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.DisableShuffleCheck() Duel.Remove(rg,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001143.lua b/unofficial/c511001143.lua index 5e5204ed6c..101fdfafa6 100644 --- a/unofficial/c511001143.lua +++ b/unofficial/c511001143.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,dct,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001144.lua b/unofficial/c511001144.lua index 521fd0f1cd..c5944497ac 100644 --- a/unofficial/c511001144.lua +++ b/unofficial/c511001144.lua @@ -63,4 +63,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g2>0 then Duel.SendtoHand(g2,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001145.lua b/unofficial/c511001145.lua index e1f853082d..0c9f4408ca 100644 --- a/unofficial/c511001145.lua +++ b/unofficial/c511001145.lua @@ -129,4 +129,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001147.lua b/unofficial/c511001147.lua index c85e167dfa..4170175845 100644 --- a/unofficial/c511001147.lua +++ b/unofficial/c511001147.lua @@ -54,4 +54,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if Duel.GetTurnPlayer()~=tp then return end Duel.Hint(HINT_CARD,0,id) s.atkop(e,tp,eg,ep,ev,re,r,rp) -end +end \ No newline at end of file diff --git a/unofficial/c511001148.lua b/unofficial/c511001148.lua index 0d769d5bd4..17fe017b81 100644 --- a/unofficial/c511001148.lua +++ b/unofficial/c511001148.lua @@ -63,4 +63,4 @@ function s.furycon(e) local phase=Duel.GetCurrentPhase() return (phase==PHASE_DAMAGE or phase==PHASE_DAMAGE_CAL) and Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget()~=nil -end +end \ No newline at end of file diff --git a/unofficial/c511001149.lua b/unofficial/c511001149.lua index a2206e6cc6..63f096b7fa 100644 --- a/unofficial/c511001149.lua +++ b/unofficial/c511001149.lua @@ -36,7 +36,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) end function s.discon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.disop(e,tp,eg,ep,ev,re,r,rp) local ct=e:GetLabel()+1 @@ -47,4 +47,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD) if re then re:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001151.lua b/unofficial/c511001151.lua index f7341e410d..b610fd6cd2 100644 --- a/unofficial/c511001151.lua +++ b/unofficial/c511001151.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(g,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001152.lua b/unofficial/c511001152.lua index afde33579f..fd06b781ee 100644 --- a/unofficial/c511001152.lua +++ b/unofficial/c511001152.lua @@ -79,4 +79,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) bc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001153.lua b/unofficial/c511001153.lua index 8c2eca57e2..71a2452a2e 100644 --- a/unofficial/c511001153.lua +++ b/unofficial/c511001153.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001155.lua b/unofficial/c511001155.lua index de1791a169..ad2481138a 100644 --- a/unofficial/c511001155.lua +++ b/unofficial/c511001155.lua @@ -63,4 +63,4 @@ function s.damcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return val end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return 0 -end +end \ No newline at end of file diff --git a/unofficial/c511001156.lua b/unofficial/c511001156.lua index 19b678cc6b..072118c335 100644 --- a/unofficial/c511001156.lua +++ b/unofficial/c511001156.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001158.lua b/unofficial/c511001158.lua index 33d45fcc15..174f021caf 100644 --- a/unofficial/c511001158.lua +++ b/unofficial/c511001158.lua @@ -48,4 +48,4 @@ end function s.ntcon(e,c) if c==nil then return true end return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511001159.lua b/unofficial/c511001159.lua index 9bfb440ad1..8a3c908b7f 100644 --- a/unofficial/c511001159.lua +++ b/unofficial/c511001159.lua @@ -60,4 +60,4 @@ function s.effcon2(e,tp,eg,ep,ev,re,r,rp) end function s.effop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,1000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001160.lua b/unofficial/c511001160.lua index 0816bc6397..e6605c928c 100644 --- a/unofficial/c511001160.lua +++ b/unofficial/c511001160.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.prcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) and Duel.GetCurrentChain()==0 + return Duel.IsTurnPlayer(tp) and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) and Duel.GetCurrentChain()==0 end function s.prtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) end @@ -80,4 +80,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001161.lua b/unofficial/c511001161.lua index 40eb14a0e3..d26f107b93 100644 --- a/unofficial/c511001161.lua +++ b/unofficial/c511001161.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroupCount(s.damfilter,tp,LOCATION_MZONE,0,nil)*400 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001162.lua b/unofficial/c511001162.lua index 9c5eabef8f..778aa7026b 100644 --- a/unofficial/c511001162.lua +++ b/unofficial/c511001162.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if ct~=0 then Duel.Damage(1-tp,ct*300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001164.lua b/unofficial/c511001164.lua index 8edd4e24e4..4fbfb4a75c 100644 --- a/unofficial/c511001164.lua +++ b/unofficial/c511001164.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001166.lua b/unofficial/c511001166.lua index 4a950f7d37..3cc7a24a20 100644 --- a/unofficial/c511001166.lua +++ b/unofficial/c511001166.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001167.lua b/unofficial/c511001167.lua index 04ae962419..2682b62602 100644 --- a/unofficial/c511001167.lua +++ b/unofficial/c511001167.lua @@ -100,4 +100,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) Duel.Overlay(tc,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511001168.lua b/unofficial/c511001168.lua index 78464f12ac..59888f36a7 100644 --- a/unofficial/c511001168.lua +++ b/unofficial/c511001168.lua @@ -40,4 +40,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001169.lua b/unofficial/c511001169.lua index 4f7e07ac36..230931f737 100644 --- a/unofficial/c511001169.lua +++ b/unofficial/c511001169.lua @@ -30,4 +30,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.atktarget(e,c,atk) return c:GetAttack()<=e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511001170.lua b/unofficial/c511001170.lua index 539d76229c..892ec15be7 100644 --- a/unofficial/c511001170.lua +++ b/unofficial/c511001170.lua @@ -77,4 +77,4 @@ function s.endop(e,tp,eg,ep,ev,re,r,rp) for _,te in ipairs(s[0]) do s.reset(te,te:GetOwnerPlayer(),nil,0,0,nil,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511001171.lua b/unofficial/c511001171.lua index e85d0be5e3..a6bdbba604 100644 --- a/unofficial/c511001171.lua +++ b/unofficial/c511001171.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001172.lua b/unofficial/c511001172.lua index 2037ea48f9..5da12f4090 100644 --- a/unofficial/c511001172.lua +++ b/unofficial/c511001172.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,1000,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001173.lua b/unofficial/c511001173.lua index 406f6f81d7..cc161c7f31 100644 --- a/unofficial/c511001173.lua +++ b/unofficial/c511001173.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()-1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001174.lua b/unofficial/c511001174.lua index 007523ff43..8dbca9b6cf 100644 --- a/unofficial/c511001174.lua +++ b/unofficial/c511001174.lua @@ -73,4 +73,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001175.lua b/unofficial/c511001175.lua index 06f4abcdb2..3189970a55 100644 --- a/unofficial/c511001175.lua +++ b/unofficial/c511001175.lua @@ -9,4 +9,4 @@ function s.initial_effect(c) e4:SetCode(EFFECT_EQUIP_SPELL_XYZ_MAT) e4:SetRange(LOCATION_SZONE) c:RegisterEffect(e4) -end +end \ No newline at end of file diff --git a/unofficial/c511001176.lua b/unofficial/c511001176.lua index aa3d502e2f..15dfd1819b 100644 --- a/unofficial/c511001176.lua +++ b/unofficial/c511001176.lua @@ -36,4 +36,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(1-tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001177.lua b/unofficial/c511001177.lua index 6d75289e96..625e8d072e 100644 --- a/unofficial/c511001177.lua +++ b/unofficial/c511001177.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001178.lua b/unofficial/c511001178.lua index 01bbd56312..d66d528269 100644 --- a/unofficial/c511001178.lua +++ b/unofficial/c511001178.lua @@ -20,7 +20,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.filter(c) - return c:IsSetCard(0x95) and c:IsAbleToHand() + return c:IsSetCard(SET_RANK_UP_MAGIC) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001179.lua b/unofficial/c511001179.lua index b7c9fd113f..a9fc7e2513 100644 --- a/unofficial/c511001179.lua +++ b/unofficial/c511001179.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511001180.lua b/unofficial/c511001180.lua index 13aae177a2..ce652a4290 100644 --- a/unofficial/c511001180.lua +++ b/unofficial/c511001180.lua @@ -16,7 +16,7 @@ s.listed_series={0x1048} function s.atkcon(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - return ep==tp and ((a:IsSetCard(0x1048) and a:IsControler(1-tp)) or (d and d:IsSetCard(0x1048) and d:IsControler(1-tp))) + return ep==tp and ((a:IsSetCard(SET_NUMBER_C) and a:IsControler(1-tp)) or (d and d:IsSetCard(SET_NUMBER_C) and d:IsControler(1-tp))) end function s.spfilter(c,code,e,tp) return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) @@ -55,4 +55,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001181.lua b/unofficial/c511001181.lua index 2d3f94bc1f..eea3dea86d 100644 --- a/unofficial/c511001181.lua +++ b/unofficial/c511001181.lua @@ -57,4 +57,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511001182.lua b/unofficial/c511001182.lua index 99205aa386..9b5f2716d4 100644 --- a/unofficial/c511001182.lua +++ b/unofficial/c511001182.lua @@ -55,4 +55,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local op=te:GetOperation() if op then op(e,tp,eg,ep,ev,re,r,rp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001183.lua b/unofficial/c511001183.lua index de957b9ab8..071888dcba 100644 --- a/unofficial/c511001183.lua +++ b/unofficial/c511001183.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.ReturnToField(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001184.lua b/unofficial/c511001184.lua index 52694f7e89..79016ef958 100644 --- a/unofficial/c511001184.lua +++ b/unofficial/c511001184.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=sg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001185.lua b/unofficial/c511001185.lua index cdcc094dcd..85f1a0cc27 100644 --- a/unofficial/c511001185.lua +++ b/unofficial/c511001185.lua @@ -71,4 +71,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-ep,ev,false) -end +end \ No newline at end of file diff --git a/unofficial/c511001186.lua b/unofficial/c511001186.lua index edbb1f5f6e..63eaaaba32 100644 --- a/unofficial/c511001186.lua +++ b/unofficial/c511001186.lua @@ -56,4 +56,4 @@ function s.cfop(e,tp,eg,ep,ev,re,r,rp) end tc=cg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001187.lua b/unofficial/c511001187.lua index b61104bef9..7eac6e39e9 100644 --- a/unofficial/c511001187.lua +++ b/unofficial/c511001187.lua @@ -16,7 +16,7 @@ end s.listed_series={0x1048} s.listed_names={56673480} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1048) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER_C) end function s.exscon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -35,7 +35,7 @@ function s.spfilter(c,e,tp) if class==nil then return false end local no=class.xyz_number return c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,true,false) - and no and no>=101 and no<=107 and c:IsSetCard(0x1048) + and no and no>=101 and no<=107 and c:IsSetCard(SET_NUMBER_C) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>2 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -67,4 +67,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:CompleteProcedure() end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001188.lua b/unofficial/c511001188.lua index 75db83e1e7..68b2591079 100644 --- a/unofficial/c511001188.lua +++ b/unofficial/c511001188.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) end s.listed_series={0x7b} function s.spfilter(c,e,tp) - return c:IsSetCard(0x7b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GALAXY) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -91,4 +91,4 @@ function s.ccost(e,tp) if e:GetHandler():GetEquipTarget():GetFlagEffect(511001187)==0 then Duel.Destroy(e:GetHandler():GetEquipTarget(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001189.lua b/unofficial/c511001189.lua index e567cea855..48e7129f0b 100644 --- a/unofficial/c511001189.lua +++ b/unofficial/c511001189.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001190.lua b/unofficial/c511001190.lua index 51e22e32f2..f6c071cd1b 100644 --- a/unofficial/c511001190.lua +++ b/unofficial/c511001190.lua @@ -11,4 +11,4 @@ function s.initial_effect(c) end function s.con(e) return e:GetHandler():IsLocation(LOCATION_GRAVE) -end +end \ No newline at end of file diff --git a/unofficial/c511001191.lua b/unofficial/c511001191.lua index 80c35625be..6838cad1ce 100644 --- a/unofficial/c511001191.lua +++ b/unofficial/c511001191.lua @@ -68,4 +68,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(Duel.GetAttacker():GetAttack()+100) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_DAMAGE) e:GetHandler():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001192.lua b/unofficial/c511001192.lua index b4e6b2f6f0..2c7d68d09c 100644 --- a/unofficial/c511001192.lua +++ b/unofficial/c511001192.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.tg(e,c) return c:IsRace(RACE_MACHINE) -end +end \ No newline at end of file diff --git a/unofficial/c511001193.lua b/unofficial/c511001193.lua index 53e3330612..2f9192e74f 100644 --- a/unofficial/c511001193.lua +++ b/unofficial/c511001193.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001194.lua b/unofficial/c511001194.lua index bb2c336ffa..f36426cde9 100644 --- a/unofficial/c511001194.lua +++ b/unofficial/c511001194.lua @@ -49,4 +49,4 @@ function s.tohand(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(tp,tc) Duel.ShuffleHand(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001195.lua b/unofficial/c511001195.lua index 4d59cc2bd7..b023ce2861 100644 --- a/unofficial/c511001195.lua +++ b/unofficial/c511001195.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001196.lua b/unofficial/c511001196.lua index a133b85f9e..5ec64506f7 100644 --- a/unofficial/c511001196.lua +++ b/unofficial/c511001196.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp,chk) local tc=eg:GetFirst() - return tc:IsPreviousControler(tp) and tc:IsSetCard(0x87) and tc:IsReason(REASON_BATTLE) + return tc:IsPreviousControler(tp) and tc:IsSetCard(SET_UMBRAL_HORROR) and tc:IsReason(REASON_BATTLE) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tg=eg:GetFirst():GetReasonCard() @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tg:IsRelateToEffect(e) then Duel.Destroy(tg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001197.lua b/unofficial/c511001197.lua index 6a49a4ff72..52d35fda03 100644 --- a/unofficial/c511001197.lua +++ b/unofficial/c511001197.lua @@ -41,4 +41,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001198.lua b/unofficial/c511001198.lua index d399727356..59367cafab 100644 --- a/unofficial/c511001198.lua +++ b/unofficial/c511001198.lua @@ -17,4 +17,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001199.lua b/unofficial/c511001199.lua index 60ac68eff4..ce505925a5 100644 --- a/unofficial/c511001199.lua +++ b/unofficial/c511001199.lua @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local g=eg:Filter(s.filter,nil,e) Duel.ChangePosition(g,0x4,0x4,0x4,0x4,true) -end +end \ No newline at end of file diff --git a/unofficial/c511001200.lua b/unofficial/c511001200.lua index 314d7bc9e4..8245d76cf1 100644 --- a/unofficial/c511001200.lua +++ b/unofficial/c511001200.lua @@ -118,4 +118,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001201.lua b/unofficial/c511001201.lua index 787012de86..989689b44b 100644 --- a/unofficial/c511001201.lua +++ b/unofficial/c511001201.lua @@ -27,4 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001202.lua b/unofficial/c511001202.lua index 51a5d6468d..dc38e43b4d 100644 --- a/unofficial/c511001202.lua +++ b/unofficial/c511001202.lua @@ -91,4 +91,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local d=Duel.GetMatchingGroupCount(Card.IsCode,tp,LOCATION_GRAVE,0,nil,26293219)*400 Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001203.lua b/unofficial/c511001203.lua index 340cc35f62..f443fa520e 100644 --- a/unofficial/c511001203.lua +++ b/unofficial/c511001203.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local rec=tc:GetAttack() Duel.Destroy(tc,REASON_EFFECT) if Duel.Recover(tp,rec,REASON_EFFECT)==0 then return end -end +end \ No newline at end of file diff --git a/unofficial/c511001204.lua b/unofficial/c511001204.lua index 3ee045a22d..9f2a912dba 100644 --- a/unofficial/c511001204.lua +++ b/unofficial/c511001204.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_DOUBLE_TRIBUTE) e1:SetValue(aux.TargetBoolFunction(Card.IsRace,RACE_WARRIOR)) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001205.lua b/unofficial/c511001205.lua index d6c5acfc8d..b8eab31cc2 100644 --- a/unofficial/c511001205.lua +++ b/unofficial/c511001205.lua @@ -24,4 +24,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001206.lua b/unofficial/c511001206.lua index 3e3cf71264..9c4247fd93 100644 --- a/unofficial/c511001206.lua +++ b/unofficial/c511001206.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeAttackTarget(tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001207.lua b/unofficial/c511001207.lua index 6d60ecc2b5..4c9a056b38 100644 --- a/unofficial/c511001207.lua +++ b/unofficial/c511001207.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001208.lua b/unofficial/c511001208.lua index a912f90776..2228009117 100644 --- a/unofficial/c511001208.lua +++ b/unofficial/c511001208.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP_ATTACK) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001209.lua b/unofficial/c511001209.lua index d0a6aa0eba..17f6942158 100644 --- a/unofficial/c511001209.lua +++ b/unofficial/c511001209.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001210.lua b/unofficial/c511001210.lua index 97c27837c1..3d4e771109 100644 --- a/unofficial/c511001210.lua +++ b/unofficial/c511001210.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001211.lua b/unofficial/c511001211.lua index 18fa4fd056..1221d6f72b 100644 --- a/unofficial/c511001211.lua +++ b/unofficial/c511001211.lua @@ -36,5 +36,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end - +end \ No newline at end of file diff --git a/unofficial/c511001212.lua b/unofficial/c511001212.lua index 5a20fbb042..ae362a52b2 100644 --- a/unofficial/c511001212.lua +++ b/unofficial/c511001212.lua @@ -18,5 +18,4 @@ function s.initial_effect(c) end function s.splimit(e,c,tp,sumtp,sumpos) return (sumtp&SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO -end - +end \ No newline at end of file diff --git a/unofficial/c511001213.lua b/unofficial/c511001213.lua index 6ebc677d7b..995483bb99 100644 --- a/unofficial/c511001213.lua +++ b/unofficial/c511001213.lua @@ -76,4 +76,4 @@ function s.hspop(e,tp,eg,ep,ev,re,r,rp) end function s.atcon(e) return e:GetHandler():IsDefensePos() -end +end \ No newline at end of file diff --git a/unofficial/c511001214.lua b/unofficial/c511001214.lua index 7035c99de0..154825310f 100644 --- a/unofficial/c511001214.lua +++ b/unofficial/c511001214.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else Duel.Damage(tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001218.lua b/unofficial/c511001218.lua index 20854fb8c8..85974b7c8c 100644 --- a/unofficial/c511001218.lua +++ b/unofficial/c511001218.lua @@ -25,4 +25,4 @@ function s.filter2(c) end function s.val2(e,c) return Duel.GetMatchingGroupCount(s.filter2,c:GetControler(),LOCATION_REMOVED,LOCATION_REMOVED,nil)*300 -end +end \ No newline at end of file diff --git a/unofficial/c511001219.lua b/unofficial/c511001219.lua index c85fb99f3e..6c771fd9a6 100644 --- a/unofficial/c511001219.lua +++ b/unofficial/c511001219.lua @@ -70,14 +70,14 @@ function s.spfilter(c,e,tp) return c:IsCode(511001218) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + if chk==0 then return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001220.lua b/unofficial/c511001220.lua index 3ed5219cbd..7a001d4985 100644 --- a/unofficial/c511001220.lua +++ b/unofficial/c511001220.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=sg:Select(tp,3,3,nil) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) -end +end \ No newline at end of file diff --git a/unofficial/c511001221.lua b/unofficial/c511001221.lua index fb1393acca..66dc15b4b4 100644 --- a/unofficial/c511001221.lua +++ b/unofficial/c511001221.lua @@ -18,4 +18,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,200,REASON_EFFECT) Duel.Recover(tp,200,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001222.lua b/unofficial/c511001222.lua index 343d48e27c..6f33016045 100644 --- a/unofficial/c511001222.lua +++ b/unofficial/c511001222.lua @@ -58,4 +58,4 @@ function s.redop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-300) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001223.lua b/unofficial/c511001223.lua index 7995de34e6..7e2b99c504 100644 --- a/unofficial/c511001223.lua +++ b/unofficial/c511001223.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(tc1,POS_FACEUP_DEFENSE) Duel.ChangePosition(tc2,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511001224.lua b/unofficial/c511001224.lua index 48132f36fe..fd0e8284d9 100644 --- a/unofficial/c511001224.lua +++ b/unofficial/c511001224.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511001225.lua b/unofficial/c511001225.lua index c087730ed8..9256483d6f 100644 --- a/unofficial/c511001225.lua +++ b/unofficial/c511001225.lua @@ -12,4 +12,4 @@ function s.initial_effect(c) e5:SetType(EFFECT_TYPE_EQUIP) e5:SetCode(EFFECT_RANK_LEVEL_S) c:RegisterEffect(e5) -end +end \ No newline at end of file diff --git a/unofficial/c511001226.lua b/unofficial/c511001226.lua index 907085768c..0b720f5f47 100644 --- a/unofficial/c511001226.lua +++ b/unofficial/c511001226.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001227.lua b/unofficial/c511001227.lua index 36dfcf6168..615fe5ef9e 100644 --- a/unofficial/c511001227.lua +++ b/unofficial/c511001227.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(g,POS_FACEUP_DEFENSE) Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001228.lua b/unofficial/c511001228.lua index 3c6a7b08e8..eeffcc9732 100644 --- a/unofficial/c511001228.lua +++ b/unofficial/c511001228.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=sg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001229.lua b/unofficial/c511001229.lua index 626df3a718..dfaadc076f 100644 --- a/unofficial/c511001229.lua +++ b/unofficial/c511001229.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001230.lua b/unofficial/c511001230.lua index b1a240578c..8e9dabe39c 100644 --- a/unofficial/c511001230.lua +++ b/unofficial/c511001230.lua @@ -32,4 +32,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsPosition(POS_DEFENSE) then Duel.ChangePosition(tc,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511001231.lua b/unofficial/c511001231.lua index 89a11f10ad..dc57fb6c17 100644 --- a/unofficial/c511001231.lua +++ b/unofficial/c511001231.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,#g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001232.lua b/unofficial/c511001232.lua index 01552af417..b3d6f6a8e4 100644 --- a/unofficial/c511001232.lua +++ b/unofficial/c511001232.lua @@ -39,4 +39,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) Duel.NegateSummon(eg) Duel.Destroy(eg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001234.lua b/unofficial/c511001234.lua index e12e4d3002..5e4033e80b 100644 --- a/unofficial/c511001234.lua +++ b/unofficial/c511001234.lua @@ -49,13 +49,13 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511001235.lua b/unofficial/c511001235.lua index de457404b2..64ec7a71b7 100644 --- a/unofficial/c511001235.lua +++ b/unofficial/c511001235.lua @@ -36,4 +36,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(sg,nil,SEQ_DECKTOP,REASON_EFFECT) Duel.SortDeckbottom(p,p,2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001236.lua b/unofficial/c511001236.lua index d241bc6073..8ca7d6efbf 100644 --- a/unofficial/c511001236.lua +++ b/unofficial/c511001236.lua @@ -79,4 +79,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g2>0 and lv2>0 then Duel.DiscardDeck(1-tp,lv2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001237.lua b/unofficial/c511001237.lua index b400d78bbd..672948f65e 100644 --- a/unofficial/c511001237.lua +++ b/unofficial/c511001237.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,tc:GetAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001238.lua b/unofficial/c511001238.lua index 8e48243e55..bc94192b38 100644 --- a/unofficial/c511001238.lua +++ b/unofficial/c511001238.lua @@ -30,4 +30,4 @@ function s.ctlop(e,tp,eg,ep,ev,re,r,rp) sg=sg:Select(1-tp,1,1,nil) end Duel.GetControl(sg:GetFirst(),tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001239.lua b/unofficial/c511001239.lua index 0f607aa2ab..374ced0f14 100644 --- a/unofficial/c511001239.lua +++ b/unofficial/c511001239.lua @@ -43,4 +43,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511001240.lua b/unofficial/c511001240.lua index a6929fcfb0..de25fed0e2 100644 --- a/unofficial/c511001240.lua +++ b/unofficial/c511001240.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) lc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001241.lua b/unofficial/c511001241.lua index e88aff3876..7e1d74c7cb 100644 --- a/unofficial/c511001241.lua +++ b/unofficial/c511001241.lua @@ -33,4 +33,4 @@ function s.refcon(e,re,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511001242.lua b/unofficial/c511001242.lua index 16999eb74b..86f37d3758 100644 --- a/unofficial/c511001242.lua +++ b/unofficial/c511001242.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,1-tp,2,REASON_EFFECT) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001243.lua b/unofficial/c511001243.lua index 8aea579791..a0e38d2ae1 100644 --- a/unofficial/c511001243.lua +++ b/unofficial/c511001243.lua @@ -22,4 +22,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511001244.lua b/unofficial/c511001244.lua index 1d50e82380..435292cdc4 100644 --- a/unofficial/c511001244.lua +++ b/unofficial/c511001244.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x2b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NINJA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc,e,tp) end diff --git a/unofficial/c511001245.lua b/unofficial/c511001245.lua index efb31bbae1..e744319423 100644 --- a/unofficial/c511001245.lua +++ b/unofficial/c511001245.lua @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001246.lua b/unofficial/c511001246.lua index 2438e2291c..c479a96955 100644 --- a/unofficial/c511001246.lua +++ b/unofficial/c511001246.lua @@ -14,10 +14,10 @@ end s.listed_series={0x2b} function s.filter1(c,e,tp) local atk=c:GetAttack() - return atk>0 and c:IsFaceup() and c:IsSetCard(0x2b) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_HAND,0,1,nil,atk,e,tp) + return atk>0 and c:IsFaceup() and c:IsSetCard(SET_NINJA) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_HAND,0,1,nil,atk,e,tp) end function s.filter2(c,atk,e,tp) - return c:GetAttack()<=atk and c:IsSetCard(0x2b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:GetAttack()<=atk and c:IsSetCard(SET_NINJA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter1(chkc,e,tp) end @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001247.lua b/unofficial/c511001247.lua index 5dd336d8b3..3c02ade1a3 100644 --- a/unofficial/c511001247.lua +++ b/unofficial/c511001247.lua @@ -34,4 +34,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001248.lua b/unofficial/c511001248.lua index 86157124ab..6fb8eddc03 100644 --- a/unofficial/c511001248.lua +++ b/unofficial/c511001248.lua @@ -64,4 +64,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001249.lua b/unofficial/c511001249.lua index f231c18e1c..b4c41b1b0a 100644 --- a/unofficial/c511001249.lua +++ b/unofficial/c511001249.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0x54) + return c:IsFaceup() and c:IsSetCard(SET_GAGAGA) and Duel.IsPlayerCanSpecialSummonMonster(tp,id,0,0x11,c:GetAttack(),c:GetDefense(),c:GetLevel(),c:GetRace(),c:GetAttribute()) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -81,4 +81,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001250.lua b/unofficial/c511001250.lua index d5e95a5b2d..7dd6ce25e0 100644 --- a/unofficial/c511001250.lua +++ b/unofficial/c511001250.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc2=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001251.lua b/unofficial/c511001251.lua index dbce166f1f..0498ed1601 100644 --- a/unofficial/c511001251.lua +++ b/unofficial/c511001251.lua @@ -58,4 +58,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetDecktopGroup(tp,count) Duel.DisableShuffleCheck() Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001252.lua b/unofficial/c511001252.lua index 809fc76102..4d0eb0c436 100644 --- a/unofficial/c511001252.lua +++ b/unofficial/c511001252.lua @@ -80,4 +80,4 @@ function s.atkop2(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001253.lua b/unofficial/c511001253.lua index 8f4c74004d..0e925ea478 100644 --- a/unofficial/c511001253.lua +++ b/unofficial/c511001253.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001254.lua b/unofficial/c511001254.lua index 05801e28dc..bf1c922d9d 100644 --- a/unofficial/c511001254.lua +++ b/unofficial/c511001254.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) end) end function s.filter(c) - return c:IsMonster() and c:IsSetCard(0x9f) and c:IsPreviousLocation(LOCATION_MZONE) + return c:IsMonster() and c:IsSetCard(SET_PERFORMAPAL) and c:IsPreviousLocation(LOCATION_MZONE) end function s.regop(e,tp,eg,ep,ev,re,r,rp) if not eg then return end @@ -94,4 +94,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001255.lua b/unofficial/c511001255.lua index 86ea2faaf0..fc23310463 100644 --- a/unofficial/c511001255.lua +++ b/unofficial/c511001255.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(p) end -end +end \ No newline at end of file diff --git a/unofficial/c511001256.lua b/unofficial/c511001256.lua index 0419118565..08f4e81283 100644 --- a/unofficial/c511001256.lua +++ b/unofficial/c511001256.lua @@ -27,4 +27,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=eg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001257.lua b/unofficial/c511001257.lua index 1766bb091e..1ee9b74895 100644 --- a/unofficial/c511001257.lua +++ b/unofficial/c511001257.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x9b) + return c:IsFaceup() and c:IsSetCard(SET_MELODIOUS) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil)*800 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001258.lua b/unofficial/c511001258.lua index 789fa44589..9755834861 100644 --- a/unofficial/c511001258.lua +++ b/unofficial/c511001258.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001259.lua b/unofficial/c511001259.lua index 53e553704d..c8faafc171 100644 --- a/unofficial/c511001259.lua +++ b/unofficial/c511001259.lua @@ -42,4 +42,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001260.lua b/unofficial/c511001260.lua index 0d23655c47..5b2f82430d 100644 --- a/unofficial/c511001260.lua +++ b/unofficial/c511001260.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetValue(1000) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511001261.lua b/unofficial/c511001261.lua index 51e456996c..e70aa2f005 100644 --- a/unofficial/c511001261.lua +++ b/unofficial/c511001261.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001262.lua b/unofficial/c511001262.lua index 50bdf82fff..8bb5128f7a 100644 --- a/unofficial/c511001262.lua +++ b/unofficial/c511001262.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) end function s.chkfilter(c,tp,re) return c:IsMonster() and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) - and (c:GetReason()&0x41)==0x41 and re:GetOwner():IsSetCard(0x1512) + and (c:GetReason()&SET_LV)==SET_LV and re:GetOwner():IsSetCard(0x1512) end function s.damop(e,tp,eg,ep,ev,re,r,rp) local g1=eg:Filter(s.chkfilter,nil,tp,re) @@ -59,4 +59,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if s[1-tp]>0 then Duel.Damage(1-tp,s[1-tp],REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001263.lua b/unofficial/c511001263.lua index b099cf6318..3202d70b8e 100644 --- a/unofficial/c511001263.lua +++ b/unofficial/c511001263.lua @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,1000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001265.lua b/unofficial/c511001265.lua index b858f2804d..c8959624d6 100644 --- a/unofficial/c511001265.lua +++ b/unofficial/c511001265.lua @@ -58,4 +58,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001266.lua b/unofficial/c511001266.lua index 138db86df0..c4222e29b7 100644 --- a/unofficial/c511001266.lua +++ b/unofficial/c511001266.lua @@ -63,4 +63,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,s[0]*400,REASON_EFFECT,true) Duel.Damage(1-tp,s[1]*400,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001267.lua b/unofficial/c511001267.lua index ae31c98832..1274f0285f 100644 --- a/unofficial/c511001267.lua +++ b/unofficial/c511001267.lua @@ -20,4 +20,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001268.lua b/unofficial/c511001268.lua index 3aabf5feff..a841a4d63f 100644 --- a/unofficial/c511001268.lua +++ b/unofficial/c511001268.lua @@ -96,4 +96,4 @@ function s.descon2(e,tp,eg,ep,ev,re,r,rp) end function s.desop2(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001269.lua b/unofficial/c511001269.lua index 05497d8316..5ef6d8a2c1 100644 --- a/unofficial/c511001269.lua +++ b/unofficial/c511001269.lua @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,0,1-tp,1-tp,false,false,POS_FACEUP) end e:GetLabelObject():SetLabelObject(nil) -end +end \ No newline at end of file diff --git a/unofficial/c511001270.lua b/unofficial/c511001270.lua index a7d2af3117..826555cba7 100644 --- a/unofficial/c511001270.lua +++ b/unofficial/c511001270.lua @@ -39,4 +39,4 @@ end function s.con(e,tp,eg,ep,ev,re,r,rp) if e:GetOwner():IsRelateToEffect(e) then return true else e:Reset() return false end -end +end \ No newline at end of file diff --git a/unofficial/c511001271.lua b/unofficial/c511001271.lua index 771e5a0577..1746ce4cee 100644 --- a/unofficial/c511001271.lua +++ b/unofficial/c511001271.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) end s.listed_series={0x48} function s.cfilter(c) - return c:IsMonster() and c:GetRank()>=8 and c:IsSetCard(0x48) + return c:IsMonster() and c:GetRank()>=8 and c:IsSetCard(SET_NUMBER) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil) @@ -36,7 +36,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST+REASON_DISCARD) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_XYZ)>0 @@ -53,4 +53,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001272.lua b/unofficial/c511001272.lua index 4253c1bb1b..eedece8307 100644 --- a/unofficial/c511001272.lua +++ b/unofficial/c511001272.lua @@ -28,4 +28,4 @@ function s.atkgainop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ev) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001273.lua b/unofficial/c511001273.lua index 998bf303b7..85fbe1ef9a 100644 --- a/unofficial/c511001273.lua +++ b/unofficial/c511001273.lua @@ -49,7 +49,7 @@ function s.initial_effect(c) local e5=Effect.CreateEffect(c) e5:SetType(EFFECT_TYPE_SINGLE) e5:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e5:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e5:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e5) end s.xyz_number=37 @@ -128,7 +128,7 @@ function s.numspcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL+1) end function s.numspfilter(c,e,tp) - return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.numsptg(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return false end @@ -143,4 +143,4 @@ function s.numspop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001274.lua b/unofficial/c511001274.lua index ec7d8d8923..5da0e2d207 100644 --- a/unofficial/c511001274.lua +++ b/unofficial/c511001274.lua @@ -51,4 +51,4 @@ end function s.damop2(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001275.lua b/unofficial/c511001275.lua index 0c1a9205e9..07dcba1777 100644 --- a/unofficial/c511001275.lua +++ b/unofficial/c511001275.lua @@ -149,5 +149,5 @@ function s.atkop2(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511001277.lua b/unofficial/c511001277.lua index 92cbfc9138..594c233a05 100644 --- a/unofficial/c511001277.lua +++ b/unofficial/c511001277.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,0,LOCATION_MZONE,nil) Duel.ChangePosition(g,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511001278.lua b/unofficial/c511001278.lua index 99dad3a3f2..899024327f 100644 --- a/unofficial/c511001278.lua +++ b/unofficial/c511001278.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tc:GetAttack()) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001279.lua b/unofficial/c511001279.lua index 3dc01ff5c5..9d2aee15be 100644 --- a/unofficial/c511001279.lua +++ b/unofficial/c511001279.lua @@ -23,10 +23,10 @@ function s.filter(c) return c:IsCode(72413000) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end - if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,nil) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end + if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) - local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,2,nil) + local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,2,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,2,0,0) end function s.trfilter(c) @@ -48,4 +48,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001280.lua b/unofficial/c511001280.lua index 897ab26c6e..6aba114795 100644 --- a/unofficial/c511001280.lua +++ b/unofficial/c511001280.lua @@ -66,4 +66,4 @@ function s.damcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return val end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return val+1000 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511001281.lua b/unofficial/c511001281.lua index 83f03dfc30..c53d7cc5fa 100644 --- a/unofficial/c511001281.lua +++ b/unofficial/c511001281.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil):GetSum(Card.GetLevel)*100 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001282.lua b/unofficial/c511001282.lua index 08b27bef13..0b230f652d 100644 --- a/unofficial/c511001282.lua +++ b/unofficial/c511001282.lua @@ -35,7 +35,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) and re and re:GetOwner()==e:GetOwner() end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x10db) + return c:IsFaceup() and c:IsSetCard(SET_THE_PHANTOM_KNIGHTS) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -53,4 +53,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(800) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001283.lua b/unofficial/c511001283.lua index 68000fca22..c2d107918f 100644 --- a/unofficial/c511001283.lua +++ b/unofficial/c511001283.lua @@ -55,4 +55,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if not te then return end local op=te:GetOperation() if op then op(e,tp,eg,ep,ev,re,r,rp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001284.lua b/unofficial/c511001284.lua index 4dc4862820..88e1c3104b 100644 --- a/unofficial/c511001284.lua +++ b/unofficial/c511001284.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:CanAttack() then Duel.NegateAttack(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001286.lua b/unofficial/c511001286.lua index 9231629813..059d293fc8 100644 --- a/unofficial/c511001286.lua +++ b/unofficial/c511001286.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xdf) + return c:IsFaceup() and c:IsSetCard(SET_LUNALIGHT) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -31,4 +31,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001287.lua b/unofficial/c511001287.lua index ef250e8b7f..89437eeaf8 100644 --- a/unofficial/c511001287.lua +++ b/unofficial/c511001287.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xdf) + return c:IsFaceup() and c:IsSetCard(SET_LUNALIGHT) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -20,7 +20,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_IMMUNE_EFFECT) e1:SetTargetRange(LOCATION_MZONE,0) - e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xdf)) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_LUNALIGHT)) e1:SetValue(s.efilter) e1:SetReset(RESET_PHASE+PHASE_END,2) Duel.RegisterEffect(e1,tp) @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:IsActiveType(TYPE_SPELL+TYPE_TRAP) and e:GetOwnerPlayer()~=te:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511001289.lua b/unofficial/c511001289.lua index a0e7f8bc34..f28ef81fbe 100644 --- a/unofficial/c511001289.lua +++ b/unofficial/c511001289.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fustion material - Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunction(Card.IsSetCard,0xdf),2) + Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunction(Card.IsSetCard,SET_LUNALIGHT),2) c:EnableReviveLimit() --attack local e1=Effect.CreateEffect(c) @@ -19,8 +19,8 @@ end s.listed_series={0xdf} s.material_setcode=0xdf function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,e:GetHandler(),0xdf) end - local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,e:GetHandler(),0xdf) + if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,e:GetHandler(),SET_LUNALIGHT) end + local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,e:GetHandler(),SET_LUNALIGHT) Duel.Release(g,REASON_COST) end function s.operation(e,tp,eg,ep,ev,re,r,rp) @@ -53,4 +53,4 @@ function s.indct(e,re,r,rp,c) if (r&REASON_BATTLE)~=0 then return 1 else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c511001290.lua b/unofficial/c511001290.lua index 033615f0c9..01dbd18c51 100644 --- a/unofficial/c511001290.lua +++ b/unofficial/c511001290.lua @@ -36,4 +36,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001291.lua b/unofficial/c511001291.lua index 646f7ce676..11d91f7070 100644 --- a/unofficial/c511001291.lua +++ b/unofficial/c511001291.lua @@ -28,4 +28,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001292.lua b/unofficial/c511001292.lua index 1ae2e8e5f7..0b57716ce7 100644 --- a/unofficial/c511001292.lua +++ b/unofficial/c511001292.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetAttacker():IsSetCard(0xdf) and Duel.GetAttacker():IsControler(tp) + return Duel.GetAttacker():IsSetCard(SET_LUNALIGHT) and Duel.GetAttacker():IsControler(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsCanChangePosition,tp,0,LOCATION_MZONE,1,nil) end @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001293.lua b/unofficial/c511001293.lua index bd533028ca..5a69c26fc7 100644 --- a/unofficial/c511001293.lua +++ b/unofficial/c511001293.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001294.lua b/unofficial/c511001294.lua index ec34b3e174..59b14e7e79 100644 --- a/unofficial/c511001294.lua +++ b/unofficial/c511001294.lua @@ -16,7 +16,7 @@ end s.listed_series={0x2178} function s.condition(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetAttackTarget() - return d and d:IsControler(tp) and d:IsFaceup() and d:IsSetCard(0x2178) + return d and d:IsControler(tp) and d:IsFaceup() and d:IsSetCard(SET_BATTLEGUARD) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetFlagEffect(id)==0 end diff --git a/unofficial/c511001295.lua b/unofficial/c511001295.lua index aae02fe7f5..2e63a36a5e 100644 --- a/unofficial/c511001295.lua +++ b/unofficial/c511001295.lua @@ -61,13 +61,13 @@ function s.initial_effect(c) end s.listed_series={0x2178} function s.rescon(sg,e,tp,mg) - return aux.ChkfMMZ(1)(sg,e,tp,mg) and sg:IsExists(Card.IsSetCard,1,nil,0x2178) + return aux.ChkfMMZ(1)(sg,e,tp,mg) and sg:IsExists(Card.IsSetCard,1,nil,SET_BATTLEGUARD) end function s.spcon(e,c) if c==nil then return true end local tp=c:GetControler() local rg=Duel.GetReleaseGroup(tp) - return Duel.GetLocationCount(tp,LOCATION_MZONE)>-3 and #rg>2 and rg:IsExists(Card.IsSetCard,1,nil,0x2178) + return Duel.GetLocationCount(tp,LOCATION_MZONE)>-3 and #rg>2 and rg:IsExists(Card.IsSetCard,1,nil,SET_BATTLEGUARD) and aux.SelectUnselectGroup(rg,e,tp,3,3,s.rescon,0) end function s.spop(e,tp,eg,ep,ev,re,r,rp,c) @@ -157,4 +157,4 @@ function s.conop(e,tp,eg,ep,ev,re,r,rp) local des=g:Select(tp,1,1,nil) Duel.Destroy(des,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001296.lua b/unofficial/c511001296.lua index 6b2bc23df5..a3bc84a4fc 100644 --- a/unofficial/c511001296.lua +++ b/unofficial/c511001296.lua @@ -26,4 +26,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001297.lua b/unofficial/c511001297.lua index 456534a6b4..006b93eaeb 100644 --- a/unofficial/c511001297.lua +++ b/unofficial/c511001297.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x2178} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x2178),tp,LOCATION_ONFIELD,0,1,nil) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_BATTLEGUARD),tp,LOCATION_ONFIELD,0,1,nil) and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>=2 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) diff --git a/unofficial/c511001298.lua b/unofficial/c511001298.lua index 29dc27a95a..bd10b60316 100644 --- a/unofficial/c511001298.lua +++ b/unofficial/c511001298.lua @@ -55,4 +55,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001300.lua b/unofficial/c511001300.lua index 4f6b2d855e..42af1e6ecc 100644 --- a/unofficial/c511001300.lua +++ b/unofficial/c511001300.lua @@ -62,4 +62,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001304.lua b/unofficial/c511001304.lua index 338d6943d4..437f203fc4 100644 --- a/unofficial/c511001304.lua +++ b/unofficial/c511001304.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001305.lua b/unofficial/c511001305.lua index c6cebe070b..4e05d922b1 100644 --- a/unofficial/c511001305.lua +++ b/unofficial/c511001305.lua @@ -50,4 +50,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) or not Duel.IsPlayerCanSpecialSummonMonster(tp,89194033,0,TYPE_MONSTER|TYPE_EFFECT,2500,2000,6,RACE_FAIRY,ATTRIBUTE_EARTH) then return end local token=Duel.CreateToken(tp,89194033) Duel.SpecialSummon(token,0,tp,tp,true,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511001306.lua b/unofficial/c511001306.lua index 52ad1d4df6..c9a84fc1e2 100644 --- a/unofficial/c511001306.lua +++ b/unofficial/c511001306.lua @@ -50,4 +50,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) or not Duel.IsPlayerCanSpecialSummonMonster(tp,89194033,0,TYPE_MONSTER|TYPE_EFFECT,2500,2000,6,RACE_FAIRY,ATTRIBUTE_EARTH) then return end local token=Duel.CreateToken(tp,89194033) Duel.SpecialSummon(token,0,tp,tp,true,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511001307.lua b/unofficial/c511001307.lua index 73023ca0cc..b9a7fa229a 100644 --- a/unofficial/c511001307.lua +++ b/unofficial/c511001307.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end Duel.Draw(tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001308.lua b/unofficial/c511001308.lua index 9cf118b78a..9fdd3344cb 100644 --- a/unofficial/c511001308.lua +++ b/unofficial/c511001308.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UPDATE_DEFENSE) e3:SetValue(200) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511001309.lua b/unofficial/c511001309.lua index 15a668cc1c..2238ba13df 100644 --- a/unofficial/c511001309.lua +++ b/unofficial/c511001309.lua @@ -23,4 +23,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001310.lua b/unofficial/c511001310.lua index b19a130f6a..77987c0644 100644 --- a/unofficial/c511001310.lua +++ b/unofficial/c511001310.lua @@ -111,4 +111,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return e:GetHandler():GetEquipTarget()==c -end +end \ No newline at end of file diff --git a/unofficial/c511001315.lua b/unofficial/c511001315.lua index 8eb3e00293..32a50807b1 100644 --- a/unofficial/c511001315.lua +++ b/unofficial/c511001315.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(-ev) at:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001316.lua b/unofficial/c511001316.lua index 9bb75122bf..3df09fd43f 100644 --- a/unofficial/c511001316.lua +++ b/unofficial/c511001316.lua @@ -15,4 +15,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) -end +end \ No newline at end of file diff --git a/unofficial/c511001317.lua b/unofficial/c511001317.lua index e96843b007..f8a1743d15 100644 --- a/unofficial/c511001317.lua +++ b/unofficial/c511001317.lua @@ -23,4 +23,4 @@ end function s.damval(e,re,val,r,rp,rc) if rp~=e:GetOwnerPlayer() and Duel.GetAttacker() and Duel.GetAttacker():IsControler(1-e:GetHandlerPlayer()) then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511001322.lua b/unofficial/c511001322.lua index 382ab13f68..47b2362c4c 100644 --- a/unofficial/c511001322.lua +++ b/unofficial/c511001322.lua @@ -56,4 +56,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) sg1:Merge(sg2) Duel.SpecialSummon(sg1,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511001324.lua b/unofficial/c511001324.lua index 602add6733..f3d1299a79 100644 --- a/unofficial/c511001324.lua +++ b/unofficial/c511001324.lua @@ -58,4 +58,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001325.lua b/unofficial/c511001325.lua index c78c3cf06c..5a8b224839 100644 --- a/unofficial/c511001325.lua +++ b/unofficial/c511001325.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001326.lua b/unofficial/c511001326.lua index 75fee19a77..78f6dc1667 100644 --- a/unofficial/c511001326.lua +++ b/unofficial/c511001326.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(0) g:GetFirst():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001327.lua b/unofficial/c511001327.lua index 7c3c02c9a0..fd58a2eb12 100644 --- a/unofficial/c511001327.lua +++ b/unofficial/c511001327.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001328.lua b/unofficial/c511001328.lua index 96fead7b75..dddabce099 100644 --- a/unofficial/c511001328.lua +++ b/unofficial/c511001328.lua @@ -25,9 +25,9 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc and tc:IsRelateToEffect(e) then - local g=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_HAND+LOCATION_DECK,LOCATION_HAND+LOCATION_DECK,nil,tc:GetCode()) + local g=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_HAND|LOCATION_DECK,LOCATION_HAND|LOCATION_DECK,nil,tc:GetCode()) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001329.lua b/unofficial/c511001329.lua index 9c05aa598d..5efe7f0442 100644 --- a/unofficial/c511001329.lua +++ b/unofficial/c511001329.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001331.lua b/unofficial/c511001331.lua index 333d105a90..66348d3132 100644 --- a/unofficial/c511001331.lua +++ b/unofficial/c511001331.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE|PHASE_BATTLE_STEP,1) return end -end +end \ No newline at end of file diff --git a/unofficial/c511001333.lua b/unofficial/c511001333.lua index 8854b69b05..e5b037ed09 100644 --- a/unofficial/c511001333.lua +++ b/unofficial/c511001333.lua @@ -37,4 +37,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001334.lua b/unofficial/c511001334.lua index 796bb5ca3d..5de056d6cf 100644 --- a/unofficial/c511001334.lua +++ b/unofficial/c511001334.lua @@ -75,4 +75,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) until sum>=2 or sum==0 or not s.target(e,tp,eg,ep,ev,re,r,rp,0) or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) or (ect and ect<2) or not Duel.SelectYesNo(tp,aux.Stringid(33550694,0)) Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001335.lua b/unofficial/c511001335.lua index 1f65694e95..8c499cc52d 100644 --- a/unofficial/c511001335.lua +++ b/unofficial/c511001335.lua @@ -60,4 +60,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001336.lua b/unofficial/c511001336.lua index cdc12f5345..19db8a2891 100644 --- a/unofficial/c511001336.lua +++ b/unofficial/c511001336.lua @@ -105,4 +105,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) sg:RemoveCard(tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001337.lua b/unofficial/c511001337.lua index 4aa40ed9c2..8cb91ab79c 100644 --- a/unofficial/c511001337.lua +++ b/unofficial/c511001337.lua @@ -77,7 +77,7 @@ end function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) local g=e:GetLabelObject() local ct=#g - local sg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_EXTRA+LOCATION_GRAVE,0,e:GetHandler(),e,tp) + local sg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_EXTRA|LOCATION_GRAVE,0,e:GetHandler(),e,tp) if chk==0 then return ct>0 and (not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) or ct<=1) and aux.SelectUnselectGroup(sg,e,tp,nil,nil,s.rescon(aux.CheckSummonGate(tp)),0) end Duel.SetTargetCard(g) @@ -87,7 +87,7 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) local mg=Duel.GetTargetCards(e) local ct=#mg if ct<=0 or (Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and ct>1) then return end - local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_EXTRA+LOCATION_GRAVE,0,e:GetHandler(),e,tp) + local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_EXTRA|LOCATION_GRAVE,0,e:GetHandler(),e,tp) local sg=aux.SelectUnselectGroup(g,e,tp,ct,ct,s.rescon(aux.CheckSummonGate(tp)),1,tp,HINTMSG_SPSUMMON) if #sg<=0 then return end if Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) > 0 then @@ -98,4 +98,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) sg:RemoveCard(tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001338.lua b/unofficial/c511001338.lua index 796e1e179f..e45e8c4a60 100644 --- a/unofficial/c511001338.lua +++ b/unofficial/c511001338.lua @@ -60,7 +60,7 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) end end function s.mtfilter(c) - return c:IsSetCard(0x48) and c:IsMonster() + return c:IsSetCard(SET_NUMBER) and c:IsMonster() end function s.mttg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.mtfilter,tp,0,LOCATION_GRAVE,1,nil) end @@ -101,5 +101,5 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511001340.lua b/unofficial/c511001340.lua index b73c3a9747..4043c5be1b 100644 --- a/unofficial/c511001340.lua +++ b/unofficial/c511001340.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001341.lua b/unofficial/c511001341.lua index 8da680851f..bfaa8d93a2 100644 --- a/unofficial/c511001341.lua +++ b/unofficial/c511001341.lua @@ -75,4 +75,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001342.lua b/unofficial/c511001342.lua index 148057478c..53b54b9ffa 100644 --- a/unofficial/c511001342.lua +++ b/unofficial/c511001342.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) g:GetFirst():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001343.lua b/unofficial/c511001343.lua index 58ff1e51ce..19f519cbd9 100644 --- a/unofficial/c511001343.lua +++ b/unofficial/c511001343.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001344.lua b/unofficial/c511001344.lua index 975c11fd31..996e439c0c 100644 --- a/unofficial/c511001344.lua +++ b/unofficial/c511001344.lua @@ -60,4 +60,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) else Duel.Damage(ep,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001345.lua b/unofficial/c511001345.lua index da16916b74..128c8dd367 100644 --- a/unofficial/c511001345.lua +++ b/unofficial/c511001345.lua @@ -27,4 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) Duel.NegateAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c511001346.lua b/unofficial/c511001346.lua index 5df9be4baa..2c222c983c 100644 --- a/unofficial/c511001346.lua +++ b/unofficial/c511001346.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0xba} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xba) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) and rp~=tp @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(re:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001347.lua b/unofficial/c511001347.lua index e363ecc332..a9ca603de0 100644 --- a/unofficial/c511001347.lua +++ b/unofficial/c511001347.lua @@ -66,7 +66,7 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tc=Duel.GetFirstTarget() - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then Duel.SkipPhase(tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) end if tc:IsFaceup() and tc:IsRelateToEffect(e) then @@ -77,7 +77,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_CANNOT_ATTACK) @@ -99,4 +99,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.ftarget(e,c) return e:GetLabel()~=c:GetFieldID() -end +end \ No newline at end of file diff --git a/unofficial/c511001348.lua b/unofficial/c511001348.lua index a474f288be..7b750895b0 100644 --- a/unofficial/c511001348.lua +++ b/unofficial/c511001348.lua @@ -33,4 +33,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001349.lua b/unofficial/c511001349.lua index 55a2a0f350..4fd28a74b3 100644 --- a/unofficial/c511001349.lua +++ b/unofficial/c511001349.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) token:RegisterEffect(e2,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511001351.lua b/unofficial/c511001351.lua index ffbd81b8b4..30631b1c41 100644 --- a/unofficial/c511001351.lua +++ b/unofficial/c511001351.lua @@ -12,4 +12,4 @@ end function s.disop(e,tp,eg,ep,ev,re,r,rp) if ep~=tp or not re:IsActiveType(TYPE_SPELL) or not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not e:GetHandler():IsAttackPos() then return end Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511001352.lua b/unofficial/c511001352.lua index ddfcfad19b..6e9d692cef 100644 --- a/unofficial/c511001352.lua +++ b/unofficial/c511001352.lua @@ -21,4 +21,4 @@ function s.filter(e,c) end function s.ctval(e,c) return 1-e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511001353.lua b/unofficial/c511001353.lua index 45169d6ccb..820d55fb3e 100644 --- a/unofficial/c511001353.lua +++ b/unofficial/c511001353.lua @@ -78,4 +78,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001355.lua b/unofficial/c511001355.lua index f22b2690d7..4891549f00 100644 --- a/unofficial/c511001355.lua +++ b/unofficial/c511001355.lua @@ -47,7 +47,7 @@ function s.clear(e,tp,eg,ep,ev,re,r,rp) s[1]:Clear() end function s.filter(c,e,tp) - return c:IsControler(tp) and c:IsLocation(LOCATION_DECK) and c:IsSetCard(0x3008) + return c:IsControler(tp) and c:IsLocation(LOCATION_DECK) and c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -63,4 +63,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001356.lua b/unofficial/c511001356.lua index a297cd239c..4419d61f19 100644 --- a/unofficial/c511001356.lua +++ b/unofficial/c511001356.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if toHand then Duel.Destroy(e:GetHandler(s),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001357.lua b/unofficial/c511001357.lua index c4b5d6eb67..7da5397f97 100644 --- a/unofficial/c511001357.lua +++ b/unofficial/c511001357.lua @@ -32,4 +32,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001358.lua b/unofficial/c511001358.lua index beab3cfe67..400634cc0b 100644 --- a/unofficial/c511001358.lua +++ b/unofficial/c511001358.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001359.lua b/unofficial/c511001359.lua index 01e12f554b..0e8eb66533 100644 --- a/unofficial/c511001359.lua +++ b/unofficial/c511001359.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,3,3,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001360.lua b/unofficial/c511001360.lua index 9bfa25822c..9de68828a4 100644 --- a/unofficial/c511001360.lua +++ b/unofficial/c511001360.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER)) e2:SetValue(1) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001361.lua b/unofficial/c511001361.lua index ad4d0cf7c4..e2751980ce 100644 --- a/unofficial/c511001361.lua +++ b/unofficial/c511001361.lua @@ -68,4 +68,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Damage(tp,e:GetLabel(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001362.lua b/unofficial/c511001362.lua index aab7e1e5c7..03e09eaba1 100644 --- a/unofficial/c511001362.lua +++ b/unofficial/c511001362.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,atk,REASON_EFFECT) Duel.Draw(p,#sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001363.lua b/unofficial/c511001363.lua index 7b78fb445e..0842a5bbc1 100644 --- a/unofficial/c511001363.lua +++ b/unofficial/c511001363.lua @@ -120,4 +120,4 @@ end function s.xyztg(e,c) local no=c.xyz_number return c:IsFaceup() and no and no>=101 and no<=107 and c:IsSetCard(SET_NUMBER_C) -end +end \ No newline at end of file diff --git a/unofficial/c511001364.lua b/unofficial/c511001364.lua index 0ceab9e4ea..18724204fe 100644 --- a/unofficial/c511001364.lua +++ b/unofficial/c511001364.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,19280590) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001366.lua b/unofficial/c511001366.lua index 4810670653..0f0ea91a08 100644 --- a/unofficial/c511001366.lua +++ b/unofficial/c511001366.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001367.lua b/unofficial/c511001367.lua index 35a2f74cbf..22b18786fa 100644 --- a/unofficial/c511001367.lua +++ b/unofficial/c511001367.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001368.lua b/unofficial/c511001368.lua index 84e52d2a08..e36c7864e9 100644 --- a/unofficial/c511001368.lua +++ b/unofficial/c511001368.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #sp>0 then Duel.SpecialSummon(sp,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001369.lua b/unofficial/c511001369.lua index 25e1e9a3be..f06f28f450 100644 --- a/unofficial/c511001369.lua +++ b/unofficial/c511001369.lua @@ -44,4 +44,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001370.lua b/unofficial/c511001370.lua index afa88d9552..05bce8fdd4 100644 --- a/unofficial/c511001370.lua +++ b/unofficial/c511001370.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() - return #eg==1 and tc:IsControler(1-tp) and tc:IsSummonType(SUMMON_TYPE_FUSION) + return #eg==1 and tc:IsControler(1-tp) and tc:IsFusionSummoned() end function s.mgfilter(c,e,tp,fusc) return c:IsControler(1-tp) and c:IsLocation(LOCATION_GRAVE) and c:GetReason()&0x40008==0x40008 @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local mg=tc:GetMaterial():Filter(aux.NecroValleyFilter(s.mgfilter),nil,e,tp,tc) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=#mg-1 then return end Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511001371.lua b/unofficial/c511001371.lua index 73098f6792..f4744a822d 100644 --- a/unofficial/c511001371.lua +++ b/unofficial/c511001371.lua @@ -96,4 +96,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001372.lua b/unofficial/c511001372.lua index 391586e9c9..f1018b2b36 100644 --- a/unofficial/c511001372.lua +++ b/unofficial/c511001372.lua @@ -71,4 +71,4 @@ function s.winop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():GetOverlayCount()==0 then Duel.Win(tp,WIN_REASON_DISASTER_LEO) end -end +end \ No newline at end of file diff --git a/unofficial/c511001373.lua b/unofficial/c511001373.lua index 3e9cea1a15..4f3425d282 100644 --- a/unofficial/c511001373.lua +++ b/unofficial/c511001373.lua @@ -52,4 +52,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_CANNOT_ATTACK) e1:SetReset(RESETS_STANDARD_PHASE_END) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001374.lua b/unofficial/c511001374.lua index d8789f1e67..bd70e27cac 100644 --- a/unofficial/c511001374.lua +++ b/unofficial/c511001374.lua @@ -112,4 +112,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESETS_STANDARD_PHASE_END) bc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001376.lua b/unofficial/c511001376.lua index 2e04d56767..32b987987c 100644 --- a/unofficial/c511001376.lua +++ b/unofficial/c511001376.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --xyz summon - Xyz.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xaf),8,2) + Xyz.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,SET_DD),8,2) c:EnableReviveLimit() --cannot disable local e0=Effect.CreateEffect(c) @@ -124,4 +124,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.MoveToField(tc,tp,tp,tc:GetPreviousLocation(),tc:GetPreviousPosition(),true,(1<0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001382.lua b/unofficial/c511001382.lua index c2f702e34d..4625801f4b 100644 --- a/unofficial/c511001382.lua +++ b/unofficial/c511001382.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>1 then Duel.SendtoHand(g,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001383.lua b/unofficial/c511001383.lua index 789c4e084d..0d05fc1cd2 100644 --- a/unofficial/c511001383.lua +++ b/unofficial/c511001383.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001384.lua b/unofficial/c511001384.lua index 6a9e813cd5..a3906658c7 100644 --- a/unofficial/c511001384.lua +++ b/unofficial/c511001384.lua @@ -50,4 +50,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SendtoGrave(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001385.lua b/unofficial/c511001385.lua index 2eada29ce3..9c6665c93a 100644 --- a/unofficial/c511001385.lua +++ b/unofficial/c511001385.lua @@ -52,4 +52,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001386.lua b/unofficial/c511001386.lua index c32e61ef88..e84e514efc 100644 --- a/unofficial/c511001386.lua +++ b/unofficial/c511001386.lua @@ -65,4 +65,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001387.lua b/unofficial/c511001387.lua index 94c90a736f..c98dc77118 100644 --- a/unofficial/c511001387.lua +++ b/unofficial/c511001387.lua @@ -41,4 +41,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Equip(tp,e:GetHandler(),tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001388.lua b/unofficial/c511001388.lua index 78f7ff77e1..bca7a42b5a 100644 --- a/unofficial/c511001388.lua +++ b/unofficial/c511001388.lua @@ -84,4 +84,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001389.lua b/unofficial/c511001389.lua index 79ee867099..256b66460d 100644 --- a/unofficial/c511001389.lua +++ b/unofficial/c511001389.lua @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001390.lua b/unofficial/c511001390.lua index 18304df91c..9c61af4a9d 100644 --- a/unofficial/c511001390.lua +++ b/unofficial/c511001390.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(sg,REASON_EFFECT) Duel.ShuffleHand(1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001391.lua b/unofficial/c511001391.lua index a2d0fc61a6..947083a8f7 100644 --- a/unofficial/c511001391.lua +++ b/unofficial/c511001391.lua @@ -41,7 +41,7 @@ function s.initial_effect(c) end s.listed_names={4779091} function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -73,4 +73,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001392.lua b/unofficial/c511001392.lua index 1bdeed8cc2..7ca97d04f7 100644 --- a/unofficial/c511001392.lua +++ b/unofficial/c511001392.lua @@ -46,7 +46,7 @@ function s.initial_effect(c) end s.listed_names={78371393,31764700} function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -67,12 +67,12 @@ function s.filter(c,e,tp) return c:IsCode(31764700) and c:IsCanBeSpecialSummoned(e,0,tp,true,true) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001393.lua b/unofficial/c511001393.lua index e8b4eb426a..6ea2c2acf8 100644 --- a/unofficial/c511001393.lua +++ b/unofficial/c511001393.lua @@ -25,10 +25,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local at=Duel.GetAttackTarget() local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if chk==0 then return a:IsOnField() and at:IsAbleToGrave() and ft>-1 and (ft>0 or at:GetSequence()<5) - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end Duel.SetTargetCard(a) Duel.SetOperationInfo(0,CATEGORY_DESTROY,a,1,0,0) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() @@ -37,10 +37,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() if Duel.SendtoGrave(at,REASON_EFFECT)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001394.lua b/unofficial/c511001394.lua index ebd4bbda5c..2507255782 100644 --- a/unofficial/c511001394.lua +++ b/unofficial/c511001394.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.con(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsReleasable() end @@ -44,4 +44,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,ct*500,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001395.lua b/unofficial/c511001395.lua index b2fd920dbc..cb435fcd8d 100644 --- a/unofficial/c511001395.lua +++ b/unofficial/c511001395.lua @@ -51,4 +51,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001396.lua b/unofficial/c511001396.lua index 53e14a12a4..fca94b8489 100644 --- a/unofficial/c511001396.lua +++ b/unofficial/c511001396.lua @@ -42,7 +42,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end function s.retop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - if Duel.GetTurnPlayer()==tp and c:GetAttackedCount()==0 then + if Duel.IsTurnPlayer(tp) and c:GetAttackedCount()==0 then local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK_FINAL) @@ -50,4 +50,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(c:GetBaseAttack()) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001397.lua b/unofficial/c511001397.lua index 7c7584c9c8..412f402461 100644 --- a/unofficial/c511001397.lua +++ b/unofficial/c511001397.lua @@ -23,4 +23,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,100,REASON_EFFECT) Duel.Damage(1-tp,100,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001399.lua b/unofficial/c511001399.lua index 8a69b95a42..3e4a3aef7e 100644 --- a/unofficial/c511001399.lua +++ b/unofficial/c511001399.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) Duel.Damage(1-tp,400,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001400.lua b/unofficial/c511001400.lua index d91d381d3f..0307e293ab 100644 --- a/unofficial/c511001400.lua +++ b/unofficial/c511001400.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001401.lua b/unofficial/c511001401.lua index d0cbd1da5a..5092528e49 100644 --- a/unofficial/c511001401.lua +++ b/unofficial/c511001401.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001402.lua b/unofficial/c511001402.lua index de2902b23b..48ebc41156 100644 --- a/unofficial/c511001402.lua +++ b/unofficial/c511001402.lua @@ -15,4 +15,4 @@ function s.initial_effect(c) end function s.condition(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_GRAVE,0)>=30 -end +end \ No newline at end of file diff --git a/unofficial/c511001403.lua b/unofficial/c511001403.lua index 342af1dc46..8f1a86ddaf 100644 --- a/unofficial/c511001403.lua +++ b/unofficial/c511001403.lua @@ -68,4 +68,4 @@ end function s.rmop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001404.lua b/unofficial/c511001404.lua index df7514a0c9..929f1e5fba 100644 --- a/unofficial/c511001404.lua +++ b/unofficial/c511001404.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetLevel()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001405.lua b/unofficial/c511001405.lua index 2ebcfb7d26..440c837191 100644 --- a/unofficial/c511001405.lua +++ b/unofficial/c511001405.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion summon - local params = {nil,Fusion.CheckWithHandler(Fusion.InHandMat(aux.FilterBoolFunction(Card.IsSetCard,0xaf))),nil,nil,Fusion.ForcedHandler} + local params = {nil,Fusion.CheckWithHandler(Fusion.InHandMat(aux.FilterBoolFunction(Card.IsSetCard,SET_DD))),nil,nil,Fusion.ForcedHandler} local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) @@ -12,4 +12,4 @@ function s.initial_effect(c) e1:SetOperation(Fusion.SummonEffOP(table.unpack(params))) c:RegisterEffect(e1) end -s.listed_series={0xaf} +s.listed_series={0xaf} \ No newline at end of file diff --git a/unofficial/c511001407.lua b/unofficial/c511001407.lua index ea04b8ae4d..46ac03a1b5 100644 --- a/unofficial/c511001407.lua +++ b/unofficial/c511001407.lua @@ -12,8 +12,8 @@ function s.initial_effect(c) e2:SetCode(EFFECT_DOUBLE_XYZ_MATERIAL) e2:SetRange(LOCATION_SZONE) e2:SetTargetRange(LOCATION_MZONE,0) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x54)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_GAGAGA)) e2:SetValue(1) c:RegisterEffect(e2) end -s.listed_series={0x54} +s.listed_series={0x54} \ No newline at end of file diff --git a/unofficial/c511001408.lua b/unofficial/c511001408.lua index 305dbdbbbe..1c8011d302 100644 --- a/unofficial/c511001408.lua +++ b/unofficial/c511001408.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if not te then return end local op=te:GetOperation() if op then op(e,tp,eg,ep,ev,re,r,rp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001409.lua b/unofficial/c511001409.lua index 95e3466a78..1bb40e4a97 100644 --- a/unofficial/c511001409.lua +++ b/unofficial/c511001409.lua @@ -17,10 +17,10 @@ function s.con(e,tp,eg,ep,ev,re,r,rp) return a:IsControler(1-tp) end function s.cfilter(c,atk) - return c:IsSetCard(0x10af) and c:GetAttack()>atk + return c:IsSetCard(SET_DDD) and c:GetAttack()>atk end function s.costfilter(c,tp) - return not Duel.IsPlayerAffectedByEffect(c:GetControler(),69832741) and c:IsMonster() and c:IsSetCard(0x10af) and c:IsAbleToRemoveAsCost() + return not Duel.IsPlayerAffectedByEffect(c:GetControler(),69832741) and c:IsMonster() and c:IsSetCard(SET_DDD) and c:IsAbleToRemoveAsCost() and not Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil,c:GetAttack()) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -30,7 +30,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.filter(c) - return c:IsSetCard(0xaf) and c:IsType(TYPE_PENDULUM) and c:IsLevelBelow(4) and c:IsAbleToHand() + return c:IsSetCard(SET_DD) and c:IsType(TYPE_PENDULUM) and c:IsLevelBelow(4) and c:IsAbleToHand() end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -52,4 +52,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511001411.lua b/unofficial/c511001411.lua index 87663e4015..084dac01a5 100644 --- a/unofficial/c511001411.lua +++ b/unofficial/c511001411.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001413.lua b/unofficial/c511001413.lua index 9df9ce1190..62c4e9d8fd 100644 --- a/unofficial/c511001413.lua +++ b/unofficial/c511001413.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001414.lua b/unofficial/c511001414.lua index b8b1c9e97c..77c0710b4e 100644 --- a/unofficial/c511001414.lua +++ b/unofficial/c511001414.lua @@ -3,4 +3,4 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() -end +end \ No newline at end of file diff --git a/unofficial/c511001417.lua b/unofficial/c511001417.lua index cdb8d8d895..c4058f1c93 100644 --- a/unofficial/c511001417.lua +++ b/unofficial/c511001417.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511001418.lua b/unofficial/c511001418.lua index 74a3361659..8b53dc27a5 100644 --- a/unofficial/c511001418.lua +++ b/unofficial/c511001418.lua @@ -45,7 +45,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local bc=c:GetBattleTarget() if not bc or c:IsStatus(STATUS_BATTLE_DESTROYED) then return end - if c:IsFaceup() and c:IsRelateToEffect(e) and bc and bc:IsRelateToEffect(e) and bc:IsLocation(LOCATION_SZONE+LOCATION_HAND+LOCATION_GRAVE+LOCATION_REMOVED) then + if c:IsFaceup() and c:IsRelateToEffect(e) and bc and bc:IsRelateToEffect(e) and bc:IsLocation(LOCATION_SZONE|LOCATION_HAND|LOCATION_GRAVE|LOCATION_REMOVED) then c:EquipByEffectAndLimitRegister(e,tp,bc) end end @@ -82,4 +82,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(tc,0,tc:GetOwner(),tc:GetOwner(),false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001419.lua b/unofficial/c511001419.lua index 2d8e535e23..2fbb4f336d 100644 --- a/unofficial/c511001419.lua +++ b/unofficial/c511001419.lua @@ -36,7 +36,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.recon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.retop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() @@ -45,4 +45,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) if Duel.SpecialSummon(tc,0,tc:GetOwner(),tc:GetOwner(),false,false,POS_FACEUP)>0 then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001420.lua b/unofficial/c511001420.lua index 600ae62b83..ea38601f27 100644 --- a/unofficial/c511001420.lua +++ b/unofficial/c511001420.lua @@ -50,7 +50,7 @@ function s.reset(e,tp,eg,ep,ev,re,r,rp) s.retop(e:GetLabelObject(),tp,eg,ep,ev,e,r,rp) end function s.retcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.retop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() @@ -63,4 +63,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) end if re then re:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001421.lua b/unofficial/c511001421.lua index a896906bcf..b19ccb1d38 100644 --- a/unofficial/c511001421.lua +++ b/unofficial/c511001421.lua @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511001422.lua b/unofficial/c511001422.lua index bbf7b5c9ac..3b43b32a7e 100644 --- a/unofficial/c511001422.lua +++ b/unofficial/c511001422.lua @@ -17,7 +17,7 @@ function s.cfilter(c) local class=c:GetMetatable(true) if class==nil then return false end local no=class.xyz_number - return no and no>=101 and no<=107 and c:IsSetCard(0x48) + return no and no>=101 and no<=107 and c:IsSetCard(SET_NUMBER) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,3,nil) @@ -26,7 +26,7 @@ function s.filter(c,e,tp) local class=c:GetMetatable(true) if class==nil then return false end local no=class.xyz_number - return no and no>=101 and no<=107 and c:IsSetCard(0x48) + return no and no>=101 and no<=107 and c:IsSetCard(SET_NUMBER) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end @@ -66,4 +66,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001423.lua b/unofficial/c511001423.lua index 67a699244a..481e009368 100644 --- a/unofficial/c511001423.lua +++ b/unofficial/c511001423.lua @@ -33,7 +33,7 @@ function s.atfilter(c) local class=c:GetMetatable(true) if class==nil then return false end local no=class.xyz_number - return no and no>=101 and no<=107 and c:IsFaceup() and c:IsSetCard(0x1048) + return no and no>=101 and no<=107 and c:IsFaceup() and c:IsSetCard(SET_NUMBER_C) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and c:IsControler(tp) and s.filter(chkc) end @@ -79,4 +79,4 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp) else Duel.SetLP(tp,e:GetLabel()-Duel.GetLP(1-tp),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001424.lua b/unofficial/c511001424.lua index 241116c59b..191a144293 100644 --- a/unofficial/c511001424.lua +++ b/unofficial/c511001424.lua @@ -57,4 +57,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker()==e:GetHandler() and Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL -end +end \ No newline at end of file diff --git a/unofficial/c511001425.lua b/unofficial/c511001425.lua index b169cb0a65..247bbd6fe9 100644 --- a/unofficial/c511001425.lua +++ b/unofficial/c511001425.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001426.lua b/unofficial/c511001426.lua index b5f36bee39..de4163492a 100644 --- a/unofficial/c511001426.lua +++ b/unofficial/c511001426.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001427.lua b/unofficial/c511001427.lua index a292a08c0b..4c7f9ce27f 100644 --- a/unofficial/c511001427.lua +++ b/unofficial/c511001427.lua @@ -17,14 +17,14 @@ function s.filter(c,tp,tid) local class=c:GetMetatable(true) if class==nil then return false end local no=class.xyz_number - return no and no>=101 and no<=107 and c:IsSetCard(0x1048) and c:IsReason(REASON_DESTROY) and c:GetTurnID()==tid + return no and no>=101 and no<=107 and c:IsSetCard(SET_NUMBER_C) and c:IsReason(REASON_DESTROY) and c:GetTurnID()==tid and c:IsPreviousControler(tp) end function s.spfilter(c,e,tp,ct) local class=c:GetMetatable() if class==nil then return false end local no=class.xyz_number - return no and no>=101 and no<=107 and c:IsSetCard(0x1048) and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>=ct + return no and no>=101 and no<=107 and c:IsSetCard(SET_NUMBER_C) and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>=ct and c:IsCanBeSpecialSummoned(e,0,1-tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -77,4 +77,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001428.lua b/unofficial/c511001428.lua index 3cb489770e..6b331780cc 100644 --- a/unofficial/c511001428.lua +++ b/unofficial/c511001428.lua @@ -47,4 +47,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001429.lua b/unofficial/c511001429.lua index 683415ac4d..d250601761 100644 --- a/unofficial/c511001429.lua +++ b/unofficial/c511001429.lua @@ -158,4 +158,4 @@ function s.indesop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,c:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001430.lua b/unofficial/c511001430.lua index 16c533cb3d..24ddadf97a 100644 --- a/unofficial/c511001430.lua +++ b/unofficial/c511001430.lua @@ -90,4 +90,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001431.lua b/unofficial/c511001431.lua index 3d79902293..b919ae9cc5 100644 --- a/unofficial/c511001431.lua +++ b/unofficial/c511001431.lua @@ -69,4 +69,4 @@ end function s.damval(e,re,val,r,rp,rc) if e:GetHandler():IsPosition(POS_FACEUP_ATTACK) and r&REASON_EFFECT==REASON_EFFECT then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511001432.lua b/unofficial/c511001432.lua index 580d217243..eda26ea753 100644 --- a/unofficial/c511001432.lua +++ b/unofficial/c511001432.lua @@ -32,4 +32,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) Duel.Damage(p,ct*400,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001433.lua b/unofficial/c511001433.lua index 13fe43d308..5f8142eec3 100644 --- a/unofficial/c511001433.lua +++ b/unofficial/c511001433.lua @@ -44,18 +44,18 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.cfilter(c) - return c:IsSetCard(0x48) and c:IsType(TYPE_XYZ) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_NUMBER) and c:IsType(TYPE_XYZ) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,e:GetHandler()) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,e:GetHandler()) end Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,0) end function s.damop(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,c) + local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,c) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local sg=g:Select(tp,1,#g,nil) if #sg>0 then @@ -71,4 +71,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001434.lua b/unofficial/c511001434.lua index 179f658f8d..07155defbe 100644 --- a/unofficial/c511001434.lua +++ b/unofficial/c511001434.lua @@ -52,4 +52,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001435.lua b/unofficial/c511001435.lua index 7e0da53797..1fb31008c6 100644 --- a/unofficial/c511001435.lua +++ b/unofficial/c511001435.lua @@ -33,4 +33,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001436.lua b/unofficial/c511001436.lua index 3988d4bef2..2ac20507d1 100644 --- a/unofficial/c511001436.lua +++ b/unofficial/c511001436.lua @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return c:GetControler()~=e:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511001437.lua b/unofficial/c511001437.lua index 0daf8b9e26..ca93a84d18 100644 --- a/unofficial/c511001437.lua +++ b/unofficial/c511001437.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001438.lua b/unofficial/c511001438.lua index a698b87cda..c033bb9018 100644 --- a/unofficial/c511001438.lua +++ b/unofficial/c511001438.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) at:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001439.lua b/unofficial/c511001439.lua index 534d8f1c38..1cda1641b9 100644 --- a/unofficial/c511001439.lua +++ b/unofficial/c511001439.lua @@ -22,4 +22,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler()) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001440.lua b/unofficial/c511001440.lua index 5ca4592f01..07a8ace2f3 100644 --- a/unofficial/c511001440.lua +++ b/unofficial/c511001440.lua @@ -30,9 +30,9 @@ end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsAbleToRemoveAsCost() - and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,e,tp,c:GetLevel()) end + and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,e,tp,c:GetLevel()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,e,tp,c:GetLevel()) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,e,tp,c:GetLevel()) g:AddCard(c) g:KeepAlive() e:SetLabelObject(g) @@ -64,4 +64,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp,val,r,rc) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511001441.lua b/unofficial/c511001441.lua index c2c76bdf9b..7129d79ef7 100644 --- a/unofficial/c511001441.lua +++ b/unofficial/c511001441.lua @@ -33,4 +33,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.Destroy(c:GetEquipTarget(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001442.lua b/unofficial/c511001442.lua index f6fda14aa8..053ebf7a4f 100644 --- a/unofficial/c511001442.lua +++ b/unofficial/c511001442.lua @@ -99,4 +99,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511001443.lua b/unofficial/c511001443.lua index ac3abbf488..fac7b43662 100644 --- a/unofficial/c511001443.lua +++ b/unofficial/c511001443.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.ChangeAttackTarget(atg) end -end +end \ No newline at end of file diff --git a/unofficial/c511001444.lua b/unofficial/c511001444.lua index eeda68ab55..365a9f7a90 100644 --- a/unofficial/c511001444.lua +++ b/unofficial/c511001444.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-500) Duel.GetAttacker():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001445.lua b/unofficial/c511001445.lua index 439067413f..f163e3cd4f 100644 --- a/unofficial/c511001445.lua +++ b/unofficial/c511001445.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local xyz=xyzg:Select(tp,1,1,nil):GetFirst() Duel.XyzSummon(tp,xyz,nil,mg,2,2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001446.lua b/unofficial/c511001446.lua index 3956a70754..5195ab0c48 100644 --- a/unofficial/c511001446.lua +++ b/unofficial/c511001446.lua @@ -30,4 +30,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001447.lua b/unofficial/c511001447.lua index f9f29f6cac..905b725f05 100644 --- a/unofficial/c511001447.lua +++ b/unofficial/c511001447.lua @@ -15,7 +15,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetCode(EVENT_DRAW) e1:SetCountLimit(1) - if Duel.GetTurnPlayer()==tp and ph==PHASE_DRAW then + if Duel.IsTurnPlayer(tp) and ph==PHASE_DRAW then e1:SetLabel(Duel.GetTurnCount()) e1:SetCondition(s.con) e1:SetReset(RESET_PHASE+PHASE_DRAW+RESET_SELF_TURN,2) @@ -51,4 +51,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end Duel.ShuffleHand(tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001448.lua b/unofficial/c511001448.lua index 7fbb056415..bc8b0800e8 100644 --- a/unofficial/c511001448.lua +++ b/unofficial/c511001448.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001449.lua b/unofficial/c511001449.lua index 6c9835302c..7379c4e24d 100644 --- a/unofficial/c511001449.lua +++ b/unofficial/c511001449.lua @@ -18,8 +18,8 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.indtg(e,c) - return c:IsMonster() and c:IsAttribute(ATTRIBUTE_WATER) and (c:IsSummonType(SUMMON_TYPE_NORMAL) or c:IsSummonType(SUMMON_TYPE_SPECIAL)) + return c:IsMonster() and c:IsAttribute(ATTRIBUTE_WATER) and (c:IsNormalSummoned() or c:IsSpecialSummoned()) end function s.indesval(e,re) return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) -end +end \ No newline at end of file diff --git a/unofficial/c511001450.lua b/unofficial/c511001450.lua index 0a5024d3b6..b872f004b9 100644 --- a/unofficial/c511001450.lua +++ b/unofficial/c511001450.lua @@ -44,4 +44,4 @@ end function s.rdop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,ev/2) Duel.ChangeBattleDamage(1-tp,ev/2) -end +end \ No newline at end of file diff --git a/unofficial/c511001451.lua b/unofficial/c511001451.lua index 235f2af892..d30b020b9b 100644 --- a/unofficial/c511001451.lua +++ b/unofficial/c511001451.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.ChangePosition(tc,POS_FACEDOWN_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001452.lua b/unofficial/c511001452.lua index c242f4acc3..4a6e3e0355 100644 --- a/unofficial/c511001452.lua +++ b/unofficial/c511001452.lua @@ -51,4 +51,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,sum,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001453.lua b/unofficial/c511001453.lua index 4f7f2ae5a8..bbc42f10c9 100644 --- a/unofficial/c511001453.lua +++ b/unofficial/c511001453.lua @@ -90,4 +90,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local g=aux.SelectUnselectGroup(g,e,tp,2,2,s.rescon,1,tp,HINTMSG_REMOVE) g:AddCard(c) Duel.Remove(g,POS_FACEUP,REASON_COST) -end +end \ No newline at end of file diff --git a/unofficial/c511001454.lua b/unofficial/c511001454.lua index 8af370e1fe..49cfe1819f 100644 --- a/unofficial/c511001454.lua +++ b/unofficial/c511001454.lua @@ -3,14 +3,14 @@ local s,id=GetID() function s.initial_effect(c) --spsummon - local params = {aux.FilterBoolFunction(Card.IsSetCard,0x10af),Fusion.OnFieldMat} + local params = {aux.FilterBoolFunction(Card.IsSetCard,SET_DDD),Fusion.OnFieldMat} local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(Fusion.SummonEffTG(table.unpack(params))) e1:SetOperation(Fusion.SummonEffOP(table.unpack(params))) c:RegisterEffect(e1) end -s.listed_series={0x10af} +s.listed_series={0x10af} \ No newline at end of file diff --git a/unofficial/c511001455.lua b/unofficial/c511001455.lua index b7ac95f2a9..c6044c2820 100644 --- a/unofficial/c511001455.lua +++ b/unofficial/c511001455.lua @@ -56,7 +56,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EVENT_PHASE+PHASE_STANDBY) e3:SetRange(LOCATION_SZONE) e3:SetCountLimit(1) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY then e3:SetCondition(s.damcon1) e3:SetLabel(Duel.GetTurnCount()) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,2) @@ -70,10 +70,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e3) end function s.damcon1(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetTurnCount()~=e:GetLabel() + return Duel.IsTurnPlayer(tp) and Duel.GetTurnCount()~=e:GetLabel() end function s.damcon2(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetFlagEffect(id)==0 end @@ -89,4 +89,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001456.lua b/unofficial/c511001456.lua index 9457ca537f..968593bd59 100644 --- a/unofficial/c511001456.lua +++ b/unofficial/c511001456.lua @@ -40,7 +40,7 @@ function s.tg(e,tp,eg,ep,ev,re,r,rp,chk) e3:SetCode(EVENT_PHASE+PHASE_STANDBY) e3:SetRange(LOCATION_SZONE) e3:SetCountLimit(1) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY then e3:SetCondition(s.damcon1) e3:SetLabel(Duel.GetTurnCount()) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,2) @@ -68,10 +68,10 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if op then op(e,tp,eg,ep,ev,re,r,rp) end end function s.damcon1(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetTurnCount()~=e:GetLabel() + return Duel.IsTurnPlayer(tp) and Duel.GetTurnCount()~=e:GetLabel() end function s.damcon2(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetFlagEffect(id)==0 end @@ -87,4 +87,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001458.lua b/unofficial/c511001458.lua index 68b888cb7c..a09c5baa4d 100644 --- a/unofficial/c511001458.lua +++ b/unofficial/c511001458.lua @@ -58,4 +58,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Group.FromCards(tc,c) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001459.lua b/unofficial/c511001459.lua index a7ee88b5f8..2d7aef68ce 100644 --- a/unofficial/c511001459.lua +++ b/unofficial/c511001459.lua @@ -46,4 +46,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001460.lua b/unofficial/c511001460.lua index 551a422753..89f0335232 100644 --- a/unofficial/c511001460.lua +++ b/unofficial/c511001460.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001465.lua b/unofficial/c511001465.lua index d76bfb4dbe..062906cf12 100644 --- a/unofficial/c511001465.lua +++ b/unofficial/c511001465.lua @@ -33,4 +33,4 @@ function s.val(e,c) end end return atk -end +end \ No newline at end of file diff --git a/unofficial/c511001466.lua b/unofficial/c511001466.lua index 6f8ab5b3c6..df11805b1c 100644 --- a/unofficial/c511001466.lua +++ b/unofficial/c511001466.lua @@ -48,4 +48,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(c,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001467.lua b/unofficial/c511001467.lua index 7e877dcaf1..9e110ef4a9 100644 --- a/unofficial/c511001467.lua +++ b/unofficial/c511001467.lua @@ -62,4 +62,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001468.lua b/unofficial/c511001468.lua index e933a95634..519191f771 100644 --- a/unofficial/c511001468.lua +++ b/unofficial/c511001468.lua @@ -54,4 +54,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP) then c:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001469.lua b/unofficial/c511001469.lua index 50c828194c..6fb1de0421 100644 --- a/unofficial/c511001469.lua +++ b/unofficial/c511001469.lua @@ -20,14 +20,14 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001470.lua b/unofficial/c511001470.lua index da840b1e90..c24859b489 100644 --- a/unofficial/c511001470.lua +++ b/unofficial/c511001470.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(g,POS_FACEUP_DEFENSE,0,POS_FACEUP_ATTACK,0) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001471.lua b/unofficial/c511001471.lua index 0dc690b248..796aeffc52 100644 --- a/unofficial/c511001471.lua +++ b/unofficial/c511001471.lua @@ -41,4 +41,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001472.lua b/unofficial/c511001472.lua index 43b9c7d578..ce3a187ad4 100644 --- a/unofficial/c511001472.lua +++ b/unofficial/c511001472.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,dam1*300,REASON_EFFECT) Duel.Damage(1-tp,dam2*300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001473.lua b/unofficial/c511001473.lua index bb4e6f827a..db25720f63 100644 --- a/unofficial/c511001473.lua +++ b/unofficial/c511001473.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,2,2,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511001474.lua b/unofficial/c511001474.lua index b813eae824..664d0c9545 100644 --- a/unofficial/c511001474.lua +++ b/unofficial/c511001474.lua @@ -47,4 +47,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.SendtoDeck(tc,nil,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001476.lua b/unofficial/c511001476.lua index ed71b7b7fe..7042af444f 100644 --- a/unofficial/c511001476.lua +++ b/unofficial/c511001476.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ARCANA_FORCE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -71,4 +71,4 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp) if Arcana.GetCoinResult(tc)==COIN_HEADS then Arcana.SetCoinResult(tc,COIN_TAILS) end -end +end \ No newline at end of file diff --git a/unofficial/c511001477.lua b/unofficial/c511001477.lua index 54aa584bc6..5cdaaa266e 100644 --- a/unofficial/c511001477.lua +++ b/unofficial/c511001477.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) elseif res==COIN_TAILS then Duel.Damage(p,sum,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001478.lua b/unofficial/c511001478.lua index 30a80f5d99..26d402f660 100644 --- a/unofficial/c511001478.lua +++ b/unofficial/c511001478.lua @@ -66,4 +66,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001479.lua b/unofficial/c511001479.lua index 921038b542..6c3b296155 100644 --- a/unofficial/c511001479.lua +++ b/unofficial/c511001479.lua @@ -41,7 +41,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) de:SetLabelObject(tc) de:SetCondition(s.descon) de:SetOperation(s.desop) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_END then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_END then de:SetLabel(Duel.GetTurnCount()) de:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) else @@ -53,10 +53,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.descon(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() - return Duel.GetTurnPlayer()==tp and Duel.GetTurnCount()~=e:GetLabel() and tc:GetFlagEffect(id+1)~=0 + return Duel.IsTurnPlayer(tp) and Duel.GetTurnCount()~=e:GetLabel() and tc:GetFlagEffect(id+1)~=0 end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) Duel.SendtoGrave(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001480.lua b/unofficial/c511001480.lua index 20533527df..0030708a82 100644 --- a/unofficial/c511001480.lua +++ b/unofficial/c511001480.lua @@ -18,4 +18,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001481.lua b/unofficial/c511001481.lua index 5470b8016e..0f074cb1e9 100644 --- a/unofficial/c511001481.lua +++ b/unofficial/c511001481.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #tg>0 then Duel.SpecialSummon(tg,0,tp,1-tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001482.lua b/unofficial/c511001482.lua index 5e8dfb0b96..6b8f021a15 100644 --- a/unofficial/c511001482.lua +++ b/unofficial/c511001482.lua @@ -89,4 +89,4 @@ function s.sumlimit(e,c) end function s.aclimit(e,re,tp) return re:GetHandler():IsHasEffect(90162951) -end +end \ No newline at end of file diff --git a/unofficial/c511001483.lua b/unofficial/c511001483.lua index 15699a006d..40075e5c5a 100644 --- a/unofficial/c511001483.lua +++ b/unofficial/c511001483.lua @@ -43,4 +43,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(xyz:GetFirst(),g) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001484.lua b/unofficial/c511001484.lua index 24426cba70..95f8b14052 100644 --- a/unofficial/c511001484.lua +++ b/unofficial/c511001484.lua @@ -54,4 +54,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001485.lua b/unofficial/c511001485.lua index d9022b008b..c924606db5 100644 --- a/unofficial/c511001485.lua +++ b/unofficial/c511001485.lua @@ -41,4 +41,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end function s.atkval(e,c) return c:GetAttack()/2 -end +end \ No newline at end of file diff --git a/unofficial/c511001486.lua b/unofficial/c511001486.lua index d02739bb0f..1798c0d805 100644 --- a/unofficial/c511001486.lua +++ b/unofficial/c511001486.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,re,rp) return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and re:GetOwner()~=e:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511001487.lua b/unofficial/c511001487.lua index 667d9b6d86..fe811d9db8 100644 --- a/unofficial/c511001487.lua +++ b/unofficial/c511001487.lua @@ -21,7 +21,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x107b) + return c:IsFaceup() and c:IsSetCard(SET_GALAXY_EYES) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -67,7 +67,7 @@ function s.disable(e,c) return c:IsType(TYPE_XYZ) or c:GetOriginalType()&TYPE_XYZ==TYPE_XYZ end function s.eqlimit(e,c) - return c:GetControler()==e:GetOwnerPlayer() and c:IsSetCard(0x107b) + return c:GetControler()==e:GetOwnerPlayer() and c:IsSetCard(SET_GALAXY_EYES) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -80,4 +80,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local tg=c:GetEquipTarget() Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001488.lua b/unofficial/c511001488.lua index 697cb522fa..6b6debdfdb 100644 --- a/unofficial/c511001488.lua +++ b/unofficial/c511001488.lua @@ -87,4 +87,4 @@ function s.refcon(e,re,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511001489.lua b/unofficial/c511001489.lua index 578d8c04e7..63f12d8d9f 100644 --- a/unofficial/c511001489.lua +++ b/unofficial/c511001489.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) - e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) + e1:SetRange(LOCATION_HAND|LOCATION_GRAVE) e1:SetCondition(s.hspcon) e1:SetTarget(s.hsptg) e1:SetOperation(s.hspop) @@ -124,4 +124,4 @@ function s.damop(e,re,val,r,rp,rc) end function s.econ(e) return Duel.IsEnvironment(CARD_UMI) -end +end \ No newline at end of file diff --git a/unofficial/c511001490.lua b/unofficial/c511001490.lua index e3a97b5e0e..353becb431 100644 --- a/unofficial/c511001490.lua +++ b/unofficial/c511001490.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.GetControl(tc,1-tp) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001491.lua b/unofficial/c511001491.lua index 4d2be9f0c1..63dd3233e2 100644 --- a/unofficial/c511001491.lua +++ b/unofficial/c511001491.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RaiseSingleEvent(oc,EVENT_DETACH_MATERIAL,e,0,0,0,0) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001492.lua b/unofficial/c511001492.lua index 730a86014a..a2be26e96c 100644 --- a/unofficial/c511001492.lua +++ b/unofficial/c511001492.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x1048) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER_C) end function s.sdcon(e) return not Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) @@ -39,4 +39,4 @@ function s.costchk(e,te_or_c,tp) end function s.costop(e,tp,eg,ep,ev,re,r,rp) Duel.PayLPCost(tp,500) -end +end \ No newline at end of file diff --git a/unofficial/c511001493.lua b/unofficial/c511001493.lua index 7fa22b5642..ade0a9fe0f 100644 --- a/unofficial/c511001493.lua +++ b/unofficial/c511001493.lua @@ -55,4 +55,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001494.lua b/unofficial/c511001494.lua index 583d92e63f..1a1e9d0c6e 100644 --- a/unofficial/c511001494.lua +++ b/unofficial/c511001494.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,tc:GetAttack()/2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001495.lua b/unofficial/c511001495.lua index 90eee86b8b..84dcf8bd42 100644 --- a/unofficial/c511001495.lua +++ b/unofficial/c511001495.lua @@ -64,4 +64,4 @@ function s.refcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return val end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511001496.lua b/unofficial/c511001496.lua index 3a9f7414db..228fefb14f 100644 --- a/unofficial/c511001496.lua +++ b/unofficial/c511001496.lua @@ -33,7 +33,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.afilter(c) - return c:IsSetCard(0x40) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_FORBIDDEN_ONE) and c:IsMonster() and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.afilter,tp,LOCATION_DECK,0,1,nil) end @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001497.lua b/unofficial/c511001497.lua index b36e8ce882..9f7506521e 100644 --- a/unofficial/c511001497.lua +++ b/unofficial/c511001497.lua @@ -30,4 +30,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return eg:IsExists(s.repfilter,1,nil,tp) and c and not c:IsStatus(STATUS_DESTROY_CONFIRMED) end return Duel.SelectYesNo(tp,aux.Stringid(id,0)) -end +end \ No newline at end of file diff --git a/unofficial/c511001498.lua b/unofficial/c511001498.lua index 9a55e2cd37..aa878666f5 100644 --- a/unofficial/c511001498.lua +++ b/unofficial/c511001498.lua @@ -17,11 +17,11 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) and (re:IsHasType(EFFECT_TYPE_ACTIONS) or re:IsHasType(EFFECT_TYPE_CONTINUOUS)) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - Duel.SkipPhase(1-tp,PHASE_DRAW,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(1-tp,PHASE_STANDBY,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(1-tp,PHASE_MAIN1,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_END,1,1) - Duel.SkipPhase(1-tp,PHASE_MAIN2,RESET_PHASE+PHASE_END,1) + Duel.SkipPhase(1-tp,PHASE_DRAW,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(1-tp,PHASE_STANDBY,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(1-tp,PHASE_MAIN1,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE|PHASE_END,1,1) + Duel.SkipPhase(1-tp,PHASE_MAIN2,RESET_PHASE|PHASE_END,1) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD) @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(0,1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001499.lua b/unofficial/c511001499.lua index b6c35d3373..428c6cfdec 100644 --- a/unofficial/c511001499.lua +++ b/unofficial/c511001499.lua @@ -137,4 +137,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:ReleaseEffectRelation(te) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001500.lua b/unofficial/c511001500.lua index 808a17141d..4b87b8873a 100644 --- a/unofficial/c511001500.lua +++ b/unofficial/c511001500.lua @@ -29,4 +29,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) local at=Duel.GetAttackTarget() Duel.ChangePosition(at,POS_FACEUP_ATTACK) -end +end \ No newline at end of file diff --git a/unofficial/c511001501.lua b/unofficial/c511001501.lua index b690560989..ca6e78fc10 100644 --- a/unofficial/c511001501.lua +++ b/unofficial/c511001501.lua @@ -25,7 +25,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(0,1) e1:SetCondition(s.sumcon) e1:SetLabel(Duel.GetTurnCount()) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN) else e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,2) @@ -40,4 +40,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.sumcon(e) return Duel.GetTurnCount()~=e:GetLabel() and Duel.GetTurnPlayer()~=e:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511001502.lua b/unofficial/c511001502.lua index c22282f434..b99f36f195 100644 --- a/unofficial/c511001502.lua +++ b/unofficial/c511001502.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.repop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():CancelToGrave(false) -end +end \ No newline at end of file diff --git a/unofficial/c511001503.lua b/unofficial/c511001503.lua index 546c0c266a..726c6f0153 100644 --- a/unofficial/c511001503.lua +++ b/unofficial/c511001503.lua @@ -26,7 +26,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.chainop(e,tp,eg,ep,ev,re,r,rp) local rc=re:GetHandler() - if re:IsHasType(EFFECT_TYPE_ACTIVATE) and rc:IsSetCard(0x46) and re:IsActiveType(TYPE_SPELL) then + if re:IsHasType(EFFECT_TYPE_ACTIVATE) and rc:IsSetCard(SET_FUSION) and re:IsActiveType(TYPE_SPELL) then Duel.SetChainLimit(s.chainlm) end end @@ -42,4 +42,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Draw(tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001504.lua b/unofficial/c511001504.lua index 4382943fac..65d8d53c44 100644 --- a/unofficial/c511001504.lua +++ b/unofficial/c511001504.lua @@ -53,4 +53,4 @@ function s.tg(e,c) end function s.becon(e) return Duel.IsExistingMatchingCard(Card.CanAttack,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511001505.lua b/unofficial/c511001505.lua index 90e8167e40..7225ff4065 100644 --- a/unofficial/c511001505.lua +++ b/unofficial/c511001505.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001506.lua b/unofficial/c511001506.lua index 9b6201039e..0c9977cb14 100644 --- a/unofficial/c511001506.lua +++ b/unofficial/c511001506.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.val(e,c) return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsRace,RACE_FAIRY),c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())*300 -end +end \ No newline at end of file diff --git a/unofficial/c511001507.lua b/unofficial/c511001507.lua index 83bff04fb3..67c5bdbe06 100644 --- a/unofficial/c511001507.lua +++ b/unofficial/c511001507.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.val(e,c) return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsRace,RACE_FAIRY),c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,e:GetHandler())*300 -end +end \ No newline at end of file diff --git a/unofficial/c511001508.lua b/unofficial/c511001508.lua index 0c875c4d71..4263d699a3 100644 --- a/unofficial/c511001508.lua +++ b/unofficial/c511001508.lua @@ -25,4 +25,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.ChangeAttackTarget(g:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511001509.lua b/unofficial/c511001509.lua index 788e69c16a..b51ae45e08 100644 --- a/unofficial/c511001509.lua +++ b/unofficial/c511001509.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001510.lua b/unofficial/c511001510.lua index 7552ebb983..42ff678375 100644 --- a/unofficial/c511001510.lua +++ b/unofficial/c511001510.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.tg(e,c) return c:GetEquipCount()>0 -end +end \ No newline at end of file diff --git a/unofficial/c511001511.lua b/unofficial/c511001511.lua index aa803ad289..2dd52e3372 100644 --- a/unofficial/c511001511.lua +++ b/unofficial/c511001511.lua @@ -26,4 +26,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) Duel.GetAttackTarget():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001512.lua b/unofficial/c511001512.lua index 28909eeab1..8842ad5e9d 100644 --- a/unofficial/c511001512.lua +++ b/unofficial/c511001512.lua @@ -51,4 +51,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if tc:IsAttackBelow(0) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001513.lua b/unofficial/c511001513.lua index fb5ab6e84c..09b0ffbe63 100644 --- a/unofficial/c511001513.lua +++ b/unofficial/c511001513.lua @@ -100,4 +100,4 @@ function s.btop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.Damage(1-tp,Duel.GetAttacker():GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001514.lua b/unofficial/c511001514.lua index de3249be5d..ed8fadba3f 100644 --- a/unofficial/c511001514.lua +++ b/unofficial/c511001514.lua @@ -52,4 +52,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001515.lua b/unofficial/c511001515.lua index a3e247dd24..49eb9b9222 100644 --- a/unofficial/c511001515.lua +++ b/unofficial/c511001515.lua @@ -78,4 +78,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #mg<=ft and mg:FilterCount(aux.NecroValleyFilter(s.mgfilter),nil,e,tp,e:GetHandler())==#mg then Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001516.lua b/unofficial/c511001516.lua index 8d923be982..355737ef5b 100644 --- a/unofficial/c511001516.lua +++ b/unofficial/c511001516.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001517.lua b/unofficial/c511001517.lua index cfe149b3c3..f936913f2f 100644 --- a/unofficial/c511001517.lua +++ b/unofficial/c511001517.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.atkfilter(e,c) return (c:GetSummonType()&SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL -end +end \ No newline at end of file diff --git a/unofficial/c511001518.lua b/unofficial/c511001518.lua index 55528edcd0..66d3ac05fa 100644 --- a/unofficial/c511001518.lua +++ b/unofficial/c511001518.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) end s.listed_series={0x2b} function s.actcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x2b),tp,LOCATION_MZONE,0,1,nil) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_NINJA),tp,LOCATION_MZONE,0,1,nil) end function s.damval(e,re,val,r,rp,rc) if (r&REASON_EFFECT)~=0 and rp~=e:GetHandlerPlayer() and val<=800 then @@ -37,11 +37,11 @@ function s.damval(e,re,val,r,rp,rc) return val end function s.desfilter(c,tp) - return c:IsSetCard(0x2b) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) + return c:IsSetCard(SET_NINJA) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) end function s.descon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.desfilter,1,nil,tp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001519.lua b/unofficial/c511001519.lua index 8d4a4e4bb3..d26f32f100 100644 --- a/unofficial/c511001519.lua +++ b/unofficial/c511001519.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.spfilter(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0x2b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and c:IsSetCard(SET_NINJA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,1,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001520.lua b/unofficial/c511001520.lua index d7f324df32..78e09831cf 100644 --- a/unofficial/c511001520.lua +++ b/unofficial/c511001520.lua @@ -32,7 +32,7 @@ function s.initial_effect(c) end s.listed_series={0x2b} function s.actcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x2b),tp,LOCATION_MZONE,0,1,nil) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_NINJA),tp,LOCATION_MZONE,0,1,nil) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) and Duel.GetTurnPlayer()~=tp @@ -46,11 +46,11 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end function s.desfilter(c,tp) - return c:IsSetCard(0x2b) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) + return c:IsSetCard(SET_NINJA) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) end function s.descon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.desfilter,1,nil,tp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001521.lua b/unofficial/c511001521.lua index 62227b42ad..da2f5d65cb 100644 --- a/unofficial/c511001521.lua +++ b/unofficial/c511001521.lua @@ -32,4 +32,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001522.lua b/unofficial/c511001522.lua index 02bca570f2..1e3bc0848a 100644 --- a/unofficial/c511001522.lua +++ b/unofficial/c511001522.lua @@ -34,4 +34,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001523.lua b/unofficial/c511001523.lua index 52232beed6..1d6a1eb9fe 100644 --- a/unofficial/c511001523.lua +++ b/unofficial/c511001523.lua @@ -35,4 +35,4 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp) end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001524.lua b/unofficial/c511001524.lua index 116f30583c..7af5895e33 100644 --- a/unofficial/c511001524.lua +++ b/unofficial/c511001524.lua @@ -56,4 +56,4 @@ function s.cfilter(c,tp) end function s.condition2(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001525.lua b/unofficial/c511001525.lua index 290240308c..e4b7b05203 100644 --- a/unofficial/c511001525.lua +++ b/unofficial/c511001525.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tg:RegisterEffect(e1) Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001526.lua b/unofficial/c511001526.lua index 86ed4175cb..db23d8158b 100644 --- a/unofficial/c511001526.lua +++ b/unofficial/c511001526.lua @@ -15,4 +15,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511001527.lua b/unofficial/c511001527.lua index ca0f196de5..3b1bc172d4 100644 --- a/unofficial/c511001527.lua +++ b/unofficial/c511001527.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.skipcon(e) return Duel.GetTurnCount()~=e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511001528.lua b/unofficial/c511001528.lua index 6cb080f2c4..a83622fb42 100644 --- a/unofficial/c511001528.lua +++ b/unofficial/c511001528.lua @@ -71,4 +71,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001530.lua b/unofficial/c511001530.lua index b5865534c3..99171f2e54 100644 --- a/unofficial/c511001530.lua +++ b/unofficial/c511001530.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():CancelToGrave() local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001531.lua b/unofficial/c511001531.lua index 62d1cd4129..87b5b91feb 100644 --- a/unofficial/c511001531.lua +++ b/unofficial/c511001531.lua @@ -203,4 +203,4 @@ function s.damop2(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001532.lua b/unofficial/c511001532.lua index e069edacb3..13ff7bcd6a 100644 --- a/unofficial/c511001532.lua +++ b/unofficial/c511001532.lua @@ -42,7 +42,7 @@ function s.atfilter(c) local class=c:GetMetatable(true) if class==nil then return false end local no=class.xyz_number - return no and no>=101 and no<=107 and c:IsFaceup() and c:IsSetCard(0x1048) + return no and no>=101 and no<=107 and c:IsFaceup() and c:IsSetCard(SET_NUMBER_C) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) @@ -81,4 +81,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,dam,REASON_EFFECT) dam=Duel.GetFieldGroupCount(1-tp,LOCATION_HAND,0)*300 Duel.Damage(1-tp,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001534.lua b/unofficial/c511001534.lua index 108980e2ee..67642b84c6 100644 --- a/unofficial/c511001534.lua +++ b/unofficial/c511001534.lua @@ -18,4 +18,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if re:IsHasType(EFFECT_TYPE_ACTIVATE) and rp~=tp then Duel.Damage(1-tp,300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001535.lua b/unofficial/c511001535.lua index 43648b99db..e5aab2e999 100644 --- a/unofficial/c511001535.lua +++ b/unofficial/c511001535.lua @@ -15,4 +15,4 @@ end s.listed_names={id} function s.atktg(e,c) return Duel.GetAttacker()==c and Duel.GetAttackTarget() and Duel.GetAttackTarget():IsCode(id) -end +end \ No newline at end of file diff --git a/unofficial/c511001536.lua b/unofficial/c511001536.lua index f58744b2e7..050ee8838f 100644 --- a/unofficial/c511001536.lua +++ b/unofficial/c511001536.lua @@ -55,8 +55,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(0x1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end function s.con(e) return s[e:GetHandlerPlayer()] -end +end \ No newline at end of file diff --git a/unofficial/c511001537.lua b/unofficial/c511001537.lua index 05bf2df734..d870aae4f0 100644 --- a/unofficial/c511001537.lua +++ b/unofficial/c511001537.lua @@ -53,4 +53,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001538.lua b/unofficial/c511001538.lua index 904f8520d6..19454c3088 100644 --- a/unofficial/c511001538.lua +++ b/unofficial/c511001538.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) end s.listed_series={0x7} function s.damcon(e,tp,eg,ep,ev,re,r,rp) - if rp~=tp or not re:GetHandler():IsSetCard(0x7) then return end + if rp~=tp or not re:GetHandler():IsSetCard(SET_ANCIENT_GEAR) then return end local ex,cg,ct,cp,cv=Duel.GetOperationInfo(ev,CATEGORY_DAMAGE) return ex end @@ -39,4 +39,4 @@ function s.dammul(e,re,val,r,rp,rc) local cc=Duel.GetCurrentChain() if cc==0 or (r&REASON_EFFECT)==0 then return end return val*2 -end +end \ No newline at end of file diff --git a/unofficial/c511001539.lua b/unofficial/c511001539.lua index 335a57f75e..76d86077df 100644 --- a/unofficial/c511001539.lua +++ b/unofficial/c511001539.lua @@ -59,8 +59,8 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.confilter(c) - return c:IsFaceup() and c:IsSetCard(0x7) + return c:IsFaceup() and c:IsSetCard(SET_ANCIENT_GEAR) end function s.fuscon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.confilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511001540.lua b/unofficial/c511001540.lua index c6a9cd74d7..0959839b4d 100644 --- a/unofficial/c511001540.lua +++ b/unofficial/c511001540.lua @@ -95,4 +95,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001541.lua b/unofficial/c511001541.lua index 2730822689..be9a4b5e5b 100644 --- a/unofficial/c511001541.lua +++ b/unofficial/c511001541.lua @@ -19,7 +19,7 @@ function s.con(e,tp,eg,ep,ev,re,r,rp) end function s.cfilter(c,fc,e,tp) local fd=c:GetCode() - if not c:IsSetCard(0x7) or c:IsPreviousPosition(POS_FACEDOWN) or not c:IsPreviousControler(tp) + if not c:IsSetCard(SET_ANCIENT_GEAR) or c:IsPreviousPosition(POS_FACEDOWN) or not c:IsPreviousControler(tp) or not c:IsCanBeEffectTarget(e) then return false end for i=1,fc.material_count do if fd==fc.material[i] then return true end @@ -65,4 +65,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if sc and Duel.SpecialSummon(sc,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP)>0 then sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001542.lua b/unofficial/c511001542.lua index 4f6f541d18..fb518973b1 100644 --- a/unofficial/c511001542.lua +++ b/unofficial/c511001542.lua @@ -26,7 +26,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 end function s.filter(c,e,tp,tid) - return c:GetTurnID()==tid and c:IsSetCard(0x7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:GetTurnID()==tid and c:IsSetCard(SET_ANCIENT_GEAR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsReason(REASON_RETURN) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -49,4 +49,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001543.lua b/unofficial/c511001543.lua index e80fe56799..511892c677 100644 --- a/unofficial/c511001543.lua +++ b/unofficial/c511001543.lua @@ -21,7 +21,7 @@ end s.listed_series={0x7} function s.condition(e,tp,eg,ep,ev,re,r,rp) local ec=eg:GetFirst() - return #eg==1 and ec:IsSetCard(0x7) and ec:IsPreviousLocation(LOCATION_GRAVE) + return #eg==1 and ec:IsSetCard(SET_ANCIENT_GEAR) and ec:IsPreviousLocation(LOCATION_GRAVE) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<=1 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local ec=eg:GetFirst() local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,ec:GetAttack()/2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001544.lua b/unofficial/c511001544.lua index c6702043c3..eb608aa269 100644 --- a/unofficial/c511001544.lua +++ b/unofficial/c511001544.lua @@ -52,4 +52,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c511001545.lua b/unofficial/c511001545.lua index 9db4efc7fa..0ac91d0d3b 100644 --- a/unofficial/c511001545.lua +++ b/unofficial/c511001545.lua @@ -43,7 +43,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,e:GetHandler():GetAttack()/2,REASON_EFFECT) end function s.sumcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) + return e:GetHandler():IsFusionSummoned() end function s.mgfilter(c,e,tp,fusc) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) @@ -67,4 +67,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #mg<=ft and mg:FilterCount(aux.NecroValleyFilter(s.mgfilter),nil,e,tp,c)==#mg then Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001546.lua b/unofficial/c511001546.lua index ee5c632af7..0be23a1f24 100644 --- a/unofficial/c511001546.lua +++ b/unofficial/c511001546.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RDComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001547.lua b/unofficial/c511001547.lua index 077c1bfa39..170bd2aae8 100644 --- a/unofficial/c511001547.lua +++ b/unofficial/c511001547.lua @@ -64,4 +64,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetLabel()*100) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001548.lua b/unofficial/c511001548.lua index f6469d5bc1..db4bf948f5 100644 --- a/unofficial/c511001548.lua +++ b/unofficial/c511001548.lua @@ -31,4 +31,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_CANNOT_MSET) c:RegisterEffect(e3) end -s.listed_series={0x50b} +s.listed_series={0x50b} \ No newline at end of file diff --git a/unofficial/c511001549.lua b/unofficial/c511001549.lua index 121bef0473..4c23893de7 100644 --- a/unofficial/c511001549.lua +++ b/unofficial/c511001549.lua @@ -61,4 +61,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end tc=tg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001550.lua b/unofficial/c511001550.lua index 9576fb409e..0c635d01cc 100644 --- a/unofficial/c511001550.lua +++ b/unofficial/c511001550.lua @@ -45,7 +45,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) de:SetLabelObject(sg) de:SetCondition(s.descon) de:SetOperation(s.desop) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_END then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_END then de:SetLabel(Duel.GetTurnCount()) de:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) else @@ -60,7 +60,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.descon(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() - return Duel.GetTurnPlayer()==tp and Duel.GetTurnCount()~=e:GetLabel() + return Duel.IsTurnPlayer(tp) and Duel.GetTurnCount()~=e:GetLabel() end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() @@ -68,4 +68,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) g:DeleteGroup() Duel.SendtoGrave(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001551.lua b/unofficial/c511001551.lua index 4801d451eb..684edacb4f 100644 --- a/unofficial/c511001551.lua +++ b/unofficial/c511001551.lua @@ -25,4 +25,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001552.lua b/unofficial/c511001552.lua index 6434c58dbb..d31d52200f 100644 --- a/unofficial/c511001552.lua +++ b/unofficial/c511001552.lua @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001553.lua b/unofficial/c511001553.lua index b8ec30cc5c..d873beac1d 100644 --- a/unofficial/c511001553.lua +++ b/unofficial/c511001553.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() local sg=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_MZONE,nil) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001554.lua b/unofficial/c511001554.lua index 0eeeaabc88..215e76266e 100644 --- a/unofficial/c511001554.lua +++ b/unofficial/c511001554.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Damage(1-tp,tc:GetPreviousAttackOnField(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001555.lua b/unofficial/c511001555.lua index 4bebf29468..686cff28f4 100644 --- a/unofficial/c511001555.lua +++ b/unofficial/c511001555.lua @@ -73,4 +73,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001556.lua b/unofficial/c511001556.lua index 11abdf3a1e..991325f239 100644 --- a/unofficial/c511001556.lua +++ b/unofficial/c511001556.lua @@ -18,4 +18,4 @@ function s.initial_effect(c) end function s.efilter(e,te) return e:GetOwnerPlayer()~=te:GetOwnerPlayer() and te:GetHandler():IsOnField() -end +end \ No newline at end of file diff --git a/unofficial/c511001557.lua b/unofficial/c511001557.lua index b1dd4189b9..0d4e5b82bb 100644 --- a/unofficial/c511001557.lua +++ b/unofficial/c511001557.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001558.lua b/unofficial/c511001558.lua index 1873b3d758..6baf62cc23 100644 --- a/unofficial/c511001558.lua +++ b/unofficial/c511001558.lua @@ -37,4 +37,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001559.lua b/unofficial/c511001559.lua index be5f8243ac..32d540ecfc 100644 --- a/unofficial/c511001559.lua +++ b/unofficial/c511001559.lua @@ -65,4 +65,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetLabel()*100) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001560.lua b/unofficial/c511001560.lua index 000bf23afb..7ddbf08248 100644 --- a/unofficial/c511001560.lua +++ b/unofficial/c511001560.lua @@ -66,4 +66,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(e:GetHandler(),REASON_EFFECT)>0 then Duel.Damage(1-tp,400,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001561.lua b/unofficial/c511001561.lua index 3ed0684553..b999f96a6f 100644 --- a/unofficial/c511001561.lua +++ b/unofficial/c511001561.lua @@ -25,9 +25,9 @@ end function s.chk(e,tp,eg,ep,ev,re,r,rp) for tc in aux.Next(eg) do if tc:GetSummonPlayer()==0 then - Duel.RegisterFlagEffect(0,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(0,id,RESET_PHASE|PHASE_END,0,1) else - Duel.RegisterFlagEffect(1,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(1,id,RESET_PHASE|PHASE_END,0,1) end end end @@ -96,5 +96,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end \ No newline at end of file diff --git a/unofficial/c511001563.lua b/unofficial/c511001563.lua index 7386bf8ecd..351d41ca88 100644 --- a/unofficial/c511001563.lua +++ b/unofficial/c511001563.lua @@ -59,4 +59,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001564.lua b/unofficial/c511001564.lua index 6d50aa18cd..190cc44284 100644 --- a/unofficial/c511001564.lua +++ b/unofficial/c511001564.lua @@ -47,7 +47,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsPreviousLocation(LOCATION_MZONE) and e:GetHandler():IsPreviousControler(tp) end function s.filter(c,e,tp) - return c:IsSetCard(0xc6) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PERFORMAGE) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -61,4 +61,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001565.lua b/unofficial/c511001565.lua index 4f7a2bff73..03fb88b1ac 100644 --- a/unofficial/c511001565.lua +++ b/unofficial/c511001565.lua @@ -65,4 +65,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(atk) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001566.lua b/unofficial/c511001566.lua index e648de854f..be3e482471 100644 --- a/unofficial/c511001566.lua +++ b/unofficial/c511001566.lua @@ -65,4 +65,4 @@ function s.splvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001567.lua b/unofficial/c511001567.lua index 4cfcbeeba3..9017bd7a0f 100644 --- a/unofficial/c511001567.lua +++ b/unofficial/c511001567.lua @@ -41,4 +41,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,ev*2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001568.lua b/unofficial/c511001568.lua index af77c7585d..bb4d6febbc 100644 --- a/unofficial/c511001568.lua +++ b/unofficial/c511001568.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001569.lua b/unofficial/c511001569.lua index e7ac22aba1..bb4b4dce6a 100644 --- a/unofficial/c511001569.lua +++ b/unofficial/c511001569.lua @@ -51,4 +51,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tg then tg(e,tp,teg,tep,tev,tre,tr,trp,1) end if op then op(e,tp,teg,tep,tev,tre,tr,trp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001570.lua b/unofficial/c511001570.lua index f3693d7d93..de64762240 100644 --- a/unofficial/c511001570.lua +++ b/unofficial/c511001570.lua @@ -33,4 +33,4 @@ function s.retcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end local g=Duel.SelectReleaseGroup(tp,nil,1,1,nil) Duel.Release(g,REASON_COST) -end +end \ No newline at end of file diff --git a/unofficial/c511001571.lua b/unofficial/c511001571.lua index 73460b6876..f040e82f5b 100644 --- a/unofficial/c511001571.lua +++ b/unofficial/c511001571.lua @@ -2,7 +2,7 @@ --Utopia Sword local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x7f)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_UTOPIC)) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_EQUIP) e1:SetCode(EFFECT_UPDATE_ATTACK) @@ -39,4 +39,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler():GetPreviousEquipTarget()) Duel.Destroy(dg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001572.lua b/unofficial/c511001572.lua index fc4eb57f88..69e27e2932 100644 --- a/unofficial/c511001572.lua +++ b/unofficial/c511001572.lua @@ -35,4 +35,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c511001573.lua b/unofficial/c511001573.lua index 3b0f577f15..61814aa5be 100644 --- a/unofficial/c511001573.lua +++ b/unofficial/c511001573.lua @@ -55,4 +55,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001574.lua b/unofficial/c511001574.lua index 5800764d2d..bee547a769 100644 --- a/unofficial/c511001574.lua +++ b/unofficial/c511001574.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001575.lua b/unofficial/c511001575.lua index 6bef1b5b55..1eaae83abf 100644 --- a/unofficial/c511001575.lua +++ b/unofficial/c511001575.lua @@ -47,4 +47,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001576.lua b/unofficial/c511001576.lua index 0ceabc6aa8..97c23b7028 100644 --- a/unofficial/c511001576.lua +++ b/unofficial/c511001576.lua @@ -13,16 +13,16 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local ph=Duel.GetCurrentPhase() - return Duel.GetTurnPlayer()==tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2) + return Duel.IsTurnPlayer(tp) and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2) end function s.filter(c,e,tp) local ct=c.minxyzct - return c:IsSetCard(0x48) and c:IsType(TYPE_XYZ) + return c:IsSetCard(SET_NUMBER) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and ct and Duel.IsExistingMatchingCard(s.atfilter,tp,LOCATION_GRAVE,0,ct,c) end function s.atfilter(c) - return c:IsSetCard(0x48) and c:IsMonster() + return c:IsSetCard(SET_NUMBER) and c:IsMonster() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local og=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.atfilter),tp,LOCATION_GRAVE,0,ct,ct2,nil) Duel.Overlay(tc,og) end -end +end \ No newline at end of file diff --git a/unofficial/c511001577.lua b/unofficial/c511001577.lua index c80d73bb64..e826a6237a 100644 --- a/unofficial/c511001577.lua +++ b/unofficial/c511001577.lua @@ -12,8 +12,8 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,0x48) end - local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,0x48) + if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,SET_NUMBER) end + local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,SET_NUMBER) Duel.Release(g,REASON_COST) end function s.filter(c,tp,eg,ep,ev,re,r,rp) @@ -88,4 +88,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001578.lua b/unofficial/c511001578.lua index a033bea891..58d206cb29 100644 --- a/unofficial/c511001578.lua +++ b/unofficial/c511001578.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001579.lua b/unofficial/c511001579.lua index e8e9d5f865..f26c587874 100644 --- a/unofficial/c511001579.lua +++ b/unofficial/c511001579.lua @@ -27,4 +27,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if bc:IsRelateToBattle() then Duel.Destroy(bc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001580.lua b/unofficial/c511001580.lua index e03e4473d9..24fc9780d3 100644 --- a/unofficial/c511001580.lua +++ b/unofficial/c511001580.lua @@ -53,4 +53,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001581.lua b/unofficial/c511001581.lua index 82ad394429..43933f9e81 100644 --- a/unofficial/c511001581.lua +++ b/unofficial/c511001581.lua @@ -49,4 +49,4 @@ function s.posop2(e,tp,eg,ep,ev,re,r,rp) if tc:IsFaceup() and tc:IsRelateToBattle() and tc:IsAttackPos() then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511001582.lua b/unofficial/c511001582.lua index d62cb02a6a..11e5f02e88 100644 --- a/unofficial/c511001582.lua +++ b/unofficial/c511001582.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xc6) + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAGE) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) @@ -29,4 +29,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler()) Duel.SendtoHand(sg,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001583.lua b/unofficial/c511001583.lua index ff0db3e4f5..9c2980b887 100644 --- a/unofficial/c511001583.lua +++ b/unofficial/c511001583.lua @@ -46,4 +46,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001584.lua b/unofficial/c511001584.lua index 799506a62c..34f9d59541 100644 --- a/unofficial/c511001584.lua +++ b/unofficial/c511001584.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001585.lua b/unofficial/c511001585.lua index 51db6657a5..a0ac3d4cb6 100644 --- a/unofficial/c511001585.lua +++ b/unofficial/c511001585.lua @@ -63,4 +63,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetAttackTarget() then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001587.lua b/unofficial/c511001587.lua index b6d5d07231..43c8f9ce78 100644 --- a/unofficial/c511001587.lua +++ b/unofficial/c511001587.lua @@ -58,4 +58,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e4) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001588.lua b/unofficial/c511001588.lua index c3fc605a61..118e59e166 100644 --- a/unofficial/c511001588.lua +++ b/unofficial/c511001588.lua @@ -27,4 +27,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001589.lua b/unofficial/c511001589.lua index 0f10f2c2c9..13dd719e9f 100644 --- a/unofficial/c511001589.lua +++ b/unofficial/c511001589.lua @@ -70,4 +70,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_PHASE+PHASE_END) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511001590.lua b/unofficial/c511001590.lua index acf01d838a..230c8c71da 100644 --- a/unofficial/c511001590.lua +++ b/unofficial/c511001590.lua @@ -71,4 +71,4 @@ function s.atktg(e,c) end function s.atklimit(e,c) return c==e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c511001591.lua b/unofficial/c511001591.lua index 478a8d5b59..06be131c84 100644 --- a/unofficial/c511001591.lua +++ b/unofficial/c511001591.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg2,0,1-tp,1-tp,false,false,POS_FACEUP_ATTACK) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001592.lua b/unofficial/c511001592.lua index bdd586df20..57eb7a192c 100644 --- a/unofficial/c511001592.lua +++ b/unofficial/c511001592.lua @@ -143,4 +143,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001593.lua b/unofficial/c511001593.lua index 3156069567..36f300048f 100644 --- a/unofficial/c511001593.lua +++ b/unofficial/c511001593.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001594.lua b/unofficial/c511001594.lua index e1b00151b3..f77753521d 100644 --- a/unofficial/c511001594.lua +++ b/unofficial/c511001594.lua @@ -37,4 +37,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001596.lua b/unofficial/c511001596.lua index 92e88e3400..2a9a2a5467 100644 --- a/unofficial/c511001596.lua +++ b/unofficial/c511001596.lua @@ -60,7 +60,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e:Reset() end function s.rtcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.rtcost(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLP(tp)>1000 and Duel.SelectYesNo(tp,aux.Stringid(24874630,0)) then @@ -68,4 +68,4 @@ function s.rtcost(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(e:GetHandler(),REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001597.lua b/unofficial/c511001597.lua index 8fa1ef1e80..ff1444a122 100644 --- a/unofficial/c511001597.lua +++ b/unofficial/c511001597.lua @@ -32,10 +32,10 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) and Duel.GetDrawCount(tp)>0 end function s.filter(c) - return c:IsSetCard(0x23) and c:IsAbleToHand() and c:IsMonster() + return c:IsSetCard(SET_MALEFIC) and c:IsAbleToHand() and c:IsMonster() end function s.filter2(c) - return c:IsSetCard(0x23) and c:IsMonster() + return c:IsSetCard(SET_MALEFIC) and c:IsMonster() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) @@ -76,11 +76,11 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x23) + return c:IsFaceup() and c:IsSetCard(SET_MALEFIC) end function s.atcon(e) return Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) end function s.attarget(e,c) - return not c:IsSetCard(0x23) -end + return not c:IsSetCard(SET_MALEFIC) +end \ No newline at end of file diff --git a/unofficial/c511001598.lua b/unofficial/c511001598.lua index 2ff8d333ab..d737488bf7 100644 --- a/unofficial/c511001598.lua +++ b/unofficial/c511001598.lua @@ -26,4 +26,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSpell),tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001599.lua b/unofficial/c511001599.lua index 3d7de11218..3ca69a5801 100644 --- a/unofficial/c511001599.lua +++ b/unofficial/c511001599.lua @@ -21,4 +21,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(600) e:GetHandler():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001600.lua b/unofficial/c511001600.lua index 077898ea2b..3da806515e 100644 --- a/unofficial/c511001600.lua +++ b/unofficial/c511001600.lua @@ -62,4 +62,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if rp~=tp and tl==LOCATION_SZONE then Duel.NegateEffect(ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511001602.lua b/unofficial/c511001602.lua index 2a16c9d4de..09d9b69e90 100644 --- a/unofficial/c511001602.lua +++ b/unofficial/c511001602.lua @@ -22,4 +22,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-400) g:GetFirst():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001603.lua b/unofficial/c511001603.lua index 2efae5ba2c..27d2c856f3 100644 --- a/unofficial/c511001603.lua +++ b/unofficial/c511001603.lua @@ -90,4 +90,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc=ge:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001604.lua b/unofficial/c511001604.lua index a2323a7b32..87f3385ef2 100644 --- a/unofficial/c511001604.lua +++ b/unofficial/c511001604.lua @@ -36,4 +36,4 @@ function s.damval(e,re,val,r,rp,rc) else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511001605.lua b/unofficial/c511001605.lua index 9089431639..7437503fc0 100644 --- a/unofficial/c511001605.lua +++ b/unofficial/c511001605.lua @@ -19,4 +19,4 @@ function s.initial_effect(c) e5:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e5:SetValue(1) c:RegisterEffect(e5) -end +end \ No newline at end of file diff --git a/unofficial/c511001606.lua b/unofficial/c511001606.lua index 95c400a3da..9fc3c6bb54 100644 --- a/unofficial/c511001606.lua +++ b/unofficial/c511001606.lua @@ -64,4 +64,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001607.lua b/unofficial/c511001607.lua index 6d4d06bc9d..2ce3a81062 100644 --- a/unofficial/c511001607.lua +++ b/unofficial/c511001607.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001608.lua b/unofficial/c511001608.lua index 2227370e25..e2e2882a77 100644 --- a/unofficial/c511001608.lua +++ b/unofficial/c511001608.lua @@ -71,7 +71,7 @@ function s.initial_effect(c) local e8=Effect.CreateEffect(c) e8:SetType(EFFECT_TYPE_SINGLE) e8:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e8:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e8:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e8) aux.GlobalCheck(s,function() s[0]=0 @@ -93,7 +93,7 @@ end s.listed_series={0x48} s.xyz_number=93 function s.chkfilter(c,tp,re) - return c:IsSetCard(0x48) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) + return c:IsSetCard(SET_NUMBER) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousControler(tp) end function s.regop(e,tp,eg,ep,ev,re,r,rp) local g1=eg:Filter(s.chkfilter,nil,tp) @@ -106,7 +106,7 @@ function s.clear(e,tp,eg,ep,ev,re,r,rp) s[1]=0 end function s.filter(c,e,tp,ct) - return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>=ct end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -142,7 +142,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) c:RemoveOverlayCard(tp,1,1,REASON_EFFECT) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x48) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) end function s.indcon(e) return Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) @@ -154,7 +154,7 @@ function s.damval(e,re,val,r,rp,rc) return 0 end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -189,4 +189,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001609.lua b/unofficial/c511001609.lua index f63808c1b6..b353cab4bc 100644 --- a/unofficial/c511001609.lua +++ b/unofficial/c511001609.lua @@ -53,4 +53,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) Duel.Overlay(sg:GetFirst(),at,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511001610.lua b/unofficial/c511001610.lua index 3150deac60..f7dda244bd 100644 --- a/unofficial/c511001610.lua +++ b/unofficial/c511001610.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001611.lua b/unofficial/c511001611.lua index 7128ea845a..26ef2adef2 100644 --- a/unofficial/c511001611.lua +++ b/unofficial/c511001611.lua @@ -17,7 +17,7 @@ function s.spfilter(c,e,p,mg) return Duel.GetLocationCountFromEx(p,p,mg,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,p,false,false) end function s.filter(c,mg,p,e) - if not c:IsSetCard(0x48) or not c:IsType(TYPE_XYZ) or type(c.xyz_number)~="number" or not s.spfilter(c,e,p,mg-c) then return false end + if not c:IsSetCard(SET_NUMBER) or not c:IsType(TYPE_XYZ) or type(c.xyz_number)~="number" or not s.spfilter(c,e,p,mg-c) then return false end if c.xyz_number==0 then return mg:IsExists(function(c)return c.xyz_number==0 end,1,c) else @@ -80,4 +80,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(spc,mat) spc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001612.lua b/unofficial/c511001612.lua index 095da622a4..6956772722 100644 --- a/unofficial/c511001612.lua +++ b/unofficial/c511001612.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x48) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001613.lua b/unofficial/c511001613.lua index 2f254818d2..9f0f351e15 100644 --- a/unofficial/c511001613.lua +++ b/unofficial/c511001613.lua @@ -16,4 +16,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(LOCATION_MZONE,0) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001614.lua b/unofficial/c511001614.lua index 9fe91c50bb..aff3472cbb 100644 --- a/unofficial/c511001614.lua +++ b/unofficial/c511001614.lua @@ -49,4 +49,4 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp) end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001615.lua b/unofficial/c511001615.lua index ef139bd048..71e0d7dc87 100644 --- a/unofficial/c511001615.lua +++ b/unofficial/c511001615.lua @@ -34,4 +34,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetAttackTarget() if not d then return false end return a:IsType(TYPE_XYZ) and d:IsDefensePos() and a:GetAttack()>d:GetDefense() -end +end \ No newline at end of file diff --git a/unofficial/c511001616.lua b/unofficial/c511001616.lua index 57c31d0656..4aca85c3df 100644 --- a/unofficial/c511001616.lua +++ b/unofficial/c511001616.lua @@ -2,7 +2,7 @@ --Raptor's Ultimate Mace (Anime) local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0xba)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_RAIDRAPTOR)) --increase ATK local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_EQUIP) @@ -30,7 +30,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) return false end function s.afilter(c) - return c:IsSetCard(0x95) and c:IsSpell() and c:IsAbleToHand() + return c:IsSetCard(SET_RANK_UP_MAGIC) and c:IsSpell() and c:IsAbleToHand() end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local eq=e:GetHandler():GetEquipTarget() @@ -42,4 +42,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c511001617.lua b/unofficial/c511001617.lua index 962a681f41..4473f0a45a 100644 --- a/unofficial/c511001617.lua +++ b/unofficial/c511001617.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) Duel.Damage(1-tp,300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001618.lua b/unofficial/c511001618.lua index 94bf786183..d2c550e9f7 100644 --- a/unofficial/c511001618.lua +++ b/unofficial/c511001618.lua @@ -16,7 +16,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()~=tp and Duel.GetBattleDamage(tp)>0 and Duel.GetAttackTarget()==nil end function s.filter(c,e,tp) - return c:IsSetCard(0xba) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511001619.lua b/unofficial/c511001619.lua index 87191cb6ee..f7a74d0a55 100644 --- a/unofficial/c511001619.lua +++ b/unofficial/c511001619.lua @@ -78,4 +78,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) etc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001620.lua b/unofficial/c511001620.lua index 71ffbb9ab2..c5c39e9689 100644 --- a/unofficial/c511001620.lua +++ b/unofficial/c511001620.lua @@ -15,4 +15,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e:GetHandler():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001621.lua b/unofficial/c511001621.lua index f4d81bb407..0dbca66697 100644 --- a/unofficial/c511001621.lua +++ b/unofficial/c511001621.lua @@ -36,4 +36,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.damop2(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,ev/2) -end +end \ No newline at end of file diff --git a/unofficial/c511001622.lua b/unofficial/c511001622.lua index c0a2e6a240..49e5e00ad2 100644 --- a/unofficial/c511001622.lua +++ b/unofficial/c511001622.lua @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001623.lua b/unofficial/c511001623.lua index e751d79923..7883b85b5d 100644 --- a/unofficial/c511001623.lua +++ b/unofficial/c511001623.lua @@ -22,8 +22,8 @@ function s.rescon(sg,e,tp,mg) return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,sg) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil,e) + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil,e) if chk==0 then return aux.SelectUnselectGroup(g,e,tp,3,3,s.rescon,0) end local sg=aux.SelectUnselectGroup(g,e,tp,3,3,s.rescon,1,tp,HINTMSG_REMOVE) Duel.SetTargetCard(sg) @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001624.lua b/unofficial/c511001624.lua index 6335b2e033..8da41ae012 100644 --- a/unofficial/c511001624.lua +++ b/unofficial/c511001624.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) --xyz summon - Xyz.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0xba),3,2) + Xyz.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_RAIDRAPTOR),3,2) c:EnableReviveLimit() --damage local e1=Effect.CreateEffect(c) @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001625.lua b/unofficial/c511001625.lua index 7fd8f347d2..56dcdbe590 100644 --- a/unofficial/c511001625.lua +++ b/unofficial/c511001625.lua @@ -18,7 +18,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.tgfilter(c) - return c:IsSetCard(0x95) and c:IsSpell() and c:IsAbleToHand() + return c:IsSetCard(SET_RANK_UP_MAGIC) and c:IsSpell() and c:IsAbleToHand() end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.tgfilter(chkc) end @@ -33,4 +33,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001627.lua b/unofficial/c511001627.lua index c4cdb23e18..c5ed3beb85 100644 --- a/unofficial/c511001627.lua +++ b/unofficial/c511001627.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local tc=g:GetFirst() Duel.Hint(HINT_CARD,0,id) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511001630.lua b/unofficial/c511001630.lua index abe8f4bd01..dce22236f1 100644 --- a/unofficial/c511001630.lua +++ b/unofficial/c511001630.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(dg) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001631.lua b/unofficial/c511001631.lua index 62bf53115e..006eb61328 100644 --- a/unofficial/c511001631.lua +++ b/unofficial/c511001631.lua @@ -45,4 +45,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if sc and Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)>0 then sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001632.lua b/unofficial/c511001632.lua index da3d6a2117..1dc85d733d 100644 --- a/unofficial/c511001632.lua +++ b/unofficial/c511001632.lua @@ -55,4 +55,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(sg:GetFirst(),sgo) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001633.lua b/unofficial/c511001633.lua index 0c683b3140..1e36b5ddbd 100644 --- a/unofficial/c511001633.lua +++ b/unofficial/c511001633.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(500) tc:RegisterEffect(e1) Duel.ChainAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511001634.lua b/unofficial/c511001634.lua index e0aefee4b8..d30ba3a9ee 100644 --- a/unofficial/c511001634.lua +++ b/unofficial/c511001634.lua @@ -33,4 +33,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001635.lua b/unofficial/c511001635.lua index 9adc6c2c4b..59b1f21b9e 100644 --- a/unofficial/c511001635.lua +++ b/unofficial/c511001635.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001636.lua b/unofficial/c511001636.lua index 64fe1a32bc..fa954c882c 100644 --- a/unofficial/c511001636.lua +++ b/unofficial/c511001636.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangeAttackTarget(g:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511001637.lua b/unofficial/c511001637.lua index 20cb717187..11b54f6cd4 100644 --- a/unofficial/c511001637.lua +++ b/unofficial/c511001637.lua @@ -28,7 +28,7 @@ end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_GRAVE+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_GRAVE|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=1 then return end @@ -64,4 +64,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001639.lua b/unofficial/c511001639.lua index 4e935a5bfd..80ca59351d 100644 --- a/unofficial/c511001639.lua +++ b/unofficial/c511001639.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x43) + return c:IsFaceup() and c:IsSetCard(SET_JUNK) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001640.lua b/unofficial/c511001640.lua index 884567a68c..34ba9cc790 100644 --- a/unofficial/c511001640.lua +++ b/unofficial/c511001640.lua @@ -90,4 +90,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.synop(e,tg,ntg,sg,lv,sc,tp) return sg:GetSum(Card.GetLevel)/2==lv,true -end +end \ No newline at end of file diff --git a/unofficial/c511001641.lua b/unofficial/c511001641.lua index 8049e8112a..ef52fd07b0 100644 --- a/unofficial/c511001641.lua +++ b/unofficial/c511001641.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x43) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_JUNK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,2,2,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001642.lua b/unofficial/c511001642.lua index 666a57a7e6..63b0351a8b 100644 --- a/unofficial/c511001642.lua +++ b/unofficial/c511001642.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001643.lua b/unofficial/c511001643.lua index 156c1a64a1..7afd3c312a 100644 --- a/unofficial/c511001643.lua +++ b/unofficial/c511001643.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001644.lua b/unofficial/c511001644.lua index 32c6f12d41..d6bb2ccb7a 100644 --- a/unofficial/c511001644.lua +++ b/unofficial/c511001644.lua @@ -99,4 +99,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_EFFECT|REASON_REPLACE) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511001645.lua b/unofficial/c511001645.lua index 23b7a4e429..586cc980f4 100644 --- a/unofficial/c511001645.lua +++ b/unofficial/c511001645.lua @@ -23,13 +23,13 @@ function s.neosfilter(c,fc,sumtype,tp,sub,mg,sg,contact) (c:IsSummonCode(fc,sumtype,fc:GetControler(),CARD_NEOS) or (sub and c:CheckFusionSubstitute(fc))) end function s.ffilter(c,fc,sumtype,tp,sub,mg,sg) - return c:IsSetCard(0x1f,fc,sumtype,fc:GetControler()) and (not sg or not sg:IsExists(s.fusfilter,1,c,c:GetCode(),fc,fc:GetControler(),sumtype)) + return c:IsSetCard(SET_NEO_SPACIAN,fc,sumtype,fc:GetControler()) and (not sg or not sg:IsExists(s.fusfilter,1,c,c:GetCode(),fc,fc:GetControler(),sumtype)) end function s.fusfilter(c,code,fc,tp,sumtype) return c:IsSummonCode(fc,sumtype,tp,code) and not c:IsHasEffect(511002961) end function s.contactfil(tp) - return Duel.GetMatchingGroup(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,nil) + return Duel.GetMatchingGroup(Card.IsAbleToDeckOrExtraAsCost,tp,LOCATION_ONFIELD|LOCATION_GRAVE,0,nil) end function s.contactop(g,tp) Duel.ConfirmCards(1-tp,g) @@ -39,7 +39,7 @@ function s.splimit(e,se,sp,st) return not e:GetHandler():IsLocation(LOCATION_EXTRA) end function s.copyfilter(c) - return c:IsSetCard(0x1f) and c:IsMonster() + return c:IsSetCard(SET_NEO_SPACIAN) and c:IsMonster() and not c:IsForbidden() and c:IsAbleToRemove() end function s.copytg(e,tp,eg,ep,ev,re,r,rp,chk) diff --git a/unofficial/c511001646.lua b/unofficial/c511001646.lua index da2e79ad1b..d5ab1bd6f1 100644 --- a/unofficial/c511001646.lua +++ b/unofficial/c511001646.lua @@ -76,4 +76,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001647.lua b/unofficial/c511001647.lua index 5050a0d515..6f5295bc3d 100644 --- a/unofficial/c511001647.lua +++ b/unofficial/c511001647.lua @@ -6,4 +6,4 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DIRECT_ATTACK) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001649.lua b/unofficial/c511001649.lua index 0df7f40f84..82bbf5db56 100644 --- a/unofficial/c511001649.lua +++ b/unofficial/c511001649.lua @@ -25,9 +25,9 @@ end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return c:IsReleasable() - and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c,e,tp,c) end + and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,1,c,e,tp,c) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) - local tc=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,c,e,tp,c):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,1,1,c,e,tp,c):GetFirst() Duel.Release(Group.FromCards(c,tc),REASON_COST) Duel.SetTargetCard(tc) end diff --git a/unofficial/c511001650.lua b/unofficial/c511001650.lua index 54eea1d1f2..cd2c58ea38 100644 --- a/unofficial/c511001650.lua +++ b/unofficial/c511001650.lua @@ -30,4 +30,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001651.lua b/unofficial/c511001651.lua index b1702d7b9d..bdf594f028 100644 --- a/unofficial/c511001651.lua +++ b/unofficial/c511001651.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001653.lua b/unofficial/c511001653.lua index 9f3287f869..765019f7b6 100644 --- a/unofficial/c511001653.lua +++ b/unofficial/c511001653.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,tp) - return c:IsSetCard(0x1045) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_RED_DRAGON_ARCHFIEND) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) and Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,1,c) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -23,7 +23,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()~=1 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,tp) + return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,1,1,nil,tp) @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) tc:CopyEffect(code,RESET_EVENT+RESETS_STANDARD,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001654.lua b/unofficial/c511001654.lua index 87243fa29d..e59e2df8f0 100644 --- a/unofficial/c511001654.lua +++ b/unofficial/c511001654.lua @@ -47,4 +47,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(tg) Duel.SynchroSummon(tp,sg:GetFirst(),tg:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511001655.lua b/unofficial/c511001655.lua index 7d6b2df9ac..72f1d768d5 100644 --- a/unofficial/c511001655.lua +++ b/unofficial/c511001655.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,tp) - return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0x54) + return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(SET_GAGAGA) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return rp~=tp and re:IsActiveType(TYPE_XYZ) and eg:IsExists(s.filter,1,nil,tp) and Duel.IsChainDisablable(ev) @@ -40,7 +40,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) end function s.posfilter(c) - return c:IsPosition(POS_FACEUP_ATTACK) and c:IsSetCard(0x54) + return c:IsPosition(POS_FACEUP_ATTACK) and c:IsSetCard(SET_GAGAGA) end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and s.posfilter(chkc) end @@ -60,4 +60,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001656.lua b/unofficial/c511001656.lua index 6c5f09bfe7..b47f298eca 100644 --- a/unofficial/c511001656.lua +++ b/unofficial/c511001656.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001657.lua b/unofficial/c511001657.lua index 5f7529af89..efe882168c 100644 --- a/unofficial/c511001657.lua +++ b/unofficial/c511001657.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1000) a:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001658.lua b/unofficial/c511001658.lua index 3990dd20b6..47c1502984 100644 --- a/unofficial/c511001658.lua +++ b/unofficial/c511001658.lua @@ -86,4 +86,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001659.lua b/unofficial/c511001659.lua index 84ab3282b2..4f264e7298 100644 --- a/unofficial/c511001659.lua +++ b/unofficial/c511001659.lua @@ -110,4 +110,4 @@ function s.atcon(e) end function s.atlimit(e,c) return c~=e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c511001660.lua b/unofficial/c511001660.lua index 36fae3fdf4..e8ca52ac14 100644 --- a/unofficial/c511001660.lua +++ b/unofficial/c511001660.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001661.lua b/unofficial/c511001661.lua index 5275a7ce81..62e0b84e4b 100644 --- a/unofficial/c511001661.lua +++ b/unofficial/c511001661.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) - e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) + e1:SetRange(LOCATION_HAND|LOCATION_GRAVE) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY) e1:SetCode(EVENT_DESTROYED) e1:SetCondition(s.condition) @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001662.lua b/unofficial/c511001662.lua index 432f0142e2..cbef14d862 100644 --- a/unofficial/c511001662.lua +++ b/unofficial/c511001662.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) end s.listed_series={0x48} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x48) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) end function s.target(e,tp,eg,ep,ev,re,r,rp,tc,chk) if chk==0 then return true end @@ -53,4 +53,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(Group.FromCards(c,tc),REASON_EFFECT)>1 then Duel.Damage(1-tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001663.lua b/unofficial/c511001663.lua index 438d0de6c2..ffe6c52156 100644 --- a/unofficial/c511001663.lua +++ b/unofficial/c511001663.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.tg) e1:SetOperation(s.op) c:RegisterEffect(e1) @@ -46,4 +46,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-atk) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001664.lua b/unofficial/c511001664.lua index d0c0535d1d..e76481722e 100644 --- a/unofficial/c511001664.lua +++ b/unofficial/c511001664.lua @@ -28,4 +28,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001665.lua b/unofficial/c511001665.lua index 4f6568fba4..acd39b7449 100644 --- a/unofficial/c511001665.lua +++ b/unofficial/c511001665.lua @@ -91,4 +91,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001666.lua b/unofficial/c511001666.lua index ad6b3e7945..3f2c3dcda1 100644 --- a/unofficial/c511001666.lua +++ b/unofficial/c511001666.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk) tc:RegisterEffect(e2) Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001667.lua b/unofficial/c511001667.lua index bcc4b41bd4..a9ed009077 100644 --- a/unofficial/c511001667.lua +++ b/unofficial/c511001667.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x16b} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x16b),tp,LOCATION_MZONE,0,1,nil) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_NUMEROUNIOUS),tp,LOCATION_MZONE,0,1,nil) end function s.filter(c) return c:GetSequence()<5 @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(sg,REASON_EFFECT)>0 then Duel.Damage(1-tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001668.lua b/unofficial/c511001668.lua index 4c25c7f899..640afaab34 100644 --- a/unofficial/c511001668.lua +++ b/unofficial/c511001668.lua @@ -28,4 +28,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001669.lua b/unofficial/c511001669.lua index e73128cdbb..c1fe8f5778 100644 --- a/unofficial/c511001669.lua +++ b/unofficial/c511001669.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001671.lua b/unofficial/c511001671.lua index c4c949d40d..2b1d459c8e 100644 --- a/unofficial/c511001671.lua +++ b/unofficial/c511001671.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001672.lua b/unofficial/c511001672.lua index 6b09803be4..3dceb80590 100644 --- a/unofficial/c511001672.lua +++ b/unofficial/c511001672.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001674.lua b/unofficial/c511001674.lua index cc3fa0c9d7..4a8c74b68e 100644 --- a/unofficial/c511001674.lua +++ b/unofficial/c511001674.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UPDATE_DEFENSE) e3:SetValue(500) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511001675.lua b/unofficial/c511001675.lua index f97d45dfc1..5548f1ec27 100644 --- a/unofficial/c511001675.lua +++ b/unofficial/c511001675.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001676.lua b/unofficial/c511001676.lua index 249ff30e95..fbfca2831d 100644 --- a/unofficial/c511001676.lua +++ b/unofficial/c511001676.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001680.lua b/unofficial/c511001680.lua index 30e3c7dd6e..5c80bc9025 100644 --- a/unofficial/c511001680.lua +++ b/unofficial/c511001680.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001681.lua b/unofficial/c511001681.lua index 30fc55c4de..89ddf9ecc0 100644 --- a/unofficial/c511001681.lua +++ b/unofficial/c511001681.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001682.lua b/unofficial/c511001682.lua index e978a2d990..b859ff3153 100644 --- a/unofficial/c511001682.lua +++ b/unofficial/c511001682.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001683.lua b/unofficial/c511001683.lua index deca32aa4d..cb414ef40f 100644 --- a/unofficial/c511001683.lua +++ b/unofficial/c511001683.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(800) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001684.lua b/unofficial/c511001684.lua index 3b952eaa3d..b038e5a80b 100644 --- a/unofficial/c511001684.lua +++ b/unofficial/c511001684.lua @@ -29,4 +29,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,0) -end +end \ No newline at end of file diff --git a/unofficial/c511001685.lua b/unofficial/c511001685.lua index 7e8e475944..0c4f9bf7c4 100644 --- a/unofficial/c511001685.lua +++ b/unofficial/c511001685.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g==2 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001687.lua b/unofficial/c511001687.lua index d90f0955bb..84e41e238b 100644 --- a/unofficial/c511001687.lua +++ b/unofficial/c511001687.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001688.lua b/unofficial/c511001688.lua index f5d7f46857..263f81da91 100644 --- a/unofficial/c511001688.lua +++ b/unofficial/c511001688.lua @@ -42,4 +42,4 @@ function s.skipcon(e,tp,eg,ep,ev,re,r,rp) end function s.skipop(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511001689.lua b/unofficial/c511001689.lua index 3de31546f4..9fdd53b740 100644 --- a/unofficial/c511001689.lua +++ b/unofficial/c511001689.lua @@ -46,4 +46,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,1-tp,id) local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,0) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001690.lua b/unofficial/c511001690.lua index a11b7c6230..4d84bccf15 100644 --- a/unofficial/c511001690.lua +++ b/unofficial/c511001690.lua @@ -37,13 +37,13 @@ end function s.spcon(e,c) if c==nil then return true end local tp=e:GetHandlerPlayer() - local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) return #rg>0 and aux.SelectUnselectGroup(rg,e,tp,3,3,aux.ChkfMMZ(1),0) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,c) local c=e:GetHandler() local g=nil - local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) local g=aux.SelectUnselectGroup(rg,e,tp,3,3,aux.ChkfMMZ(1),1,tp,HINTMSG_REMOVE,nil,nil,true) if #g>0 then g:KeepAlive() @@ -73,4 +73,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(1-tp,600,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001692.lua b/unofficial/c511001692.lua index 8ab5a0132f..93ce8fc185 100644 --- a/unofficial/c511001692.lua +++ b/unofficial/c511001692.lua @@ -16,7 +16,7 @@ end s.listed_series={SET_FLOWER_CARDIAN} function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(11) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(11) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001693.lua b/unofficial/c511001693.lua index f5ef4c8af8..2901112349 100644 --- a/unofficial/c511001693.lua +++ b/unofficial/c511001693.lua @@ -16,7 +16,7 @@ end s.listed_series={SET_FLOWER_CARDIAN} function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(12) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(12) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001694.lua b/unofficial/c511001694.lua index 4174e12941..7ec663f386 100644 --- a/unofficial/c511001694.lua +++ b/unofficial/c511001694.lua @@ -17,7 +17,7 @@ end s.listed_series={SET_FLOWER_CARDIAN} function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(12) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(12) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -48,4 +48,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001695.lua b/unofficial/c511001695.lua index 3ae290456d..311d19bb53 100644 --- a/unofficial/c511001695.lua +++ b/unofficial/c511001695.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(1) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(1) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -46,4 +46,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001696.lua b/unofficial/c511001696.lua index f172f020a4..33edf645f6 100644 --- a/unofficial/c511001696.lua +++ b/unofficial/c511001696.lua @@ -17,7 +17,7 @@ end s.listed_series={SET_FLOWER_CARDIAN} function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(1) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(1) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -48,4 +48,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001697.lua b/unofficial/c511001697.lua index 5969fef990..d8e0bd4927 100644 --- a/unofficial/c511001697.lua +++ b/unofficial/c511001697.lua @@ -17,7 +17,7 @@ end s.listed_series={SET_FLOWER_CARDIAN} function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(3) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(3) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -48,4 +48,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001698.lua b/unofficial/c511001698.lua index 241b05008a..f65a395e84 100644 --- a/unofficial/c511001698.lua +++ b/unofficial/c511001698.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(8) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(8) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -46,4 +46,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001699.lua b/unofficial/c511001699.lua index b3ed3315cf..e18b665f11 100644 --- a/unofficial/c511001699.lua +++ b/unofficial/c511001699.lua @@ -17,7 +17,7 @@ end s.listed_series={SET_FLOWER_CARDIAN} function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(8) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(8) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -48,4 +48,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001700.lua b/unofficial/c511001700.lua index 9f9a14cdef..dc4b616cf9 100644 --- a/unofficial/c511001700.lua +++ b/unofficial/c511001700.lua @@ -23,7 +23,7 @@ end s.listed_series={SET_FLOWER_CARDIAN} function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(11) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(11) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -59,4 +59,4 @@ function s.synop(e,tg,ntg,sg,lv,sc,tp) local res=sg:CheckWithSumEqual(Card.GetSynchroLevel,lv,#sg,#sg,sc) or sg:CheckWithSumEqual(function() return 2 end,lv,#sg,#sg) return res,true -end +end \ No newline at end of file diff --git a/unofficial/c511001701.lua b/unofficial/c511001701.lua index 20bfed5ecf..f9df668574 100644 --- a/unofficial/c511001701.lua +++ b/unofficial/c511001701.lua @@ -81,4 +81,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,1500,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001702.lua b/unofficial/c511001702.lua index 0a03fc6745..bdd6b090be 100644 --- a/unofficial/c511001702.lua +++ b/unofficial/c511001702.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) end s.listed_series={0xe6} function s.filter(c,e,tp) - return c:GetAttack()==100 and c:IsSetCard(0xe6) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:GetAttack()==100 and c:IsSetCard(SET_FLOWER_CARDIAN) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>3 and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) @@ -56,5 +56,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end function s.sumlimit(e,c) - return not c:IsSetCard(0xe6) -end + return not c:IsSetCard(SET_FLOWER_CARDIAN) +end \ No newline at end of file diff --git a/unofficial/c511001703.lua b/unofficial/c511001703.lua index f0aa347881..1f0c7ba64f 100644 --- a/unofficial/c511001703.lua +++ b/unofficial/c511001703.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) end s.listed_series={0xe6} function s.filter(c) - return c:IsMonster() and c:IsSetCard(0xe6) + return c:IsMonster() and c:IsSetCard(SET_FLOWER_CARDIAN) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,3,nil) end @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.MoveToDeckTop(g) Duel.SortDecktop(tp,tp,ct) end -end +end \ No newline at end of file diff --git a/unofficial/c511001704.lua b/unofficial/c511001704.lua index e24a084055..08b28b0a32 100644 --- a/unofficial/c511001704.lua +++ b/unofficial/c511001704.lua @@ -31,10 +31,10 @@ function s.initial_effect(c) end s.listed_series={0xe6} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xe6) and c:IsType(TYPE_SYNCHRO) + return c:IsFaceup() and c:IsSetCard(SET_FLOWER_CARDIAN) and c:IsType(TYPE_SYNCHRO) end function s.ofilter(c) - return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsSummonLocation(LOCATION_HAND) + return c:IsSpecialSummoned() and c:IsSummonLocation(LOCATION_HAND) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -55,4 +55,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) end function s.sdcon(e) return not Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511001705.lua b/unofficial/c511001705.lua index 674da1b4b5..d33c63ef1b 100644 --- a/unofficial/c511001705.lua +++ b/unofficial/c511001705.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) end s.listed_series={0x48} function s.chkfilter(c,tid) - return c:IsSetCard(0x48) and c:GetTurnID()==tid + return c:IsSetCard(SET_NUMBER) and c:GetTurnID()==tid end function s.checkop(e,tp,eg,ep,ev,re,r,rp) local tid=Duel.GetTurnCount() @@ -46,7 +46,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x48) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -64,4 +64,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(s[tp]) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001706.lua b/unofficial/c511001706.lua index d5c3b2557a..da32f0218d 100644 --- a/unofficial/c511001706.lua +++ b/unofficial/c511001706.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e1:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e1:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e1) --disable local e2=Effect.CreateEffect(c) @@ -61,4 +61,4 @@ function s.eftg(e,c) end function s.atkval(e,c) return e:GetHandler():GetRank()*1000 -end +end \ No newline at end of file diff --git a/unofficial/c511001707.lua b/unofficial/c511001707.lua index ffaa8f4654..7874b58fe5 100644 --- a/unofficial/c511001707.lua +++ b/unofficial/c511001707.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x54) and c:IsFaceup() and c:HasLevel() + return c:IsSetCard(SET_GAGAGA) and c:IsFaceup() and c:HasLevel() end function s.spfilter(c,e,tp) return c:HasLevel() and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511001708.lua b/unofficial/c511001708.lua index 92eadffa02..6109f8fb9c 100644 --- a/unofficial/c511001708.lua +++ b/unofficial/c511001708.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001709.lua b/unofficial/c511001709.lua index cc3f09b031..ae38e2540e 100644 --- a/unofficial/c511001709.lua +++ b/unofficial/c511001709.lua @@ -55,4 +55,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001710.lua b/unofficial/c511001710.lua index ea78d97693..2ea702db4c 100644 --- a/unofficial/c511001710.lua +++ b/unofficial/c511001710.lua @@ -37,7 +37,7 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(e:GetHandler(),REASON_COST) end function s.thfilter(c) - return c:IsLevelBelow(3) and c:IsSetCard(0x9f) and c:IsMonster() and c:IsAbleToHand() + return c:IsLevelBelow(3) and c:IsSetCard(SET_PERFORMAPAL) and c:IsMonster() and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.thfilter(chkc) end diff --git a/unofficial/c511001711.lua b/unofficial/c511001711.lua index e33947eb38..755e783f3d 100644 --- a/unofficial/c511001711.lua +++ b/unofficial/c511001711.lua @@ -74,4 +74,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) e1:SetValue(atk) a:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001712.lua b/unofficial/c511001712.lua index b960aaa344..fee62d3ae0 100644 --- a/unofficial/c511001712.lua +++ b/unofficial/c511001712.lua @@ -60,4 +60,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001713.lua b/unofficial/c511001713.lua index 94ba61ca65..0fbd09d115 100644 --- a/unofficial/c511001713.lua +++ b/unofficial/c511001713.lua @@ -38,4 +38,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511001714.lua b/unofficial/c511001714.lua index 1282b0c1ce..039da7e17f 100644 --- a/unofficial/c511001714.lua +++ b/unofficial/c511001714.lua @@ -78,4 +78,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return e:GetOwner()==c -end +end \ No newline at end of file diff --git a/unofficial/c511001715.lua b/unofficial/c511001715.lua index 8d563542a4..ee93b1ee9a 100644 --- a/unofficial/c511001715.lua +++ b/unofficial/c511001715.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_PHASE+PHASE_DAMAGE) e2:SetValue(1) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001716.lua b/unofficial/c511001716.lua index 03265effa4..3037a491db 100644 --- a/unofficial/c511001716.lua +++ b/unofficial/c511001716.lua @@ -7,5 +7,5 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.IsBattlePhase() + return Duel.IsTurnPlayer(tp) and Duel.IsBattlePhase() end \ No newline at end of file diff --git a/unofficial/c511001717.lua b/unofficial/c511001717.lua index b953f6d0c2..1520136213 100644 --- a/unofficial/c511001717.lua +++ b/unofficial/c511001717.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) end function s.con(e) return not Duel.IsExistingMatchingCard(Card.IsAttackPos,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511001720.lua b/unofficial/c511001720.lua index 6407487c5c..fd6a3333f1 100644 --- a/unofficial/c511001720.lua +++ b/unofficial/c511001720.lua @@ -31,4 +31,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(tp,cg) Duel.ShuffleDeck(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001721.lua b/unofficial/c511001721.lua index 22ff5ef55d..901ffe621a 100644 --- a/unofficial/c511001721.lua +++ b/unofficial/c511001721.lua @@ -25,7 +25,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.Draw(p,d,REASON_EFFECT)==3 then local g=Duel.GetOperatedGroup() for tc in aux.Next(g) do - if Duel.GetLocationCount(p,LOCATION_MZONE)>0 and tc:IsSetCard(0xe6) + if Duel.GetLocationCount(p,LOCATION_MZONE)>0 and tc:IsSetCard(SET_FLOWER_CARDIAN) and tc:IsCanBeSpecialSummoned(e,0,p,false,false) and Duel.SpecialSummonStep(tc,0,p,p,false,false,POS_FACEUP) then local e1=Effect.CreateEffect(e:GetHandler()) @@ -43,11 +43,11 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e3=e2:Clone() e3:SetCode(EFFECT_SET_DEFENSE_FINAL) tc:RegisterEffect(e3) - elseif not tc:IsMonster() or not tc:IsSetCard(0xe6) then + elseif not tc:IsMonster() or not tc:IsSetCard(SET_FLOWER_CARDIAN) then Duel.SendtoGrave(tc,REASON_EFFECT) Duel.Damage(p,1000,REASON_EFFECT) end end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001722.lua b/unofficial/c511001722.lua index 1550c4c11a..104b819df9 100644 --- a/unofficial/c511001722.lua +++ b/unofficial/c511001722.lua @@ -20,5 +20,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) end function s.filter(e,c) - return c:IsSetCard(0xe6) -end + return c:IsSetCard(SET_FLOWER_CARDIAN) +end \ No newline at end of file diff --git a/unofficial/c511001723.lua b/unofficial/c511001723.lua index cf0652de48..b25122501d 100644 --- a/unofficial/c511001723.lua +++ b/unofficial/c511001723.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(7) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(7) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001724.lua b/unofficial/c511001724.lua index ab8dc82caa..005cd792a6 100644 --- a/unofficial/c511001724.lua +++ b/unofficial/c511001724.lua @@ -23,7 +23,7 @@ end s.listed_series={SET_FLOWER_CARDIAN} function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(6) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(6) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -60,4 +60,4 @@ function s.synop(e,tg,ntg,sg,lv,sc,tp) local res=sg:CheckWithSumEqual(Card.GetSynchroLevel,lv,#sg,#sg,sc) or sg:CheckWithSumEqual(function() return 2 end,lv,#sg,#sg) return res,true -end +end \ No newline at end of file diff --git a/unofficial/c511001725.lua b/unofficial/c511001725.lua index 043eaec871..88385a1f59 100644 --- a/unofficial/c511001725.lua +++ b/unofficial/c511001725.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end function s.filter(c) local re=c:GetReasonEffect() - return c:IsLevel(1) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsLevel(1) and c:IsSetCard(SET_FLOWER_CARDIAN) and (not c:IsSpecialSummoned() or (not re or not re:GetHandler():IsSetCard(SET_FLOWER_CARDIAN) or not re:GetHandler():IsMonster())) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001726.lua b/unofficial/c511001726.lua index 090ac295a2..38db02797e 100644 --- a/unofficial/c511001726.lua +++ b/unofficial/c511001726.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,511001544,aux.FilterBoolFunction(Card.IsSetCard,0x7)) + Fusion.AddProcMix(c,true,true,511001544,aux.FilterBoolFunction(Card.IsSetCard,SET_ANCIENT_GEAR)) --halve lp local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) @@ -45,4 +45,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c511001727.lua b/unofficial/c511001727.lua index b642c9825a..8c5d72de9a 100644 --- a/unofficial/c511001727.lua +++ b/unofficial/c511001727.lua @@ -11,4 +11,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_INDESTRUCTABLE) e2:SetValue(1) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511001728.lua b/unofficial/c511001728.lua index 679319640a..bd5da132f6 100644 --- a/unofficial/c511001728.lua +++ b/unofficial/c511001728.lua @@ -17,4 +17,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001729.lua b/unofficial/c511001729.lua index 74bcae4a40..bcc68e49de 100644 --- a/unofficial/c511001729.lua +++ b/unofficial/c511001729.lua @@ -26,4 +26,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001730.lua b/unofficial/c511001730.lua index 859ec0d67a..7ca37a5cd7 100644 --- a/unofficial/c511001730.lua +++ b/unofficial/c511001730.lua @@ -52,4 +52,4 @@ end function s.damop2(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001731.lua b/unofficial/c511001731.lua index 4223de8eec..6520082fae 100644 --- a/unofficial/c511001731.lua +++ b/unofficial/c511001731.lua @@ -53,4 +53,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001732.lua b/unofficial/c511001732.lua index 3f7194d4c9..7afd32fdcc 100644 --- a/unofficial/c511001732.lua +++ b/unofficial/c511001732.lua @@ -11,4 +11,4 @@ function s.initial_effect(c) e1:SetTargetRange(0,1) e1:SetTarget(function(_,_,_,sumtp) return (sumtp&SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ end) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001733.lua b/unofficial/c511001733.lua index e795d046ed..c156125953 100644 --- a/unofficial/c511001733.lua +++ b/unofficial/c511001733.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else Duel.Damage(1-tp,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001734.lua b/unofficial/c511001734.lua index d78ce2e771..3ad14828a0 100644 --- a/unofficial/c511001734.lua +++ b/unofficial/c511001734.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(1-p) end -end +end \ No newline at end of file diff --git a/unofficial/c511001735.lua b/unofficial/c511001735.lua index 6dea85887c..dfd9df2ff9 100644 --- a/unofficial/c511001735.lua +++ b/unofficial/c511001735.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsPosition(POS_FACEUP_ATTACK) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001736.lua b/unofficial/c511001736.lua index 33817a0066..f2b72e0940 100644 --- a/unofficial/c511001736.lua +++ b/unofficial/c511001736.lua @@ -29,5 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end - +end \ No newline at end of file diff --git a/unofficial/c511001737.lua b/unofficial/c511001737.lua index b362435fc4..cf046b3e84 100644 --- a/unofficial/c511001737.lua +++ b/unofficial/c511001737.lua @@ -61,4 +61,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001738.lua b/unofficial/c511001738.lua index 554f06f358..cdf85cc0bd 100644 --- a/unofficial/c511001738.lua +++ b/unofficial/c511001738.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else Duel.Damage(ep,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001739.lua b/unofficial/c511001739.lua index 1610af6ef7..1a5c2349cd 100644 --- a/unofficial/c511001739.lua +++ b/unofficial/c511001739.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if d:IsFacedown() then Duel.ConfirmCards(1-tp,d) end Duel.Damage(tp,d:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001740.lua b/unofficial/c511001740.lua index 03a53591f8..e8ca03dfc7 100644 --- a/unofficial/c511001740.lua +++ b/unofficial/c511001740.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if g and g:GetFirst():IsRelateToEffect(e) then Duel.ChangeTargetCard(ev,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001742.lua b/unofficial/c511001742.lua index a76e09310d..10406456de 100644 --- a/unofficial/c511001742.lua +++ b/unofficial/c511001742.lua @@ -33,4 +33,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001743.lua b/unofficial/c511001743.lua index 4dd644cfdc..60239ae063 100644 --- a/unofficial/c511001743.lua +++ b/unofficial/c511001743.lua @@ -111,4 +111,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001744.lua b/unofficial/c511001744.lua index caf7ecc8fe..44ae28020e 100644 --- a/unofficial/c511001744.lua +++ b/unofficial/c511001744.lua @@ -145,4 +145,4 @@ function s.ctop2(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001745.lua b/unofficial/c511001745.lua index dc5bef3d7f..764253558d 100644 --- a/unofficial/c511001745.lua +++ b/unofficial/c511001745.lua @@ -41,4 +41,4 @@ end function s.atkcon(e) local ph=Duel.GetCurrentPhase() return ph>=0x08 and ph<=0x80 -end +end \ No newline at end of file diff --git a/unofficial/c511001746.lua b/unofficial/c511001746.lua index fa64eb20d3..3b6a1d2aab 100644 --- a/unofficial/c511001746.lua +++ b/unofficial/c511001746.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001747.lua b/unofficial/c511001747.lua index 656aa885fc..167eb9e8d0 100644 --- a/unofficial/c511001747.lua +++ b/unofficial/c511001747.lua @@ -44,7 +44,7 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards(e) if #g<=0 then return end - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) local tc=g:GetFirst() while tc do tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,0) @@ -75,4 +75,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) if ft>1 and Duel.IsPlayerAffectedByEffect(1-tp,CARD_BLUEEYES_SPIRIT) then ft=1 end if #sg>ft then return end Duel.SpecialSummon(sg,0,1-tp,1-tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511001748.lua b/unofficial/c511001748.lua index c7f2f6d301..d4a4559f1f 100644 --- a/unofficial/c511001748.lua +++ b/unofficial/c511001748.lua @@ -37,4 +37,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001749.lua b/unofficial/c511001749.lua index 8077761cbe..ee6151269d 100644 --- a/unofficial/c511001749.lua +++ b/unofficial/c511001749.lua @@ -16,4 +16,4 @@ function s.condition(e) local tc=ec:GetBattleTarget() return (phase==PHASE_DAMAGE or phase==PHASE_DAMAGE_CAL) and ec and tc and (not ec:IsAttribute(tc:GetAttribute()) and not tc:IsAttribute(ec:GetAttribute())) -end +end \ No newline at end of file diff --git a/unofficial/c511001750.lua b/unofficial/c511001750.lua index 4e9b72906f..2b0acd97bf 100644 --- a/unofficial/c511001750.lua +++ b/unofficial/c511001750.lua @@ -31,7 +31,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) tc=rg:GetNext() end - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_SPSUMMON_PROC_G) @@ -83,7 +83,7 @@ function s.retfilter(c,tp,tpe) end function s.drop1(e,tp,eg,ep,ev,re,r,rp,c,og) local g=e:GetLabelObject() - c:RegisterFlagEffect(511001749,RESET_PHASE+PHASE_END,0,1) + c:RegisterFlagEffect(511001749,RESET_PHASE|PHASE_END,0,1) local tc=Duel.GetDecktopGroup(tp,1):GetFirst() Duel.Hint(HINT_CARD,0,id) Duel.Draw(tp,1,REASON_EFFECT) @@ -130,7 +130,7 @@ end function s.drop2(e,tp,eg,ep,ev,re,r,rp) if not Duel.SelectYesNo(tp,aux.Stringid(30461781,0)) then return end local g=e:GetLabelObject() - e:GetHandler():RegisterFlagEffect(511001749,RESET_PHASE+PHASE_END,0,1) + e:GetHandler():RegisterFlagEffect(511001749,RESET_PHASE|PHASE_END,0,1) local tc=Duel.GetDecktopGroup(tp,1):GetFirst() Duel.Hint(HINT_CARD,0,id) Duel.Draw(tp,1,REASON_EFFECT) @@ -166,4 +166,4 @@ function s.drop2(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001751.lua b/unofficial/c511001751.lua index 5a1b15bef8..8ad5645ea9 100644 --- a/unofficial/c511001751.lua +++ b/unofficial/c511001751.lua @@ -49,4 +49,4 @@ end function s.rcop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001752.lua b/unofficial/c511001752.lua index 93a0be7b64..7d30493685 100644 --- a/unofficial/c511001752.lua +++ b/unofficial/c511001752.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.tgop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001753.lua b/unofficial/c511001753.lua index 6a89078fa8..3e6f06cf0d 100644 --- a/unofficial/c511001753.lua +++ b/unofficial/c511001753.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) rc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511001754.lua b/unofficial/c511001754.lua index 764d53d2ea..d0971c1d91 100644 --- a/unofficial/c511001754.lua +++ b/unofficial/c511001754.lua @@ -25,4 +25,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511001755.lua b/unofficial/c511001755.lua index 88f9b2a350..84b572430b 100644 --- a/unofficial/c511001755.lua +++ b/unofficial/c511001755.lua @@ -31,4 +31,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511001757.lua b/unofficial/c511001757.lua index 0f2f1aca17..4fc2276522 100644 --- a/unofficial/c511001757.lua +++ b/unofficial/c511001757.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.sumcost(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,Duel.GetLP(tp)/2) -end +end \ No newline at end of file diff --git a/unofficial/c511001758.lua b/unofficial/c511001758.lua index 6f91130a35..1a0e3f1e30 100644 --- a/unofficial/c511001758.lua +++ b/unofficial/c511001758.lua @@ -66,4 +66,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #rg>0 then Duel.Remove(rg,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001759.lua b/unofficial/c511001759.lua index d0f7769aa4..a1162dbe48 100644 --- a/unofficial/c511001759.lua +++ b/unofficial/c511001759.lua @@ -55,4 +55,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001760.lua b/unofficial/c511001760.lua index a5a1ed97de..bec5ab9ae7 100644 --- a/unofficial/c511001760.lua +++ b/unofficial/c511001760.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,ct*500,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001761.lua b/unofficial/c511001761.lua index 43cde59189..587f2ca94d 100644 --- a/unofficial/c511001761.lua +++ b/unofficial/c511001761.lua @@ -30,4 +30,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001762.lua b/unofficial/c511001762.lua index af4e81c858..5682b4a356 100644 --- a/unofficial/c511001762.lua +++ b/unofficial/c511001762.lua @@ -45,4 +45,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE|PHASE_END) Duel.RegisterEffect(e1,tp) Duel.SkipPhase(tp,PHASE_BATTLE,RESET_PHASE|PHASE_END,1,1) -end +end \ No newline at end of file diff --git a/unofficial/c511001763.lua b/unofficial/c511001763.lua index 6a4211f885..9a067cbea2 100644 --- a/unofficial/c511001763.lua +++ b/unofficial/c511001763.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangeTargetCard(ev,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001764.lua b/unofficial/c511001764.lua index 840f608858..a59023175e 100644 --- a/unofficial/c511001764.lua +++ b/unofficial/c511001764.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end Duel.Draw(tp,#g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001765.lua b/unofficial/c511001765.lua index fb47ecb7d7..7af8a3a427 100644 --- a/unofficial/c511001765.lua +++ b/unofficial/c511001765.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) and #mat==2 then Duel.Overlay(tc,mat) end -end +end \ No newline at end of file diff --git a/unofficial/c511001766.lua b/unofficial/c511001766.lua index f3d00f5632..d44ddf23d3 100644 --- a/unofficial/c511001766.lua +++ b/unofficial/c511001766.lua @@ -38,4 +38,4 @@ end function s.clear(e,tp,eg,ep,ev,re,r,rp) s[0]=false s[1]=false -end +end \ No newline at end of file diff --git a/unofficial/c511001767.lua b/unofficial/c511001767.lua index b3ae91b399..cf29ee34d2 100644 --- a/unofficial/c511001767.lua +++ b/unofficial/c511001767.lua @@ -29,4 +29,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001768.lua b/unofficial/c511001768.lua index 7b1708960a..f717c43a23 100644 --- a/unofficial/c511001768.lua +++ b/unofficial/c511001768.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #og==0 then return end Duel.SendtoGrave(og,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001769.lua b/unofficial/c511001769.lua index 7def48a761..e35b06803b 100644 --- a/unofficial/c511001769.lua +++ b/unofficial/c511001769.lua @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001770.lua b/unofficial/c511001770.lua index f9e64a50de..497ad698c3 100644 --- a/unofficial/c511001770.lua +++ b/unofficial/c511001770.lua @@ -48,4 +48,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001771.lua b/unofficial/c511001771.lua index dd05c94795..9fe3f6cdb5 100644 --- a/unofficial/c511001771.lua +++ b/unofficial/c511001771.lua @@ -82,4 +82,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(sum) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001772.lua b/unofficial/c511001772.lua index 2f48c9d591..e8757bc9ef 100644 --- a/unofficial/c511001772.lua +++ b/unofficial/c511001772.lua @@ -72,4 +72,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,ev*2) -end +end \ No newline at end of file diff --git a/unofficial/c511001773.lua b/unofficial/c511001773.lua index 936e9d470d..9fea63fabb 100644 --- a/unofficial/c511001773.lua +++ b/unofficial/c511001773.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.ChainAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c511001775.lua b/unofficial/c511001775.lua index 1b33954429..96691b5fd5 100644 --- a/unofficial/c511001775.lua +++ b/unofficial/c511001775.lua @@ -96,4 +96,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001776.lua b/unofficial/c511001776.lua index 127a99add9..11b31b5bae 100644 --- a/unofficial/c511001776.lua +++ b/unofficial/c511001776.lua @@ -68,7 +68,7 @@ function s.initial_effect(c) local e7=Effect.CreateEffect(c) e7:SetType(EFFECT_TYPE_SINGLE) e7:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e7:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e7:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e7) --Double Snare local e8=Effect.CreateEffect(c) @@ -80,13 +80,13 @@ function s.initial_effect(c) end s.xyz_number=43 function s.eqval(ec,c,tp) - return ec:IsControler(tp) and ec:IsSetCard(0x48) + return ec:IsControler(tp) and ec:IsSetCard(SET_NUMBER) end function s.eqcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) + return e:GetHandler():IsXyzSummoned() end function s.filter(c) - return c:IsSetCard(0x48) and c:IsMonster() + return c:IsSetCard(SET_NUMBER) and c:IsMonster() end function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -106,7 +106,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) end end function s.indcon(e) - return e:GetHandler():GetEquipGroup():IsExists(Card.IsSetCard,1,nil,0x48) + return e:GetHandler():GetEquipGroup():IsExists(Card.IsSetCard,1,nil,SET_NUMBER) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) return ep==tp @@ -151,4 +151,4 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511001777.lua b/unofficial/c511001777.lua index d9a034f580..0b57a5f818 100644 --- a/unofficial/c511001777.lua +++ b/unofficial/c511001777.lua @@ -115,4 +115,4 @@ function s.rdop(e,tp,eg,ep,ev,re,r,rp) end function s.atkval(e,c) return e:GetHandler():GetOverlayCount()-1 -end +end \ No newline at end of file diff --git a/unofficial/c511001778.lua b/unofficial/c511001778.lua index 84da9b6079..0b3d69b5cc 100644 --- a/unofficial/c511001778.lua +++ b/unofficial/c511001778.lua @@ -31,4 +31,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001779.lua b/unofficial/c511001779.lua index 6e2437748c..88c77a59f8 100644 --- a/unofficial/c511001779.lua +++ b/unofficial/c511001779.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e2) end s.xyz_number=19 @@ -45,4 +45,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(tc,mat) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001780.lua b/unofficial/c511001780.lua index a2d1f9eb3a..6b25aecf92 100644 --- a/unofficial/c511001780.lua +++ b/unofficial/c511001780.lua @@ -54,4 +54,4 @@ function s.desrepop(e,tp,eg,ep,ev,re,r,rp) and #mg<=ft then Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001781.lua b/unofficial/c511001781.lua index c34de932a2..bac32b6e66 100644 --- a/unofficial/c511001781.lua +++ b/unofficial/c511001781.lua @@ -206,4 +206,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,true,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001782.lua b/unofficial/c511001782.lua index db18de9fec..10a5a03826 100644 --- a/unofficial/c511001782.lua +++ b/unofficial/c511001782.lua @@ -19,10 +19,10 @@ function s.rmfilter(c,lv) end function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local ec=e:GetHandler():GetEquipTarget() - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(1-tp) and s.rmfilter(chkc,ec:GetLevel()) end - if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil,ec:GetLevel()) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and chkc:IsControler(1-tp) and s.rmfilter(chkc,ec:GetLevel()) end + if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,nil,ec:GetLevel()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,1,nil,ec:GetLevel()) + local g=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,1,nil,ec:GetLevel()) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) end function s.rmop(e,tp,eg,ep,ev,re,r,rp) @@ -48,4 +48,4 @@ function s.atcon(e) local ph=Duel.GetCurrentPhase() return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and Duel.GetAttackTarget() and (ec==Duel.GetAttacker() or Duel.GetAttackTarget()==ec) -end +end \ No newline at end of file diff --git a/unofficial/c511001783.lua b/unofficial/c511001783.lua index 9d4870b529..c88563a062 100644 --- a/unofficial/c511001783.lua +++ b/unofficial/c511001783.lua @@ -58,4 +58,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() bc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001784.lua b/unofficial/c511001784.lua index c2302ecfb5..1830dd8496 100644 --- a/unofficial/c511001784.lua +++ b/unofficial/c511001784.lua @@ -61,4 +61,4 @@ function s.cbop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.ChangeAttackTarget(e:GetHandler()) end -end +end \ No newline at end of file diff --git a/unofficial/c511001785.lua b/unofficial/c511001785.lua index 966a14996e..e563176180 100644 --- a/unofficial/c511001785.lua +++ b/unofficial/c511001785.lua @@ -48,4 +48,4 @@ function s.operation2(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001786.lua b/unofficial/c511001786.lua index cfeaece258..3ebb1335e0 100644 --- a/unofficial/c511001786.lua +++ b/unofficial/c511001786.lua @@ -39,4 +39,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001787.lua b/unofficial/c511001787.lua index 7f13ec08cd..da9f2897f0 100644 --- a/unofficial/c511001787.lua +++ b/unofficial/c511001787.lua @@ -15,7 +15,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:GetFirst():IsControler(1-tp) end function s.cfilter(c) - return c:IsSetCard(0x18) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_CLOUDIAN) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(1) @@ -37,4 +37,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) if not Duel.NegateAttack() then return end Duel.Recover(tp,Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001788.lua b/unofficial/c511001788.lua index cd8a5f680c..df56554b1b 100644 --- a/unofficial/c511001788.lua +++ b/unofficial/c511001788.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetRange(LOCATION_SZONE) e2:SetCountLimit(1) - e2:SetCondition(function(_,tp) return Duel.GetTurnPlayer()==tp end) + e2:SetCondition(function(_,tp) return Duel.IsTurnPlayer(tp) end) e2:SetOperation(s.mtop) c:RegisterEffect(e2) --Special Summon 1 "Cloudian" monster from your hand @@ -54,4 +54,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001789.lua b/unofficial/c511001789.lua index 2da9fc83f1..4c3e3e222d 100644 --- a/unofficial/c511001789.lua +++ b/unofficial/c511001789.lua @@ -17,4 +17,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511001790.lua b/unofficial/c511001790.lua index 6a562f7444..084c816201 100644 --- a/unofficial/c511001790.lua +++ b/unofficial/c511001790.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001791.lua b/unofficial/c511001791.lua index 53c240e2d5..0ba5c9a1b6 100644 --- a/unofficial/c511001791.lua +++ b/unofficial/c511001791.lua @@ -173,4 +173,4 @@ end function s.clear(e,tp,eg,ep,ev,re,r,rp) s[0]=0 s[1]=0 -end +end \ No newline at end of file diff --git a/unofficial/c511001792.lua b/unofficial/c511001792.lua index 86ef92c6a9..5fad962140 100644 --- a/unofficial/c511001792.lua +++ b/unofficial/c511001792.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x48) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -34,4 +34,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,500,REASON_EFFECT,true) end Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001793.lua b/unofficial/c511001793.lua index 204a09b63b..a2ea068a71 100644 --- a/unofficial/c511001793.lua +++ b/unofficial/c511001793.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -130,4 +130,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_BATTLE) a:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001794.lua b/unofficial/c511001794.lua index 306f8517aa..3877df092b 100644 --- a/unofficial/c511001794.lua +++ b/unofficial/c511001794.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,1-tp,1-tp,false,false,POS_FACEUP_ATTACK) end Duel.ShuffleHand(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001797.lua b/unofficial/c511001797.lua index 73ff518294..8494e8ff26 100644 --- a/unofficial/c511001797.lua +++ b/unofficial/c511001797.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil)*500 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001798.lua b/unofficial/c511001798.lua index 5c9784101c..c9f27de62d 100644 --- a/unofficial/c511001798.lua +++ b/unofficial/c511001798.lua @@ -52,4 +52,4 @@ function s.owfilter(c,tp) end function s.val(e,c) return e:GetHandler():GetOverlayGroup():FilterCount(s.owfilter,nil,Duel.GetTurnPlayer())+1 -end +end \ No newline at end of file diff --git a/unofficial/c511001799.lua b/unofficial/c511001799.lua index e6533b19a2..847a6218b7 100644 --- a/unofficial/c511001799.lua +++ b/unofficial/c511001799.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if dam<0 then return end Duel.Damage(tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001800.lua b/unofficial/c511001800.lua index 4e99997acd..928292dfc6 100644 --- a/unofficial/c511001800.lua +++ b/unofficial/c511001800.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001801.lua b/unofficial/c511001801.lua index 5d2588596c..7141036e51 100644 --- a/unofficial/c511001801.lua +++ b/unofficial/c511001801.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001802.lua b/unofficial/c511001802.lua index 2c5318118f..438823e10f 100644 --- a/unofficial/c511001802.lua +++ b/unofficial/c511001802.lua @@ -48,4 +48,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.descon2(e,tp,eg,ep,ev,re,r,rp) return ep~=tp and rp==tp -end +end \ No newline at end of file diff --git a/unofficial/c511001803.lua b/unofficial/c511001803.lua index d574ae0243..3e20726e31 100644 --- a/unofficial/c511001803.lua +++ b/unofficial/c511001803.lua @@ -54,4 +54,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001804.lua b/unofficial/c511001804.lua index 4e521209ea..9e53f4bb6f 100644 --- a/unofficial/c511001804.lua +++ b/unofficial/c511001804.lua @@ -29,4 +29,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001805.lua b/unofficial/c511001805.lua index 47df2ce920..3e17a70e75 100644 --- a/unofficial/c511001805.lua +++ b/unofficial/c511001805.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001806.lua b/unofficial/c511001806.lua index 05727914d9..53a8db9c2e 100644 --- a/unofficial/c511001806.lua +++ b/unofficial/c511001806.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001807.lua b/unofficial/c511001807.lua index 72f4c89c64..87fb8c4a9f 100644 --- a/unofficial/c511001807.lua +++ b/unofficial/c511001807.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:CanAttack() and tc:IsRelateToBattle() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001808.lua b/unofficial/c511001808.lua index 9ae42a165f..3e1f8ce41a 100644 --- a/unofficial/c511001808.lua +++ b/unofficial/c511001808.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:CanAttack() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001809.lua b/unofficial/c511001809.lua index e463d1c2d5..fbc60db60f 100644 --- a/unofficial/c511001809.lua +++ b/unofficial/c511001809.lua @@ -2,4 +2,4 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() -end +end \ No newline at end of file diff --git a/unofficial/c511001810.lua b/unofficial/c511001810.lua index 686974d64a..788dc0cff9 100644 --- a/unofficial/c511001810.lua +++ b/unofficial/c511001810.lua @@ -2,4 +2,4 @@ local s,id=GetID() function s.initial_effect(c) Ritual.AddProcGreaterCode(c,6,nil,511001809) -end +end \ No newline at end of file diff --git a/unofficial/c511001811.lua b/unofficial/c511001811.lua index 654b7940ef..bc6fe52122 100644 --- a/unofficial/c511001811.lua +++ b/unofficial/c511001811.lua @@ -2,4 +2,4 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() -end +end \ No newline at end of file diff --git a/unofficial/c511001812.lua b/unofficial/c511001812.lua index decddedce2..707f76b568 100644 --- a/unofficial/c511001812.lua +++ b/unofficial/c511001812.lua @@ -2,4 +2,4 @@ local s,id=GetID() function s.initial_effect(c) Ritual.AddProcGreaterCode(c,7,nil,511001811) -end +end \ No newline at end of file diff --git a/unofficial/c511001813.lua b/unofficial/c511001813.lua index 8992eb47ff..069ea84013 100644 --- a/unofficial/c511001813.lua +++ b/unofficial/c511001813.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001814.lua b/unofficial/c511001814.lua index 6832722398..594e139d06 100644 --- a/unofficial/c511001814.lua +++ b/unofficial/c511001814.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001815.lua b/unofficial/c511001815.lua index 746d409aa9..bf27581a92 100644 --- a/unofficial/c511001815.lua +++ b/unofficial/c511001815.lua @@ -53,4 +53,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001817.lua b/unofficial/c511001817.lua index 9edf3dd61d..8caddd2682 100644 --- a/unofficial/c511001817.lua +++ b/unofficial/c511001817.lua @@ -26,14 +26,14 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then local mg=Duel.GetRitualMaterial(tp) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp,mg) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp,mg) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local mg=Duel.GetRitualMaterial(tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp,mg) + local tg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp,mg) if #tg>0 then local tc=tg:GetFirst() mg:RemoveCard(tc) @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001818.lua b/unofficial/c511001818.lua index 223dc75c21..34a29d689f 100644 --- a/unofficial/c511001818.lua +++ b/unofficial/c511001818.lua @@ -26,14 +26,14 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then local mg=Duel.GetRitualMaterial(tp) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp,mg) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp,mg) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local mg=Duel.GetRitualMaterial(tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tg=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp,mg) + local tg=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp,mg) if #tg>0 then local tc=tg:GetFirst() mg:RemoveCard(tc) @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001819.lua b/unofficial/c511001819.lua index b6892fc81d..9709648f94 100644 --- a/unofficial/c511001819.lua +++ b/unofficial/c511001819.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001820.lua b/unofficial/c511001820.lua index a8fa1c3696..ad08807e6f 100644 --- a/unofficial/c511001820.lua +++ b/unofficial/c511001820.lua @@ -26,14 +26,14 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then local mg=Duel.GetRitualMaterial(tp) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp,mg) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp,mg) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local mg=Duel.GetRitualMaterial(tp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tg=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp,mg) + local tg=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp,mg) if #tg>0 then local tc=tg:GetFirst() mg:RemoveCard(tc) @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511001821.lua b/unofficial/c511001821.lua index 8f49993134..01dd39fa74 100644 --- a/unofficial/c511001821.lua +++ b/unofficial/c511001821.lua @@ -49,4 +49,4 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e2,true) e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511001822.lua b/unofficial/c511001822.lua index bca6e18ee0..f254ea347e 100644 --- a/unofficial/c511001822.lua +++ b/unofficial/c511001822.lua @@ -102,4 +102,4 @@ function s.detop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001823.lua b/unofficial/c511001823.lua index 94dd2d1f89..5f543db68e 100644 --- a/unofficial/c511001823.lua +++ b/unofficial/c511001823.lua @@ -88,4 +88,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001824.lua b/unofficial/c511001824.lua index 40466645e5..2a60b73acd 100644 --- a/unofficial/c511001824.lua +++ b/unofficial/c511001824.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,Duel.GetLP(tp)/2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001825.lua b/unofficial/c511001825.lua index fec9d985e7..6ce6c21635 100644 --- a/unofficial/c511001825.lua +++ b/unofficial/c511001825.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511001826.lua b/unofficial/c511001826.lua index 93702d1601..9cff9b0782 100644 --- a/unofficial/c511001826.lua +++ b/unofficial/c511001826.lua @@ -29,19 +29,19 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.filter(c,tp) - return c:IsFaceup() and c:IsSetCard(0x48) and c:IsType(TYPE_XYZ) and c:GetOverlayCount()==0 + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) and c:IsType(TYPE_XYZ) and c:GetOverlayCount()==0 and c:GetFlagEffect(511001825+tp)>0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc,tp) end if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil,tp) - and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,0x48) end + and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,SET_NUMBER) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil,tp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() - local ct=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,0x48) + local ct=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,SET_NUMBER) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) @@ -70,7 +70,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not dc then return end if ev<=0 then return end local bc=dc:GetBattleTarget() - if not bc:IsSetCard(0x48) or not bc:IsType(TYPE_XYZ) or not dc:IsSetCard(0x48) or not dc:IsType(TYPE_XYZ) + if not bc:IsSetCard(SET_NUMBER) or not bc:IsType(TYPE_XYZ) or not dc:IsSetCard(SET_NUMBER) or not dc:IsType(TYPE_XYZ) or bc:GetOverlayCount()>0 or dc:GetOverlayCount()>0 then return end if ep==tp then if dc:IsControler(1-tp) and bc:IsStatus(STATUS_BATTLE_DESTROYED) @@ -97,7 +97,7 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) local dc=Duel.GetAttackTarget() if not dc then return end local bc=dc:GetBattleTarget() - if not bc:IsSetCard(0x48) or not bc:IsType(TYPE_XYZ) or not dc:IsSetCard(0x48) or not dc:IsType(TYPE_XYZ) + if not bc:IsSetCard(SET_NUMBER) or not bc:IsType(TYPE_XYZ) or not dc:IsSetCard(SET_NUMBER) or not dc:IsType(TYPE_XYZ) or bc:GetOverlayCount()>0 or dc:GetOverlayCount()>0 then return end if dc:IsControler(1-tp) then dc,bc=bc,dc end if dc:IsControler(tp) then @@ -106,4 +106,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) if bc:IsControler(1-tp) then bc:RegisterFlagEffect(511001825+1-tp,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511001827.lua b/unofficial/c511001827.lua index fbf1545b1d..5d0f2b4ec6 100644 --- a/unofficial/c511001827.lua +++ b/unofficial/c511001827.lua @@ -69,7 +69,7 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) return ec:IsControler(1-tp) and ev>0 and (not re or not re:GetHandler():IsType(TYPE_XYZ)) end function s.damfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1083) + return c:IsFaceup() and c:IsSetCard(SET_GIMMICK_PUPPET) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.damfilter(chkc) end @@ -86,4 +86,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.handcon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_HAND,0)==1 -end +end \ No newline at end of file diff --git a/unofficial/c511001828.lua b/unofficial/c511001828.lua index 9415381dcf..2d62e1253d 100644 --- a/unofficial/c511001828.lua +++ b/unofficial/c511001828.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x55) + return c:IsFaceup() and c:IsSetCard(SET_PHOTON) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsNegatable() end @@ -71,4 +71,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc2:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001829.lua b/unofficial/c511001829.lua index 6ea685e1fd..659e3b32b3 100644 --- a/unofficial/c511001829.lua +++ b/unofficial/c511001829.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=rg:Select(tp,1,ct,nil) Duel.HintSelection(sg) Duel.SendtoHand(sg,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001830.lua b/unofficial/c511001830.lua index 49843c3e78..30937eebf1 100644 --- a/unofficial/c511001830.lua +++ b/unofficial/c511001830.lua @@ -64,4 +64,4 @@ function s.check2(e,tp,eg,ep,ev,re,r,rp) if ct then tc:SetFlagEffectLabel(51101830,ct-1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001857.lua b/unofficial/c511001857.lua index f9b03bd6c0..63bba66b49 100644 --- a/unofficial/c511001857.lua +++ b/unofficial/c511001857.lua @@ -34,4 +34,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) local p=e:GetOwner():GetOwner() Duel.SendtoHand(c,p,REASON_EFFECT) Duel.ConfirmCards(1-p,c) -end +end \ No newline at end of file diff --git a/unofficial/c511001859.lua b/unofficial/c511001859.lua index ef7d67ee26..f450f0e98b 100644 --- a/unofficial/c511001859.lua +++ b/unofficial/c511001859.lua @@ -70,4 +70,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001860.lua b/unofficial/c511001860.lua index 12760e49a7..9507101b69 100644 --- a/unofficial/c511001860.lua +++ b/unofficial/c511001860.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001861.lua b/unofficial/c511001861.lua index 70c4c610f9..efa4d30d09 100644 --- a/unofficial/c511001861.lua +++ b/unofficial/c511001861.lua @@ -13,7 +13,7 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetAttacker() if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end - return Duel.GetBattleDamage(tp)>0 and tc and tc:IsSetCard(0x55) + return Duel.GetBattleDamage(tp)>0 and tc and tc:IsSetCard(SET_PHOTON) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(e:GetHandler()) @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-ep,ev,false) -end +end \ No newline at end of file diff --git a/unofficial/c511001862.lua b/unofficial/c511001862.lua index c12a378c0c..79cebfc9f4 100644 --- a/unofficial/c511001862.lua +++ b/unofficial/c511001862.lua @@ -64,4 +64,4 @@ function s.damcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return 0 -end +end \ No newline at end of file diff --git a/unofficial/c511001863.lua b/unofficial/c511001863.lua index 8e6e96d31c..2dd4c5fdd5 100644 --- a/unofficial/c511001863.lua +++ b/unofficial/c511001863.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001864.lua b/unofficial/c511001864.lua index c9040d3adf..a7e6727ada 100644 --- a/unofficial/c511001864.lua +++ b/unofficial/c511001864.lua @@ -35,4 +35,4 @@ function s.damcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return val end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return val/2 -end +end \ No newline at end of file diff --git a/unofficial/c511001865.lua b/unofficial/c511001865.lua index 226bf45291..0d9b663e35 100644 --- a/unofficial/c511001865.lua +++ b/unofficial/c511001865.lua @@ -20,4 +20,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001866.lua b/unofficial/c511001866.lua index 681e129e38..45c6db1a5e 100644 --- a/unofficial/c511001866.lua +++ b/unofficial/c511001866.lua @@ -66,4 +66,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_DAMAGE) a:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001867.lua b/unofficial/c511001867.lua index 3a7b660c6e..0a3525571f 100644 --- a/unofficial/c511001867.lua +++ b/unofficial/c511001867.lua @@ -92,4 +92,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001868.lua b/unofficial/c511001868.lua index 8730dac7a1..9045fa1515 100644 --- a/unofficial/c511001868.lua +++ b/unofficial/c511001868.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x9f) + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAPAL) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local ct=Duel.GetMatchingGroupCount(s.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #tg>0 then Duel.SendtoHand(tg,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001869.lua b/unofficial/c511001869.lua index 1f12d24047..3ff0b27d0b 100644 --- a/unofficial/c511001869.lua +++ b/unofficial/c511001869.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001870.lua b/unofficial/c511001870.lua index 1042c5359d..34f5f2a614 100644 --- a/unofficial/c511001870.lua +++ b/unofficial/c511001870.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001871.lua b/unofficial/c511001871.lua index 46949fed74..954d1fac79 100644 --- a/unofficial/c511001871.lua +++ b/unofficial/c511001871.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001872.lua b/unofficial/c511001872.lua index 96bf289ab5..af57332e1d 100644 --- a/unofficial/c511001872.lua +++ b/unofficial/c511001872.lua @@ -157,4 +157,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001873.lua b/unofficial/c511001873.lua index 5c6c90e3e0..4734e58b9b 100644 --- a/unofficial/c511001873.lua +++ b/unofficial/c511001873.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511001874.lua b/unofficial/c511001874.lua index 4a3b0694a6..b0995a6307 100644 --- a/unofficial/c511001874.lua +++ b/unofficial/c511001874.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else matEff:Reset() end -end +end \ No newline at end of file diff --git a/unofficial/c511001875.lua b/unofficial/c511001875.lua index 6417e5dd14..b1d0dcfcb7 100644 --- a/unofficial/c511001875.lua +++ b/unofficial/c511001875.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(d,og) Duel.RaiseSingleEvent(oc,EVENT_DETACH_MATERIAL,e,0,0,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511001876.lua b/unofficial/c511001876.lua index 61b226bb3e..b556a6eb27 100644 --- a/unofficial/c511001876.lua +++ b/unofficial/c511001876.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001877.lua b/unofficial/c511001877.lua index 2d39cc25dc..77d5fec6fa 100644 --- a/unofficial/c511001877.lua +++ b/unofficial/c511001877.lua @@ -11,14 +11,14 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsSetCard(0x9f) end - if chk==0 then return Duel.IsExistingTarget(Card.IsSetCard,tp,LOCATION_MZONE,0,1,nil,0x9f) end + if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsSetCard(SET_PERFORMAPAL) end + if chk==0 then return Duel.IsExistingTarget(Card.IsSetCard,tp,LOCATION_MZONE,0,1,nil,SET_PERFORMAPAL) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) - Duel.SelectTarget(tp,Card.IsSetCard,tp,LOCATION_MZONE,0,1,1,nil,0x9f) + Duel.SelectTarget(tp,Card.IsSetCard,tp,LOCATION_MZONE,0,1,1,nil,SET_PERFORMAPAL) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() if tc and tc:IsRelateToEffect(e) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511001878.lua b/unofficial/c511001878.lua index 954805b631..78e93e02f8 100644 --- a/unofficial/c511001878.lua +++ b/unofficial/c511001878.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001879.lua b/unofficial/c511001879.lua index adcaa06d5a..600e1b8557 100644 --- a/unofficial/c511001879.lua +++ b/unofficial/c511001879.lua @@ -63,4 +63,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e4) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001880.lua b/unofficial/c511001880.lua index 0048077119..664ba64f43 100644 --- a/unofficial/c511001880.lua +++ b/unofficial/c511001880.lua @@ -70,4 +70,4 @@ end function s.shop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001881.lua b/unofficial/c511001881.lua index e596be67f0..38cd54aa43 100644 --- a/unofficial/c511001881.lua +++ b/unofficial/c511001881.lua @@ -56,4 +56,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001882.lua b/unofficial/c511001882.lua index 5c2041a6ce..ef5281597b 100644 --- a/unofficial/c511001882.lua +++ b/unofficial/c511001882.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atkval(e,c) return c:GetOverlayCount()*-800 -end +end \ No newline at end of file diff --git a/unofficial/c511001883.lua b/unofficial/c511001883.lua index b28d5f1006..cc9d8e1426 100644 --- a/unofficial/c511001883.lua +++ b/unofficial/c511001883.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001884.lua b/unofficial/c511001884.lua index 5ecf0213d4..6683b225ca 100644 --- a/unofficial/c511001884.lua +++ b/unofficial/c511001884.lua @@ -32,4 +32,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001885.lua b/unofficial/c511001885.lua index b6b4b898bc..c8280c353b 100644 --- a/unofficial/c511001885.lua +++ b/unofficial/c511001885.lua @@ -26,8 +26,8 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.tgtg(e,c) - return c:IsFaceup() and c:IsSetCard(0x70) + return c:IsFaceup() and c:IsSetCard(SET_CHRONOMALY) end function s.tgval(e,c) return not c:IsImmuneToEffect(e) and c:IsLevelBelow(4) -end +end \ No newline at end of file diff --git a/unofficial/c511001886.lua b/unofficial/c511001886.lua index aba9ed7ade..586878082d 100644 --- a/unofficial/c511001886.lua +++ b/unofficial/c511001886.lua @@ -44,4 +44,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local sum=dg:GetSum(Card.GetPreviousAttackOnField) Duel.Damage(1-tp,sum,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001887.lua b/unofficial/c511001887.lua index baeb4a788c..9afcf08a2b 100644 --- a/unofficial/c511001887.lua +++ b/unofficial/c511001887.lua @@ -21,4 +21,4 @@ end function s.banop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001888.lua b/unofficial/c511001888.lua index 00d332c56f..54defbcaf2 100644 --- a/unofficial/c511001888.lua +++ b/unofficial/c511001888.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x70) + return c:IsFaceup() and c:IsSetCard(SET_CHRONOMALY) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001889.lua b/unofficial/c511001889.lua index 42051a1eab..74376a2c73 100644 --- a/unofficial/c511001889.lua +++ b/unofficial/c511001889.lua @@ -55,4 +55,4 @@ function s.val(e,c) end function s.sumop(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,Duel.GetLP(tp)/2) -end +end \ No newline at end of file diff --git a/unofficial/c511001891.lua b/unofficial/c511001891.lua index 22aa335cf9..46e6d5c1b0 100644 --- a/unofficial/c511001891.lua +++ b/unofficial/c511001891.lua @@ -90,4 +90,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001893.lua b/unofficial/c511001893.lua index d93bed2fa1..890ca74560 100644 --- a/unofficial/c511001893.lua +++ b/unofficial/c511001893.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() Duel.NegateAttack(a) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511001894.lua b/unofficial/c511001894.lua index eff5468225..3db99e19a9 100644 --- a/unofficial/c511001894.lua +++ b/unofficial/c511001894.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001895.lua b/unofficial/c511001895.lua index e5e26c3d8d..fa3ce9d73f 100644 --- a/unofficial/c511001895.lua +++ b/unofficial/c511001895.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001896.lua b/unofficial/c511001896.lua index 5cdb559850..6fa2b6c49c 100644 --- a/unofficial/c511001896.lua +++ b/unofficial/c511001896.lua @@ -52,4 +52,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atcon(e) return Duel.IsExistingMatchingCard(Card.IsCode,e:GetLabel(),LOCATION_ONFIELD,0,1,nil,140000085) -end +end \ No newline at end of file diff --git a/unofficial/c511001897.lua b/unofficial/c511001897.lua index 217f23f7b9..f546353aeb 100644 --- a/unofficial/c511001897.lua +++ b/unofficial/c511001897.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.SendtoGrave(tg,REASON_EFFECT)>0 and tg:FilterCount(Card.IsLocation,nil,LOCATION_GRAVE)>0 then Duel.Destroy(Duel.GetFieldGroup(tp,0,LOCATION_ONFIELD),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001898.lua b/unofficial/c511001898.lua index 2e084141dd..8fe7f1a643 100644 --- a/unofficial/c511001898.lua +++ b/unofficial/c511001898.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001900.lua b/unofficial/c511001900.lua index 2c79193caf..ef9b90cc7f 100644 --- a/unofficial/c511001900.lua +++ b/unofficial/c511001900.lua @@ -13,14 +13,14 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,tp) - return c:IsSetCard(0x4) and c:IsReason(REASON_DESTROY) and c:IsPreviousControler(tp) + return c:IsSetCard(SET_AMAZONESS) and c:IsReason(REASON_DESTROY) and c:IsPreviousControler(tp) and c:GetPreviousLocation()==LOCATION_MZONE and (c:GetPreviousPosition()&POS_FACEUP)~=0 end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.filter(c,e,tp) - return c:IsSetCard(0x4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_AMAZONESS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001901.lua b/unofficial/c511001901.lua index c13a4b8767..ab66c89231 100644 --- a/unofficial/c511001901.lua +++ b/unofficial/c511001901.lua @@ -45,4 +45,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsAttackPos() then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001903.lua b/unofficial/c511001903.lua index 1bcbe81065..b8d5f6d897 100644 --- a/unofficial/c511001903.lua +++ b/unofficial/c511001903.lua @@ -50,4 +50,4 @@ function s.descon(e) end function s.destg(e,c) return (c:IsFaceup() and c:IsRace(RACE_ZOMBIE)) or c==e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c511001904.lua b/unofficial/c511001904.lua index edd00c708a..974894711b 100644 --- a/unofficial/c511001904.lua +++ b/unofficial/c511001904.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x4) + return c:IsFaceup() and c:IsSetCard(SET_AMAZONESS) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(mg1,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(mg2,0,1-tp,1-tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001905.lua b/unofficial/c511001905.lua index 564b683df8..34913a7cda 100644 --- a/unofficial/c511001905.lua +++ b/unofficial/c511001905.lua @@ -76,4 +76,4 @@ function s.indesop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e2,eq:GetControler()) end -end +end \ No newline at end of file diff --git a/unofficial/c511001907.lua b/unofficial/c511001907.lua index 3974c636f1..e3d4b570e2 100644 --- a/unofficial/c511001907.lua +++ b/unofficial/c511001907.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) a:RegisterEffect(e1) Duel.ChainAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c511001908.lua b/unofficial/c511001908.lua index 73e586263d..9d2461169c 100644 --- a/unofficial/c511001908.lua +++ b/unofficial/c511001908.lua @@ -80,4 +80,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.RaiseSingleEvent(e:GetHandler(),id,e,REASON_EFFECT,tp,tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511001909.lua b/unofficial/c511001909.lua index 0676483869..ebc20651f1 100644 --- a/unofficial/c511001909.lua +++ b/unofficial/c511001909.lua @@ -23,4 +23,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) else Duel.Damage(tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001910.lua b/unofficial/c511001910.lua index 34fd761131..3a61937cbf 100644 --- a/unofficial/c511001910.lua +++ b/unofficial/c511001910.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,ct*100,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001911.lua b/unofficial/c511001911.lua index c011cc145e..b7938a4423 100644 --- a/unofficial/c511001911.lua +++ b/unofficial/c511001911.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001912.lua b/unofficial/c511001912.lua index c843aa595f..6a90dcaa8a 100644 --- a/unofficial/c511001912.lua +++ b/unofficial/c511001912.lua @@ -15,4 +15,4 @@ function s.filter(c) end function s.atkval(e,c) return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,nil)*400 -end +end \ No newline at end of file diff --git a/unofficial/c511001913.lua b/unofficial/c511001913.lua index dea6791f8e..b6e71b9d28 100644 --- a/unofficial/c511001913.lua +++ b/unofficial/c511001913.lua @@ -53,4 +53,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001915.lua b/unofficial/c511001915.lua index aaed9fa487..8c94e15a22 100644 --- a/unofficial/c511001915.lua +++ b/unofficial/c511001915.lua @@ -34,4 +34,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(), REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001916.lua b/unofficial/c511001916.lua index 21027e5d31..581e1b475e 100644 --- a/unofficial/c511001916.lua +++ b/unofficial/c511001916.lua @@ -42,4 +42,4 @@ end function s.damop2(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Damage(1-tp,600,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001917.lua b/unofficial/c511001917.lua index 2048c829fe..ac1aa660fa 100644 --- a/unofficial/c511001917.lua +++ b/unofficial/c511001917.lua @@ -90,4 +90,4 @@ function s.resetop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():Reset() e:Reset() end -end +end \ No newline at end of file diff --git a/unofficial/c511001918.lua b/unofficial/c511001918.lua index 06361395b7..aad3cf0975 100644 --- a/unofficial/c511001918.lua +++ b/unofficial/c511001918.lua @@ -28,7 +28,7 @@ function s.indval(e,c) return c:IsLevelBelow(5) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -46,4 +46,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetAttackTarget() and c==Duel.GetAttackTarget() then c:ResetEffect(RESET_DISABLE,RESET_EVENT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001919.lua b/unofficial/c511001919.lua index 931a4f3a9a..60d26ea338 100644 --- a/unofficial/c511001919.lua +++ b/unofficial/c511001919.lua @@ -28,4 +28,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(0) e1:SetReset(RESET_PHASE+PHASE_DRAW+RESET_SELF_TURN) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511001920.lua b/unofficial/c511001920.lua index 0dec37dd56..6c2960b7ae 100644 --- a/unofficial/c511001920.lua +++ b/unofficial/c511001920.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil) end function s.filter(c) - return c:IsSetCard(0x1034) and not c:IsCode(7093411) and c:IsAbleToHand() + return c:IsSetCard(SET_CRYSTAL_BEAST) and not c:IsCode(7093411) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.SendtoHand(sg,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001921.lua b/unofficial/c511001921.lua index 71fd25cc5d..7aaa29d8c3 100644 --- a/unofficial/c511001921.lua +++ b/unofficial/c511001921.lua @@ -1,7 +1,7 @@ --Golden Rule local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x1034),nil,nil,nil,s.op) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_CRYSTAL_BEAST),nil,nil,nil,s.op) --Destroy (S/T) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) @@ -18,10 +18,10 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.stfilter(c) - return c:IsLevelBelow(3) and c:IsSetCard(0x1034) + return c:IsLevelBelow(3) and c:IsSetCard(SET_CRYSTAL_BEAST) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.op(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -80,4 +80,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001922.lua b/unofficial/c511001922.lua index 15346e6f8b..f30292e9d5 100644 --- a/unofficial/c511001922.lua +++ b/unofficial/c511001922.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #tg>1 then Duel.SpecialSummon(tg,0,1-tp,1-tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001923.lua b/unofficial/c511001923.lua index cc9213c707..50a1e411c7 100644 --- a/unofficial/c511001923.lua +++ b/unofficial/c511001923.lua @@ -17,18 +17,18 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return re:GetHandler():IsCanTurnSet() end end function s.spfilter(c,e,tp) - return c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local rc=re:GetHandler() rc:CancelToGrave() Duel.ChangePosition(rc,POS_FACEDOWN) Duel.RaiseEvent(rc,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) - local spg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp) + local spg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp) if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and #spg>0 and Duel.SelectYesNo(tp,aux.Stringid(70245411,2)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sp=spg:Select(tp,1,1,nil) Duel.SpecialSummon(sp,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001924.lua b/unofficial/c511001924.lua index d2e0632a3a..9c44b7d81e 100644 --- a/unofficial/c511001924.lua +++ b/unofficial/c511001924.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) e3:SetCode(EVENT_PHASE+PHASE_STANDBY) e3:SetRange(LOCATION_SZONE) e3:SetCountLimit(1) - e3:SetCondition(function(_,tp) return Duel.GetTurnPlayer()==tp end) + e3:SetCondition(function(_,tp) return Duel.IsTurnPlayer(tp) end) e3:SetOperation(s.mtop) c:RegisterEffect(e3) end @@ -51,4 +51,4 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(e:GetHandler(),REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c511001925.lua b/unofficial/c511001925.lua index fa83cc1643..eb543a79c0 100644 --- a/unofficial/c511001925.lua +++ b/unofficial/c511001925.lua @@ -26,4 +26,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001926.lua b/unofficial/c511001926.lua index 6566e67d83..d26e7c741e 100644 --- a/unofficial/c511001926.lua +++ b/unofficial/c511001926.lua @@ -41,4 +41,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001927.lua b/unofficial/c511001927.lua index 0aade419b2..ee9008792b 100644 --- a/unofficial/c511001927.lua +++ b/unofficial/c511001927.lua @@ -43,4 +43,4 @@ end function s.ind(e,c) local atk=e:GetHandler():GetAttack()+900 return c:IsAttackBelow(atk) -end +end \ No newline at end of file diff --git a/unofficial/c511001928.lua b/unofficial/c511001928.lua index a25e4ec0ff..becc7d886f 100644 --- a/unofficial/c511001928.lua +++ b/unofficial/c511001928.lua @@ -19,4 +19,4 @@ end s.listed_series={0x519} function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsDyson),tp,LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511001929.lua b/unofficial/c511001929.lua index e8d93b445e..388acf3c47 100644 --- a/unofficial/c511001929.lua +++ b/unofficial/c511001929.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0x48} function s.spfilter(c,e,tp) - return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001930.lua b/unofficial/c511001930.lua index 9ad6e95a08..208b9aed65 100644 --- a/unofficial/c511001930.lua +++ b/unofficial/c511001930.lua @@ -14,7 +14,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x70) + return c:IsFaceup() and c:IsSetCard(SET_CHRONOMALY) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,Duel.GetAttackTarget()) end @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511001931.lua b/unofficial/c511001931.lua index 3a208769e5..6b286d4e7e 100644 --- a/unofficial/c511001931.lua +++ b/unofficial/c511001931.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) and Duel.SpecialSummonStep(sp2,0,1-tp,tp,false,false,POS_FACEUP) then Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001932.lua b/unofficial/c511001932.lua index 7f6fca0c81..894e14d9c0 100644 --- a/unofficial/c511001932.lua +++ b/unofficial/c511001932.lua @@ -18,18 +18,18 @@ end s.listed_series={0x1034} function s.cfilter(c,tp) return c:IsLocation(LOCATION_DECK) and c:IsPreviousControler(tp) and c:IsControler(tp) - and c:IsMonster() and c:IsSetCard(0x1034) + and c:IsMonster() and c:IsSetCard(SET_CRYSTAL_BEAST) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.cfilter,nil,tp) local tc=g:GetFirst() - return #g==1 and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,2,tc,0x1034) + return #g==1 and Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_DECK,0,2,tc,SET_CRYSTAL_BEAST) end function s.tdop(e,tp,eg,ep,ev,re,r,rp) local gc=eg:Filter(s.cfilter,nil,tp) local tc=gc:GetFirst() if not e:GetHandler():IsRelateToEffect(e) then return end - local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_DECK,0,tc,0x1034) + local g=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_DECK,0,tc,SET_CRYSTAL_BEAST) if #g>1 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) local sg=g:Select(tp,2,2,nil) @@ -38,4 +38,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) Duel.MoveToDeckTop(sg) Duel.SortDecktop(tp,tp,#sg) end -end +end \ No newline at end of file diff --git a/unofficial/c511001933.lua b/unofficial/c511001933.lua index 28d5bf577c..c7a6190a6b 100644 --- a/unofficial/c511001933.lua +++ b/unofficial/c511001933.lua @@ -22,4 +22,4 @@ end function s.banop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE,0,e:GetHandler(),e:GetHandler():GetCode()) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001934.lua b/unofficial/c511001934.lua index 6badbea915..c5d5e8a9e0 100644 --- a/unofficial/c511001934.lua +++ b/unofficial/c511001934.lua @@ -35,13 +35,13 @@ function s.tgfilter(c) return c:IsSetCard(0x55f) and c:IsSpell() and c:IsAbleToGrave() end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil) end - Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil) end + Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.tgop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) end @@ -84,4 +84,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local spg=Duel.SelectMatchingCard(tp,s.filter2,tp,LOCATION_DECK,0,1,1,nil,g:GetFirst(),e,tp,e:GetLabel()) Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001935.lua b/unofficial/c511001935.lua index 5da83e03c2..0774331f7f 100644 --- a/unofficial/c511001935.lua +++ b/unofficial/c511001935.lua @@ -22,4 +22,4 @@ end function s.banop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE,0,e:GetHandler(),e:GetHandler():GetCode()) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001936.lua b/unofficial/c511001936.lua index b84540f1bf..8a166d3896 100644 --- a/unofficial/c511001936.lua +++ b/unofficial/c511001936.lua @@ -22,4 +22,4 @@ end function s.banop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE,0,e:GetHandler(),e:GetHandler():GetCode()) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001937.lua b/unofficial/c511001937.lua index 8aa57b30ed..0702c29fe6 100644 --- a/unofficial/c511001937.lua +++ b/unofficial/c511001937.lua @@ -22,4 +22,4 @@ end function s.banop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE,0,e:GetHandler(),e:GetHandler():GetCode()) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001938.lua b/unofficial/c511001938.lua index 2a1f6b9236..4af8a8244f 100644 --- a/unofficial/c511001938.lua +++ b/unofficial/c511001938.lua @@ -22,4 +22,4 @@ end function s.banop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE,0,e:GetHandler(),e:GetHandler():GetCode()) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001939.lua b/unofficial/c511001939.lua index ed85e05213..59aca77ac9 100644 --- a/unofficial/c511001939.lua +++ b/unofficial/c511001939.lua @@ -147,4 +147,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if op then op(e,tp,teg,tep,tev,tre,tr,trp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511001941.lua b/unofficial/c511001941.lua index 9c5cba2da1..356892c5ca 100644 --- a/unofficial/c511001941.lua +++ b/unofficial/c511001941.lua @@ -27,4 +27,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(Duel.GetAttackTarget():GetAttack()/2) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.GetAttackTarget():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001942.lua b/unofficial/c511001942.lua index 4f964a2bdd..61c1c156b3 100644 --- a/unofficial/c511001942.lua +++ b/unofficial/c511001942.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001943.lua b/unofficial/c511001943.lua index acaa5459f3..31fbc0f54f 100644 --- a/unofficial/c511001943.lua +++ b/unofficial/c511001943.lua @@ -21,7 +21,7 @@ s.listed_series={0x12f} function s.damcon(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() local bc=tc:GetBattleTarget() - return tc:IsRelateToBattle() and tc:IsStatus(STATUS_OPPO_BATTLE) and tc:IsControler(tp) and tc:IsSetCard(0x12f) + return tc:IsRelateToBattle() and tc:IsStatus(STATUS_OPPO_BATTLE) and tc:IsControler(tp) and tc:IsSetCard(SET_BATTLEWASP) and bc:IsLocation(LOCATION_GRAVE) and bc:IsReason(REASON_BATTLE) end function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -39,4 +39,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001944.lua b/unofficial/c511001944.lua index 713c7ab209..43947b9f1d 100644 --- a/unofficial/c511001944.lua +++ b/unofficial/c511001944.lua @@ -24,4 +24,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001945.lua b/unofficial/c511001945.lua index 20e3c77aee..5dc950749a 100644 --- a/unofficial/c511001945.lua +++ b/unofficial/c511001945.lua @@ -38,4 +38,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) e2:SetValue(RESET_TURN_SET) e2:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511001946.lua b/unofficial/c511001946.lua index 441760061d..0de5d2b993 100644 --- a/unofficial/c511001946.lua +++ b/unofficial/c511001946.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) end s.listed_series={0x12f} function s.cfilter(c) - return c:IsSetCard(0x12f) + return c:IsSetCard(SET_BATTLEWASP) end function s.filter(c,e) return c:IsFaceup() and (not e or c:IsCanBeEffectTarget(e)) @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001947.lua b/unofficial/c511001947.lua index f8cdaf4f18..08e0665781 100644 --- a/unofficial/c511001947.lua +++ b/unofficial/c511001947.lua @@ -18,10 +18,10 @@ function s.initial_effect(c) end s.listed_series={0x12f} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x12f) + return c:IsFaceup() and c:IsSetCard(SET_BATTLEWASP) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - if rp~=tp or not re:GetHandler():IsSetCard(0x12f) then return end + if rp~=tp or not re:GetHandler():IsSetCard(SET_BATTLEWASP) then return end local ex,cg,ct,cp,cv=Duel.GetOperationInfo(ev,CATEGORY_DAMAGE) return ex and Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) end @@ -40,4 +40,4 @@ function s.damval(e,re,val,r,rp,rc) local cc=Duel.GetCurrentChain() if cc==0 or (r&REASON_EFFECT)==0 then return end return val*2 -end +end \ No newline at end of file diff --git a/unofficial/c511001948.lua b/unofficial/c511001948.lua index 2b161fe6bf..666e30049a 100644 --- a/unofficial/c511001948.lua +++ b/unofficial/c511001948.lua @@ -31,10 +31,10 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.cfilter(c) - return c:IsSetCard(0x12f) and c:IsMonster() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_BATTLEWASP) and c:IsMonster() and aux.SpElimFilter(c,true) end function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) - local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if chk==0 then return #g>0 and g:FilterCount(Card.IsAbleToRemoveAsCost,nil)==#g end e:SetLabel(#g) Duel.Remove(g,POS_FACEUP,REASON_COST) @@ -58,4 +58,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UPDATE_DEFENSE) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001949.lua b/unofficial/c511001949.lua index 6404db64d9..9e3cee6d41 100644 --- a/unofficial/c511001949.lua +++ b/unofficial/c511001949.lua @@ -5,7 +5,7 @@ local s,id,alias=GetID() function s.initial_effect(c) alias=c:GetOriginalCodeRule() --synchro summon - Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsType,TYPE_SYNCHRO),1,1,Synchro.NonTuner(Card.IsSetCard,0x12f),1,99) + Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsType,TYPE_SYNCHRO),1,1,Synchro.NonTuner(Card.IsSetCard,SET_BATTLEWASP),1,99) c:EnableReviveLimit() --atk local e1=Effect.CreateEffect(c) @@ -75,10 +75,10 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp,chk) - return Duel.GetTurnPlayer()==tp and s[0] + return Duel.IsTurnPlayer(tp) and s[0] end function s.filter(c) - return c:IsSetCard(0x12f) and c:IsMonster() + return c:IsSetCard(SET_BATTLEWASP) and c:IsMonster() end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil) end @@ -97,4 +97,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end function s.clear(e,tp,eg,ep,ev,re,r,rp) s[0]=true -end +end \ No newline at end of file diff --git a/unofficial/c511001950.lua b/unofficial/c511001950.lua index 7873e25dbd..c617f62ed7 100644 --- a/unofficial/c511001950.lua +++ b/unofficial/c511001950.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 end function s.filter(c,e,tp) - return c:IsSetCard(0x12f) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_BATTLEWASP) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE) @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001951.lua b/unofficial/c511001951.lua index 23ae8eff6b..c06e7cc3d3 100644 --- a/unofficial/c511001951.lua +++ b/unofficial/c511001951.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) end s.listed_series={0x12f} function s.filter(c) - return c:IsSetCard(0x12f) and c:IsLevelBelow(2) and c:IsFaceup() + return c:IsSetCard(SET_BATTLEWASP) and c:IsLevelBelow(2) and c:IsFaceup() end function s.descon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -47,15 +47,15 @@ end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local tc=e:GetHandler():GetFirstCardTarget() if chk==0 then return tc and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp,tc:GetCode()) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp,tc:GetCode()) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetHandler():GetFirstCardTarget() if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not e:GetHandler():IsRelateToEffect(e) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp,tc:GetCode()) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp,tc:GetCode()) if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) local ct=e:GetLabel() @@ -65,4 +65,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001952.lua b/unofficial/c511001952.lua index 23400c35f5..3d58fa1a16 100644 --- a/unofficial/c511001952.lua +++ b/unofficial/c511001952.lua @@ -124,4 +124,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if ct>0 then Duel.Damage(1-tp,ct*200,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001954.lua b/unofficial/c511001954.lua index 7f248edd6c..f84e4e8a5c 100644 --- a/unofficial/c511001954.lua +++ b/unofficial/c511001954.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) --synchro summon - Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0x33),1,1,Synchro.NonTuner(nil),2,99) + Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_BLACKWING),1,1,Synchro.NonTuner(nil),2,99) c:EnableReviveLimit() --destroy local e1=Effect.CreateEffect(c) @@ -52,5 +52,5 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.indtg(e,c) - return c:IsFaceup() and c:IsSetCard(0x33) -end + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) +end \ No newline at end of file diff --git a/unofficial/c511001955.lua b/unofficial/c511001955.lua index 635e0cd211..5616393212 100644 --- a/unofficial/c511001955.lua +++ b/unofficial/c511001955.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) end function s.valcheck(e,c) local g=c:GetMaterial() - if g:IsExists(Card.IsSetCard,1,nil,0x33) then + if g:IsExists(Card.IsSetCard,1,nil,SET_BLACKWING) then e:GetLabelObject():SetLabel(1) else e:GetLabelObject():SetLabel(0) @@ -50,7 +50,7 @@ function s.tnop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x33) + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsDestructable() end @@ -67,4 +67,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001956.lua b/unofficial/c511001956.lua index a5221176df..307f4ebcfe 100644 --- a/unofficial/c511001956.lua +++ b/unofficial/c511001956.lua @@ -31,4 +31,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)*400,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001957.lua b/unofficial/c511001957.lua index 47b62958a1..0a78383e25 100644 --- a/unofficial/c511001957.lua +++ b/unofficial/c511001957.lua @@ -44,4 +44,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e:GetLabelObject():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001958.lua b/unofficial/c511001958.lua index 4ffefcc5e5..686a6ba1f9 100644 --- a/unofficial/c511001958.lua +++ b/unofficial/c511001958.lua @@ -9,4 +9,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetTargetRange(0,1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001959.lua b/unofficial/c511001959.lua index c679029a65..21390d44e7 100644 --- a/unofficial/c511001959.lua +++ b/unofficial/c511001959.lua @@ -9,4 +9,4 @@ function s.initial_effect(c) e2:SetTargetRange(0,LOCATION_MZONE) e2:SetValue(aux.TRUE) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511001960.lua b/unofficial/c511001960.lua index cb5bfbf328..1bd058cc72 100644 --- a/unofficial/c511001960.lua +++ b/unofficial/c511001960.lua @@ -40,14 +40,14 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local sg=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001961.lua b/unofficial/c511001961.lua index 01c8a80d84..d058fc8eca 100644 --- a/unofficial/c511001961.lua +++ b/unofficial/c511001961.lua @@ -63,4 +63,4 @@ function s.descon3(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001962.lua b/unofficial/c511001962.lua index 4985444c33..58c0d34262 100644 --- a/unofficial/c511001962.lua +++ b/unofficial/c511001962.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.sumfilter(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0x33) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and c:IsSetCard(SET_BLACKWING) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end s.listed_series={0x33} function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -31,4 +31,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001963.lua b/unofficial/c511001963.lua index 801775aa78..84c7e57e95 100644 --- a/unofficial/c511001963.lua +++ b/unofficial/c511001963.lua @@ -25,4 +25,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001964.lua b/unofficial/c511001964.lua index 935a089ef6..f553109053 100644 --- a/unofficial/c511001964.lua +++ b/unofficial/c511001964.lua @@ -42,4 +42,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsControler(1-tp) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001965.lua b/unofficial/c511001965.lua index da11a6aab0..ffcb1032a9 100644 --- a/unofficial/c511001965.lua +++ b/unofficial/c511001965.lua @@ -57,4 +57,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001967.lua b/unofficial/c511001967.lua index 9566fd19c5..8ce94356bb 100644 --- a/unofficial/c511001967.lua +++ b/unofficial/c511001967.lua @@ -40,4 +40,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001969.lua b/unofficial/c511001969.lua index 8014ef9d79..1bc31c0901 100644 --- a/unofficial/c511001969.lua +++ b/unofficial/c511001969.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.valcon(e) - return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) + return e:GetHandler():IsSynchroSummoned() end function s.valop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -27,7 +27,7 @@ function s.valop(e,tp,eg,ep,ev,re,r,rp) local tc=g:GetFirst() local atk=0 while tc do - if tc:IsType(TYPE_SYNCHRO) and tc:IsSetCard(0x33) then + if tc:IsType(TYPE_SYNCHRO) and tc:IsSetCard(SET_BLACKWING) then local tatk=tc:GetTextAttack() if tatk<0 then tatk=0 end atk=atk+tatk @@ -40,4 +40,4 @@ function s.valop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001970.lua b/unofficial/c511001970.lua index f7fbba00f0..9788b14a30 100644 --- a/unofficial/c511001970.lua +++ b/unofficial/c511001970.lua @@ -15,4 +15,4 @@ function s.spcon(e,c) return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)>0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511001971.lua b/unofficial/c511001971.lua index 94b91e9157..c35100ecef 100644 --- a/unofficial/c511001971.lua +++ b/unofficial/c511001971.lua @@ -34,4 +34,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) end tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511001972.lua b/unofficial/c511001972.lua index 47f44a1804..5eb5e8f5f0 100644 --- a/unofficial/c511001972.lua +++ b/unofficial/c511001972.lua @@ -31,4 +31,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001973.lua b/unofficial/c511001973.lua index 1d14679afe..20a7d12e50 100644 --- a/unofficial/c511001973.lua +++ b/unofficial/c511001973.lua @@ -124,4 +124,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(c:GetBaseDefense()/2) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511001974.lua b/unofficial/c511001974.lua index aefd038225..dcd23e22f9 100644 --- a/unofficial/c511001974.lua +++ b/unofficial/c511001974.lua @@ -27,4 +27,4 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateActivation(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511001975.lua b/unofficial/c511001975.lua index d584245059..804bcab7c4 100644 --- a/unofficial/c511001975.lua +++ b/unofficial/c511001975.lua @@ -47,5 +47,5 @@ function s.atkcon(e) return Duel.GetAttackTarget() and e:GetHandler()==Duel.GetAttackTarget() end function s.atkval(e,c) - return Duel.GetMatchingGroupCount(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,0x10db)*300 -end + return Duel.GetMatchingGroupCount(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,SET_THE_PHANTOM_KNIGHTS)*300 +end \ No newline at end of file diff --git a/unofficial/c511001976.lua b/unofficial/c511001976.lua index 8861033754..eca13118c2 100644 --- a/unofficial/c511001976.lua +++ b/unofficial/c511001976.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP_DEFENSE) c:AddMonsterAttributeComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511001977.lua b/unofficial/c511001977.lua index 06523f7212..b78d6a37e2 100644 --- a/unofficial/c511001977.lua +++ b/unofficial/c511001977.lua @@ -24,4 +24,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001978.lua b/unofficial/c511001978.lua index c42cf63e29..32284284c6 100644 --- a/unofficial/c511001978.lua +++ b/unofficial/c511001978.lua @@ -32,4 +32,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001979.lua b/unofficial/c511001979.lua index dff2228bea..933dd84ec8 100644 --- a/unofficial/c511001979.lua +++ b/unofficial/c511001979.lua @@ -51,4 +51,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local dam=e:GetHandler():GetAttack()/2 if dam<0 then dam=0 end Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001980.lua b/unofficial/c511001980.lua index 1a77aaa8c4..2cbc0a3208 100644 --- a/unofficial/c511001980.lua +++ b/unofficial/c511001980.lua @@ -36,4 +36,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) end function s.atkval(e,c) return Duel.GetFieldGroupCount(0,LOCATION_ONFIELD,LOCATION_ONFIELD)*100 -end +end \ No newline at end of file diff --git a/unofficial/c511001981.lua b/unofficial/c511001981.lua index e3b267496e..23d2895a8b 100644 --- a/unofficial/c511001981.lua +++ b/unofficial/c511001981.lua @@ -61,4 +61,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001982.lua b/unofficial/c511001982.lua index ad296c933e..f599bb545e 100644 --- a/unofficial/c511001982.lua +++ b/unofficial/c511001982.lua @@ -84,7 +84,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetFlagEffect(id)~=0 end @@ -101,4 +101,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,g) end end -end +end \ No newline at end of file diff --git a/unofficial/c511001983.lua b/unofficial/c511001983.lua index 42d348cd4b..2a022167b4 100644 --- a/unofficial/c511001983.lua +++ b/unofficial/c511001983.lua @@ -31,4 +31,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001986.lua b/unofficial/c511001986.lua index 18ca84e66b..55964b1e3d 100644 --- a/unofficial/c511001986.lua +++ b/unofficial/c511001986.lua @@ -45,4 +45,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if not te then return end local op=te:GetOperation() if op then op(e,tp,eg,ep,ev,re,r,rp) end -end +end \ No newline at end of file diff --git a/unofficial/c511001987.lua b/unofficial/c511001987.lua index 4ff454b317..4b008f4dec 100644 --- a/unofficial/c511001987.lua +++ b/unofficial/c511001987.lua @@ -13,4 +13,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetDecktopGroup(1-tp,1) if #g==0 then return end Duel.ConfirmCards(tp,g) -end +end \ No newline at end of file diff --git a/unofficial/c511001989.lua b/unofficial/c511001989.lua index 5aedd4c038..cfc241866d 100644 --- a/unofficial/c511001989.lua +++ b/unofficial/c511001989.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0x12f} function s.filter(c,e,tp) - return c:IsSetCard(0x12f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_BATTLEWASP) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e4) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511001990.lua b/unofficial/c511001990.lua index 8be7e98b8e..e197173ca6 100644 --- a/unofficial/c511001990.lua +++ b/unofficial/c511001990.lua @@ -1,7 +1,7 @@ --Bee Formation local s,id=GetID() function s.initial_effect(c) - aux.AddPersistentProcedure(c,0,aux.FaceupFilter(Card.IsSetCard,0x12f),nil,nil,TIMING_STANDBY_PHASE,TIMINGS_CHECK_MONSTER) + aux.AddPersistentProcedure(c,0,aux.FaceupFilter(Card.IsSetCard,SET_BATTLEWASP),nil,nil,TIMING_STANDBY_PHASE,TIMINGS_CHECK_MONSTER) --Destroy local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD) @@ -41,4 +41,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001991.lua b/unofficial/c511001991.lua index 3dd8f1f488..580f0052e2 100644 --- a/unofficial/c511001991.lua +++ b/unofficial/c511001991.lua @@ -28,4 +28,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511001992.lua b/unofficial/c511001992.lua index c08ec048e0..23d4da4c7f 100644 --- a/unofficial/c511001992.lua +++ b/unofficial/c511001992.lua @@ -38,4 +38,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511001993.lua b/unofficial/c511001993.lua index dca54e6fc7..bd123ad2d8 100644 --- a/unofficial/c511001993.lua +++ b/unofficial/c511001993.lua @@ -45,4 +45,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.Recover(tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511001994.lua b/unofficial/c511001994.lua index c43073a535..926251e928 100644 --- a/unofficial/c511001994.lua +++ b/unofficial/c511001994.lua @@ -25,4 +25,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511001995.lua b/unofficial/c511001995.lua index 152d35356b..6f19ee6e83 100644 --- a/unofficial/c511001995.lua +++ b/unofficial/c511001995.lua @@ -30,4 +30,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetValue(0) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001996.lua b/unofficial/c511001996.lua index 143099daf5..9923f88e3d 100644 --- a/unofficial/c511001996.lua +++ b/unofficial/c511001996.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_ZOMBIE)) e1:SetValue(-1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511001997.lua b/unofficial/c511001997.lua index 8b8ffe18fe..4a720d1649 100644 --- a/unofficial/c511001997.lua +++ b/unofficial/c511001997.lua @@ -89,7 +89,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.eqfilter(c) - return c:IsFaceup() and c:IsSetCard(0x48) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) end function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.eqfilter(chkc) end @@ -127,5 +127,5 @@ function s.eqlimit(e,c) return c==e:GetLabelObject() end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511001998.lua b/unofficial/c511001998.lua index 21672ba26c..111073276f 100644 --- a/unofficial/c511001998.lua +++ b/unofficial/c511001998.lua @@ -110,5 +110,5 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511001999.lua b/unofficial/c511001999.lua index 9b22815cab..758dca74f9 100644 --- a/unofficial/c511001999.lua +++ b/unofficial/c511001999.lua @@ -50,5 +50,5 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002001.lua b/unofficial/c511002001.lua index 2f97d831c4..1ce8afec99 100644 --- a/unofficial/c511002001.lua +++ b/unofficial/c511002001.lua @@ -47,5 +47,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002002.lua b/unofficial/c511002002.lua index 3cf107b476..e22463db7d 100644 --- a/unofficial/c511002002.lua +++ b/unofficial/c511002002.lua @@ -33,4 +33,4 @@ end function s.nodamop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) Duel.ChangeBattleDamage(1-tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002003.lua b/unofficial/c511002003.lua index b98fbbefe2..7eb9646aa3 100644 --- a/unofficial/c511002003.lua +++ b/unofficial/c511002003.lua @@ -76,4 +76,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0 then Duel.Damage(1-tp,300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002004.lua b/unofficial/c511002004.lua index 025cf29927..3163140095 100644 --- a/unofficial/c511002004.lua +++ b/unofficial/c511002004.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002005.lua b/unofficial/c511002005.lua index b4ea734205..fb8f63fbed 100644 --- a/unofficial/c511002005.lua +++ b/unofficial/c511002005.lua @@ -130,4 +130,4 @@ function s.lvop2(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002007.lua b/unofficial/c511002007.lua index ef0e1a4fff..b1a153fbc9 100644 --- a/unofficial/c511002007.lua +++ b/unofficial/c511002007.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x9b} function s.filter(c,e,tp,ft) - return c:IsFaceup() and c:IsSetCard(0x9b) and c:IsAbleToHand() and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) + return c:IsFaceup() and c:IsSetCard(SET_MELODIOUS) and c:IsAbleToHand() and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -27,7 +27,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x9b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_MELODIOUS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002008.lua b/unofficial/c511002008.lua index 6e36a3f147..27da949ec8 100644 --- a/unofficial/c511002008.lua +++ b/unofficial/c511002008.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.atcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():GetEquipTarget():IsSetCard(0x9b) + return e:GetHandler():GetEquipTarget():IsSetCard(SET_MELODIOUS) end function s.atlimit(e,c) return c~=e:GetHandler():GetEquipTarget() @@ -62,4 +62,4 @@ function s.damcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return val end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return 0 -end +end \ No newline at end of file diff --git a/unofficial/c511002009.lua b/unofficial/c511002009.lua index 0bae9806cd..020890ee45 100644 --- a/unofficial/c511002009.lua +++ b/unofficial/c511002009.lua @@ -68,4 +68,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_BATTLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002010.lua b/unofficial/c511002010.lua index 424faa9b89..0ee8009598 100644 --- a/unofficial/c511002010.lua +++ b/unofficial/c511002010.lua @@ -33,4 +33,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) ec:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002011.lua b/unofficial/c511002011.lua index 5bfb6bd6b5..37f464a1e1 100644 --- a/unofficial/c511002011.lua +++ b/unofficial/c511002011.lua @@ -28,4 +28,4 @@ function s.con(e,tp,eg,ep,ev,re,r,rp) end function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511002012.lua b/unofficial/c511002012.lua index 38cb3b504b..8ab90ada51 100644 --- a/unofficial/c511002012.lua +++ b/unofficial/c511002012.lua @@ -17,4 +17,4 @@ function s.ntcon(e,c,minc) if c==nil then return true end return minc==0 and c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.cfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002013.lua b/unofficial/c511002013.lua index 4e61798c92..c123ec12c1 100644 --- a/unofficial/c511002013.lua +++ b/unofficial/c511002013.lua @@ -31,4 +31,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(0) bc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002014.lua b/unofficial/c511002014.lua index 465484f944..652b5f6b06 100644 --- a/unofficial/c511002014.lua +++ b/unofficial/c511002014.lua @@ -12,4 +12,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_PIERCE) c:RegisterEffect(e1) end -s.material_setcode={0x54a,0x51a} +s.material_setcode={0x54a,0x51a} \ No newline at end of file diff --git a/unofficial/c511002015.lua b/unofficial/c511002015.lua index 781904b0a3..e73c0cffcd 100644 --- a/unofficial/c511002015.lua +++ b/unofficial/c511002015.lua @@ -32,4 +32,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Damage(p,ct*500,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002016.lua b/unofficial/c511002016.lua index 30c8938a2e..3f1553ebb0 100644 --- a/unofficial/c511002016.lua +++ b/unofficial/c511002016.lua @@ -35,4 +35,4 @@ function s.damval(e,re,val,r,rp,rc) end function s.sdcon(e) return not Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002019.lua b/unofficial/c511002019.lua index 155461abed..da6918d4eb 100644 --- a/unofficial/c511002019.lua +++ b/unofficial/c511002019.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(tc2,0,1-tp,1-tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002020.lua b/unofficial/c511002020.lua index 5379f561f4..d5238b8e10 100644 --- a/unofficial/c511002020.lua +++ b/unofficial/c511002020.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(dr,POS_FACEUP,REASON_EFFECT) end Duel.ShuffleHand(tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002021.lua b/unofficial/c511002021.lua index e9ada1e67e..29b6e8bef1 100644 --- a/unofficial/c511002021.lua +++ b/unofficial/c511002021.lua @@ -11,8 +11,8 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.filter(c) - return c:IsSetCard(0x43) and c:IsMonster() + return c:IsSetCard(SET_JUNK) and c:IsMonster() end function s.val(e,c) return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_GRAVE,0,nil)*400 -end +end \ No newline at end of file diff --git a/unofficial/c511002025.lua b/unofficial/c511002025.lua index 8a175c9137..66b4742e34 100644 --- a/unofficial/c511002025.lua +++ b/unofficial/c511002025.lua @@ -61,4 +61,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002026.lua b/unofficial/c511002026.lua index 5d5b24777a..08630329a3 100644 --- a/unofficial/c511002026.lua +++ b/unofficial/c511002026.lua @@ -116,4 +116,4 @@ function s.qop(e,tp,eg,ep,ev,re,r,rp) else Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE|PHASE_BATTLE,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002027.lua b/unofficial/c511002027.lua index 8028af8ad6..ca03f93da7 100644 --- a/unofficial/c511002027.lua +++ b/unofficial/c511002027.lua @@ -47,4 +47,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetHandler():GetAttack()*2) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) e:GetHandler():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002028.lua b/unofficial/c511002028.lua index 93ae076ffa..8b807aacb7 100644 --- a/unofficial/c511002028.lua +++ b/unofficial/c511002028.lua @@ -58,4 +58,4 @@ function s.endop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.cfilter,tp,0,LOCATION_MZONE,nil,e) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002029.lua b/unofficial/c511002029.lua index e803c6ee6e..4a8f84a33b 100644 --- a/unofficial/c511002029.lua +++ b/unofficial/c511002029.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc1,nil,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002030.lua b/unofficial/c511002030.lua index 15f3e3bc59..e666be95cb 100644 --- a/unofficial/c511002030.lua +++ b/unofficial/c511002030.lua @@ -64,4 +64,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp,chk) end function s.valcon(e,re,r,rp) return (r&REASON_BATTLE)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002031.lua b/unofficial/c511002031.lua index 4210231dd2..99386766fa 100644 --- a/unofficial/c511002031.lua +++ b/unofficial/c511002031.lua @@ -52,4 +52,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002032.lua b/unofficial/c511002032.lua index 6ba31de159..e34a261397 100644 --- a/unofficial/c511002032.lua +++ b/unofficial/c511002032.lua @@ -18,10 +18,10 @@ function s.initial_effect(c) end s.listed_series={0x33} function s.filter(c) - return c:IsSetCard(0x33) and c:IsLevelBelow(3) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_BLACKWING) and c:IsLevelBelow(3) and c:IsMonster() and c:IsAbleToHand() end function s.synfilter(c) - return c:IsFaceup() and c:IsSetCard(0x33) and c:IsType(TYPE_SYNCHRO) + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) and c:IsType(TYPE_SYNCHRO) end function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 end @@ -58,4 +58,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511002033.lua b/unofficial/c511002033.lua index 13299366e8..8f5a692d99 100644 --- a/unofficial/c511002033.lua +++ b/unofficial/c511002033.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end s.listed_series={0x2b} -s.cfilter=aux.FaceupFilter(Card.IsSetCard,0x2b) +s.cfilter=aux.FaceupFilter(Card.IsSetCard,SET_NINJA) function s.actcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end @@ -61,4 +61,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002034.lua b/unofficial/c511002034.lua index 4521f3d4a1..3f5bcc9f41 100644 --- a/unofficial/c511002034.lua +++ b/unofficial/c511002034.lua @@ -122,4 +122,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002035.lua b/unofficial/c511002035.lua index 79b0f01027..fae666256f 100644 --- a/unofficial/c511002035.lua +++ b/unofficial/c511002035.lua @@ -21,7 +21,7 @@ s.listed_series={0x2178} function s.valcheck(e,c) local g=c:GetMaterial() local flag=0 - if g and g:IsExists(Card.IsSetCard,1,nil,0x2178) + if g and g:IsExists(Card.IsSetCard,1,nil,SET_BATTLEGUARD) then flag=1 end e:SetLabel(flag) diff --git a/unofficial/c511002036.lua b/unofficial/c511002036.lua index b8d68cc785..f2fcb80daa 100644 --- a/unofficial/c511002036.lua +++ b/unofficial/c511002036.lua @@ -34,4 +34,4 @@ function s.datop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002037.lua b/unofficial/c511002037.lua index 3ff04d3e59..cb62bd1f47 100644 --- a/unofficial/c511002037.lua +++ b/unofficial/c511002037.lua @@ -22,4 +22,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002038.lua b/unofficial/c511002038.lua index 8dd41cc751..6cf772495c 100644 --- a/unofficial/c511002038.lua +++ b/unofficial/c511002038.lua @@ -40,4 +40,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(), REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002039.lua b/unofficial/c511002039.lua index 58af9e5c4b..0b92e160fe 100644 --- a/unofficial/c511002039.lua +++ b/unofficial/c511002039.lua @@ -55,4 +55,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) end tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002040.lua b/unofficial/c511002040.lua index fa41cc3165..d218010b06 100644 --- a/unofficial/c511002040.lua +++ b/unofficial/c511002040.lua @@ -36,4 +36,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002042.lua b/unofficial/c511002042.lua index f05a54a1cd..ea7b0113e2 100644 --- a/unofficial/c511002042.lua +++ b/unofficial/c511002042.lua @@ -43,7 +43,7 @@ end s.listed_names={53389254} function s.valcheck(e,c) local g=c:GetMaterial() - if g:IsExists(Card.IsSetCard,1,nil,0x33) then + if g:IsExists(Card.IsSetCard,1,nil,SET_BLACKWING) then e:GetLabelObject():SetLabel(1) else e:GetLabelObject():SetLabel(0) @@ -66,7 +66,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp,chk) return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO end function s.filter(c,e,tp) - return c:IsSetCard(0x1033) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ASSAULT_BLACKWING) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -104,4 +104,4 @@ function s.spsop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002043.lua b/unofficial/c511002043.lua index f24592f72f..c6725bef10 100644 --- a/unofficial/c511002043.lua +++ b/unofficial/c511002043.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xba) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetMatchingGroupCount(s.cfilter,tp,LOCATION_MZONE,0,nil)>=3 @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002044.lua b/unofficial/c511002044.lua index 133267fbeb..fe1ae49f86 100644 --- a/unofficial/c511002044.lua +++ b/unofficial/c511002044.lua @@ -28,4 +28,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002045.lua b/unofficial/c511002045.lua index 307fc4b58e..e5c96dd3e3 100644 --- a/unofficial/c511002045.lua +++ b/unofficial/c511002045.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_series={0xba} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xba) and c:HasLevel() + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) and c:HasLevel() end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.cfilter(chkc) end @@ -42,4 +42,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local dam=Duel.AnnounceNumber(tp,table.unpack({tc:GetAttack(),tc:GetDefense()})) Duel.Damage(tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002046.lua b/unofficial/c511002046.lua index e5f1a73215..dbf369ac6b 100644 --- a/unofficial/c511002046.lua +++ b/unofficial/c511002046.lua @@ -18,7 +18,7 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local at=Duel.GetAttackTarget() - return a:IsControler(1-tp) and at and at:IsControler(tp) and at:IsFaceup() and at:IsSetCard(0xba) and at:IsType(TYPE_XYZ) + return a:IsControler(1-tp) and at and at:IsControler(tp) and at:IsFaceup() and at:IsSetCard(SET_RAIDRAPTOR) and at:IsType(TYPE_XYZ) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end @@ -84,4 +84,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002047.lua b/unofficial/c511002047.lua index adabb1e08a..2ee09fb11c 100644 --- a/unofficial/c511002047.lua +++ b/unofficial/c511002047.lua @@ -29,4 +29,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local dam=e:GetHandler():GetEquipTarget():GetMaterialCount()*400 Duel.Damage(1-tp,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002048.lua b/unofficial/c511002048.lua index d2ca440082..7d5d5c9ef0 100644 --- a/unofficial/c511002048.lua +++ b/unofficial/c511002048.lua @@ -96,4 +96,4 @@ function s.initial_effect(c) tc:RegisterEffect(e3) Duel.SpecialSummonComplete() end - end + end \ No newline at end of file diff --git a/unofficial/c511002050.lua b/unofficial/c511002050.lua index bcff339dc2..af2f00e019 100644 --- a/unofficial/c511002050.lua +++ b/unofficial/c511002050.lua @@ -48,4 +48,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end function s.clear(e,tp,eg,ep,ev,re,r,rp) s[0]=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002051.lua b/unofficial/c511002051.lua index 3c49e8b3cb..72cb292eac 100644 --- a/unofficial/c511002051.lua +++ b/unofficial/c511002051.lua @@ -32,4 +32,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) Duel.ChangeAttackTarget(tc,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511002053.lua b/unofficial/c511002053.lua index 5898cf79d7..4dcf261043 100644 --- a/unofficial/c511002053.lua +++ b/unofficial/c511002053.lua @@ -72,4 +72,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local tg=g:Filter(s.desfilter,nil,e:GetLabel()) Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002054.lua b/unofficial/c511002054.lua index c21cd3ca8d..e604d71b11 100644 --- a/unofficial/c511002054.lua +++ b/unofficial/c511002054.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e2) end s.xyz_number=42 @@ -83,4 +83,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.desfilter,nil,e:GetLabel()) g:DeleteGroup() Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002055.lua b/unofficial/c511002055.lua index a1120af2f5..3d8c42ae4e 100644 --- a/unofficial/c511002055.lua +++ b/unofficial/c511002055.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002056.lua b/unofficial/c511002056.lua index 3a55ba90b3..f5c3ff2963 100644 --- a/unofficial/c511002056.lua +++ b/unofficial/c511002056.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:CanAttack() and Duel.NegateAttack() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002057.lua b/unofficial/c511002057.lua index 931d28ad9e..2921fe731d 100644 --- a/unofficial/c511002057.lua +++ b/unofficial/c511002057.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002058.lua b/unofficial/c511002058.lua index f329461916..7f3935e39c 100644 --- a/unofficial/c511002058.lua +++ b/unofficial/c511002058.lua @@ -82,5 +82,5 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002059.lua b/unofficial/c511002059.lua index 903a9bff94..34ab30642c 100644 --- a/unofficial/c511002059.lua +++ b/unofficial/c511002059.lua @@ -60,5 +60,5 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002060.lua b/unofficial/c511002060.lua index 895976d003..58ee385483 100644 --- a/unofficial/c511002060.lua +++ b/unofficial/c511002060.lua @@ -49,5 +49,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002064.lua b/unofficial/c511002064.lua index aae3b7e0b1..edc5cbde3c 100644 --- a/unofficial/c511002064.lua +++ b/unofficial/c511002064.lua @@ -99,4 +99,4 @@ function s.unop(e,tp,eg,ep,ev,re,r,rp) ef:Reset() e:Reset() end -end +end \ No newline at end of file diff --git a/unofficial/c511002065.lua b/unofficial/c511002065.lua index 6e47ec1e98..ab0003146b 100644 --- a/unofficial/c511002065.lua +++ b/unofficial/c511002065.lua @@ -53,14 +53,14 @@ function s.spfilter(c,e,tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK|LOCATION_HAND) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if not e:GetHandler():IsRelateToEffect(e) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end @@ -73,4 +73,4 @@ function s.filter(c) end function s.con(e,c) return not Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002066.lua b/unofficial/c511002066.lua index 548c836a9f..2f2e139097 100644 --- a/unofficial/c511002066.lua +++ b/unofficial/c511002066.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_MZONE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.sptg) e2:SetOperation(s.spop) c:RegisterEffect(e2) @@ -31,4 +31,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,2,2,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002068.lua b/unofficial/c511002068.lua index 62ece9c1ee..797bc42848 100644 --- a/unofficial/c511002068.lua +++ b/unofficial/c511002068.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if sc then Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002069.lua b/unofficial/c511002069.lua index 0d0349bb5b..051f9c8255 100644 --- a/unofficial/c511002069.lua +++ b/unofficial/c511002069.lua @@ -14,4 +14,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)>1 -end +end \ No newline at end of file diff --git a/unofficial/c511002071.lua b/unofficial/c511002071.lua index 3e3d086b7a..7950115b11 100644 --- a/unofficial/c511002071.lua +++ b/unofficial/c511002071.lua @@ -22,4 +22,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002072.lua b/unofficial/c511002072.lua index 92adc2740b..414fd7ac9e 100644 --- a/unofficial/c511002072.lua +++ b/unofficial/c511002072.lua @@ -36,4 +36,4 @@ function s.atk(e,c) tc=g:GetNext() end return sum -end +end \ No newline at end of file diff --git a/unofficial/c511002073.lua b/unofficial/c511002073.lua index bc53688b06..f17e61f566 100644 --- a/unofficial/c511002073.lua +++ b/unofficial/c511002073.lua @@ -34,7 +34,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_SKIP_BP) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetTargetRange(1,0) - if Duel.GetTurnPlayer()==tp and ph>PHASE_MAIN1 and phPHASE_MAIN1 and ph0 and Duel.SpecialSummon(g,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)>0 then g:GetFirst():CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511002076.lua b/unofficial/c511002076.lua index 75ce01e119..09cb7eca96 100644 --- a/unofficial/c511002076.lua +++ b/unofficial/c511002076.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002077.lua b/unofficial/c511002077.lua index 1629980896..f02a9edb7a 100644 --- a/unofficial/c511002077.lua +++ b/unofficial/c511002077.lua @@ -40,5 +40,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002078.lua b/unofficial/c511002078.lua index 43c6435df5..e2eb9a7e11 100644 --- a/unofficial/c511002078.lua +++ b/unofficial/c511002078.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:CancelToGrave() Duel.Overlay(tc,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511002079.lua b/unofficial/c511002079.lua index 2c825374f0..bea09d7b35 100644 --- a/unofficial/c511002079.lua +++ b/unofficial/c511002079.lua @@ -98,7 +98,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end function s.matfilter(c,sc) - return c:IsSetCard(0xba) and c:IsType(TYPE_XYZ,sc,SUMMON_TYPE_XYZ) + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsType(TYPE_XYZ,sc,SUMMON_TYPE_XYZ) end function s.valcheck(e,c) local g=c:GetMaterial() @@ -143,4 +143,4 @@ function s.endop(e,tp,eg,ep,ev,re,r,rp) end function s.unval(e,te) return te:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511002080.lua b/unofficial/c511002080.lua index 90677ec5e2..c24681cccb 100644 --- a/unofficial/c511002080.lua +++ b/unofficial/c511002080.lua @@ -19,7 +19,7 @@ function s.filter1(c,e,tp) end function s.filter2(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end - return mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(0xba) and mc:IsCanBeXyzMaterial(c,tp) + return mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(SET_RAIDRAPTOR) and mc:IsCanBeXyzMaterial(c,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511002081.lua b/unofficial/c511002081.lua index f94192a98c..25b66c475b 100644 --- a/unofficial/c511002081.lua +++ b/unofficial/c511002081.lua @@ -146,4 +146,4 @@ function s.reqm(reqm) return function(g,sc,tp) return g:IsExists(Card.IsHasEffect,1,nil,id) and (not reqm or reqm(g,sc,tp)) end -end +end \ No newline at end of file diff --git a/unofficial/c511002083.lua b/unofficial/c511002083.lua index 20d81c68eb..e3277f2c86 100644 --- a/unofficial/c511002083.lua +++ b/unofficial/c511002083.lua @@ -48,4 +48,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002084.lua b/unofficial/c511002084.lua index dba89324e6..4dc6926281 100644 --- a/unofficial/c511002084.lua +++ b/unofficial/c511002084.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xba) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) end function s.condition(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsChainDisablable(ev) then return false end @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) Duel.Draw(tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002085.lua b/unofficial/c511002085.lua index c914b08615..6db9f591cd 100644 --- a/unofficial/c511002085.lua +++ b/unofficial/c511002085.lua @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002086.lua b/unofficial/c511002086.lua index fe6977bb36..07332b22f2 100644 --- a/unofficial/c511002086.lua +++ b/unofficial/c511002086.lua @@ -34,9 +34,9 @@ function s.cfilter(c) return c:IsCode(42598242) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil )end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil )end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil) Duel.SendtoGrave(g,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002087.lua b/unofficial/c511002087.lua index 55fdb45e56..b9557fb4d7 100644 --- a/unofficial/c511002087.lua +++ b/unofficial/c511002087.lua @@ -29,7 +29,7 @@ function s.atktarget(e,c) return c:GetLevel()<=4 end function s.mtcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.mtop(e,tp,eg,ep,ev,re,r,rp) if Duel.CheckReleaseGroup(tp,nil,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(63014935,2)) then @@ -38,4 +38,4 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(e:GetHandler(),REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c511002088.lua b/unofficial/c511002088.lua index 2c5bf3fac9..a546e58872 100644 --- a/unofficial/c511002088.lua +++ b/unofficial/c511002088.lua @@ -48,5 +48,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002089.lua b/unofficial/c511002089.lua index 738796d2c9..20cc7e26e4 100644 --- a/unofficial/c511002089.lua +++ b/unofficial/c511002089.lua @@ -59,7 +59,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetLabelObject(e2) e3:SetOwnerPlayer(tp) e3:SetOperation(s.reset) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e3:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,3) else e3:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,3) diff --git a/unofficial/c511002090.lua b/unofficial/c511002090.lua index fc9380b7b3..6843e8e717 100644 --- a/unofficial/c511002090.lua +++ b/unofficial/c511002090.lua @@ -71,13 +71,13 @@ function s.initial_effect(c) end s.xyz_number=6 function s.eqval(ec,c,tp) - return ec:IsControler(tp) and ec:IsSetCard(0x48) + return ec:IsControler(tp) and ec:IsSetCard(SET_NUMBER) end function s.eqcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) + return e:GetHandler():IsXyzSummoned() end function s.filter(c) - return c:IsSetCard(0x48) and c:IsMonster() + return c:IsSetCard(SET_NUMBER) and c:IsMonster() end function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -143,5 +143,5 @@ function s.lpchk(e,tp,eg,ep,ev,re,r,rp) s[1-tp]=Duel.GetLP(1-tp) end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002091.lua b/unofficial/c511002091.lua index 6637067cb1..5ee7023469 100644 --- a/unofficial/c511002091.lua +++ b/unofficial/c511002091.lua @@ -75,4 +75,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.indes(e,c) return not c:IsSetCard(SET_NUMBER) -end +end \ No newline at end of file diff --git a/unofficial/c511002092.lua b/unofficial/c511002092.lua index 272638c194..25c07a368a 100644 --- a/unofficial/c511002092.lua +++ b/unofficial/c511002092.lua @@ -45,5 +45,5 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002095.lua b/unofficial/c511002095.lua index 2b1697089f..4ee962dd59 100644 --- a/unofficial/c511002095.lua +++ b/unofficial/c511002095.lua @@ -77,4 +77,4 @@ function s.cop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002096.lua b/unofficial/c511002096.lua index 119578e2cf..b57b7943c4 100644 --- a/unofficial/c511002096.lua +++ b/unofficial/c511002096.lua @@ -77,4 +77,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511002097.lua b/unofficial/c511002097.lua index 7175cd9717..e9674353c6 100644 --- a/unofficial/c511002097.lua +++ b/unofficial/c511002097.lua @@ -35,4 +35,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002098.lua b/unofficial/c511002098.lua index b157b317e4..24b595ceee 100644 --- a/unofficial/c511002098.lua +++ b/unofficial/c511002098.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.damcon) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.damtg) e1:SetOperation(s.damop) c:RegisterEffect(e1) @@ -30,4 +30,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002099.lua b/unofficial/c511002099.lua index 3462957a3f..8db2cc6a15 100644 --- a/unofficial/c511002099.lua +++ b/unofficial/c511002099.lua @@ -96,4 +96,4 @@ function s.clear(e,tp,eg,ep,ev,re,r,rp) end s[0]=0 end -end +end \ No newline at end of file diff --git a/unofficial/c511002100.lua b/unofficial/c511002100.lua index c539f98b7a..416d28eb8c 100644 --- a/unofficial/c511002100.lua +++ b/unofficial/c511002100.lua @@ -80,4 +80,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002101.lua b/unofficial/c511002101.lua index 1e4f65d95d..2d3e172a30 100644 --- a/unofficial/c511002101.lua +++ b/unofficial/c511002101.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x55) and c:IsLevelAbove(1) + return c:IsFaceup() and c:IsSetCard(SET_PHOTON) and c:IsLevelAbove(1) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002102.lua b/unofficial/c511002102.lua index 240a223a77..32b6702407 100644 --- a/unofficial/c511002102.lua +++ b/unofficial/c511002102.lua @@ -47,7 +47,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) eq:RegisterEffect(e1) end function s.macon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE end function s.cfilter(c) return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsAbleToGraveAsCost() @@ -75,4 +75,4 @@ function s.maop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002103.lua b/unofficial/c511002103.lua index d986e3386f..6a499b3aa7 100644 --- a/unofficial/c511002103.lua +++ b/unofficial/c511002103.lua @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002104.lua b/unofficial/c511002104.lua index ffca7715af..9f80295541 100644 --- a/unofficial/c511002104.lua +++ b/unofficial/c511002104.lua @@ -39,4 +39,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511002105.lua b/unofficial/c511002105.lua index b06230c880..19e2bd9872 100644 --- a/unofficial/c511002105.lua +++ b/unofficial/c511002105.lua @@ -139,4 +139,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:GetOwner()~=e:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511002106.lua b/unofficial/c511002106.lua index 11c5fa40c3..8ac267b224 100644 --- a/unofficial/c511002106.lua +++ b/unofficial/c511002106.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:GetOwner()~=e:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511002107.lua b/unofficial/c511002107.lua index 89cd2e3f3e..9c6184f490 100644 --- a/unofficial/c511002107.lua +++ b/unofficial/c511002107.lua @@ -95,4 +95,4 @@ function s.clear(e,tp,eg,ep,ev,re,r,rp) end s[0]=0 end -end +end \ No newline at end of file diff --git a/unofficial/c511002108.lua b/unofficial/c511002108.lua index 0f257c5e9a..cfbe427e07 100644 --- a/unofficial/c511002108.lua +++ b/unofficial/c511002108.lua @@ -43,4 +43,4 @@ end function s.tgop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(nil,tp,LOCATION_ONFIELD,0,e:GetHandler()) Duel.SendtoGrave(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002109.lua b/unofficial/c511002109.lua index 54a2ccc134..3b9ee8a2cc 100644 --- a/unofficial/c511002109.lua +++ b/unofficial/c511002109.lua @@ -121,4 +121,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002110.lua b/unofficial/c511002110.lua index faf60e805f..22e7c117e8 100644 --- a/unofficial/c511002110.lua +++ b/unofficial/c511002110.lua @@ -63,9 +63,9 @@ function s.cfilter(c,tp) and (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 or (c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5)) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,e:GetHandler(),tp) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,e:GetHandler(),tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,e:GetHandler(),tp) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,e:GetHandler(),tp) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -106,7 +106,7 @@ function s.reset(e,tp,eg,ep,ev,re,r,rp) s.winop(e:GetLabelObject(),tp,eg,ep,ev,e,r,rp) end function s.wincon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.winop(e,tp,eg,ep,ev,re,r,rp) local ct=e:GetLabel()+1 @@ -116,4 +116,4 @@ function s.winop(e,tp,eg,ep,ev,re,r,rp) Duel.Win(tp,WIN_REASON_VENNOMINAGA) if re then re:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511002111.lua b/unofficial/c511002111.lua index cafb37321f..379dec65f9 100644 --- a/unofficial/c511002111.lua +++ b/unofficial/c511002111.lua @@ -83,4 +83,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Damage(1-tp,tc:GetPreviousAttackOnField(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002112.lua b/unofficial/c511002112.lua index c81b898782..9a72d91a96 100644 --- a/unofficial/c511002112.lua +++ b/unofficial/c511002112.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(p,Duel.GetLP(p)/2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002113.lua b/unofficial/c511002113.lua index edd84eba54..d8cff10e4b 100644 --- a/unofficial/c511002113.lua +++ b/unofficial/c511002113.lua @@ -61,4 +61,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002114.lua b/unofficial/c511002114.lua index bf31950857..b2400838c3 100644 --- a/unofficial/c511002114.lua +++ b/unofficial/c511002114.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.MoveSequence(tc,0) Duel.ConfirmDecktop(tp,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002115.lua b/unofficial/c511002115.lua index 7b026356cd..4227e7b8c4 100644 --- a/unofficial/c511002115.lua +++ b/unofficial/c511002115.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(dg,REASON_EFFECT) end Duel.ShuffleHand(p) -end +end \ No newline at end of file diff --git a/unofficial/c511002116.lua b/unofficial/c511002116.lua index f3b401ed1a..71c9afcc0c 100644 --- a/unofficial/c511002116.lua +++ b/unofficial/c511002116.lua @@ -79,4 +79,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002117.lua b/unofficial/c511002117.lua index 88d7e715c4..335943457b 100644 --- a/unofficial/c511002117.lua +++ b/unofficial/c511002117.lua @@ -57,4 +57,4 @@ function s.damval(e,re,val,r,rp,rc) if cid==e:GetLabel() then return val end if r&REASON_EFFECT~=0 then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511002118.lua b/unofficial/c511002118.lua index a486c95906..17784d9f90 100644 --- a/unofficial/c511002118.lua +++ b/unofficial/c511002118.lua @@ -56,4 +56,4 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) Duel.TossCoin(tp,ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511002119.lua b/unofficial/c511002119.lua index dd9893b2ac..fcead3f991 100644 --- a/unofficial/c511002119.lua +++ b/unofficial/c511002119.lua @@ -33,4 +33,4 @@ function s.cfilter(c) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002120.lua b/unofficial/c511002120.lua index 9acd791e38..712b1cd27c 100644 --- a/unofficial/c511002120.lua +++ b/unofficial/c511002120.lua @@ -66,4 +66,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511002121.lua b/unofficial/c511002121.lua index 6bbefff98e..16e9282207 100644 --- a/unofficial/c511002121.lua +++ b/unofficial/c511002121.lua @@ -70,4 +70,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002122.lua b/unofficial/c511002122.lua index 784c283ce9..87b2c80f3c 100644 --- a/unofficial/c511002122.lua +++ b/unofficial/c511002122.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511002123.lua b/unofficial/c511002123.lua index 106d18b8cd..2db05fffbf 100644 --- a/unofficial/c511002123.lua +++ b/unofficial/c511002123.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(600*act) d:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002124.lua b/unofficial/c511002124.lua index f124c930f8..df8038b3c7 100644 --- a/unofficial/c511002124.lua +++ b/unofficial/c511002124.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:CancelToGrave() Duel.Overlay(tg,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511002125.lua b/unofficial/c511002125.lua index 289b2c4668..def7250aaa 100644 --- a/unofficial/c511002125.lua +++ b/unofficial/c511002125.lua @@ -60,4 +60,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sumg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002126.lua b/unofficial/c511002126.lua index 7a011bde95..f6b7d5ffff 100644 --- a/unofficial/c511002126.lua +++ b/unofficial/c511002126.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002128.lua b/unofficial/c511002128.lua index 655ca963a1..9ba94e605a 100644 --- a/unofficial/c511002128.lua +++ b/unofficial/c511002128.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local dam=e:GetLabel() local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,dam*300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002129.lua b/unofficial/c511002129.lua index 05b01c9610..07db3b3886 100644 --- a/unofficial/c511002129.lua +++ b/unofficial/c511002129.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SendtoGrave(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002130.lua b/unofficial/c511002130.lua index 385c780259..3699386a6e 100644 --- a/unofficial/c511002130.lua +++ b/unofficial/c511002130.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002131.lua b/unofficial/c511002131.lua index 615b3acca2..d967f253a7 100644 --- a/unofficial/c511002131.lua +++ b/unofficial/c511002131.lua @@ -134,4 +134,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002132.lua b/unofficial/c511002132.lua index 68034dc001..34903ebc35 100644 --- a/unofficial/c511002132.lua +++ b/unofficial/c511002132.lua @@ -54,4 +54,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end function s.clear(e,tp,eg,ep,ev,re,r,rp) s[0]=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002133.lua b/unofficial/c511002133.lua index 95f4890e2b..93c8878fa1 100644 --- a/unofficial/c511002133.lua +++ b/unofficial/c511002133.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsPreviousLocation(LOCATION_HAND+LOCATION_ONFIELD) + return e:GetHandler():IsPreviousLocation(LOCATION_HAND|LOCATION_ONFIELD) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end Duel.ShuffleHand(tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002134.lua b/unofficial/c511002134.lua index 0c8dce8035..0d9759b403 100644 --- a/unofficial/c511002134.lua +++ b/unofficial/c511002134.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) e2:SetReset(RESET_PHASE+PHASE_DAMAGE) a:RegisterEffect(e2,true) -end +end \ No newline at end of file diff --git a/unofficial/c511002135.lua b/unofficial/c511002135.lua index a0c2c7122c..a1dcafaf53 100644 --- a/unofficial/c511002135.lua +++ b/unofficial/c511002135.lua @@ -16,4 +16,4 @@ function s.spcon(e,c) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0,nil)==0 and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE,nil)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511002136.lua b/unofficial/c511002136.lua index 5921aa38a9..42ca9cdbd9 100644 --- a/unofficial/c511002136.lua +++ b/unofficial/c511002136.lua @@ -44,7 +44,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.sccon(e,tp,eg,ep,ev,re,r,rp) return not e:GetHandler():IsStatus(STATUS_CHAINING) and Duel.GetTurnPlayer()~=tp - and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) + and Duel.IsMainPhase() end function s.sctarg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler()) end @@ -59,4 +59,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,1,1,nil) Duel.SynchroSummon(tp,sg:GetFirst(),c) end -end +end \ No newline at end of file diff --git a/unofficial/c511002137.lua b/unofficial/c511002137.lua index 24b3ec056a..dddd4b9688 100644 --- a/unofficial/c511002137.lua +++ b/unofficial/c511002137.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002138.lua b/unofficial/c511002138.lua index 6ba3dfe161..fc2f5467f9 100644 --- a/unofficial/c511002138.lua +++ b/unofficial/c511002138.lua @@ -57,4 +57,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(g,0,0,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002139.lua b/unofficial/c511002139.lua index 4a1403af91..6849ae7627 100644 --- a/unofficial/c511002139.lua +++ b/unofficial/c511002139.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 and Duel.Destroy(g,REASON_EFFECT)>0 then Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002140.lua b/unofficial/c511002140.lua index 89b1f33dad..76b46e74a0 100644 --- a/unofficial/c511002140.lua +++ b/unofficial/c511002140.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:AddCounter(0x6,ct) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002141.lua b/unofficial/c511002141.lua index fa3bb19c4a..f1251d7150 100644 --- a/unofficial/c511002141.lua +++ b/unofficial/c511002141.lua @@ -63,4 +63,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Damage(tp,e:GetLabel(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002142.lua b/unofficial/c511002142.lua index efb7eac33c..4114b14e0d 100644 --- a/unofficial/c511002142.lua +++ b/unofficial/c511002142.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002143.lua b/unofficial/c511002143.lua index 37a7aace3f..407deaa8ab 100644 --- a/unofficial/c511002143.lua +++ b/unofficial/c511002143.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.valcon(e,re,r,rp) return e:GetHandler():IsDefensePos() and (r&REASON_BATTLE)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002144.lua b/unofficial/c511002144.lua index 12bb3d27dc..1fccbba954 100644 --- a/unofficial/c511002144.lua +++ b/unofficial/c511002144.lua @@ -26,4 +26,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002145.lua b/unofficial/c511002145.lua index 02267ffe7a..5d36703842 100644 --- a/unofficial/c511002145.lua +++ b/unofficial/c511002145.lua @@ -30,4 +30,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002146.lua b/unofficial/c511002146.lua index 360b5db3be..3c1f1421a3 100644 --- a/unofficial/c511002146.lua +++ b/unofficial/c511002146.lua @@ -33,4 +33,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then Duel.ChangeAttackTarget(g:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511002147.lua b/unofficial/c511002147.lua index 061543385e..8618bc4556 100644 --- a/unofficial/c511002147.lua +++ b/unofficial/c511002147.lua @@ -25,4 +25,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002148.lua b/unofficial/c511002148.lua index e4914f4ed2..19fd6db85b 100644 --- a/unofficial/c511002148.lua +++ b/unofficial/c511002148.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(tc,true) tc:AddCounter(0x1101,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002149.lua b/unofficial/c511002149.lua index 8e82bffe90..c087c139fa 100644 --- a/unofficial/c511002149.lua +++ b/unofficial/c511002149.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(1-tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002150.lua b/unofficial/c511002150.lua index 924b20fb1f..8f4824906a 100644 --- a/unofficial/c511002150.lua +++ b/unofficial/c511002150.lua @@ -13,13 +13,13 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x6d) and c:IsType(TYPE_XYZ) + return c:IsFaceup() and c:IsSetCard(SET_DJINN) and c:IsType(TYPE_XYZ) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end function s.filter(c,e,tp) - return c:IsSetCard(0x6d) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_DJINN) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002151.lua b/unofficial/c511002151.lua index 8260466b92..2f4259ec05 100644 --- a/unofficial/c511002151.lua +++ b/unofficial/c511002151.lua @@ -19,7 +19,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) if a:IsControler(1-tp) then a,d=d,a end - return d and a:IsControler(tp) and a:IsSetCard(0x48) and d:IsControler(1-tp) and a:GetAttack()+1000<=d:GetAttack() + return d and a:IsControler(tp) and a:IsSetCard(SET_NUMBER) and d:IsControler(1-tp) and a:GetAttack()+1000<=d:GetAttack() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local a=Duel.GetAttacker() @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(bc:GetAttack()) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002152.lua b/unofficial/c511002152.lua index ada3a4cac9..d677f35feb 100644 --- a/unofficial/c511002152.lua +++ b/unofficial/c511002152.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x6d) and c:IsType(TYPE_XYZ) + return c:IsFaceup() and c:IsSetCard(SET_DJINN) and c:IsType(TYPE_XYZ) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002153.lua b/unofficial/c511002153.lua index b02572123f..2b8675df68 100644 --- a/unofficial/c511002153.lua +++ b/unofficial/c511002153.lua @@ -54,4 +54,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-800) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002154.lua b/unofficial/c511002154.lua index 6e6159c774..79fbb4c76d 100644 --- a/unofficial/c511002154.lua +++ b/unofficial/c511002154.lua @@ -35,4 +35,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002155.lua b/unofficial/c511002155.lua index f16e039d0c..f509cb777c 100644 --- a/unofficial/c511002155.lua +++ b/unofficial/c511002155.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002157.lua b/unofficial/c511002157.lua index 0573bcb4c1..39b43a6813 100644 --- a/unofficial/c511002157.lua +++ b/unofficial/c511002157.lua @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_PHASE+PHASE_DAMAGE) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002158.lua b/unofficial/c511002158.lua index 605beaac86..5c7154fd56 100644 --- a/unofficial/c511002158.lua +++ b/unofficial/c511002158.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002159.lua b/unofficial/c511002159.lua index dd5d62cad2..39239ae250 100644 --- a/unofficial/c511002159.lua +++ b/unofficial/c511002159.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if at:IsAttackPos() and at:IsRelateToBattle() then Duel.Destroy(at,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002160.lua b/unofficial/c511002160.lua index 00bae0f9f7..64b9221cf2 100644 --- a/unofficial/c511002160.lua +++ b/unofficial/c511002160.lua @@ -41,4 +41,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sp,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002161.lua b/unofficial/c511002161.lua index b301d0ad6c..7c3f32e7d0 100644 --- a/unofficial/c511002161.lua +++ b/unofficial/c511002161.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tg:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002162.lua b/unofficial/c511002162.lua index 9efbbb0c95..ac252421d4 100644 --- a/unofficial/c511002162.lua +++ b/unofficial/c511002162.lua @@ -29,4 +29,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002163.lua b/unofficial/c511002163.lua index 62ef83d20a..619a3716ce 100644 --- a/unofficial/c511002163.lua +++ b/unofficial/c511002163.lua @@ -20,4 +20,4 @@ function s.con(e) end function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002164.lua b/unofficial/c511002164.lua index 0858a6a7cf..d4f851be3a 100644 --- a/unofficial/c511002164.lua +++ b/unofficial/c511002164.lua @@ -118,4 +118,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) sc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002165.lua b/unofficial/c511002165.lua index f258738eba..8832bfc281 100644 --- a/unofficial/c511002165.lua +++ b/unofficial/c511002165.lua @@ -25,4 +25,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002166.lua b/unofficial/c511002166.lua index a7bcf70973..c88ed1bbec 100644 --- a/unofficial/c511002166.lua +++ b/unofficial/c511002166.lua @@ -61,4 +61,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e7:SetValue(-800) tc:RegisterEffect(e7) end -end +end \ No newline at end of file diff --git a/unofficial/c511002167.lua b/unofficial/c511002167.lua index e12f7c3f2a..713de3f47b 100644 --- a/unofficial/c511002167.lua +++ b/unofficial/c511002167.lua @@ -39,4 +39,4 @@ function s.ttop(e,tp,eg,ep,ev,re,r,rp,c) c:SetMaterial(g) Duel.Release(g,REASON_SUMMON+REASON_MATERIAL) g:DeleteGroup() -end +end \ No newline at end of file diff --git a/unofficial/c511002168.lua b/unofficial/c511002168.lua index c8c9c8e578..15547e1f6b 100644 --- a/unofficial/c511002168.lua +++ b/unofficial/c511002168.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) e1:SetTargetRange(0,1) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002169.lua b/unofficial/c511002169.lua index 77b1a4ffeb..244166964d 100644 --- a/unofficial/c511002169.lua +++ b/unofficial/c511002169.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EFFECT_NO_BATTLE_DAMAGE) d:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511002170.lua b/unofficial/c511002170.lua index 0ad0191d5d..d88be7c2d5 100644 --- a/unofficial/c511002170.lua +++ b/unofficial/c511002170.lua @@ -53,4 +53,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=g1:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511002175.lua b/unofficial/c511002175.lua index d9547b36b8..96ad54bdc3 100644 --- a/unofficial/c511002175.lua +++ b/unofficial/c511002175.lua @@ -29,4 +29,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002176.lua b/unofficial/c511002176.lua index 8ebb65ef36..ffa73a38b7 100644 --- a/unofficial/c511002176.lua +++ b/unofficial/c511002176.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,id+1) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002178.lua b/unofficial/c511002178.lua index 1be192e5a0..e590587e44 100644 --- a/unofficial/c511002178.lua +++ b/unofficial/c511002178.lua @@ -35,4 +35,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002179.lua b/unofficial/c511002179.lua index 48b91544af..4686d0704a 100644 --- a/unofficial/c511002179.lua +++ b/unofficial/c511002179.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002181.lua b/unofficial/c511002181.lua index fd7be7d64a..038ff45e51 100644 --- a/unofficial/c511002181.lua +++ b/unofficial/c511002181.lua @@ -64,7 +64,7 @@ function s.tgcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetFirstCardTarget()==nil and not e:GetHandler():IsStatus(STATUS_CHAINING) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetHandler():GetFirstCardTarget()~=nil + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetFirstCardTarget()~=nil end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -81,4 +81,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetCondition(s.rcon) tc:RegisterEffect(e1,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511002182.lua b/unofficial/c511002182.lua index 7f650e24a9..551ad25baa 100644 --- a/unofficial/c511002182.lua +++ b/unofficial/c511002182.lua @@ -48,4 +48,4 @@ function s.bpcon(e) e:Reset() return false end -end +end \ No newline at end of file diff --git a/unofficial/c511002183.lua b/unofficial/c511002183.lua index dd68566e9b..50d9cae892 100644 --- a/unofficial/c511002183.lua +++ b/unofficial/c511002183.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.con(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsAttackPos() -end +end \ No newline at end of file diff --git a/unofficial/c511002184.lua b/unofficial/c511002184.lua index ec1d92ffa8..9cacf42989 100644 --- a/unofficial/c511002184.lua +++ b/unofficial/c511002184.lua @@ -23,4 +23,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511002185.lua b/unofficial/c511002185.lua index d93d709ef0..ed18fb05ac 100644 --- a/unofficial/c511002185.lua +++ b/unofficial/c511002185.lua @@ -24,4 +24,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() e2:SetCode(EFFECT_UPDATE_DEFENSE) bc:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002187.lua b/unofficial/c511002187.lua index 878bb17b24..e5ec555a3b 100644 --- a/unofficial/c511002187.lua +++ b/unofficial/c511002187.lua @@ -56,4 +56,4 @@ function s.activate2(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002191.lua b/unofficial/c511002191.lua index 9df0eaddf0..1f7c883fe2 100644 --- a/unofficial/c511002191.lua +++ b/unofficial/c511002191.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,e) - return c:IsFaceup() and c:IsSetCard(0xba) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) end function s.tgfilter(c,e,tp) local atk=0 @@ -46,4 +46,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511002192.lua b/unofficial/c511002192.lua index 3d55fde0ff..9ea7f4a9fd 100644 --- a/unofficial/c511002192.lua +++ b/unofficial/c511002192.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,e) - return c:IsFaceup() and c:IsSetCard(0xba) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) end function s.tgfilter(c,e,tp) local atk=0 @@ -50,4 +50,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002194.lua b/unofficial/c511002194.lua index 1460c87d26..cd28f952c5 100644 --- a/unofficial/c511002194.lua +++ b/unofficial/c511002194.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_TRIBUTE) + return e:GetHandler():IsTributeSummoned() end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckLPCost(tp,1000) end @@ -44,4 +44,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002195.lua b/unofficial/c511002195.lua index 95508d8049..c7c37b5a13 100644 --- a/unofficial/c511002195.lua +++ b/unofficial/c511002195.lua @@ -66,16 +66,16 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,tp) end + if chk==0 then return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,tp) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.spfilter(c,tp) - return c:IsSetCard(0xc008) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_DESTINY_HERO) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) and (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 or (c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5)) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -86,4 +86,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002196.lua b/unofficial/c511002196.lua index 861c564906..f763e8dcb1 100644 --- a/unofficial/c511002196.lua +++ b/unofficial/c511002196.lua @@ -31,4 +31,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(tp,cg) Duel.ShuffleDeck(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002197.lua b/unofficial/c511002197.lua index 5fb03c94b7..94f41c56fd 100644 --- a/unofficial/c511002197.lua +++ b/unofficial/c511002197.lua @@ -33,4 +33,4 @@ function s.filter(c) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002198.lua b/unofficial/c511002198.lua index b6472177be..104e9991f0 100644 --- a/unofficial/c511002198.lua +++ b/unofficial/c511002198.lua @@ -36,4 +36,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002199.lua b/unofficial/c511002199.lua index ac267c933d..cb40424c84 100644 --- a/unofficial/c511002199.lua +++ b/unofficial/c511002199.lua @@ -65,4 +65,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local dg=g:Filter(Card.IsControler,nil,1-tp) local atk=dg:GetSum(Card.GetAttack) Duel.Damage(1-tp,atk,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002201.lua b/unofficial/c511002201.lua index 812859c064..efb16a9da4 100644 --- a/unofficial/c511002201.lua +++ b/unofficial/c511002201.lua @@ -25,4 +25,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.repval(e,c) return c:IsOnField() and c:IsReason(REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002202.lua b/unofficial/c511002202.lua index cba737ac9d..6a8d9c4da0 100644 --- a/unofficial/c511002202.lua +++ b/unofficial/c511002202.lua @@ -59,4 +59,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002203.lua b/unofficial/c511002203.lua index 45f2da984b..b67c28bbf4 100644 --- a/unofficial/c511002203.lua +++ b/unofficial/c511002203.lua @@ -55,4 +55,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511002204.lua b/unofficial/c511002204.lua index b000c1eedf..b0a25987c3 100644 --- a/unofficial/c511002204.lua +++ b/unofficial/c511002204.lua @@ -29,4 +29,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002205.lua b/unofficial/c511002205.lua index b7fa4fb803..17d6f50557 100644 --- a/unofficial/c511002205.lua +++ b/unofficial/c511002205.lua @@ -10,8 +10,8 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x26) + return c:IsFaceup() and c:IsSetCard(SET_MORPHTRONIC) end function s.value(e,c) return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_ONFIELD,0,nil)*300 -end +end \ No newline at end of file diff --git a/unofficial/c511002206.lua b/unofficial/c511002206.lua index 5f7a59f0f5..25022b1f66 100644 --- a/unofficial/c511002206.lua +++ b/unofficial/c511002206.lua @@ -36,4 +36,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002207.lua b/unofficial/c511002207.lua index 95514f72fb..3778da5a5f 100644 --- a/unofficial/c511002207.lua +++ b/unofficial/c511002207.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc2:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002208.lua b/unofficial/c511002208.lua index 322e7892d9..4f7bf23444 100644 --- a/unofficial/c511002208.lua +++ b/unofficial/c511002208.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToBattle() then Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002209.lua b/unofficial/c511002209.lua index 23c0915f97..ce2b6e196d 100644 --- a/unofficial/c511002209.lua +++ b/unofficial/c511002209.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) Duel.ChangeAttackTarget(tc,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511002210.lua b/unofficial/c511002210.lua index f655b91090..3e83769ddf 100644 --- a/unofficial/c511002210.lua +++ b/unofficial/c511002210.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsPosition(POS_FACEUP_ATTACK) and c:IsSetCard(0x26) + return c:IsPosition(POS_FACEUP_ATTACK) and c:IsSetCard(SET_MORPHTRONIC) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,2,nil) @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002211.lua b/unofficial/c511002211.lua index d2d731e07f..1a1b48632c 100644 --- a/unofficial/c511002211.lua +++ b/unofficial/c511002211.lua @@ -43,7 +43,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.handcon(e) - local g=Duel.GetMatchingGroup(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,0x33) + local g=Duel.GetMatchingGroup(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_GRAVE,0,nil,SET_BLACKWING) local ct=g:GetClassCount(Card.GetCode) return ct>=4 -end +end \ No newline at end of file diff --git a/unofficial/c511002214.lua b/unofficial/c511002214.lua index acdeef6d79..96d153fc48 100644 --- a/unofficial/c511002214.lua +++ b/unofficial/c511002214.lua @@ -78,4 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002215.lua b/unofficial/c511002215.lua index b8e13e3d82..d140dc8f83 100644 --- a/unofficial/c511002215.lua +++ b/unofficial/c511002215.lua @@ -32,4 +32,4 @@ function s.refcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511002216.lua b/unofficial/c511002216.lua index a2b47c0fb5..84c2e3c4f1 100644 --- a/unofficial/c511002216.lua +++ b/unofficial/c511002216.lua @@ -17,7 +17,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetAttacker() if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end e:SetLabelObject(tc) - return tc and tc:IsFaceup() and tc:IsSetCard(0x123) and tc:GetBattleTarget() + return tc and tc:IsFaceup() and tc:IsSetCard(SET_ROSE) and tc:GetBattleTarget() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tc=e:GetLabelObject() @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk) local e2=e1:Clone() e2:SetCode(EFFECT_UPDATE_DEFENSE) tc:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002217.lua b/unofficial/c511002217.lua index a845f24509..1d68b66a6b 100644 --- a/unofficial/c511002217.lua +++ b/unofficial/c511002217.lua @@ -56,4 +56,4 @@ end function s.clear(e,tp,eg,ep,ev,re,r,rp) s[0]=0 s[1]=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002219.lua b/unofficial/c511002219.lua index 092b24bdb8..a2f0a790a3 100644 --- a/unofficial/c511002219.lua +++ b/unofficial/c511002219.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Synchro.Send=2 Duel.SynchroSummon(tp,tc,nil,mat) end -end +end \ No newline at end of file diff --git a/unofficial/c511002220.lua b/unofficial/c511002220.lua index 9a3796e14f..e8d04c7dac 100644 --- a/unofficial/c511002220.lua +++ b/unofficial/c511002220.lua @@ -27,5 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,e:GetHandler()) end -end - +end \ No newline at end of file diff --git a/unofficial/c511002221.lua b/unofficial/c511002221.lua index a381036988..73d25701d7 100644 --- a/unofficial/c511002221.lua +++ b/unofficial/c511002221.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if sg:IsExists(s.damfilter,1,nil,1-tp) then Duel.Damage(1-tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002222.lua b/unofficial/c511002222.lua index 2ec6161926..15d3b7201c 100644 --- a/unofficial/c511002222.lua +++ b/unofficial/c511002222.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002223.lua b/unofficial/c511002223.lua index d79f312cf7..597135f428 100644 --- a/unofficial/c511002223.lua +++ b/unofficial/c511002223.lua @@ -29,4 +29,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002224.lua b/unofficial/c511002224.lua index 91fab679b7..77af415359 100644 --- a/unofficial/c511002224.lua +++ b/unofficial/c511002224.lua @@ -29,4 +29,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not ec then return end local dam=ec:GetLevel()*100 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002225.lua b/unofficial/c511002225.lua index 883a0f4f3e..951b67185d 100644 --- a/unofficial/c511002225.lua +++ b/unofficial/c511002225.lua @@ -5,4 +5,4 @@ function s.initial_effect(c) c:EnableReviveLimit() --Fusion Material Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsRace,RACE_MACHINE),aux.FilterBoolFunctionEx(Card.IsRace,RACE_PYRO)) -end +end \ No newline at end of file diff --git a/unofficial/c511002226.lua b/unofficial/c511002226.lua index b3a562bbce..e00fd0c82a 100644 --- a/unofficial/c511002226.lua +++ b/unofficial/c511002226.lua @@ -4,4 +4,4 @@ function s.initial_effect(c) --fusion material c:EnableReviveLimit() Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsRace,RACE_MACHINE),aux.FilterBoolFunctionEx(Card.IsRace,RACE_PYRO)) -end +end \ No newline at end of file diff --git a/unofficial/c511002227.lua b/unofficial/c511002227.lua index 5f4d288772..40f02bab68 100644 --- a/unofficial/c511002227.lua +++ b/unofficial/c511002227.lua @@ -43,4 +43,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002228.lua b/unofficial/c511002228.lua index 65be8b0899..e4333c9ca9 100644 --- a/unofficial/c511002228.lua +++ b/unofficial/c511002228.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UPDATE_ATTACK) e3:SetRange(LOCATION_MZONE) e3:SetTargetRange(LOCATION_MZONE,0) - e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xad)) + e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_FRIGHTFUR)) e3:SetValue(s.atkval) c:RegisterEffect(e3) --effect gain @@ -33,16 +33,16 @@ function s.initial_effect(c) end s.material_setcode={0xc3,0xa9,0xad} function s.mfilter1(c,fc,sumtype,tp) - return c:IsSetCard(0xad,fc,sumtype,tp) and c:IsLevelAbove(6) + return c:IsSetCard(SET_FRIGHTFUR,fc,sumtype,tp) and c:IsLevelAbove(6) end function s.mfilter2(c,fc,sumtype,tp) - return c:IsSetCard(0xa9,fc,sumtype,tp) or c:IsSetCard(0xc3,fc,sumtype,tp) + return c:IsSetCard(SET_FLUFFAL,fc,sumtype,tp) or c:IsSetCard(SET_EDGE_IMP,fc,sumtype,tp) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return (e:GetHandler():GetSummonType()&SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION end function s.spfilter(c,e,tp) - return c:IsSetCard(0xad) and c:IsMonster() and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_FRIGHTFUR) and c:IsMonster() and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.spfilter(chkc,e,tp) end @@ -59,7 +59,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.atkfilter(c) - return c:IsFaceup() and (c:IsSetCard(0xa9) or c:IsSetCard(0xad)) + return c:IsFaceup() and (c:IsSetCard(SET_FLUFFAL) or c:IsSetCard(SET_FRIGHTFUR)) end function s.atkval(e,c) return Duel.GetMatchingGroupCount(s.atkfilter,c:GetControler(),LOCATION_MZONE,0,nil)*400 @@ -81,4 +81,4 @@ function s.efop(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) rc:RegisterEffect(e2,true) -end +end \ No newline at end of file diff --git a/unofficial/c511002229.lua b/unofficial/c511002229.lua index 87c8346502..e82e2a7b77 100644 --- a/unofficial/c511002229.lua +++ b/unofficial/c511002229.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002231.lua b/unofficial/c511002231.lua index 16a8afc7e9..d9401a6bfb 100644 --- a/unofficial/c511002231.lua +++ b/unofficial/c511002231.lua @@ -15,4 +15,4 @@ function s.condtion(e) local d=Duel.GetAttackTarget() local ph=Duel.GetCurrentPhase() return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and a and a==e:GetHandler() and d and d:IsControler(1-e:GetHandlerPlayer()) -end +end \ No newline at end of file diff --git a/unofficial/c511002232.lua b/unofficial/c511002232.lua index 6772a7a1b5..e00a3f7f9b 100644 --- a/unofficial/c511002232.lua +++ b/unofficial/c511002232.lua @@ -19,4 +19,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-800) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002233.lua b/unofficial/c511002233.lua index 932892b264..176e07130e 100644 --- a/unofficial/c511002233.lua +++ b/unofficial/c511002233.lua @@ -21,4 +21,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002234.lua b/unofficial/c511002234.lua index b41125f78e..a1e91eeb9e 100644 --- a/unofficial/c511002234.lua +++ b/unofficial/c511002234.lua @@ -32,4 +32,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002235.lua b/unofficial/c511002235.lua index 481bc75f4f..5a606d4e8c 100644 --- a/unofficial/c511002235.lua +++ b/unofficial/c511002235.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(-def) e2:SetReset(RESET_EVENT+RESETS_STANDARD) bc:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002236.lua b/unofficial/c511002236.lua index 72e64f37cd..c5a44b4b92 100644 --- a/unofficial/c511002236.lua +++ b/unofficial/c511002236.lua @@ -52,4 +52,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return e:GetLabelObject()==c -end +end \ No newline at end of file diff --git a/unofficial/c511002237.lua b/unofficial/c511002237.lua index 4800952de2..3487a4cd7e 100644 --- a/unofficial/c511002237.lua +++ b/unofficial/c511002237.lua @@ -9,4 +9,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_DIRECT_ATTACK) e2:SetTarget(aux.TargetBoolFunction(Card.IsCode,511002235)) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002238.lua b/unofficial/c511002238.lua index a70cf2f35f..ad2ad6430a 100644 --- a/unofficial/c511002238.lua +++ b/unofficial/c511002238.lua @@ -25,4 +25,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002239.lua b/unofficial/c511002239.lua index d266953ad5..2fe41f092b 100644 --- a/unofficial/c511002239.lua +++ b/unofficial/c511002239.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) Duel.HintSelection(g) Duel.ChangePosition(tc,0,0,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511002241.lua b/unofficial/c511002241.lua index f0214c430e..832cc937a0 100644 --- a/unofficial/c511002241.lua +++ b/unofficial/c511002241.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(tp,cg) Duel.ShuffleDeck(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002242.lua b/unofficial/c511002242.lua index 31e2abdf52..4741f70044 100644 --- a/unofficial/c511002242.lua +++ b/unofficial/c511002242.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.tgfilter(c) - return c:IsSetCard(0x16) and c:IsMonster() and c:IsAbleToGrave() + return c:IsSetCard(SET_ROID) and c:IsMonster() and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(tp,cg) Duel.ShuffleDeck(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002243.lua b/unofficial/c511002243.lua index 48d368e30e..11c1895dae 100644 --- a/unofficial/c511002243.lua +++ b/unofficial/c511002243.lua @@ -26,4 +26,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002245.lua b/unofficial/c511002245.lua index 49e6a57340..c5da9e7a00 100644 --- a/unofficial/c511002245.lua +++ b/unofficial/c511002245.lua @@ -24,7 +24,7 @@ function s.splimit(e,se,sp,st) return not e:GetHandler():IsLocation(LOCATION_EXTRA) end function s.contactfilter(tp) - return Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + return Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) end function s.contactop(g) Duel.Remove(g,POS_FACEUP,REASON_COST+REASON_MATERIAL) @@ -44,4 +44,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002246.lua b/unofficial/c511002246.lua index 477503908f..dbe327e5e0 100644 --- a/unofficial/c511002246.lua +++ b/unofficial/c511002246.lua @@ -40,4 +40,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002247.lua b/unofficial/c511002247.lua index 5b6b72953f..9311bb1378 100644 --- a/unofficial/c511002247.lua +++ b/unofficial/c511002247.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.SendtoHand(g,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002248.lua b/unofficial/c511002248.lua index 43eb7a93fb..282c87c23e 100644 --- a/unofficial/c511002248.lua +++ b/unofficial/c511002248.lua @@ -12,13 +12,13 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x16) + return c:IsFaceup() and c:IsSetCard(SET_ROID) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil) end function s.filter(c,e,tp) - return c:IsSetCard(0x16) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ROID) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002249.lua b/unofficial/c511002249.lua index 14ce992180..7c0fcd797a 100644 --- a/unofficial/c511002249.lua +++ b/unofficial/c511002249.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002250.lua b/unofficial/c511002250.lua index 8ebf8deee4..98a9e454a1 100644 --- a/unofficial/c511002250.lua +++ b/unofficial/c511002250.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(300) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002251.lua b/unofficial/c511002251.lua index 267cc168c1..d216ec341e 100644 --- a/unofficial/c511002251.lua +++ b/unofficial/c511002251.lua @@ -79,4 +79,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) e:GetLabelObject():SetLabel(0) -end +end \ No newline at end of file diff --git a/unofficial/c511002252.lua b/unofficial/c511002252.lua index 4b9eac129d..cea773df57 100644 --- a/unofficial/c511002252.lua +++ b/unofficial/c511002252.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002253.lua b/unofficial/c511002253.lua index c9ecaacab4..b8fb056432 100644 --- a/unofficial/c511002253.lua +++ b/unofficial/c511002253.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsSetCard(0x16) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_ROID) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_DECK,0,1,nil) end @@ -21,7 +21,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.filter(c,tp) - return c:IsSetCard(0x16) and c:IsPreviousControler(tp) and c:IsControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) + return c:IsSetCard(SET_ROID) and c:IsPreviousControler(tp) and c:IsControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local g=eg:Filter(s.filter,nil,tp) @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.MoveToField(tc,tp,tp,LOCATION_MZONE,tc:GetPreviousPosition(),true) end -end +end \ No newline at end of file diff --git a/unofficial/c511002254.lua b/unofficial/c511002254.lua index e19ba7bcc2..c37158eef5 100644 --- a/unofficial/c511002254.lua +++ b/unofficial/c511002254.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002256.lua b/unofficial/c511002256.lua index 8642e95591..ec843eb2ff 100644 --- a/unofficial/c511002256.lua +++ b/unofficial/c511002256.lua @@ -23,14 +23,14 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002260.lua b/unofficial/c511002260.lua index 30b5e88741..a1c632699e 100644 --- a/unofficial/c511002260.lua +++ b/unofficial/c511002260.lua @@ -45,4 +45,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.cttg(e,c) return s.filter(c) -end +end \ No newline at end of file diff --git a/unofficial/c511002261.lua b/unofficial/c511002261.lua index 9abcf2bf61..12a395d964 100644 --- a/unofficial/c511002261.lua +++ b/unofficial/c511002261.lua @@ -32,4 +32,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.GetControl(tc,tp,PHASE_END,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002262.lua b/unofficial/c511002262.lua index fdad04044f..2056867a0f 100644 --- a/unofficial/c511002262.lua +++ b/unofficial/c511002262.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002263.lua b/unofficial/c511002263.lua index 748ee59442..2e876770cf 100644 --- a/unofficial/c511002263.lua +++ b/unofficial/c511002263.lua @@ -40,4 +40,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,ct,ct,nil) Duel.HintSelection(sg) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002266.lua b/unofficial/c511002266.lua index 85d55efe16..dc6867d52a 100644 --- a/unofficial/c511002266.lua +++ b/unofficial/c511002266.lua @@ -16,4 +16,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_CHANGE_RACE) e2:SetValue(function() return RACE_YOKAI end) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002267.lua b/unofficial/c511002267.lua index 7a9a22b14f..d20c442ce7 100644 --- a/unofficial/c511002267.lua +++ b/unofficial/c511002267.lua @@ -71,4 +71,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002268.lua b/unofficial/c511002268.lua index fc2106c6aa..4f9654aea2 100644 --- a/unofficial/c511002268.lua +++ b/unofficial/c511002268.lua @@ -41,4 +41,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002269.lua b/unofficial/c511002269.lua index f7d61431b1..4702b4ce0f 100644 --- a/unofficial/c511002269.lua +++ b/unofficial/c511002269.lua @@ -12,4 +12,4 @@ function s.fil(c) end function s.fextra(e,tp,mg) return Duel.GetMatchingGroup(s.fil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002270.lua b/unofficial/c511002270.lua index 3a7b9bde61..7029bfc9ec 100644 --- a/unofficial/c511002270.lua +++ b/unofficial/c511002270.lua @@ -29,4 +29,4 @@ function s.tg(e,c) end end return true -end +end \ No newline at end of file diff --git a/unofficial/c511002271.lua b/unofficial/c511002271.lua index 045ff56d8c..0fdb3fa078 100644 --- a/unofficial/c511002271.lua +++ b/unofficial/c511002271.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002272.lua b/unofficial/c511002272.lua index 435798094d..021dad6413 100644 --- a/unofficial/c511002272.lua +++ b/unofficial/c511002272.lua @@ -30,4 +30,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToBattle() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002273.lua b/unofficial/c511002273.lua index aa5386d4ce..cb72ebb47b 100644 --- a/unofficial/c511002273.lua +++ b/unofficial/c511002273.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002274.lua b/unofficial/c511002274.lua index 21738717fa..3cfb3ea5e3 100644 --- a/unofficial/c511002274.lua +++ b/unofficial/c511002274.lua @@ -32,8 +32,8 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateSummon(eg) Duel.Destroy(eg,REASON_EFFECT) - local rg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) - local spg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp) + local rg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) + local spg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp) if Duel.GetLocationCount(tp,LOCATION_MZONE)>-5 and #rg>4 and aux.SelectUnselectGroup(rg,e,tp,5,5,aux.ChkfMMZ(1),0) and #spg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then Duel.BreakEffect() @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sp=spg:Select(tp,1,1,nil) Duel.SpecialSummon(sp,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002275.lua b/unofficial/c511002275.lua index c53765dfa0..07f52b5dde 100644 --- a/unofficial/c511002275.lua +++ b/unofficial/c511002275.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002276.lua b/unofficial/c511002276.lua index 4a3f135677..67d2bbf5d8 100644 --- a/unofficial/c511002276.lua +++ b/unofficial/c511002276.lua @@ -90,4 +90,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002277.lua b/unofficial/c511002277.lua index e453a3cb10..33c1b3ef25 100644 --- a/unofficial/c511002277.lua +++ b/unofficial/c511002277.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002279.lua b/unofficial/c511002279.lua index 0aab826243..efa0e4ee7d 100644 --- a/unofficial/c511002279.lua +++ b/unofficial/c511002279.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(g,REASON_COST) Duel.NegateAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c511002280.lua b/unofficial/c511002280.lua index a268a88243..eb33a6e85e 100644 --- a/unofficial/c511002280.lua +++ b/unofficial/c511002280.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002281.lua b/unofficial/c511002281.lua index c277d60383..e957d18996 100644 --- a/unofficial/c511002281.lua +++ b/unofficial/c511002281.lua @@ -21,4 +21,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp,chk) local g=eg:Filter(Card.IsControler,nil,1-tp) Duel.NegateSummon(eg) -end +end \ No newline at end of file diff --git a/unofficial/c511002282.lua b/unofficial/c511002282.lua index 877b084265..43a9ed8a54 100644 --- a/unofficial/c511002282.lua +++ b/unofficial/c511002282.lua @@ -23,4 +23,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangePosition(g,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511002284.lua b/unofficial/c511002284.lua index 0a1ff94208..f0b4d18df9 100644 --- a/unofficial/c511002284.lua +++ b/unofficial/c511002284.lua @@ -26,4 +26,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) Duel.Damage(e:GetHandlerPlayer(),d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002285.lua b/unofficial/c511002285.lua index 37d9e9aa65..8bfe322f30 100644 --- a/unofficial/c511002285.lua +++ b/unofficial/c511002285.lua @@ -28,4 +28,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() e2:SetCode(EFFECT_UPDATE_DEFENSE) bc:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002286.lua b/unofficial/c511002286.lua index 5f5a1ec382..e0560f536a 100644 --- a/unofficial/c511002286.lua +++ b/unofficial/c511002286.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x93) + return c:IsFaceup() and c:IsSetCard(SET_CYBER) end function s.value(e,c) return Duel.GetMatchingGroupCount(s.filter,0,LOCATION_REMOVED,LOCATION_REMOVED,nil)*500 @@ -42,4 +42,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002287.lua b/unofficial/c511002287.lua index ee8beefdd0..40b94c6d2c 100644 --- a/unofficial/c511002287.lua +++ b/unofficial/c511002287.lua @@ -1,7 +1,7 @@ --Cyber Roar local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x93),nil,nil,s.tg,s.op) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_CYBER),nil,nil,s.tg,s.op) --atk up local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_EQUIP) @@ -22,4 +22,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsCode(CARD_CYBER_DRAGON) then Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002288.lua b/unofficial/c511002288.lua index 3d608ccaf0..7e54968fa0 100644 --- a/unofficial/c511002288.lua +++ b/unofficial/c511002288.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c) - return c:IsLevelAbove(8) and c:IsSetCard(0x93) and c:IsAbleToHand() + return c:IsLevelAbove(8) and c:IsSetCard(SET_CYBER) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -46,4 +46,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002289.lua b/unofficial/c511002289.lua index e9b15b8cc1..5dad9dcd70 100644 --- a/unofficial/c511002289.lua +++ b/unofficial/c511002289.lua @@ -16,4 +16,4 @@ function s.filter(c) end function s.con(e) return Duel.IsExistingMatchingCard(s.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511002290.lua b/unofficial/c511002290.lua index 25b38f689e..98b9a81725 100644 --- a/unofficial/c511002290.lua +++ b/unofficial/c511002290.lua @@ -18,4 +18,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002291.lua b/unofficial/c511002291.lua index 1848714394..de40a02be7 100644 --- a/unofficial/c511002291.lua +++ b/unofficial/c511002291.lua @@ -32,4 +32,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002292.lua b/unofficial/c511002292.lua index 151bd8d639..327ea7b871 100644 --- a/unofficial/c511002292.lua +++ b/unofficial/c511002292.lua @@ -30,4 +30,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002293.lua b/unofficial/c511002293.lua index d67ec481fc..d5ad6229d3 100644 --- a/unofficial/c511002293.lua +++ b/unofficial/c511002293.lua @@ -62,4 +62,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) s.equipop(c,e,tp,tc) else Duel.SendtoGrave(tc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002294.lua b/unofficial/c511002294.lua index 8e6ef82b2c..5dc6bedc2d 100644 --- a/unofficial/c511002294.lua +++ b/unofficial/c511002294.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.IsPlayerCanDraw(p,1) and Duel.SelectYesNo(p,aux.Stringid(22093873,0)) then Duel.Draw(p,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002295.lua b/unofficial/c511002295.lua index 9c99ea7b33..0867f6b719 100644 --- a/unofficial/c511002295.lua +++ b/unofficial/c511002295.lua @@ -17,4 +17,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) e1:SetTargetRange(0,LOCATION_HAND) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002296.lua b/unofficial/c511002296.lua index e1d124ed00..da8a4e2793 100644 --- a/unofficial/c511002296.lua +++ b/unofficial/c511002296.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) e2:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002297.lua b/unofficial/c511002297.lua index 05c2d6d051..2d16bf30d4 100644 --- a/unofficial/c511002297.lua +++ b/unofficial/c511002297.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002298.lua b/unofficial/c511002298.lua index 504996b337..dfcefad233 100644 --- a/unofficial/c511002298.lua +++ b/unofficial/c511002298.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002299.lua b/unofficial/c511002299.lua index 0bdccad7ad..2e1d6e730f 100644 --- a/unofficial/c511002299.lua +++ b/unofficial/c511002299.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002302.lua b/unofficial/c511002302.lua index 4326830363..5a63fa2c54 100644 --- a/unofficial/c511002302.lua +++ b/unofficial/c511002302.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002303.lua b/unofficial/c511002303.lua index a82a114e8a..3f310bfa93 100644 --- a/unofficial/c511002303.lua +++ b/unofficial/c511002303.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002304.lua b/unofficial/c511002304.lua index 6dd63c0b8e..b9f07a29bc 100644 --- a/unofficial/c511002304.lua +++ b/unofficial/c511002304.lua @@ -19,4 +19,4 @@ end s.listed_names={511002301} function s.target(e,c) return c:IsCode(511002301) and (c:GetSummonType()&SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL -end +end \ No newline at end of file diff --git a/unofficial/c511002305.lua b/unofficial/c511002305.lua index 49967f3c4c..b0e7a71a87 100644 --- a/unofficial/c511002305.lua +++ b/unofficial/c511002305.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002306.lua b/unofficial/c511002306.lua index 8f76921776..755664ee59 100644 --- a/unofficial/c511002306.lua +++ b/unofficial/c511002306.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002307.lua b/unofficial/c511002307.lua index 1146811c0a..f359d944c1 100644 --- a/unofficial/c511002307.lua +++ b/unofficial/c511002307.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002308.lua b/unofficial/c511002308.lua index a519b5ff63..e55331a455 100644 --- a/unofficial/c511002308.lua +++ b/unofficial/c511002308.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK,0,1,63,nil,tc:GetCode()) Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002309.lua b/unofficial/c511002309.lua index 7278351895..4caa7c2e73 100644 --- a/unofficial/c511002309.lua +++ b/unofficial/c511002309.lua @@ -26,4 +26,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002310.lua b/unofficial/c511002310.lua index 20634115ed..88943c7b23 100644 --- a/unofficial/c511002310.lua +++ b/unofficial/c511002310.lua @@ -36,4 +36,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002312.lua b/unofficial/c511002312.lua index c0cd284885..780b32e60c 100644 --- a/unofficial/c511002312.lua +++ b/unofficial/c511002312.lua @@ -19,4 +19,4 @@ function s.atkfilter(c) end function s.atkval(e,c) return Duel.GetMatchingGroupCount(s.atkfilter,c:GetControler(),LOCATION_MZONE,0,nil)*400 -end +end \ No newline at end of file diff --git a/unofficial/c511002315.lua b/unofficial/c511002315.lua index 0b518ce68f..024ba216c8 100644 --- a/unofficial/c511002315.lua +++ b/unofficial/c511002315.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_FAIRY)) e1:SetValue(500) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002316.lua b/unofficial/c511002316.lua index 4b1dcfbdfb..d59e571526 100644 --- a/unofficial/c511002316.lua +++ b/unofficial/c511002316.lua @@ -14,4 +14,4 @@ function s.filter(c) end function s.con(e) return not Duel.IsExistingMatchingCard(Card.IsAttackPos,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002317.lua b/unofficial/c511002317.lua index 51f9456bff..c51c0e0039 100644 --- a/unofficial/c511002317.lua +++ b/unofficial/c511002317.lua @@ -15,4 +15,4 @@ function s.initial_effect(c) e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_FAIRY)) e2:SetValue(200) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002318.lua b/unofficial/c511002318.lua index e28184e042..f0ced89ec7 100644 --- a/unofficial/c511002318.lua +++ b/unofficial/c511002318.lua @@ -27,4 +27,4 @@ function s.initial_effect(c) end function s.target(e,c) return c:IsFaceup() and not c:IsRace(RACE_FAIRY) -end +end \ No newline at end of file diff --git a/unofficial/c511002319.lua b/unofficial/c511002319.lua index 5bffab1003..899827d4f7 100644 --- a/unofficial/c511002319.lua +++ b/unofficial/c511002319.lua @@ -31,4 +31,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002320.lua b/unofficial/c511002320.lua index 075e1a5384..c78bf7d4fd 100644 --- a/unofficial/c511002320.lua +++ b/unofficial/c511002320.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UPDATE_DEFENSE) tc:RegisterEffect(e2) end) -end +end \ No newline at end of file diff --git a/unofficial/c511002321.lua b/unofficial/c511002321.lua index c8a1c8b85a..40584c9928 100644 --- a/unofficial/c511002321.lua +++ b/unofficial/c511002321.lua @@ -33,15 +33,15 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_GRAVE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002322.lua b/unofficial/c511002322.lua index 6e1d8bf970..fdb910c7c5 100644 --- a/unofficial/c511002322.lua +++ b/unofficial/c511002322.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end Duel.MoveToField(tc,tp,tp,tc:IsType(TYPE_FIELD) and LOCATION_FZONE or LOCATION_SZONE,POS_FACEUP,true) -end +end \ No newline at end of file diff --git a/unofficial/c511002323.lua b/unofficial/c511002323.lua index 0b3551404c..2ef49a7a81 100644 --- a/unofficial/c511002323.lua +++ b/unofficial/c511002323.lua @@ -30,7 +30,7 @@ function s.spfilter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local chkcost=e:GetLabel()==1 and true or false - local rg=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if chk==0 then if chkcost then @@ -59,4 +59,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002324.lua b/unofficial/c511002324.lua index c9485b53b7..7ebed3a0e8 100644 --- a/unofficial/c511002324.lua +++ b/unofficial/c511002324.lua @@ -26,7 +26,7 @@ function s.rescon(sg,e,tp,mg) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local chkcost=e:GetLabel()==1 and true or false - local rg=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if chk==0 then if chkcost then @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002325.lua b/unofficial/c511002325.lua index fc7388a3ae..a236e1c3c7 100644 --- a/unofficial/c511002325.lua +++ b/unofficial/c511002325.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002326.lua b/unofficial/c511002326.lua index 241b1e180c..073a3fb333 100644 --- a/unofficial/c511002326.lua +++ b/unofficial/c511002326.lua @@ -36,4 +36,4 @@ function s.damval(e,re,val,r,rp,rc) else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511002327.lua b/unofficial/c511002327.lua index a33874bdde..93832f1cbc 100644 --- a/unofficial/c511002327.lua +++ b/unofficial/c511002327.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:CanAttack() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002328.lua b/unofficial/c511002328.lua index ec787071d6..5a34b13d70 100644 --- a/unofficial/c511002328.lua +++ b/unofficial/c511002328.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002329.lua b/unofficial/c511002329.lua index c2c4525604..3567d3aa2c 100644 --- a/unofficial/c511002329.lua +++ b/unofficial/c511002329.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetAttackTarget()==nil then Duel.NegateAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c511002332.lua b/unofficial/c511002332.lua index 2241bd4ae6..e6e56688c4 100644 --- a/unofficial/c511002332.lua +++ b/unofficial/c511002332.lua @@ -15,4 +15,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511002333.lua b/unofficial/c511002333.lua index bd29841e2e..e51d5ea37b 100644 --- a/unofficial/c511002333.lua +++ b/unofficial/c511002333.lua @@ -18,4 +18,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002334.lua b/unofficial/c511002334.lua index 2b179c1044..a88382041b 100644 --- a/unofficial/c511002334.lua +++ b/unofficial/c511002334.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_CANNOT_ATTACK) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002335.lua b/unofficial/c511002335.lua index dc2949df6d..ff20bae01d 100644 --- a/unofficial/c511002335.lua +++ b/unofficial/c511002335.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002337.lua b/unofficial/c511002337.lua index 575124a995..424bc56ce9 100644 --- a/unofficial/c511002337.lua +++ b/unofficial/c511002337.lua @@ -15,4 +15,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetValue(300) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002338.lua b/unofficial/c511002338.lua index 8efc0bafd1..85094087eb 100644 --- a/unofficial/c511002338.lua +++ b/unofficial/c511002338.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002339.lua b/unofficial/c511002339.lua index fe1cc5c882..a41b4c65da 100644 --- a/unofficial/c511002339.lua +++ b/unofficial/c511002339.lua @@ -11,4 +11,4 @@ function s.initial_effect(c) end function s.valcon(e,re,r,rp) return (r&REASON_BATTLE)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002340.lua b/unofficial/c511002340.lua index 35791fa808..abf89dc558 100644 --- a/unofficial/c511002340.lua +++ b/unofficial/c511002340.lua @@ -30,4 +30,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002343.lua b/unofficial/c511002343.lua index 8cc3c12a82..1a7da2d6b7 100644 --- a/unofficial/c511002343.lua +++ b/unofficial/c511002343.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002344.lua b/unofficial/c511002344.lua index bbc7a9234f..2d620a7049 100644 --- a/unofficial/c511002344.lua +++ b/unofficial/c511002344.lua @@ -19,4 +19,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002345.lua b/unofficial/c511002345.lua index 9fc5fd1504..cfb457b6f6 100644 --- a/unofficial/c511002345.lua +++ b/unofficial/c511002345.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetValue(-500) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511002347.lua b/unofficial/c511002347.lua index 4f065ff865..cb1da907ac 100644 --- a/unofficial/c511002347.lua +++ b/unofficial/c511002347.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,math.floor(Duel.GetLP(tp)/2),REASON_EFFECT) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002348.lua b/unofficial/c511002348.lua index 8d9236087b..3f31dd72a3 100644 --- a/unofficial/c511002348.lua +++ b/unofficial/c511002348.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(tc,REASON_EFFECT)==0 then return end Duel.Damage(1-tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002349.lua b/unofficial/c511002349.lua index 61e1223f64..2ce179fa89 100644 --- a/unofficial/c511002349.lua +++ b/unofficial/c511002349.lua @@ -18,4 +18,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002350.lua b/unofficial/c511002350.lua index 63018eb38d..cb72bac348 100644 --- a/unofficial/c511002350.lua +++ b/unofficial/c511002350.lua @@ -10,4 +10,4 @@ end s.listed_names={CARD_UMI} function s.dircon(e) return Duel.IsEnvironment(CARD_UMI) -end +end \ No newline at end of file diff --git a/unofficial/c511002351.lua b/unofficial/c511002351.lua index 33629542df..8cfc1724b4 100644 --- a/unofficial/c511002351.lua +++ b/unofficial/c511002351.lua @@ -22,4 +22,4 @@ end function s.retop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(nil,0,LOCATION_REMOVED,LOCATION_REMOVED,nil) Duel.SendtoGrave(g,REASON_EFFECT+REASON_RETURN) -end +end \ No newline at end of file diff --git a/unofficial/c511002352.lua b/unofficial/c511002352.lua index e77c815f9c..c5014b31e6 100644 --- a/unofficial/c511002352.lua +++ b/unofficial/c511002352.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x3008),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_EARTH)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_ELEMENTAL_HERO),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_EARTH)) --atk up local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(16304628,0)) @@ -45,4 +45,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002353.lua b/unofficial/c511002353.lua index 66413d70d0..1b12c04df0 100644 --- a/unofficial/c511002353.lua +++ b/unofficial/c511002353.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x3008),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_FIRE)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_ELEMENTAL_HERO),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_FIRE)) --atkup local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) @@ -51,4 +51,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,tp,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002354.lua b/unofficial/c511002354.lua index 4ac028e79d..a89174876f 100644 --- a/unofficial/c511002354.lua +++ b/unofficial/c511002354.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsSetCard(0x3008) and c:IsFaceup() + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsFaceup() end function s.filter(c) return c:IsFaceup() and (c:GetAttack()>0 or c:GetDefense()>0) @@ -53,4 +53,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-val) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002355.lua b/unofficial/c511002355.lua index 21fdd2571f..b88d8e3fe3 100644 --- a/unofficial/c511002355.lua +++ b/unofficial/c511002355.lua @@ -15,9 +15,9 @@ function s.cfilter(c) return c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local cg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,2,nil) + local cg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,2,nil) Duel.Remove(cg,POS_FACEUP,REASON_COST) end function s.activate(e,tp,eg,ep,ev,re,r,rp) @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_NO_EFFECT_DAMAGE) e2:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002356.lua b/unofficial/c511002356.lua index d51bd4715e..02576306ff 100644 --- a/unofficial/c511002356.lua +++ b/unofficial/c511002356.lua @@ -17,4 +17,4 @@ function s.value(e,c) else return 300 end -end +end \ No newline at end of file diff --git a/unofficial/c511002357.lua b/unofficial/c511002357.lua index b19859f1bb..3023deec53 100644 --- a/unofficial/c511002357.lua +++ b/unofficial/c511002357.lua @@ -13,21 +13,21 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetAttackTarget() - return d and d:IsSetCard(0x3008) + return d and d:IsSetCard(SET_ELEMENTAL_HERO) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local tg=Duel.GetAttacker() if chk==0 then return tg:IsOnField() end Duel.SetTargetCard(tg) - local dam=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,0x3008)*500 + local dam=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,SET_ELEMENTAL_HERO)*500 Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local dam=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,0x3008)*500 + local dam=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,SET_ELEMENTAL_HERO)*500 local tc=Duel.GetFirstTarget() if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:CanAttack() then if Duel.NegateAttack() then Duel.Damage(1-tp,dam,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002358.lua b/unofficial/c511002358.lua index 154d7f04c2..217efd7941 100644 --- a/unofficial/c511002358.lua +++ b/unofficial/c511002358.lua @@ -21,4 +21,4 @@ function s.indval(e,c) end function s.efilter(e,te) return te:IsActiveType(TYPE_MONSTER) and te:GetHandler():IsLevelAbove(4) -end +end \ No newline at end of file diff --git a/unofficial/c511002359.lua b/unofficial/c511002359.lua index f542b9c0ce..9ad5e3dabd 100644 --- a/unofficial/c511002359.lua +++ b/unofficial/c511002359.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002360.lua b/unofficial/c511002360.lua index fd298404e1..8cedef6e47 100644 --- a/unofficial/c511002360.lua +++ b/unofficial/c511002360.lua @@ -21,7 +21,7 @@ function s.cfilter(c) return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.spfilter(c,e,tp,sg) - return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsType(TYPE_FUSION) and c:IsSetCard(0x3008) + return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsType(TYPE_FUSION) and c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,sg,c)>0 end function s.rescon(sg,e,tp,mg) @@ -29,7 +29,7 @@ function s.rescon(sg,e,tp,mg) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local chkcost=e:GetLabel()==1 - local cg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local cg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if chk==0 then if chkcost then e:SetLabel(0) @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002361.lua b/unofficial/c511002361.lua index b2d0429395..69e0e37780 100644 --- a/unofficial/c511002361.lua +++ b/unofficial/c511002361.lua @@ -12,15 +12,15 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.costfilter(c) - return c:IsSetCard(0x3008) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local ct=Duel.GetMatchingGroupCount(s.filter,tp,0,LOCATION_ONFIELD,nil) - if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) and ct>0 end if ct>2 then ct=2 end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,ct,nil) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,ct,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) e:SetLabel(#g) end @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,ct,ct,nil) Duel.HintSelection(sg) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002362.lua b/unofficial/c511002362.lua index 5d74c7a913..769d07a437 100644 --- a/unofficial/c511002362.lua +++ b/unofficial/c511002362.lua @@ -39,10 +39,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.descon(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() - return Duel.GetTurnCount()~=e:GetLabel() and Duel.GetTurnPlayer()==tp and tc:GetFlagEffectLabel(51102362)==e:GetLabel() + return Duel.GetTurnCount()~=e:GetLabel() and Duel.IsTurnPlayer(tp) and tc:GetFlagEffectLabel(51102362)==e:GetLabel() end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Hint(HINT_CARD,0,id) Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002364.lua b/unofficial/c511002364.lua index ff3876fba4..83bb9847a5 100644 --- a/unofficial/c511002364.lua +++ b/unofficial/c511002364.lua @@ -15,7 +15,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return d and d:IsControler(tp) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x8) + return c:IsFaceup() and c:IsSetCard(SET_HERO) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,Duel.GetAttackTarget()) end @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002365.lua b/unofficial/c511002365.lua index 558f01e4b8..040f0eb2ca 100644 --- a/unofficial/c511002365.lua +++ b/unofficial/c511002365.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) e1:SetValue(e:GetLabel()) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002366.lua b/unofficial/c511002366.lua index 0b179f0887..bc2cdea531 100644 --- a/unofficial/c511002366.lua +++ b/unofficial/c511002366.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsSetCard(0x8) and c:IsLevelAbove(5) + return c:IsSetCard(SET_HERO) and c:IsLevelAbove(5) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil) @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:CanAttack() and not tc:IsStatus(STATUS_ATTACK_CANCELED) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002367.lua b/unofficial/c511002367.lua index b5fd018d87..6e43269951 100644 --- a/unofficial/c511002367.lua +++ b/unofficial/c511002367.lua @@ -19,7 +19,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.spfilter(c,e,tp) - return c:IsLevelBelow(3) and c:IsSetCard(0x3008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(3) and c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002368.lua b/unofficial/c511002368.lua index 8c70805e9a..386c2d3820 100644 --- a/unofficial/c511002368.lua +++ b/unofficial/c511002368.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002369.lua b/unofficial/c511002369.lua index 914e3bde99..21f6a99495 100644 --- a/unofficial/c511002369.lua +++ b/unofficial/c511002369.lua @@ -17,12 +17,12 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE end function s.tfilter(c,att,e,tp) - return c:IsSetCard(0xa008) and c:GetLevel()==8 + return c:IsSetCard(SET_MASKED_HERO) and c:GetLevel()==8 and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and c:IsAttribute(att) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.filter(c,e,tp) - return c:IsSetCard(0xa008) + return c:IsSetCard(SET_MASKED_HERO) and Duel.IsExistingMatchingCard(s.tfilter,tp,LOCATION_EXTRA,0,1,nil,c:GetAttribute(),e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,true,false,POS_FACEUP) sg:GetFirst():CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511002370.lua b/unofficial/c511002370.lua index 1ea9bdef17..007c2678be 100644 --- a/unofficial/c511002370.lua +++ b/unofficial/c511002370.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetCondition(aux.exccon) e1:SetTarget(s.target) e1:SetOperation(s.operation) @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002371.lua b/unofficial/c511002371.lua index 130509af77..d0d5d6b1c4 100644 --- a/unofficial/c511002371.lua +++ b/unofficial/c511002371.lua @@ -19,7 +19,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,#g,0,0) end function s.rfilter(c) - return c:IsLocation(LOCATION_DECK+LOCATION_EXTRA) and c:IsRace(RACE_YOKAI) and (c:GetPreviousPosition()&POS_FACEUP)~=0 + return c:IsLocation(LOCATION_DECK|LOCATION_EXTRA) and c:IsRace(RACE_YOKAI) and (c:GetPreviousPosition()&POS_FACEUP)~=0 end function s.tdop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) @@ -34,4 +34,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002372.lua b/unofficial/c511002372.lua index 97c0feaf04..d2d670c420 100644 --- a/unofficial/c511002372.lua +++ b/unofficial/c511002372.lua @@ -4,4 +4,4 @@ function s.initial_effect(c) --fusion material c:EnableReviveLimit() Fusion.AddProcMix(c,true,true,423705,51828629) -end +end \ No newline at end of file diff --git a/unofficial/c511002373.lua b/unofficial/c511002373.lua index 43951b306e..ab246deefa 100644 --- a/unofficial/c511002373.lua +++ b/unofficial/c511002373.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMixN(c,true,true,97165977,1,aux.FilterBoolFunction(Card.IsSetCard,0xdf),2) + Fusion.AddProcMixN(c,true,true,97165977,1,aux.FilterBoolFunction(Card.IsSetCard,SET_LUNALIGHT),2) --immune local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -43,6 +43,6 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetAttacker()==c and c:GetFlagEffect(id)==0 then local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) - c:RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,1) + c:RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002374.lua b/unofficial/c511002374.lua index be24e31388..3957e03d43 100644 --- a/unofficial/c511002374.lua +++ b/unofficial/c511002374.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) end s.listed_series={0xdf,0x46} function s.spfilter(c,e,tp) - return c:IsSetCard(0xdf) and c:IsType(TYPE_FUSION) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_LUNALIGHT) and c:IsType(TYPE_FUSION) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -75,7 +75,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end function s.thfilter(c) - return c:IsSetCard(0x46) and c:IsSpell() and c:IsAbleToHand() + return c:IsSetCard(SET_FUSION) and c:IsSpell() and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_GRAVE,0,1,nil) end @@ -88,4 +88,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002375.lua b/unofficial/c511002375.lua index b6eaaf9e87..23e324aa79 100644 --- a/unofficial/c511002375.lua +++ b/unofficial/c511002375.lua @@ -4,7 +4,7 @@ function s.initial_effect(c) --pendulum summon Pendulum.AddProcedure(c) --Fusion Summon - local params = {aux.FilterBoolFunction(Card.IsSetCard,0xdf),Fusion.IsMonsterFilter(Card.IsAbleToRemove),nil,Fusion.BanishMaterial} + local params = {aux.FilterBoolFunction(Card.IsSetCard,SET_LUNALIGHT),Fusion.IsMonsterFilter(Card.IsAbleToRemove),nil,Fusion.BanishMaterial} local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) @@ -29,7 +29,7 @@ function s.initial_effect(c) end s.listed_series={0x46,0xdf} function s.thfilter(c) - return c:IsSetCard(0x46) and c:IsSpell() and c:IsAbleToHand() + return c:IsSetCard(SET_FUSION) and c:IsSpell() and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end @@ -45,4 +45,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsPreviousLocation(LOCATION_HAND) -end +end \ No newline at end of file diff --git a/unofficial/c511002376.lua b/unofficial/c511002376.lua index cefb121273..7cef49b400 100644 --- a/unofficial/c511002376.lua +++ b/unofficial/c511002376.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002377.lua b/unofficial/c511002377.lua index b9b5716aa3..b5f0b83809 100644 --- a/unofficial/c511002377.lua +++ b/unofficial/c511002377.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002378.lua b/unofficial/c511002378.lua index da0f34e4cf..02af4b7207 100644 --- a/unofficial/c511002378.lua +++ b/unofficial/c511002378.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x13) + return c:IsFaceup() and c:IsSetCard(SET_MEKLORD) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil) @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil) Duel.Draw(p,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002379.lua b/unofficial/c511002379.lua index 3639eeda36..5c35566c3f 100644 --- a/unofficial/c511002379.lua +++ b/unofficial/c511002379.lua @@ -24,7 +24,7 @@ function s.atkcon(e) return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and Duel.GetAttackTarget() and Duel.GetAttacker() end function s.atktg(e,c) - return (c==Duel.GetAttacker() and c:IsSetCard(0x3008)) or (c==Duel.GetAttackTarget() and c:IsSetCard(0x3008)) + return (c==Duel.GetAttacker() and c:IsSetCard(SET_ELEMENTAL_HERO)) or (c==Duel.GetAttackTarget() and c:IsSetCard(SET_ELEMENTAL_HERO)) end function s.atkval(e,c) local d=Duel.GetAttackTarget() @@ -33,4 +33,4 @@ function s.atkval(e,c) s[0]=true return 1000 else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c511002380.lua b/unofficial/c511002380.lua index 0b5cf81a9f..d09d8aacf8 100644 --- a/unofficial/c511002380.lua +++ b/unofficial/c511002380.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) end s.listed_names={33103459} function s.filter(c,e,tp) - return c:IsSetCard(0x9f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PERFORMAPAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -90,4 +90,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) else Duel.ChangeBattleDamage(tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511002381.lua b/unofficial/c511002381.lua index 173b7a857a..5325ddf5f6 100644 --- a/unofficial/c511002381.lua +++ b/unofficial/c511002381.lua @@ -37,4 +37,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002382.lua b/unofficial/c511002382.lua index 6363b77201..9facb54b13 100644 --- a/unofficial/c511002382.lua +++ b/unofficial/c511002382.lua @@ -22,4 +22,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002383.lua b/unofficial/c511002383.lua index 8850bc4a32..e45643f0e5 100644 --- a/unofficial/c511002383.lua +++ b/unofficial/c511002383.lua @@ -33,4 +33,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002384.lua b/unofficial/c511002384.lua index 56a03327dd..340c3646c6 100644 --- a/unofficial/c511002384.lua +++ b/unofficial/c511002384.lua @@ -71,4 +71,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+0x57a0000) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002385.lua b/unofficial/c511002385.lua index 73aa89cd00..6507f2efd8 100644 --- a/unofficial/c511002385.lua +++ b/unofficial/c511002385.lua @@ -61,4 +61,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002386.lua b/unofficial/c511002386.lua index 828ebcc6db..85ea5eb2b1 100644 --- a/unofficial/c511002386.lua +++ b/unofficial/c511002386.lua @@ -34,4 +34,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002387.lua b/unofficial/c511002387.lua index f6bdd4113a..08649e5a73 100644 --- a/unofficial/c511002387.lua +++ b/unofficial/c511002387.lua @@ -69,4 +69,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if op then op(e,tp,eg,ep,ev,re,r,rp) end c:CancelToGrave() end -end +end \ No newline at end of file diff --git a/unofficial/c511002388.lua b/unofficial/c511002388.lua index 17d7a8c2b8..92e5d7e04a 100644 --- a/unofficial/c511002388.lua +++ b/unofficial/c511002388.lua @@ -55,4 +55,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002390.lua b/unofficial/c511002390.lua index 89400ae0a0..f5fc7e1a00 100644 --- a/unofficial/c511002390.lua +++ b/unofficial/c511002390.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002391.lua b/unofficial/c511002391.lua index 6300d4456c..6c728942b1 100644 --- a/unofficial/c511002391.lua +++ b/unofficial/c511002391.lua @@ -14,4 +14,4 @@ function s.initial_effect(c) e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e3:SetValue(1) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511002392.lua b/unofficial/c511002392.lua index 89fd705567..f94dc0d4ca 100644 --- a/unofficial/c511002392.lua +++ b/unofficial/c511002392.lua @@ -47,4 +47,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,tc,e:GetHandler()) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002393.lua b/unofficial/c511002393.lua index 4e9908b1ac..9d5f16a27b 100644 --- a/unofficial/c511002393.lua +++ b/unofficial/c511002393.lua @@ -34,4 +34,4 @@ function s.costchk(e,te_or_c,tp) end function s.costop(e,tp,eg,ep,ev,re,r,rp) Duel.PayLPCost(tp,500) -end +end \ No newline at end of file diff --git a/unofficial/c511002394.lua b/unofficial/c511002394.lua index 34374f9e24..8f32cb186c 100644 --- a/unofficial/c511002394.lua +++ b/unofficial/c511002394.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tg:IsRelateToBattle() then Duel.Damage(p,tg:GetDefense(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002395.lua b/unofficial/c511002395.lua index f0f55a8337..ebc283a125 100644 --- a/unofficial/c511002395.lua +++ b/unofficial/c511002395.lua @@ -12,10 +12,10 @@ function s.initial_effect(c) end s.listed_series={0x3008} function s.filter(c) - return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsAbleToExtra() and c:IsSetCard(0x3008) + return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsAbleToExtra() and c:IsSetCard(SET_ELEMENTAL_HERO) end function s.spfilter(c,e,tp,lv) - return c:IsType(TYPE_FUSION) and c:IsSetCard(0x3008) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial() + return c:IsType(TYPE_FUSION) and c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(spg,SUMMON_TYPE_FUSION,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002396.lua b/unofficial/c511002396.lua index 471356b953..bb564bd074 100644 --- a/unofficial/c511002396.lua +++ b/unofficial/c511002396.lua @@ -48,4 +48,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) local fid=eg:GetFirst():GetFieldID() e:GetHandler():RegisterFlagEffect(30606547,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetLabelObject():SetLabel(fid) -end +end \ No newline at end of file diff --git a/unofficial/c511002397.lua b/unofficial/c511002397.lua index 2921c40b2f..4134c7b7c0 100644 --- a/unofficial/c511002397.lua +++ b/unofficial/c511002397.lua @@ -57,4 +57,4 @@ end function s.shop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,Duel.GetAttacker():GetAttack(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002398.lua b/unofficial/c511002398.lua index 6dfcb17ef9..88492842c9 100644 --- a/unofficial/c511002398.lua +++ b/unofficial/c511002398.lua @@ -17,7 +17,7 @@ end s.listed_series={0x3008} function s.condition(e,tp,eg,ep,ev,re,r,rp) local ph=Duel.GetCurrentPhase() - return Duel.GetTurnPlayer()==tp and ph>=0x08 and ph<=0x20 + return Duel.IsTurnPlayer(tp) and ph>=0x08 and ph<=0x20 and (ph~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) end function s.filter(c,tp) @@ -27,7 +27,7 @@ function s.filter2(c,atk) return c:IsFaceup() and c:IsAttackAbove(atk+1000) end function s.rfilter(c) - return c:IsSetCard(0x3008) and c:IsAbleToRemove() + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsAbleToRemove() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc,tp) end @@ -53,4 +53,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002399.lua b/unofficial/c511002399.lua index 1115929ddc..cc6bf2876f 100644 --- a/unofficial/c511002399.lua +++ b/unofficial/c511002399.lua @@ -38,4 +38,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) Duel.ChangeBattleDamage(1-tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511002401.lua b/unofficial/c511002401.lua index 92c46d2f34..c48289512d 100644 --- a/unofficial/c511002401.lua +++ b/unofficial/c511002401.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local spg=sg:RandomSelect(tp,ct) Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002402.lua b/unofficial/c511002402.lua index 0ca9a8ed3b..e02958277d 100644 --- a/unofficial/c511002402.lua +++ b/unofficial/c511002402.lua @@ -39,7 +39,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,1) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetHandler():GetFlagEffect(id)==2 + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetFlagEffect(id)==2 end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsReleasable() end @@ -71,4 +71,4 @@ function s.resetop(e,tp,eg,ep,ev,re,r,rp) c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,0) local ct=c:GetFlagEffect(id) c:SetTurnCounter(ct) -end +end \ No newline at end of file diff --git a/unofficial/c511002403.lua b/unofficial/c511002403.lua index 385a0016f1..e3700c1cf3 100644 --- a/unofficial/c511002403.lua +++ b/unofficial/c511002403.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) g:AddCard(e:GetHandler()) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002404.lua b/unofficial/c511002404.lua index 5268ed14f8..fdf2a286f7 100644 --- a/unofficial/c511002404.lua +++ b/unofficial/c511002404.lua @@ -32,7 +32,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(tp,rsel) Duel.ConfirmCards(1-tp,rsel) if rsel:IsContains(c) then - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then Duel.SkipPhase(tp,PHASE_BATTLE,RESET_PHASE|PHASE_BATTLE_STEP,1) sg:RemoveCard(c) Duel.SendtoDeck(sg,nil,0,REASON_EFFECT) @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002405.lua b/unofficial/c511002405.lua index 046dab4cbb..a9dbbd818c 100644 --- a/unofficial/c511002405.lua +++ b/unofficial/c511002405.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTACKTARGET) Duel.CalculateDamage(tc,ag:Select(tp,1,1,nil):GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511002406.lua b/unofficial/c511002406.lua index 67e3a9b056..5c38c7bb4f 100644 --- a/unofficial/c511002406.lua +++ b/unofficial/c511002406.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002407.lua b/unofficial/c511002407.lua index 1cb118de63..ade60fd547 100644 --- a/unofficial/c511002407.lua +++ b/unofficial/c511002407.lua @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002409.lua b/unofficial/c511002409.lua index 30e3b885a0..0c79ead756 100644 --- a/unofficial/c511002409.lua +++ b/unofficial/c511002409.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end) Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002410.lua b/unofficial/c511002410.lua index df073f665b..d2332fa66e 100644 --- a/unofficial/c511002410.lua +++ b/unofficial/c511002410.lua @@ -41,4 +41,4 @@ function s.desrepop(e,tp,eg,ep,ev,re,r,rp) c:CancelToGrave() Duel.ChangePosition(c,POS_FACEDOWN) Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002411.lua b/unofficial/c511002411.lua index 940749179d..904db96cd9 100644 --- a/unofficial/c511002411.lua +++ b/unofficial/c511002411.lua @@ -30,8 +30,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end Duel.BreakEffect() - local rg=Duel.GetMatchingGroup(s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if #rg>0 then Duel.Remove(rg,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002412.lua b/unofficial/c511002412.lua index 5fcb8eb919..5f04efc48a 100644 --- a/unofficial/c511002412.lua +++ b/unofficial/c511002412.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,id+1) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002414.lua b/unofficial/c511002414.lua index 681070b5b2..4f7089b277 100644 --- a/unofficial/c511002414.lua +++ b/unofficial/c511002414.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002415.lua b/unofficial/c511002415.lua index 2015ec6257..f660eee3b4 100644 --- a/unofficial/c511002415.lua +++ b/unofficial/c511002415.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002416.lua b/unofficial/c511002416.lua index a75c6c8f9d..23fb0497cc 100644 --- a/unofficial/c511002416.lua +++ b/unofficial/c511002416.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002417.lua b/unofficial/c511002417.lua index 8cdb1dc33d..67fd1e7944 100644 --- a/unofficial/c511002417.lua +++ b/unofficial/c511002417.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,1-tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511002418.lua b/unofficial/c511002418.lua index 08776a1a91..5aff6b2d77 100644 --- a/unofficial/c511002418.lua +++ b/unofficial/c511002418.lua @@ -112,4 +112,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002419.lua b/unofficial/c511002419.lua index c799762ce5..07544e1c1b 100644 --- a/unofficial/c511002419.lua +++ b/unofficial/c511002419.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002420.lua b/unofficial/c511002420.lua index bcc5d9fcbf..510a5aa754 100644 --- a/unofficial/c511002420.lua +++ b/unofficial/c511002420.lua @@ -97,4 +97,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002425.lua b/unofficial/c511002425.lua index 4f29465cbd..f57e3e85aa 100644 --- a/unofficial/c511002425.lua +++ b/unofficial/c511002425.lua @@ -91,4 +91,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if #g~=3 or ft<3 then return end Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511002426.lua b/unofficial/c511002426.lua index d2dd8c0310..b24072256a 100644 --- a/unofficial/c511002426.lua +++ b/unofficial/c511002426.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002427.lua b/unofficial/c511002427.lua index df9d9cf4ff..43a8a83d0d 100644 --- a/unofficial/c511002427.lua +++ b/unofficial/c511002427.lua @@ -42,4 +42,4 @@ function s.target2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return #eg==1 and s.filter2(tc,tp) end Duel.SetTargetCard(eg) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002429.lua b/unofficial/c511002429.lua index 2bb33d1048..c00e2fdf0f 100644 --- a/unofficial/c511002429.lua +++ b/unofficial/c511002429.lua @@ -97,4 +97,4 @@ function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) end function s.indesval(e,re) return re:GetOwner()~=e:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511002430.lua b/unofficial/c511002430.lua index 6176f4bee8..a4c4e3cb99 100644 --- a/unofficial/c511002430.lua +++ b/unofficial/c511002430.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,re) return re:IsActiveType(TYPE_TRAP) -end +end \ No newline at end of file diff --git a/unofficial/c511002431.lua b/unofficial/c511002431.lua index 60de1a2e1e..f815917a3e 100644 --- a/unofficial/c511002431.lua +++ b/unofficial/c511002431.lua @@ -41,4 +41,4 @@ function s.damcon(e) local c=e:GetHandler() local bc=c:GetBattleTarget() return bc and bc:IsType(TYPE_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002433.lua b/unofficial/c511002433.lua index 3f8e22ea58..c0f6082dbf 100644 --- a/unofficial/c511002433.lua +++ b/unofficial/c511002433.lua @@ -53,4 +53,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #sg2>0 then Duel.Destroy(sg2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002434.lua b/unofficial/c511002434.lua index 6051630f65..1173aeb1f0 100644 --- a/unofficial/c511002434.lua +++ b/unofficial/c511002434.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511002435.lua b/unofficial/c511002435.lua index b7feaba2a3..ab5944083c 100644 --- a/unofficial/c511002435.lua +++ b/unofficial/c511002435.lua @@ -84,4 +84,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=sg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002436.lua b/unofficial/c511002436.lua index 4518563159..9f2f539130 100644 --- a/unofficial/c511002436.lua +++ b/unofficial/c511002436.lua @@ -2,4 +2,4 @@ local s,id=GetID() function s.initial_effect(c) --effectless -end +end \ No newline at end of file diff --git a/unofficial/c511002437.lua b/unofficial/c511002437.lua index ae2c37dde9..23f6720e1d 100644 --- a/unofficial/c511002437.lua +++ b/unofficial/c511002437.lua @@ -26,7 +26,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_PHASE_START+PHASE_MAIN1) e1:SetLabel(Duel.GetTurnCount()) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_MAIN1 then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_MAIN1 then e1:SetReset(RESET_PHASE+PHASE_MAIN1+RESET_SELF_TURN,2) else e1:SetReset(RESET_PHASE+PHASE_MAIN1+RESET_SELF_TURN,1) @@ -43,4 +43,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.ReturnToField(e:GetLabelObject()) end -end +end \ No newline at end of file diff --git a/unofficial/c511002440.lua b/unofficial/c511002440.lua index 02935ad619..7ed9489a3c 100644 --- a/unofficial/c511002440.lua +++ b/unofficial/c511002440.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:RegisterEffect(e2) sc:CopyEffect(tc:GetOriginalCode(),RESET_EVENT+RESETS_STANDARD,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002443.lua b/unofficial/c511002443.lua index aa5491b6bc..e446cd3282 100644 --- a/unofficial/c511002443.lua +++ b/unofficial/c511002443.lua @@ -5,4 +5,4 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_PIERCE) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002444.lua b/unofficial/c511002444.lua index 286e64ca0c..3a5e3e435d 100644 --- a/unofficial/c511002444.lua +++ b/unofficial/c511002444.lua @@ -72,4 +72,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002445.lua b/unofficial/c511002445.lua index d8d4b7d560..5e54bcb731 100644 --- a/unofficial/c511002445.lua +++ b/unofficial/c511002445.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local tg=Duel.SelectMatchingCard(tp,s.tcfilter,tp,LOCATION_MZONE,0,1,1,nil,tc,tp,eg,ep,ev,re,r,rp):GetFirst() Duel.Equip(tp,tc,tg) end -end +end \ No newline at end of file diff --git a/unofficial/c511002447.lua b/unofficial/c511002447.lua index bbdfb11634..da5baaa14f 100644 --- a/unofficial/c511002447.lua +++ b/unofficial/c511002447.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,2,2,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511002448.lua b/unofficial/c511002448.lua index e41b7554fa..35f2e1ee7e 100644 --- a/unofficial/c511002448.lua +++ b/unofficial/c511002448.lua @@ -21,4 +21,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002449.lua b/unofficial/c511002449.lua index 2467a61157..99e822ee82 100644 --- a/unofficial/c511002449.lua +++ b/unofficial/c511002449.lua @@ -44,4 +44,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) local dam=g:FilterCount(Card.IsMonster,nil)*500 Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002451.lua b/unofficial/c511002451.lua index 87e3db4b8c..5e9d928df4 100644 --- a/unofficial/c511002451.lua +++ b/unofficial/c511002451.lua @@ -32,4 +32,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-tp,0) Duel.Recover(tp,ev,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002452.lua b/unofficial/c511002452.lua index 323f29fd94..a41ad099b3 100644 --- a/unofficial/c511002452.lua +++ b/unofficial/c511002452.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) e4:SetCategory(CATEGORY_SPECIAL_SUMMON) e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e4:SetCode(EVENT_TO_GRAVE) - e4:SetRange(LOCATION_HAND+LOCATION_DECK) + e4:SetRange(LOCATION_HAND|LOCATION_DECK) e4:SetCondition(s.spcon) e4:SetTarget(s.sptg) e4:SetOperation(s.spop) @@ -125,4 +125,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return not c:IsReason(REASON_REPLACE) and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 end Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD) return true -end +end \ No newline at end of file diff --git a/unofficial/c511002453.lua b/unofficial/c511002453.lua index 13dfd48ae5..d42fd632c8 100644 --- a/unofficial/c511002453.lua +++ b/unofficial/c511002453.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if sc and Duel.GetControl(sc,tp) then Duel.ChangeAttackTarget(sc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002454.lua b/unofficial/c511002454.lua index 8df0e60b14..479d4cddaa 100644 --- a/unofficial/c511002454.lua +++ b/unofficial/c511002454.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g2:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002457.lua b/unofficial/c511002457.lua index 0bf29288f9..0e8a122b5e 100644 --- a/unofficial/c511002457.lua +++ b/unofficial/c511002457.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(Card.IsControler,nil,1-tp) Duel.NegateSummon(g) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002458.lua b/unofficial/c511002458.lua index 7bd3b7dd71..3f3c92c0bf 100644 --- a/unofficial/c511002458.lua +++ b/unofficial/c511002458.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) or not Duel.IsPlayerCanSpecialSummonMonster(tp,id+1,0,TYPES_TOKEN,1000,1000,3,RACE_AQUA,ATTRIBUTE_WATER) then return end local token=Duel.CreateToken(tp,id+1) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511002460.lua b/unofficial/c511002460.lua index a461cd15b0..239fb91001 100644 --- a/unofficial/c511002460.lua +++ b/unofficial/c511002460.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if at:CanAttack() and not at:IsStatus(STATUS_ATTACK_CANCELED) then Duel.ChangeAttackTarget(nil) end -end +end \ No newline at end of file diff --git a/unofficial/c511002461.lua b/unofficial/c511002461.lua index e2ea3daf40..f88101e45c 100644 --- a/unofficial/c511002461.lua +++ b/unofficial/c511002461.lua @@ -38,7 +38,7 @@ function s.initial_effect(c) c:RegisterEffect(e5) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -67,4 +67,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002463.lua b/unofficial/c511002463.lua index 103be9d043..8b57909457 100644 --- a/unofficial/c511002463.lua +++ b/unofficial/c511002463.lua @@ -77,4 +77,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002464.lua b/unofficial/c511002464.lua index acb97f430f..3215fe2958 100644 --- a/unofficial/c511002464.lua +++ b/unofficial/c511002464.lua @@ -110,4 +110,4 @@ function s.op3(e,tp,eg,ep,ev,re,r,rp) e4:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) tc:RegisterEffect(e4) end -end +end \ No newline at end of file diff --git a/unofficial/c511002465.lua b/unofficial/c511002465.lua index 6a701a85f5..59b1363339 100644 --- a/unofficial/c511002465.lua +++ b/unofficial/c511002465.lua @@ -25,4 +25,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if bc:IsRelateToBattle() then Duel.Destroy(bc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002466.lua b/unofficial/c511002466.lua index b505b7991e..55ea85ec3e 100644 --- a/unofficial/c511002466.lua +++ b/unofficial/c511002466.lua @@ -17,4 +17,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002467.lua b/unofficial/c511002467.lua index 1d7182adac..e3d299f379 100644 --- a/unofficial/c511002467.lua +++ b/unofficial/c511002467.lua @@ -17,10 +17,10 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.otfilter(c,tp) - return c:IsSetCard(0x2b) and (c:IsControler(tp) or c:IsFaceup()) + return c:IsSetCard(SET_NINJA) and (c:IsControler(tp) or c:IsFaceup()) end function s.filter(c,e,tp) - return c:IsSetCard(0x2b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NINJA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) else Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002468.lua b/unofficial/c511002468.lua index f51737799d..fee89fc915 100644 --- a/unofficial/c511002468.lua +++ b/unofficial/c511002468.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002469.lua b/unofficial/c511002469.lua index 50b829c5ac..e499ade4c3 100644 --- a/unofficial/c511002469.lua +++ b/unofficial/c511002469.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,2,2,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511002470.lua b/unofficial/c511002470.lua index 49bcb3fb74..35daf0126c 100644 --- a/unofficial/c511002470.lua +++ b/unofficial/c511002470.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(val*100) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002471.lua b/unofficial/c511002471.lua index 11569874fd..cadf3b9db2 100644 --- a/unofficial/c511002471.lua +++ b/unofficial/c511002471.lua @@ -12,10 +12,10 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x107f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_UTOPIA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.afilter(c) - return c:IsSetCard(0x107f) and c:IsMonster() + return c:IsSetCard(SET_UTOPIA) and c:IsMonster() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -81,4 +81,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002472.lua b/unofficial/c511002472.lua index 9d5fb8b915..ff07c13bf4 100644 --- a/unofficial/c511002472.lua +++ b/unofficial/c511002472.lua @@ -80,4 +80,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then e:SetLabel(val) return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511002473.lua b/unofficial/c511002473.lua index c260868fe9..abdcddc58a 100644 --- a/unofficial/c511002473.lua +++ b/unofficial/c511002473.lua @@ -124,4 +124,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002474.lua b/unofficial/c511002474.lua index 7bf8afb5ec..4cc89336ab 100644 --- a/unofficial/c511002474.lua +++ b/unofficial/c511002474.lua @@ -110,4 +110,4 @@ function s.refcon(e,re,val,r,rp,rc) local cc=Duel.GetCurrentChain() if cc==0 or (r&REASON_EFFECT)==0 then return val end return 0 -end +end \ No newline at end of file diff --git a/unofficial/c511002475.lua b/unofficial/c511002475.lua index 5b9b834a13..5aca322fc7 100644 --- a/unofficial/c511002475.lua +++ b/unofficial/c511002475.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002476.lua b/unofficial/c511002476.lua index 8f2f7d2372..4e1039380b 100644 --- a/unofficial/c511002476.lua +++ b/unofficial/c511002476.lua @@ -57,7 +57,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) if hc then Duel.ConfirmCards(1-tp,hc) - if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and hc:IsSetCard(0xe6) and hc:IsMonster() then + if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and hc:IsSetCard(SET_FLOWER_CARDIAN) and hc:IsMonster() then Duel.SpecialSummonStep(hc,0,tp,tp,true,false,POS_FACEUP) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) @@ -76,4 +76,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002477.lua b/unofficial/c511002477.lua index 488cee773b..f0c770642a 100644 --- a/unofficial/c511002477.lua +++ b/unofficial/c511002477.lua @@ -73,4 +73,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) bc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002478.lua b/unofficial/c511002478.lua index bb6601b0fa..4104237c64 100644 --- a/unofficial/c511002478.lua +++ b/unofficial/c511002478.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0xe6} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xe6) and c:GetLevel()~=2 + return c:IsFaceup() and c:IsSetCard(SET_FLOWER_CARDIAN) and c:GetLevel()~=2 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002479.lua b/unofficial/c511002479.lua index 6596eede62..b6573a5bc7 100644 --- a/unofficial/c511002479.lua +++ b/unofficial/c511002479.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002480.lua b/unofficial/c511002480.lua index f9527811ab..1115bb2db0 100644 --- a/unofficial/c511002480.lua +++ b/unofficial/c511002480.lua @@ -24,7 +24,7 @@ function s.filter1(c,e,tp,ft) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_DECK,0,1,nil,c:GetCode(),e,tp) end function s.filter2(c,tcode,e,tp) - return c:IsSetCard(0x104f) and c.assault_mode and c.assault_mode==tcode and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_ASSAULT_MODE) and c.assault_mode and c.assault_mode==tcode and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) @@ -66,4 +66,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511002482.lua b/unofficial/c511002482.lua index 9b7fee6bfd..bc3c5e3a50 100644 --- a/unofficial/c511002482.lua +++ b/unofficial/c511002482.lua @@ -52,4 +52,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.Damage(1-tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002483.lua b/unofficial/c511002483.lua index 036258ffaf..704ecf79f4 100644 --- a/unofficial/c511002483.lua +++ b/unofficial/c511002483.lua @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002484.lua b/unofficial/c511002484.lua index 99954eb3e9..b42c207273 100644 --- a/unofficial/c511002484.lua +++ b/unofficial/c511002484.lua @@ -28,12 +28,12 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) for p=0,1 do local tg=eg:Filter(s.cfilter,nil,p) for tc in aux.Next(tg) do - Duel.RegisterFlagEffect(1-p,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(1-p,id,RESET_PHASE|PHASE_END,0,1) end end end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetFlagEffect(tp,id)>0 and Duel.GetTurnPlayer()==tp and (Duel.IsAbleToEnterBP() + return Duel.GetFlagEffect(tp,id)>0 and Duel.IsTurnPlayer(tp) and (Duel.IsAbleToEnterBP() or (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)) end function s.filter(c) diff --git a/unofficial/c511002485.lua b/unofficial/c511002485.lua index 4c79faae57..b63d165bb3 100644 --- a/unofficial/c511002485.lua +++ b/unofficial/c511002485.lua @@ -12,4 +12,4 @@ function s.initial_effect(c) e1:SetTarget(Fusion.SummonEffTG(table.unpack(params))) e1:SetOperation(Fusion.SummonEffOP(table.unpack(params))) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002486.lua b/unofficial/c511002486.lua index 869caec566..96b1a5f51b 100644 --- a/unofficial/c511002486.lua +++ b/unofficial/c511002486.lua @@ -52,4 +52,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002487.lua b/unofficial/c511002487.lua index 2e17ec5d54..4c26fe5397 100644 --- a/unofficial/c511002487.lua +++ b/unofficial/c511002487.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx2(Card.IsMelodiousSongtress),aux.FilterBoolFunctionEx(Card.IsSetCard,0x9b)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx2(Card.IsMelodiousSongtress),aux.FilterBoolFunctionEx(Card.IsSetCard,SET_MELODIOUS)) --effect local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) @@ -19,7 +19,7 @@ s.listed_series={0x9b} s.material_setcode={0x9b,0x209b} function s.condition(e,tp,eg,ep,ev,re,r,rp) local bc=e:GetHandler():GetBattleTarget() - return bc and bc:IsSummonType(SUMMON_TYPE_SPECIAL) and bc:IsControler(1-tp) + return bc and bc:IsSpecialSummoned() and bc:IsControler(1-tp) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -50,4 +50,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if bc and bc:IsRelateToBattle() then Duel.Destroy(bc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002488.lua b/unofficial/c511002488.lua index 240a67eb6a..5c076ccfdc 100644 --- a/unofficial/c511002488.lua +++ b/unofficial/c511002488.lua @@ -21,4 +21,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.ChangePosition(c,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511002489.lua b/unofficial/c511002489.lua index a81a84be45..feed806e9d 100644 --- a/unofficial/c511002489.lua +++ b/unofficial/c511002489.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainDisablable(ev) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x9b) + return c:IsFaceup() and c:IsSetCard(SET_MELODIOUS) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002490.lua b/unofficial/c511002490.lua index ceb2fd2495..3c44ff06e4 100644 --- a/unofficial/c511002490.lua +++ b/unofficial/c511002490.lua @@ -15,7 +15,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 end function s.filter(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0x9b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and c:IsSetCard(SET_MELODIOUS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002491.lua b/unofficial/c511002491.lua index 7621db76b7..fa8c629d4b 100644 --- a/unofficial/c511002491.lua +++ b/unofficial/c511002491.lua @@ -48,4 +48,4 @@ function s.damcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return val/2 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511002492.lua b/unofficial/c511002492.lua index 9e525e2ed7..eab1fcf794 100644 --- a/unofficial/c511002492.lua +++ b/unofficial/c511002492.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Release(sg,REASON_EFFECT) Duel.Damage(1-tp,#sg*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002494.lua b/unofficial/c511002494.lua index cd0f5c020c..2b728ec931 100644 --- a/unofficial/c511002494.lua +++ b/unofficial/c511002494.lua @@ -54,4 +54,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002495.lua b/unofficial/c511002495.lua index a54b155d51..335168e540 100644 --- a/unofficial/c511002495.lua +++ b/unofficial/c511002495.lua @@ -20,4 +20,4 @@ function s.value(e,c) elseif Duel.GetLP(p)>Duel.GetLP(1-p) then return c:GetAttack()/2 end -end +end \ No newline at end of file diff --git a/unofficial/c511002496.lua b/unofficial/c511002496.lua index 78e3e88f94..0bb61c4405 100644 --- a/unofficial/c511002496.lua +++ b/unofficial/c511002496.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002497.lua b/unofficial/c511002497.lua index 8b9f0787fe..7f09598c5b 100644 --- a/unofficial/c511002497.lua +++ b/unofficial/c511002497.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002498.lua b/unofficial/c511002498.lua index 00754a7a56..a466845465 100644 --- a/unofficial/c511002498.lua +++ b/unofficial/c511002498.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002499.lua b/unofficial/c511002499.lua index 95a1b5a145..c004fc89ab 100644 --- a/unofficial/c511002499.lua +++ b/unofficial/c511002499.lua @@ -12,4 +12,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UPDATE_DEFENSE) e3:SetValue(2000) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511002500.lua b/unofficial/c511002500.lua index a875a895aa..a94363f9af 100644 --- a/unofficial/c511002500.lua +++ b/unofficial/c511002500.lua @@ -1,4 +1,4 @@ --ラーバモス local s,id=GetID() function s.initial_effect(c) -end +end \ No newline at end of file diff --git a/unofficial/c511002502.lua b/unofficial/c511002502.lua index 9a637d15a5..751262a7a4 100644 --- a/unofficial/c511002502.lua +++ b/unofficial/c511002502.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002504.lua b/unofficial/c511002504.lua index cba3edd6b4..ca37b1b30f 100644 --- a/unofficial/c511002504.lua +++ b/unofficial/c511002504.lua @@ -21,4 +21,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end Duel.ChangeAttackTarget(sc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002507.lua b/unofficial/c511002507.lua index bb9e1328d0..32542716bc 100644 --- a/unofficial/c511002507.lua +++ b/unofficial/c511002507.lua @@ -49,7 +49,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end --atk change function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetAttacker()==e:GetHandler() + return Duel.IsTurnPlayer(tp) and Duel.GetAttacker()==e:GetHandler() end function s.atkfilter(c,code1,code2) return (c:IsCode(code1) or c:IsCode(code2)) and c:IsMonster() diff --git a/unofficial/c511002508.lua b/unofficial/c511002508.lua index cd44fe2945..127b99b949 100644 --- a/unofficial/c511002508.lua +++ b/unofficial/c511002508.lua @@ -49,7 +49,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end --atk change function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetAttacker()==e:GetHandler() + return Duel.IsTurnPlayer(tp) and Duel.GetAttacker()==e:GetHandler() end function s.atkfilter(c,code1,code2) return (c:IsCode(code1) or c:IsCode(code2)) and c:IsMonster() @@ -81,4 +81,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e0) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002509.lua b/unofficial/c511002509.lua index 9e3aaaa09f..f47cd7302d 100644 --- a/unofficial/c511002509.lua +++ b/unofficial/c511002509.lua @@ -90,4 +90,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,ecatk-catk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002515.lua b/unofficial/c511002515.lua index 57863c1f9d..833a957e7b 100644 --- a/unofficial/c511002515.lua +++ b/unofficial/c511002515.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetValue(500) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002517.lua b/unofficial/c511002517.lua index d6f7c4d07a..5e5611c686 100644 --- a/unofficial/c511002517.lua +++ b/unofficial/c511002517.lua @@ -81,7 +81,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.dcfilter(c) return c:GetFlagEffect(id)~=0 and c:IsAbleToGraveAsCost() @@ -136,11 +136,11 @@ end function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return not c:IsReason(REASON_REPLACE) - and Duel.IsExistingMatchingCard(s.repfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + and Duel.IsExistingMatchingCard(s.repfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end if Duel.SelectEffectYesNo(tp,e:GetHandler(),96) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.repfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.repfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_EFFECT+REASON_REPLACE) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511002518.lua b/unofficial/c511002518.lua index 0ae08426a3..2f1bc510ad 100644 --- a/unofficial/c511002518.lua +++ b/unofficial/c511002518.lua @@ -67,4 +67,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002519.lua b/unofficial/c511002519.lua index d89c28eb9a..443cd7da2f 100644 --- a/unofficial/c511002519.lua +++ b/unofficial/c511002519.lua @@ -15,24 +15,24 @@ end s.listed_series={0xa3} function s.condition(e,tp,eg,ep,ev,re,r,rp) local at=Duel.GetAttacker() - return at:IsControler(1-tp) and at:IsSummonType(SUMMON_TYPE_SPECIAL) and not Duel.GetAttackTarget() + return at:IsControler(1-tp) and at:IsSpecialSummoned() and not Duel.GetAttackTarget() end function s.filter(c,e,tp) - return c:IsSetCard(0xa3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK) + return c:IsSetCard(SET_STARDUST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK) and ((c:IsLocation(LOCATION_GRAVE) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0) or (c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0)) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,1) - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE+LOCATION_EXTRA,0,1,nil,e,tp) end + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE|LOCATION_EXTRA,0,1,nil,e,tp) end Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_EXTRA) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE|LOCATION_EXTRA) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE+LOCATION_EXTRA,0,nil,e,tp) + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE|LOCATION_EXTRA,0,nil,e,tp) if #g>0 and Duel.Draw(tp,1,REASON_EFFECT)>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,1,1,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511002520.lua b/unofficial/c511002520.lua index fbac52d98b..4fe5d3cb7e 100644 --- a/unofficial/c511002520.lua +++ b/unofficial/c511002520.lua @@ -52,4 +52,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002522.lua b/unofficial/c511002522.lua index 82be45149d..998078b92f 100644 --- a/unofficial/c511002522.lua +++ b/unofficial/c511002522.lua @@ -28,4 +28,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(sg,REASON_EFFECT)>0 then Duel.Damage(1-tp,2000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002523.lua b/unofficial/c511002523.lua index dff2c43ae7..88956eab24 100644 --- a/unofficial/c511002523.lua +++ b/unofficial/c511002523.lua @@ -19,12 +19,12 @@ function s.filter(c) return c:IsMonster() and c:IsAbleToRemove() and (c:IsLocation(LOCATION_DECK) or aux.SpElimFilter(c)) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_MZONE+LOCATION_GRAVE,LOCATION_DECK+LOCATION_MZONE+LOCATION_GRAVE,1,nil) end - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_MZONE+LOCATION_GRAVE,LOCATION_DECK+LOCATION_MZONE+LOCATION_GRAVE,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_MZONE|LOCATION_GRAVE,LOCATION_DECK|LOCATION_MZONE|LOCATION_GRAVE,1,nil) end + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_MZONE|LOCATION_GRAVE,LOCATION_DECK|LOCATION_MZONE|LOCATION_GRAVE,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,sg,#sg,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,LOCATION_DECK+LOCATION_GRAVE,nil) + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_GRAVE,LOCATION_DECK|LOCATION_GRAVE,nil) if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)>0 then local g=sg:Filter(Card.IsLocation,nil,LOCATION_REMOVED) g:KeepAlive() diff --git a/unofficial/c511002524.lua b/unofficial/c511002524.lua index 64b0037b69..6f24156699 100644 --- a/unofficial/c511002524.lua +++ b/unofficial/c511002524.lua @@ -87,4 +87,4 @@ function s.sop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002525.lua b/unofficial/c511002525.lua index 5189500138..c09f28bb70 100644 --- a/unofficial/c511002525.lua +++ b/unofficial/c511002525.lua @@ -25,16 +25,16 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK+LOCATION_HAND) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,1,nil,e,tp) local tc=g:GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511002526.lua b/unofficial/c511002526.lua index b66060231b..3efc8e79df 100644 --- a/unofficial/c511002526.lua +++ b/unofficial/c511002526.lua @@ -67,4 +67,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() if op then op(e,tp,eg,ep,ev,re,r,rp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002527.lua b/unofficial/c511002527.lua index 270845fff1..41b19c13e1 100644 --- a/unofficial/c511002527.lua +++ b/unofficial/c511002527.lua @@ -12,14 +12,14 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x13) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_MEKLORD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and Duel.IsExistingMatchingCard(Card.IsDefensePos,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_DECK|LOCATION_GRAVE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsDefensePos,tp,LOCATION_MZONE,LOCATION_MZONE,nil) @@ -81,4 +81,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #dg>0 then Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002528.lua b/unofficial/c511002528.lua index 1462e79d73..5607acbb5c 100644 --- a/unofficial/c511002528.lua +++ b/unofficial/c511002528.lua @@ -41,4 +41,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then e:SetLabel(val) return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511002529.lua b/unofficial/c511002529.lua index 97a6319a4b..7bef8b7581 100644 --- a/unofficial/c511002529.lua +++ b/unofficial/c511002529.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002530.lua b/unofficial/c511002530.lua index f1e1b0d16a..2d6620c175 100644 --- a/unofficial/c511002530.lua +++ b/unofficial/c511002530.lua @@ -24,4 +24,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002531.lua b/unofficial/c511002531.lua index 3319e097e6..37c33be6be 100644 --- a/unofficial/c511002531.lua +++ b/unofficial/c511002531.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(oc,0,1-tp,1-tp,false,false,POS_FACEUP_DEFENSE) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002532.lua b/unofficial/c511002532.lua index a2b5e48d2e..6202c84b21 100644 --- a/unofficial/c511002532.lua +++ b/unofficial/c511002532.lua @@ -55,4 +55,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002533.lua b/unofficial/c511002533.lua index a3d711c55f..59412c494d 100644 --- a/unofficial/c511002533.lua +++ b/unofficial/c511002533.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) end s.material_setcode={0x8,0x3008} function s.descon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) + return e:GetHandler():IsFusionSummoned() end function s.filter(c,atk) return c:IsFaceup() and c:GetBaseAttack()0 then Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002542.lua b/unofficial/c511002542.lua index 8890a2d7a0..58e9aeb0d5 100644 --- a/unofficial/c511002542.lua +++ b/unofficial/c511002542.lua @@ -14,4 +14,4 @@ function s.filter(c,code) end function s.value(e,c) return Duel.GetMatchingGroupCount(s.filter,0,LOCATION_MZONE,LOCATION_MZONE,nil,c:GetCode())*800 -end +end \ No newline at end of file diff --git a/unofficial/c511002543.lua b/unofficial/c511002543.lua index 5ff54182d7..2852cbbb45 100644 --- a/unofficial/c511002543.lua +++ b/unofficial/c511002543.lua @@ -71,4 +71,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e4:SetValue(-atk) tg:RegisterEffect(e4) end -end +end \ No newline at end of file diff --git a/unofficial/c511002544.lua b/unofficial/c511002544.lua index 071eb3428f..f3201bc9df 100644 --- a/unofficial/c511002544.lua +++ b/unofficial/c511002544.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002545.lua b/unofficial/c511002545.lua index 23aa51e764..c7ff99b38d 100644 --- a/unofficial/c511002545.lua +++ b/unofficial/c511002545.lua @@ -27,4 +27,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511002546.lua b/unofficial/c511002546.lua index e4cbecda4d..5daa616d7b 100644 --- a/unofficial/c511002546.lua +++ b/unofficial/c511002546.lua @@ -44,4 +44,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) atk=c:GetAttack()-c:GetBaseAttack() end Duel.Damage(p,atk,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002547.lua b/unofficial/c511002547.lua index 33bb9adf66..4bcc9c26c2 100644 --- a/unofficial/c511002547.lua +++ b/unofficial/c511002547.lua @@ -39,4 +39,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then e:SetLabel(val) return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511002548.lua b/unofficial/c511002548.lua index d2852dc084..196a82729e 100644 --- a/unofficial/c511002548.lua +++ b/unofficial/c511002548.lua @@ -44,4 +44,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.SendtoGrave(c,REASON_EFFECT)>0 then Duel.Damage(1-tp,ct*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002549.lua b/unofficial/c511002549.lua index 2e0b882836..74d6d77fdd 100644 --- a/unofficial/c511002549.lua +++ b/unofficial/c511002549.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.GetControl(tc,tp,PHASE_END,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002550.lua b/unofficial/c511002550.lua index d981183190..b2172aa001 100644 --- a/unofficial/c511002550.lua +++ b/unofficial/c511002550.lua @@ -21,16 +21,16 @@ function s.filter(c,tid,e,tp) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsPreviousControler(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,nil,Duel.GetTurnCount(),e,tp) + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,LOCATION_GRAVE|LOCATION_REMOVED,nil,Duel.GetTurnCount(),e,tp) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and #g==1 end Duel.SetTargetCard(g) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,nil,Duel.GetTurnCount(),e,tp) + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE|LOCATION_REMOVED,LOCATION_GRAVE|LOCATION_REMOVED,nil,Duel.GetTurnCount(),e,tp) local tc=g:GetFirst() if #g~=1 or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511002551.lua b/unofficial/c511002551.lua index bd223a2cd1..c6d2e1c9ae 100644 --- a/unofficial/c511002551.lua +++ b/unofficial/c511002551.lua @@ -67,7 +67,7 @@ function s.eqlimit(e,c) return c:IsType(TYPE_SYNCHRO) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -80,4 +80,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002552.lua b/unofficial/c511002552.lua index 22bac1358b..cdeba18c6f 100644 --- a/unofficial/c511002552.lua +++ b/unofficial/c511002552.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) end function s.poscheck(e,tp,eg,ep,ev,re,r,rp) if re==nil then - Duel.RegisterFlagEffect(rp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(rp,id,RESET_PHASE|PHASE_END,0,1) end end function s.check(tp) diff --git a/unofficial/c511002553.lua b/unofficial/c511002553.lua index 1f40fff778..60cd27cdcb 100644 --- a/unofficial/c511002553.lua +++ b/unofficial/c511002553.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002554.lua b/unofficial/c511002554.lua index b0332f656f..3bcc2524bb 100644 --- a/unofficial/c511002554.lua +++ b/unofficial/c511002554.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,tc:GetLevel()*300,REASON_EFFECT) end Duel.ShuffleHand(p) -end +end \ No newline at end of file diff --git a/unofficial/c511002555.lua b/unofficial/c511002555.lua index 6b856ac12c..c959efa809 100644 --- a/unofficial/c511002555.lua +++ b/unofficial/c511002555.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -30,4 +30,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,1000,REASON_EFFECT,true) Duel.Damage(1-tp,1000,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002556.lua b/unofficial/c511002556.lua index db79a877f1..94700c7696 100644 --- a/unofficial/c511002556.lua +++ b/unofficial/c511002556.lua @@ -23,4 +23,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,Duel.GetFieldGroupCount(p,LOCATION_HAND,0)*300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002557.lua b/unofficial/c511002557.lua index c90d7933e6..1ba07b836e 100644 --- a/unofficial/c511002557.lua +++ b/unofficial/c511002557.lua @@ -24,9 +24,9 @@ function s.cfilter(c,tp) and Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,c) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,tp) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,tp) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,tp) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002558.lua b/unofficial/c511002558.lua index 9449307451..e48de90085 100644 --- a/unofficial/c511002558.lua +++ b/unofficial/c511002558.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002559.lua b/unofficial/c511002559.lua index fd575e2f4e..f137cd2552 100644 --- a/unofficial/c511002559.lua +++ b/unofficial/c511002559.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) a:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002560.lua b/unofficial/c511002560.lua index a0327df9f8..7639ec18b5 100644 --- a/unofficial/c511002560.lua +++ b/unofficial/c511002560.lua @@ -25,4 +25,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002561.lua b/unofficial/c511002561.lua index 839b89fe87..229b7d847b 100644 --- a/unofficial/c511002561.lua +++ b/unofficial/c511002561.lua @@ -32,4 +32,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local rc=e:GetHandler():GetReasonCard() Duel.Hint(HINT_CARD,0,id) Duel.Damage(1-rc:GetControler(),400,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002562.lua b/unofficial/c511002562.lua index 9d20f2b62c..665171caf5 100644 --- a/unofficial/c511002562.lua +++ b/unofficial/c511002562.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002563.lua b/unofficial/c511002563.lua index 6db485931e..cb9e52d6bf 100644 --- a/unofficial/c511002563.lua +++ b/unofficial/c511002563.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ChangePosition(a,POS_FACEUP_DEFENSE) Duel.ChangePosition(tc,0,0,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511002564.lua b/unofficial/c511002564.lua index f4438d4354..cfb914eabd 100644 --- a/unofficial/c511002564.lua +++ b/unofficial/c511002564.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511002565.lua b/unofficial/c511002565.lua index a4b360d235..40b9699c77 100644 --- a/unofficial/c511002565.lua +++ b/unofficial/c511002565.lua @@ -83,4 +83,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(tp,cg) Duel.ShuffleDeck(1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002566.lua b/unofficial/c511002566.lua index f53ab64009..08bca061f5 100644 --- a/unofficial/c511002566.lua +++ b/unofficial/c511002566.lua @@ -36,4 +36,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(), REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002567.lua b/unofficial/c511002567.lua index 5bacd6c53f..39190855f2 100644 --- a/unofficial/c511002567.lua +++ b/unofficial/c511002567.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002568.lua b/unofficial/c511002568.lua index 11ddbae3bb..0f0415fc6e 100644 --- a/unofficial/c511002568.lua +++ b/unofficial/c511002568.lua @@ -55,4 +55,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002569.lua b/unofficial/c511002569.lua index 47aaffdcd0..263de0f127 100644 --- a/unofficial/c511002569.lua +++ b/unofficial/c511002569.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2,true) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002570.lua b/unofficial/c511002570.lua index 2a98deb1f6..f8d44f79a0 100644 --- a/unofficial/c511002570.lua +++ b/unofficial/c511002570.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(1-tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002571.lua b/unofficial/c511002571.lua index ad161c38e3..82a7d4f6ca 100644 --- a/unofficial/c511002571.lua +++ b/unofficial/c511002571.lua @@ -82,4 +82,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) etc:ReleaseEffectRelation(te) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002572.lua b/unofficial/c511002572.lua index 7b27a493e3..f027cc154b 100644 --- a/unofficial/c511002572.lua +++ b/unofficial/c511002572.lua @@ -21,7 +21,7 @@ end function s.checkop(e,tp,eg,ep,ev,re,r,rp) local rc=re:GetHandler() if re:IsHasType(EFFECT_TYPE_ACTIVATE) and rc:IsSpell() then - rc:RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,0) + rc:RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,0) end end function s.cfilter(c) @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002573.lua b/unofficial/c511002573.lua index a4fbd82044..8a2f5f3ed5 100644 --- a/unofficial/c511002573.lua +++ b/unofficial/c511002573.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #tg>0 then Duel.Damage(p,tg:GetSum(Card.GetAttack),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002574.lua b/unofficial/c511002574.lua index 17488ccf7d..6017c4ea63 100644 --- a/unofficial/c511002574.lua +++ b/unofficial/c511002574.lua @@ -25,4 +25,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002575.lua b/unofficial/c511002575.lua index 61919d5628..16107a7921 100644 --- a/unofficial/c511002575.lua +++ b/unofficial/c511002575.lua @@ -64,4 +64,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) g:AddCard(tc) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002576.lua b/unofficial/c511002576.lua index 82e2747236..3dd07bd117 100644 --- a/unofficial/c511002576.lua +++ b/unofficial/c511002576.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:CancelCardTarget(tc:GetFirstCardTarget()) tc:SetCardTarget(tg) end -end +end \ No newline at end of file diff --git a/unofficial/c511002577.lua b/unofficial/c511002577.lua index a92f39c9ab..5f0a871d82 100644 --- a/unofficial/c511002577.lua +++ b/unofficial/c511002577.lua @@ -28,10 +28,10 @@ function s.filter1(c,e,tp) return (c:IsControler(tp) or c:IsFaceup()) and c:IsCode(74711057) and c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e) end function s.filter2(c) - return c:IsSetCard(0x3008) and c:IsFaceup() and c:IsCanBeFusionMaterial() + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsFaceup() and c:IsCanBeFusionMaterial() end function s.filter3(c,e) - return c:IsSetCard(0x3008) and c:IsFaceup() and c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e) + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsFaceup() and c:IsCanBeFusionMaterial() and not c:IsImmuneToEffect(e) end function s.fusfilter(c,e,tp,m1,m2,f,chkf) return c:IsType(TYPE_FUSION) and (not f or f(c)) and (c:IsCode(95486586) or c:IsCode(46759931)) @@ -91,4 +91,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterFlagEffect(id,0,0,0) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002578.lua b/unofficial/c511002578.lua index 10f1902baf..0c492373c4 100644 --- a/unofficial/c511002578.lua +++ b/unofficial/c511002578.lua @@ -26,4 +26,4 @@ function s.initial_effect(c) end function s.destg(e,c) return c==Duel.GetFieldCard(c:GetControler(),LOCATION_FZONE,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002579.lua b/unofficial/c511002579.lua index cb3827e929..a4e6da0d42 100644 --- a/unofficial/c511002579.lua +++ b/unofficial/c511002579.lua @@ -31,4 +31,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(1-tp,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002580.lua b/unofficial/c511002580.lua index e9df69bba3..0e5dfbbb84 100644 --- a/unofficial/c511002580.lua +++ b/unofficial/c511002580.lua @@ -55,4 +55,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,400,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002581.lua b/unofficial/c511002581.lua index c6cc05494d..f39df11ea3 100644 --- a/unofficial/c511002581.lua +++ b/unofficial/c511002581.lua @@ -56,4 +56,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002583.lua b/unofficial/c511002583.lua index cf0729e8cd..b7bd01399f 100644 --- a/unofficial/c511002583.lua +++ b/unofficial/c511002583.lua @@ -30,13 +30,13 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if chkcost then e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,e,tp) else return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,2,c,e,tp) end end if chkcost then - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,e,tp) Duel.Remove(g,POS_FACEUP,REASON_COST) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_GRAVE) diff --git a/unofficial/c511002584.lua b/unofficial/c511002584.lua index 83dc115ce5..642036bfd5 100644 --- a/unofficial/c511002584.lua +++ b/unofficial/c511002584.lua @@ -51,7 +51,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) c:RegisterEffect(e2) end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -64,4 +64,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.defval(e,c) return c:GetDefense()*2 -end +end \ No newline at end of file diff --git a/unofficial/c511002585.lua b/unofficial/c511002585.lua index 776f7cd173..ab638e4086 100644 --- a/unofficial/c511002585.lua +++ b/unofficial/c511002585.lua @@ -88,4 +88,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.BreakEffect() Duel.Recover(tp,s[tp],REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002586.lua b/unofficial/c511002586.lua index 77c926618f..ab29217d3f 100644 --- a/unofficial/c511002586.lua +++ b/unofficial/c511002586.lua @@ -62,4 +62,4 @@ function s.damcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511002587.lua b/unofficial/c511002587.lua index d0413c1a39..9a25d45fd0 100644 --- a/unofficial/c511002587.lua +++ b/unofficial/c511002587.lua @@ -67,4 +67,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002588.lua b/unofficial/c511002588.lua index 8adcd8cd29..1cfc92aee1 100644 --- a/unofficial/c511002588.lua +++ b/unofficial/c511002588.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002589.lua b/unofficial/c511002589.lua index 4b1e1e602f..c8552334f8 100644 --- a/unofficial/c511002589.lua +++ b/unofficial/c511002589.lua @@ -34,4 +34,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) end function s.poscon2(e) return e:GetOwner():IsRelateToCard(e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511002590.lua b/unofficial/c511002590.lua index 54ad977e81..95a95ed4c9 100644 --- a/unofficial/c511002590.lua +++ b/unofficial/c511002590.lua @@ -22,7 +22,7 @@ end function s.spfilter(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) - and c:IsSetCard(0xba) and mc:IsCanBeXyzMaterial(c,tp) + and c:IsSetCard(SET_RAIDRAPTOR) and mc:IsCanBeXyzMaterial(c,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511002591.lua b/unofficial/c511002591.lua index ae09220ab6..19e4055d62 100644 --- a/unofficial/c511002591.lua +++ b/unofficial/c511002591.lua @@ -82,4 +82,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002596.lua b/unofficial/c511002596.lua index cb1f5c4717..45bd4794dc 100644 --- a/unofficial/c511002596.lua +++ b/unofficial/c511002596.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ec:CancelToGrave() Duel.SendtoDeck(ec,nil,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002597.lua b/unofficial/c511002597.lua index 03e34d3050..29f6e7ad5c 100644 --- a/unofficial/c511002597.lua +++ b/unofficial/c511002597.lua @@ -70,4 +70,4 @@ function s.opd(e,tp,eg,ep,ev,re,r,rp) if c:IsFaceup() and c:IsRelateToEffect(e) then c:EquipByEffectAndLimitRegister(e,tp,tc) else Duel.SendtoGrave(tc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002598.lua b/unofficial/c511002598.lua index 059918ddff..cd387945ee 100644 --- a/unofficial/c511002598.lua +++ b/unofficial/c511002598.lua @@ -52,4 +52,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002599.lua b/unofficial/c511002599.lua index 8e66601211..9d1dc30ed9 100644 --- a/unofficial/c511002599.lua +++ b/unofficial/c511002599.lua @@ -34,4 +34,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511002600.lua b/unofficial/c511002600.lua index 37358fd930..a4201c49aa 100644 --- a/unofficial/c511002600.lua +++ b/unofficial/c511002600.lua @@ -35,5 +35,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511002601.lua b/unofficial/c511002601.lua index cc480a0627..c85d04845a 100644 --- a/unofficial/c511002601.lua +++ b/unofficial/c511002601.lua @@ -72,4 +72,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(turnp,h1,REASON_EFFECT) Duel.Draw(1-turnp,h2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002602.lua b/unofficial/c511002602.lua index 362372cba3..7f7bb129cc 100644 --- a/unofficial/c511002602.lua +++ b/unofficial/c511002602.lua @@ -39,7 +39,7 @@ function s.spfilter1(c) return not c:IsType(TYPE_TUNER) end function s.spfilter2(c) - return c:IsSetCard(0x33) and c:IsType(TYPE_TUNER) + return c:IsSetCard(SET_BLACKWING) and c:IsType(TYPE_TUNER) end function s.spcon(e,c) if c==nil then return true end @@ -81,7 +81,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.filter(c,lv) - return c:IsSetCard(0x33) and c:IsType(TYPE_SYNCHRO) and c:IsAbleToRemove() and c:IsLevel(lv) + return c:IsSetCard(SET_BLACKWING) and c:IsType(TYPE_SYNCHRO) and c:IsAbleToRemove() and c:IsLevel(lv) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler():GetLevel()) end @@ -103,4 +103,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ba) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002603.lua b/unofficial/c511002603.lua index c8646dba3d..c7bf1b9fb2 100644 --- a/unofficial/c511002603.lua +++ b/unofficial/c511002603.lua @@ -17,4 +17,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.cfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002607.lua b/unofficial/c511002607.lua index 0e76926601..5d92bb4410 100644 --- a/unofficial/c511002607.lua +++ b/unofficial/c511002607.lua @@ -19,4 +19,4 @@ function s.initial_effect(c) end function s.valcon(e,re,r,rp) return (r&REASON_BATTLE)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002618.lua b/unofficial/c511002618.lua index 11b741ac78..e082366638 100644 --- a/unofficial/c511002618.lua +++ b/unofficial/c511002618.lua @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002619.lua b/unofficial/c511002619.lua index 39a088df53..5e08f5c263 100644 --- a/unofficial/c511002619.lua +++ b/unofficial/c511002619.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002620.lua b/unofficial/c511002620.lua index 23b0085848..ecd6915adb 100644 --- a/unofficial/c511002620.lua +++ b/unofficial/c511002620.lua @@ -75,4 +75,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() fc:CompleteProcedure() sc:CompleteProcedure() -end +end \ No newline at end of file diff --git a/unofficial/c511002621.lua b/unofficial/c511002621.lua index 8cc827000d..af9b3423a2 100644 --- a/unofficial/c511002621.lua +++ b/unofficial/c511002621.lua @@ -140,7 +140,7 @@ end function s.atkcheckop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():GetFlagEffect(id-1)~=0 then return end local fid=eg:GetFirst():GetFieldID() - e:GetHandler():RegisterFlagEffect(id-1,RESET_PHASE+PHASE_END,0,1) + e:GetHandler():RegisterFlagEffect(id-1,RESET_PHASE|PHASE_END,0,1) e:GetLabelObject():SetLabel(fid) end function s.wincon(e,tp,eg,ep,ev,re,r,rp) @@ -155,4 +155,4 @@ function s.winop(e,tp,eg,ep,ev,re,r,rp) and Duel.GetActivityCount(p,ACTIVITY_SPSUMMON)==0 and Duel.GetActivityCount(p,ACTIVITY_FLIPSUMMON)==0 then Duel.Win(1-p,WIN_REASON) end -end +end \ No newline at end of file diff --git a/unofficial/c511002623.lua b/unofficial/c511002623.lua index 2e703c242e..fa6b36c760 100644 --- a/unofficial/c511002623.lua +++ b/unofficial/c511002623.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) @@ -56,11 +56,11 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x33) + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) end function s.spcon(e,c) if c==nil then return true end local tp=e:GetHandlerPlayer() local g=Duel.GetMatchingGroup(s.cfilter,c:GetControler(),LOCATION_MZONE,0,nil) return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and g:GetSum(Card.GetLevel)>=8 -end +end \ No newline at end of file diff --git a/unofficial/c511002625.lua b/unofficial/c511002625.lua index b43d7076f8..55b1990912 100644 --- a/unofficial/c511002625.lua +++ b/unofficial/c511002625.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) end s.listed_series={0x9f} function s.filter(c) - return c:IsAttackBelow(1000) and c:IsSetCard(0x9f) and c:IsMonster() and c:IsAbleToHand() + return c:IsAttackBelow(1000) and c:IsSetCard(SET_PERFORMAPAL) and c:IsMonster() and c:IsAbleToHand() end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -31,4 +31,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002626.lua b/unofficial/c511002626.lua index 6924264e09..1ec47beab4 100644 --- a/unofficial/c511002626.lua +++ b/unofficial/c511002626.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0x33} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x33) + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(Card.IsControler,1,nil,1-tp) @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002637.lua b/unofficial/c511002637.lua index 2445ecf9ea..826bbc100a 100644 --- a/unofficial/c511002637.lua +++ b/unofficial/c511002637.lua @@ -23,4 +23,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(1-tp,1000,REASON_EFFECT) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511002638.lua b/unofficial/c511002638.lua index 57e2773056..7490205941 100644 --- a/unofficial/c511002638.lua +++ b/unofficial/c511002638.lua @@ -28,4 +28,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if tp==ep then Duel.ChangeBattleDamage(1-ep,ev,false) end -end +end \ No newline at end of file diff --git a/unofficial/c511002639.lua b/unofficial/c511002639.lua index f0006417cd..7fada7e6ea 100644 --- a/unofficial/c511002639.lua +++ b/unofficial/c511002639.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002641.lua b/unofficial/c511002641.lua index 7c88c6051e..fd37cfa294 100644 --- a/unofficial/c511002641.lua +++ b/unofficial/c511002641.lua @@ -53,4 +53,4 @@ function s.dircon(e) end function s.atkcon2(e) return e:GetHandler():IsDirectAttacked() -end +end \ No newline at end of file diff --git a/unofficial/c511002642.lua b/unofficial/c511002642.lua index cd55973a2c..c8ebf9d38c 100644 --- a/unofficial/c511002642.lua +++ b/unofficial/c511002642.lua @@ -33,4 +33,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetLabel()*300) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002643.lua b/unofficial/c511002643.lua index dfc0cfa57e..35ed430352 100644 --- a/unofficial/c511002643.lua +++ b/unofficial/c511002643.lua @@ -38,4 +38,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002644.lua b/unofficial/c511002644.lua index 3fd8686755..4fecad5e47 100644 --- a/unofficial/c511002644.lua +++ b/unofficial/c511002644.lua @@ -52,11 +52,11 @@ function s.filter(c,e,tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA+LOCATION_GRAVE+LOCATION_REMOVED) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA|LOCATION_GRAVE|LOCATION_REMOVED) end function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_EXTRA+LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_EXTRA|LOCATION_GRAVE|LOCATION_REMOVED,0,1,1,nil,e,tp):GetFirst() if tc and Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) @@ -78,4 +78,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterFlagEffect(id,0,0,0) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002645.lua b/unofficial/c511002645.lua index ed5c5473d1..340d5a9f18 100644 --- a/unofficial/c511002645.lua +++ b/unofficial/c511002645.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002646.lua b/unofficial/c511002646.lua index 8bc38a9879..90950735ab 100644 --- a/unofficial/c511002646.lua +++ b/unofficial/c511002646.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(tg,REASON_EFFECT) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002647.lua b/unofficial/c511002647.lua index 78c4fc9ff6..a4b3b3a477 100644 --- a/unofficial/c511002647.lua +++ b/unofficial/c511002647.lua @@ -32,4 +32,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002648.lua b/unofficial/c511002648.lua index 6f4d1ffe30..fe3f1ac67a 100644 --- a/unofficial/c511002648.lua +++ b/unofficial/c511002648.lua @@ -53,4 +53,4 @@ end function s.synlimit(e,c) if not c then return false end return not c:IsSetCard(0x601) -end +end \ No newline at end of file diff --git a/unofficial/c511002649.lua b/unofficial/c511002649.lua index 551ae6dd40..bce026a535 100644 --- a/unofficial/c511002649.lua +++ b/unofficial/c511002649.lua @@ -56,4 +56,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc=sg:GetNext() end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002650.lua b/unofficial/c511002650.lua index 099f366131..cafce22931 100644 --- a/unofficial/c511002650.lua +++ b/unofficial/c511002650.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetAttackTarget() - return d and d:IsFaceup() and d:IsControler(tp) and d:IsSetCard(0xba) and d:IsLevelBelow(4) + return d and d:IsFaceup() and d:IsControler(tp) and d:IsSetCard(SET_RAIDRAPTOR) and d:IsLevelBelow(4) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local d=Duel.GetAttackTarget() @@ -66,4 +66,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e8:SetValue(tc:GetDefense()) token:RegisterEffect(e8) Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002651.lua b/unofficial/c511002651.lua index a1afc97697..b2864c9243 100644 --- a/unofficial/c511002651.lua +++ b/unofficial/c511002651.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) end s.listed_series={0x99} function s.pfilter(c) - return c:IsSetCard(0x99) and c:IsType(TYPE_PENDULUM) + return c:IsSetCard(SET_ODD_EYES) and c:IsType(TYPE_PENDULUM) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.pfilter,tp,LOCATION_MZONE,0,1,c) end @@ -78,4 +78,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002652.lua b/unofficial/c511002652.lua index 5296a9a5ed..e8e04a75cc 100644 --- a/unofficial/c511002652.lua +++ b/unofficial/c511002652.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.cfilter(c) - return c:IsSetCard(0xad) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_FRIGHTFUR) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,1,e:GetHandler()) @@ -29,4 +29,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local g2=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_EXTRA,0,2,2,nil) g1:Merge(g2) Duel.SendtoGrave(g1,REASON_COST) -end +end \ No newline at end of file diff --git a/unofficial/c511002653.lua b/unofficial/c511002653.lua index 9d95186f17..805aa625e3 100644 --- a/unofficial/c511002653.lua +++ b/unofficial/c511002653.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002654.lua b/unofficial/c511002654.lua index 55678bc8cb..5eb59eb43d 100644 --- a/unofficial/c511002654.lua +++ b/unofficial/c511002654.lua @@ -25,7 +25,7 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - return d and ((a:GetControler()==tp and a:IsSetCard(0x33)) or (d:GetControler()==tp and d:IsSetCard(0x33))) + return d and ((a:GetControler()==tp and a:IsSetCard(SET_BLACKWING)) or (d:GetControler()==tp and d:IsSetCard(SET_BLACKWING))) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -48,15 +48,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.cfilter(c) - return c:IsSetCard(0x33) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_BLACKWING) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.tdcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -68,4 +68,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SendtoDeck(c,nil,0,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002658.lua b/unofficial/c511002658.lua index 872f9d09f4..b851c40b26 100644 --- a/unofficial/c511002658.lua +++ b/unofficial/c511002658.lua @@ -42,5 +42,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002660.lua b/unofficial/c511002660.lua index f91125f538..79ee7d9831 100644 --- a/unofficial/c511002660.lua +++ b/unofficial/c511002660.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local ct=s[tp] local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Draw(p,math.floor(ct/1000),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002662.lua b/unofficial/c511002662.lua index 28b748d185..ec3ea2172b 100644 --- a/unofficial/c511002662.lua +++ b/unofficial/c511002662.lua @@ -77,4 +77,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) Duel.Damage(1-tp,ev,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002663.lua b/unofficial/c511002663.lua index 316c516776..6085482e42 100644 --- a/unofficial/c511002663.lua +++ b/unofficial/c511002663.lua @@ -17,4 +17,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() Duel.Damage(1-tp,800,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002664.lua b/unofficial/c511002664.lua index 0a802c28ac..f822b05d3e 100644 --- a/unofficial/c511002664.lua +++ b/unofficial/c511002664.lua @@ -17,10 +17,10 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x33) + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) end function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002665.lua b/unofficial/c511002665.lua index 58fce2417c..2ae8fbdb67 100644 --- a/unofficial/c511002665.lua +++ b/unofficial/c511002665.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x33) + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) end function s.spcon(e,c) if c==nil then return true end @@ -28,4 +28,4 @@ function s.spcon(e,c) end function s.indval(e,re,rp) return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) -end +end \ No newline at end of file diff --git a/unofficial/c511002666.lua b/unofficial/c511002666.lua index a848aee1ab..8ae4ef07ec 100644 --- a/unofficial/c511002666.lua +++ b/unofficial/c511002666.lua @@ -28,4 +28,4 @@ function s.datop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002667.lua b/unofficial/c511002667.lua index 247e804df3..8ce890f6f2 100644 --- a/unofficial/c511002667.lua +++ b/unofficial/c511002667.lua @@ -15,7 +15,7 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - return d and (a:IsSetCard(0x43) or d:IsSetCard(0x43)) and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) + return d and (a:IsSetCard(SET_JUNK) or d:IsSetCard(SET_JUNK)) and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e4:SetValue(atk2) e4:SetReset(RESET_EVENT+RESETS_STANDARD) d:RegisterEffect(e4) -end +end \ No newline at end of file diff --git a/unofficial/c511002668.lua b/unofficial/c511002668.lua index 0bc88e5015..bd04548e29 100644 --- a/unofficial/c511002668.lua +++ b/unofficial/c511002668.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002669.lua b/unofficial/c511002669.lua index ad14c8733f..f1b49a8dd0 100644 --- a/unofficial/c511002669.lua +++ b/unofficial/c511002669.lua @@ -35,4 +35,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002670.lua b/unofficial/c511002670.lua index 6f052d7e42..310d4d7582 100644 --- a/unofficial/c511002670.lua +++ b/unofficial/c511002670.lua @@ -35,4 +35,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002672.lua b/unofficial/c511002672.lua index b92fbfd28b..ae0ccd08f5 100644 --- a/unofficial/c511002672.lua +++ b/unofficial/c511002672.lua @@ -23,4 +23,4 @@ function s.con(e,tp,eg,ep,ev,re,r,rp) end function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511002673.lua b/unofficial/c511002673.lua index 4da6ec00cd..b591ef6f48 100644 --- a/unofficial/c511002673.lua +++ b/unofficial/c511002673.lua @@ -7,4 +7,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_DOUBLE_TRIBUTE) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002674.lua b/unofficial/c511002674.lua index 4e80ca27e5..27374d45c6 100644 --- a/unofficial/c511002674.lua +++ b/unofficial/c511002674.lua @@ -28,4 +28,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFacedown() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002675.lua b/unofficial/c511002675.lua index c3983366e6..50e2444f56 100644 --- a/unofficial/c511002675.lua +++ b/unofficial/c511002675.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x48} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x48) + return c:IsFaceup() and c:IsSetCard(SET_NUMBER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil) @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil) Duel.Draw(p,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002676.lua b/unofficial/c511002676.lua index 11788943c2..e1f2ee39f3 100644 --- a/unofficial/c511002676.lua +++ b/unofficial/c511002676.lua @@ -18,4 +18,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002677.lua b/unofficial/c511002677.lua index c7f4e04259..96a8a3001c 100644 --- a/unofficial/c511002677.lua +++ b/unofficial/c511002677.lua @@ -64,4 +64,4 @@ end function s.desop2(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002678.lua b/unofficial/c511002678.lua index 52fc2420e2..a59d6dad38 100644 --- a/unofficial/c511002678.lua +++ b/unofficial/c511002678.lua @@ -42,4 +42,4 @@ function s.indtg(e,c) end function s.valcon(e,re,r,rp) return (r&REASON_BATTLE)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002679.lua b/unofficial/c511002679.lua index 10da1ff377..d8e109f047 100644 --- a/unofficial/c511002679.lua +++ b/unofficial/c511002679.lua @@ -20,4 +20,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002680.lua b/unofficial/c511002680.lua index 2fcb618949..f98cd058b8 100644 --- a/unofficial/c511002680.lua +++ b/unofficial/c511002680.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and not tc:IsAttackPos() then Duel.ChangePosition(tc,0,0,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511002681.lua b/unofficial/c511002681.lua index d4c90e215b..820b513e10 100644 --- a/unofficial/c511002681.lua +++ b/unofficial/c511002681.lua @@ -89,4 +89,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.ChangeTargetCard(ev,Group.FromCards(tc)) end -end +end \ No newline at end of file diff --git a/unofficial/c511002682.lua b/unofficial/c511002682.lua index 1d6bf8b2e1..e60432c546 100644 --- a/unofficial/c511002682.lua +++ b/unofficial/c511002682.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002683.lua b/unofficial/c511002683.lua index f2ea3af19c..32cc30c0ed 100644 --- a/unofficial/c511002683.lua +++ b/unofficial/c511002683.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) Duel.ChangePosition(c,POS_FACEUP_DEFENSE) -end +end \ No newline at end of file diff --git a/unofficial/c511002684.lua b/unofficial/c511002684.lua index 68c2df07fb..5d8a57aed0 100644 --- a/unofficial/c511002684.lua +++ b/unofficial/c511002684.lua @@ -11,4 +11,4 @@ function s.initial_effect(c) end function s.value(e,c) return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_HAND,0)*400 -end +end \ No newline at end of file diff --git a/unofficial/c511002686.lua b/unofficial/c511002686.lua index ecf21ad0ab..2c6b821dc3 100644 --- a/unofficial/c511002686.lua +++ b/unofficial/c511002686.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if bc and bc:IsRelateToBattle() and bc:IsFaceup() then Duel.ChangePosition(bc,POS_FACEDOWN_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511002687.lua b/unofficial/c511002687.lua index 87f8f1d110..47c7930761 100644 --- a/unofficial/c511002687.lua +++ b/unofficial/c511002687.lua @@ -23,4 +23,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002688.lua b/unofficial/c511002688.lua index b3582c373c..a91dfad71c 100644 --- a/unofficial/c511002688.lua +++ b/unofficial/c511002688.lua @@ -11,4 +11,4 @@ function s.initial_effect(c) e1:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_WARRIOR)) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002689.lua b/unofficial/c511002689.lua index 4e1dcf745e..8661e052cb 100644 --- a/unofficial/c511002689.lua +++ b/unofficial/c511002689.lua @@ -14,4 +14,4 @@ function s.syncheck(e,c) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511002690.lua b/unofficial/c511002690.lua index 47e392d815..3b8b2ac21a 100644 --- a/unofficial/c511002690.lua +++ b/unofficial/c511002690.lua @@ -63,7 +63,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end - e:GetHandler():RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,1) + e:GetHandler():RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,1) end end function s.tglimit(e,c) @@ -76,4 +76,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002691.lua b/unofficial/c511002691.lua index 44023e7d6d..4c88cee444 100644 --- a/unofficial/c511002691.lua +++ b/unofficial/c511002691.lua @@ -31,4 +31,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002692.lua b/unofficial/c511002692.lua index f035a4c616..39af70e637 100644 --- a/unofficial/c511002692.lua +++ b/unofficial/c511002692.lua @@ -22,4 +22,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local rec=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,LOCATION_MZONE)*200 Duel.Recover(p,rec,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002693.lua b/unofficial/c511002693.lua index 31a24483c8..a4ef834dfb 100644 --- a/unofficial/c511002693.lua +++ b/unofficial/c511002693.lua @@ -40,4 +40,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) if not g then return end Duel.SendtoGrave(g,REASON_COST) g:DeleteGroup() -end +end \ No newline at end of file diff --git a/unofficial/c511002694.lua b/unofficial/c511002694.lua index f691a227e3..a30058e12e 100644 --- a/unofficial/c511002694.lua +++ b/unofficial/c511002694.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,id+1) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002696.lua b/unofficial/c511002696.lua index 79605b2dec..a73d66e21d 100644 --- a/unofficial/c511002696.lua +++ b/unofficial/c511002696.lua @@ -18,4 +18,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.cfilter,tp,0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002697.lua b/unofficial/c511002697.lua index 18279cf018..b0b554f67f 100644 --- a/unofficial/c511002697.lua +++ b/unofficial/c511002697.lua @@ -54,4 +54,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002698.lua b/unofficial/c511002698.lua index a9ba95f4d3..0570ff4b8f 100644 --- a/unofficial/c511002698.lua +++ b/unofficial/c511002698.lua @@ -50,4 +50,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002699.lua b/unofficial/c511002699.lua index db248f273a..5d8cb58d69 100644 --- a/unofficial/c511002699.lua +++ b/unofficial/c511002699.lua @@ -30,4 +30,4 @@ function s.refcon(e,re,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511002700.lua b/unofficial/c511002700.lua index 5fbf18b328..3366fc6aa4 100644 --- a/unofficial/c511002700.lua +++ b/unofficial/c511002700.lua @@ -53,4 +53,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002701.lua b/unofficial/c511002701.lua index 8c736f94f2..d26a1dd7ef 100644 --- a/unofficial/c511002701.lua +++ b/unofficial/c511002701.lua @@ -30,4 +30,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002702.lua b/unofficial/c511002702.lua index c9caeded14..23481f7dbd 100644 --- a/unofficial/c511002702.lua +++ b/unofficial/c511002702.lua @@ -57,7 +57,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local pc=Duel.GetFieldCard(tp,LOCATION_PZONE,0) if pc==c then pc=Duel.GetFieldCard(tp,LOCATION_PZONE,1) end - if not pc or not pc:IsSetCard(0x99) or not a or not d then return end + if not pc or not pc:IsSetCard(SET_ODD_EYES) or not a or not d then return end local atk=pc:GetAttack() if atk<=0 then return end local g=Group.FromCards(a,d) @@ -73,4 +73,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002703.lua b/unofficial/c511002703.lua index f988e00218..150912cdc9 100644 --- a/unofficial/c511002703.lua +++ b/unofficial/c511002703.lua @@ -43,4 +43,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==1 -end +end \ No newline at end of file diff --git a/unofficial/c511002704.lua b/unofficial/c511002704.lua index 7bf5b2d2a7..944a7339a1 100644 --- a/unofficial/c511002704.lua +++ b/unofficial/c511002704.lua @@ -49,7 +49,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.sumcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) + return e:GetHandler():IsFusionSummoned() end function s.mgfilter(c,e,tp,fusc) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) @@ -73,4 +73,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #mg<=ft and mg:FilterCount(aux.NecroValleyFilter(s.mgfilter),nil,e,tp,c)==#mg then Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002705.lua b/unofficial/c511002705.lua index 23a0f0d3f0..75647b1374 100644 --- a/unofficial/c511002705.lua +++ b/unofficial/c511002705.lua @@ -126,4 +126,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002706.lua b/unofficial/c511002706.lua index 316cb54188..1d1245a532 100644 --- a/unofficial/c511002706.lua +++ b/unofficial/c511002706.lua @@ -101,4 +101,4 @@ function s.regcon(e,tp,eg,ep,ev,re,r,rp) end function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+0x1ec0000+RESET_PHASE+PHASE_END,0,1) -end +end \ No newline at end of file diff --git a/unofficial/c511002708.lua b/unofficial/c511002708.lua index de96a9f94e..c06a5aa1b2 100644 --- a/unofficial/c511002708.lua +++ b/unofficial/c511002708.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,dam,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002709.lua b/unofficial/c511002709.lua index ab8f63c29a..8107b5705b 100644 --- a/unofficial/c511002709.lua +++ b/unofficial/c511002709.lua @@ -31,7 +31,7 @@ s.collection={ [71625222]=true;[54941203]=true; } function s.cfilter(c) - return c:IsSetCard(0x98) or c:IsSetCard(0xa2) or s.collection[c:GetCode()] + return c:IsSetCard(SET_MAGICIAN) or c:IsSetCard(0xa2) or s.collection[c:GetCode()] end function s.thcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -73,4 +73,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if dam<0 then dam=0 end Duel.Damage(p,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002710.lua b/unofficial/c511002710.lua index c2dc789340..2e733fe5ee 100644 --- a/unofficial/c511002710.lua +++ b/unofficial/c511002710.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) e2:SetDescription(aux.Stringid(id,1)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_IGNITION) - e2:SetRange(LOCATION_HAND+LOCATION_GRAVE) + e2:SetRange(LOCATION_HAND|LOCATION_GRAVE) e2:SetCondition(s.spcon) e2:SetTarget(s.sptg) e2:SetOperation(s.spop) @@ -49,4 +49,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002711.lua b/unofficial/c511002711.lua index b4157a9738..f9d012b374 100644 --- a/unofficial/c511002711.lua +++ b/unofficial/c511002711.lua @@ -17,4 +17,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (Duel.GetFieldCard(tp,LOCATION_FZONE,0) or Duel.GetFieldCard(1-tp,LOCATION_FZONE,0)) -end +end \ No newline at end of file diff --git a/unofficial/c511002712.lua b/unofficial/c511002712.lua index d208d5a917..c125181a46 100644 --- a/unofficial/c511002712.lua +++ b/unofficial/c511002712.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) end s.material_setcode=SET_EARTHBOUND function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and eg:IsExists(Card.IsControler,1,nil,1-tp) + return Duel.IsTurnPlayer(tp) and eg:IsExists(Card.IsControler,1,nil,1-tp) end function s.desfilter(c) return c:IsStatus(STATUS_SPSUMMON_TURN) @@ -38,4 +38,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if ct>0 then Duel.Damage(1-tp,ct*800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002713.lua b/unofficial/c511002713.lua index ae44673760..583356aa48 100644 --- a/unofficial/c511002713.lua +++ b/unofficial/c511002713.lua @@ -36,4 +36,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002714.lua b/unofficial/c511002714.lua index 979a5d34ca..812cf1847f 100644 --- a/unofficial/c511002714.lua +++ b/unofficial/c511002714.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002715.lua b/unofficial/c511002715.lua index b6ee8c791b..76136d053b 100644 --- a/unofficial/c511002715.lua +++ b/unofficial/c511002715.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.RaiseSingleEvent(tc,EVENT_SPSUMMON_SUCCESS,e,REASON_EFFECT,tp,tc:GetControler(),ev) tc:SetStatus(STATUS_SPSUMMON_TURN,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511002716.lua b/unofficial/c511002716.lua index 9ed498df9f..0c166148c0 100644 --- a/unofficial/c511002716.lua +++ b/unofficial/c511002716.lua @@ -43,4 +43,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_PHASE|PHASE_END) Duel.RegisterEffect(e2,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002718.lua b/unofficial/c511002718.lua index 33363ee538..930130fe5a 100644 --- a/unofficial/c511002718.lua +++ b/unofficial/c511002718.lua @@ -39,4 +39,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,tp,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002719.lua b/unofficial/c511002719.lua index 0fb2895aa6..e65234344e 100644 --- a/unofficial/c511002719.lua +++ b/unofficial/c511002719.lua @@ -59,4 +59,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,tc:GetAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002720.lua b/unofficial/c511002720.lua index 917ca86b79..1e31c738db 100644 --- a/unofficial/c511002720.lua +++ b/unofficial/c511002720.lua @@ -50,4 +50,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002721.lua b/unofficial/c511002721.lua index bee6f1fad2..6f6bcadde9 100644 --- a/unofficial/c511002721.lua +++ b/unofficial/c511002721.lua @@ -43,4 +43,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD) bc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002722.lua b/unofficial/c511002722.lua index d890ca00c0..799f51d611 100644 --- a/unofficial/c511002722.lua +++ b/unofficial/c511002722.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e2=e1:Clone() e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002724.lua b/unofficial/c511002724.lua index 0d2c040143..b88b473942 100644 --- a/unofficial/c511002724.lua +++ b/unofficial/c511002724.lua @@ -67,4 +67,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) eq:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002725.lua b/unofficial/c511002725.lua index ef8322cc67..b59a6ac86f 100644 --- a/unofficial/c511002725.lua +++ b/unofficial/c511002725.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg1,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002726.lua b/unofficial/c511002726.lua index b09b8447b4..016a767e5b 100644 --- a/unofficial/c511002726.lua +++ b/unofficial/c511002726.lua @@ -64,4 +64,4 @@ end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.cfilter,nil,tp) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002727.lua b/unofficial/c511002727.lua index 5e3ba07518..c23555db18 100644 --- a/unofficial/c511002727.lua +++ b/unofficial/c511002727.lua @@ -48,5 +48,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE|PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) Duel.SetLP(tp,100,REASON_EFFECT) -end - +end \ No newline at end of file diff --git a/unofficial/c511002728.lua b/unofficial/c511002728.lua index 4709c49eeb..a7ac544cd8 100644 --- a/unofficial/c511002728.lua +++ b/unofficial/c511002728.lua @@ -15,10 +15,10 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() local lv=tc:GetLevel() - return #eg==1 and tc:IsSetCard(0x3008) and tc:IsPreviousPosition(POS_FACEUP) and tc:IsPreviousControler(tp) + return #eg==1 and tc:IsSetCard(SET_ELEMENTAL_HERO) and tc:IsPreviousPosition(POS_FACEUP) and tc:IsPreviousControler(tp) end function s.filter(c,lv) - return c:IsLevelBelow(lv) and c:IsSetCard(0xc008) and c:IsAbleToHand() + return c:IsLevelBelow(lv) and c:IsSetCard(SET_DESTINY_HERO) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil,eg:GetFirst():GetLevel()) end @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) until #sg==0 or not Duel.SelectYesNo(tp,aux.Stringid(9354555,0)) Duel.SendtoHand(ag,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,ag) -end +end \ No newline at end of file diff --git a/unofficial/c511002729.lua b/unofficial/c511002729.lua index 94dc66fd99..e506d51825 100644 --- a/unofficial/c511002729.lua +++ b/unofficial/c511002729.lua @@ -32,13 +32,13 @@ function s.initial_effect(c) end s.listed_series={0xc008} function s.rescon(sg,e,tp,mg) - return aux.ChkfMMZ(1)(sg,e,tp,mg) and sg:IsExists(Card.IsSetCard,1,nil,0xc008) + return aux.ChkfMMZ(1)(sg,e,tp,mg) and sg:IsExists(Card.IsSetCard,1,nil,SET_DESTINY_HERO) end function s.spcon(e,c) if c==nil then return true end local tp=c:GetControler() local rg=Duel.GetReleaseGroup(tp) - return Duel.GetLocationCount(tp,LOCATION_MZONE)>-3 and #rg>2 and rg:IsExists(Card.IsSetCard,1,nil,0xc008) + return Duel.GetLocationCount(tp,LOCATION_MZONE)>-3 and #rg>2 and rg:IsExists(Card.IsSetCard,1,nil,SET_DESTINY_HERO) and aux.SelectUnselectGroup(rg,e,tp,3,3,s.rescon,0) end function s.spop(e,tp,eg,ep,ev,re,r,rp,c) @@ -54,4 +54,4 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp) if c:IsFaceup() and c:IsRelateToEffect(e) then Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002730.lua b/unofficial/c511002730.lua index 4c24ec6246..366e597bfd 100644 --- a/unofficial/c511002730.lua +++ b/unofficial/c511002730.lua @@ -49,7 +49,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end function s.costfilter(c,e,tp) - return c:IsSetCard(0x107f) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_UTOPIA) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE,0,1,nil) end @@ -66,4 +66,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002733.lua b/unofficial/c511002733.lua index 5c46ab1201..5c48dba172 100644 --- a/unofficial/c511002733.lua +++ b/unofficial/c511002733.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002734.lua b/unofficial/c511002734.lua index afe04d54ec..81d4040461 100644 --- a/unofficial/c511002734.lua +++ b/unofficial/c511002734.lua @@ -44,4 +44,4 @@ end function s.negop(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(aux.NOT(Card.IsSummonPlayer),nil,tp) Duel.NegateSummon(g) -end +end \ No newline at end of file diff --git a/unofficial/c511002736.lua b/unofficial/c511002736.lua index ed9594a3d6..aa629c7c63 100644 --- a/unofficial/c511002736.lua +++ b/unofficial/c511002736.lua @@ -59,4 +59,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end e:Reset() end -end +end \ No newline at end of file diff --git a/unofficial/c511002737.lua b/unofficial/c511002737.lua index 424cff21e3..6f92a9e34b 100644 --- a/unofficial/c511002737.lua +++ b/unofficial/c511002737.lua @@ -42,4 +42,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002738.lua b/unofficial/c511002738.lua index a43f899ef8..684db9a28b 100644 --- a/unofficial/c511002738.lua +++ b/unofficial/c511002738.lua @@ -17,7 +17,7 @@ end s.listed_series={0x1083} function s.lvfilter(c,lv) local clv=c:GetLevel() - return c:IsFaceup() and c:IsSetCard(0x1083) and clv>0 and clv~=lv + return c:IsFaceup() and c:IsSetCard(SET_GIMMICK_PUPPET) and clv>0 and clv~=lv end function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.lvfilter(chkc,e:GetHandler():GetLevel()) end @@ -36,4 +36,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002739.lua b/unofficial/c511002739.lua index a22653591e..7e20d86285 100644 --- a/unofficial/c511002739.lua +++ b/unofficial/c511002739.lua @@ -19,4 +19,4 @@ function s.spcon(e,c) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 and Duel.IsExistingMatchingCard(s.cfilter,tp,0,LOCATION_MZONE,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511002740.lua b/unofficial/c511002740.lua index 42d7381a05..89b5739c69 100644 --- a/unofficial/c511002740.lua +++ b/unofficial/c511002740.lua @@ -29,4 +29,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) e1:SetValue(c:GetLevel()*2) e1:SetReset(RESET_EVENT+0xff0000) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002741.lua b/unofficial/c511002741.lua index ce5deb524e..35885c256b 100644 --- a/unofficial/c511002741.lua +++ b/unofficial/c511002741.lua @@ -12,4 +12,4 @@ function s.initial_effect(c) end function s.atcon(e) return not Duel.IsExistingMatchingCard(Card.IsFaceup,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511002742.lua b/unofficial/c511002742.lua index ea307604e1..6bb0ecb06f 100644 --- a/unofficial/c511002742.lua +++ b/unofficial/c511002742.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) Duel.Damage(1-tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002743.lua b/unofficial/c511002743.lua index 23d97ebcb5..35345acb09 100644 --- a/unofficial/c511002743.lua +++ b/unofficial/c511002743.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002744.lua b/unofficial/c511002744.lua index 81a2fc4690..05fee0433d 100644 --- a/unofficial/c511002744.lua +++ b/unofficial/c511002744.lua @@ -32,4 +32,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002745.lua b/unofficial/c511002745.lua index 672702296f..fd7eff3f7a 100644 --- a/unofficial/c511002745.lua +++ b/unofficial/c511002745.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002746.lua b/unofficial/c511002746.lua index af92a48ef2..a25fc3c85b 100644 --- a/unofficial/c511002746.lua +++ b/unofficial/c511002746.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local xyz=xyzg:Select(tp,1,1,nil):GetFirst() Duel.XyzSummon(tp,xyz,nil,mg) end -end +end \ No newline at end of file diff --git a/unofficial/c511002747.lua b/unofficial/c511002747.lua index 14240b14bb..84bac16b7c 100644 --- a/unofficial/c511002747.lua +++ b/unofficial/c511002747.lua @@ -46,4 +46,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.rcon(e) return e:GetOwner():IsHasCardTarget(e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511002748.lua b/unofficial/c511002748.lua index 68f535249d..14cb7ac491 100644 --- a/unofficial/c511002748.lua +++ b/unofficial/c511002748.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002749.lua b/unofficial/c511002749.lua index 206cf8b149..5ca0a8c79d 100644 --- a/unofficial/c511002749.lua +++ b/unofficial/c511002749.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) local e4=Effect.CreateEffect(c) e4:SetType(EFFECT_TYPE_SINGLE) e4:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e4:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e4:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e4) end s.xyz_number=66 @@ -75,4 +75,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_EFFECT) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511002751.lua b/unofficial/c511002751.lua index 92b661159d..1fe85bb382 100644 --- a/unofficial/c511002751.lua +++ b/unofficial/c511002751.lua @@ -28,4 +28,4 @@ function s.atcon(e) end function s.descon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_MZONE,0)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002752.lua b/unofficial/c511002752.lua index a549715cad..7dd5291438 100644 --- a/unofficial/c511002752.lua +++ b/unofficial/c511002752.lua @@ -54,4 +54,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e4:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e4) end -end +end \ No newline at end of file diff --git a/unofficial/c511002753.lua b/unofficial/c511002753.lua index bee3c24d54..34a9e6404c 100644 --- a/unofficial/c511002753.lua +++ b/unofficial/c511002753.lua @@ -56,9 +56,9 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Damage(tp,1000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002754.lua b/unofficial/c511002754.lua index 1cf6b26a5a..d97112b030 100644 --- a/unofficial/c511002754.lua +++ b/unofficial/c511002754.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) g:Sub(sg) Duel.NegateSummon(g) Duel.Draw(tp,#g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002755.lua b/unofficial/c511002755.lua index 69ccfe28d5..18183eb84d 100644 --- a/unofficial/c511002755.lua +++ b/unofficial/c511002755.lua @@ -47,4 +47,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) if ct==1 then Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) else e:SetLabel(1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002756.lua b/unofficial/c511002756.lua index 2a3e6e1fad..9f623df523 100644 --- a/unofficial/c511002756.lua +++ b/unofficial/c511002756.lua @@ -50,4 +50,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002757.lua b/unofficial/c511002757.lua index 47b1cd986e..0675c3038c 100644 --- a/unofficial/c511002757.lua +++ b/unofficial/c511002757.lua @@ -48,7 +48,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) tc1=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,eg):GetFirst() if tc1 then - local pos=Duel.GetTurnPlayer()==tp and POS_FACEUP_ATTACK or POS_FACEUP + local pos=Duel.IsTurnPlayer(tp) and POS_FACEUP_ATTACK or POS_FACEUP if Duel.SpecialSummonStep(tc1,0,tp,tp,false,false,pos) then tc1:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE,0,1,fid) end @@ -56,7 +56,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCountFromEx(1-tp,1-tp,nil,TYPE_XYZ)>0 then Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_SPSUMMON) tc2=Duel.SelectMatchingCard(1-tp,s.filter,1-tp,LOCATION_EXTRA,0,1,1,nil,e,1-tp,eg):GetFirst() - local pos=Duel.GetTurnPlayer()==1-tp and POS_FACEUP_ATTACK or POS_FACEUP + local pos=Duel.IsTurnPlayer(1-tp) and POS_FACEUP_ATTACK or POS_FACEUP if tc2 and Duel.SpecialSummonStep(tc2,0,1-tp,1-tp,false,false,pos) then tc2:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE,0,1,fid) end @@ -71,7 +71,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(tc2,tg2) end if tc1 and tc2 then - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then Duel.CalculateDamage(tc1,tc2) else Duel.CalculateDamage(tc2,tc1) @@ -104,4 +104,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local tg=g:Filter(s.desfilter,nil,e:GetLabel()) Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002758.lua b/unofficial/c511002758.lua index 0f9a9eb566..782574121e 100644 --- a/unofficial/c511002758.lua +++ b/unofficial/c511002758.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002759.lua b/unofficial/c511002759.lua index 26e583c773..40194c5636 100644 --- a/unofficial/c511002759.lua +++ b/unofficial/c511002759.lua @@ -11,4 +11,4 @@ function s.initial_effect(c) end function s.tgval(e,c) return c:IsAttribute(ATTRIBUTE_WATER) -end +end \ No newline at end of file diff --git a/unofficial/c511002760.lua b/unofficial/c511002760.lua index 568763807b..358a0a6393 100644 --- a/unofficial/c511002760.lua +++ b/unofficial/c511002760.lua @@ -10,5 +10,5 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.tgval(e,c) - return c:IsSetCard(0x206f) -end + return c:IsSetCard(SET_HEROIC_CHAMPION) +end \ No newline at end of file diff --git a/unofficial/c511002761.lua b/unofficial/c511002761.lua index 8385676378..9b037bd7b9 100644 --- a/unofficial/c511002761.lua +++ b/unofficial/c511002761.lua @@ -11,5 +11,5 @@ function s.initial_effect(c) end s.listed_series={0x84} function s.tgval(e,c) - return c:IsSetCard(0x84) -end + return c:IsSetCard(SET_BATTLIN_BOXER) +end \ No newline at end of file diff --git a/unofficial/c511002762.lua b/unofficial/c511002762.lua index b9eb0ba395..1b22b5c601 100644 --- a/unofficial/c511002762.lua +++ b/unofficial/c511002762.lua @@ -37,4 +37,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e) return Duel.GetLP(e:GetHandlerPlayer())>500 -end +end \ No newline at end of file diff --git a/unofficial/c511002763.lua b/unofficial/c511002763.lua index 4ca74f6359..e97e1ff7df 100644 --- a/unofficial/c511002763.lua +++ b/unofficial/c511002763.lua @@ -45,4 +45,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002764.lua b/unofficial/c511002764.lua index 2ca2c87bc8..46dcf625f2 100644 --- a/unofficial/c511002764.lua +++ b/unofficial/c511002764.lua @@ -37,4 +37,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,ct1*500,REASON_EFFECT,true) Duel.Damage(1-tp,ct2*500,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002765.lua b/unofficial/c511002765.lua index bfa5685c89..57ab5bff7d 100644 --- a/unofficial/c511002765.lua +++ b/unofficial/c511002765.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(tc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002766.lua b/unofficial/c511002766.lua index ff07944a16..948f930f22 100644 --- a/unofficial/c511002766.lua +++ b/unofficial/c511002766.lua @@ -70,4 +70,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002767.lua b/unofficial/c511002767.lua index 97f691e7a1..60967bf64c 100644 --- a/unofficial/c511002767.lua +++ b/unofficial/c511002767.lua @@ -89,4 +89,4 @@ end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local pe=e:GetLabelObject() pe:SetValue(pe:GetValue()/2) -end +end \ No newline at end of file diff --git a/unofficial/c511002768.lua b/unofficial/c511002768.lua index c98a63bfea..67218ae228 100644 --- a/unofficial/c511002768.lua +++ b/unofficial/c511002768.lua @@ -39,7 +39,7 @@ function s.filter2(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 - and c:IsRank(rk) and mc:IsCanBeXyzMaterial(c,tp) and c:IsSetCard(0xba) + and c:IsRank(rk) and mc:IsCanBeXyzMaterial(c,tp) and c:IsSetCard(SET_RAIDRAPTOR) and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -64,4 +64,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511002769.lua b/unofficial/c511002769.lua index 09630289a0..6b789b37fd 100644 --- a/unofficial/c511002769.lua +++ b/unofficial/c511002769.lua @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local xyz=xyzg:Select(tp,1,1,nil):GetFirst() Duel.XyzSummon(tp,xyz,nil,mg) end -end +end \ No newline at end of file diff --git a/unofficial/c511002770.lua b/unofficial/c511002770.lua index 741472de16..623ec8b9c6 100644 --- a/unofficial/c511002770.lua +++ b/unofficial/c511002770.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if not te then return end local op=te:GetOperation() if op then op(e,tp,eg,ep,ev,re,r,rp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002771.lua b/unofficial/c511002771.lua index 5e633172fe..ee16d3c2b0 100644 --- a/unofficial/c511002771.lua +++ b/unofficial/c511002771.lua @@ -31,4 +31,4 @@ function s.posctrlop(e,tp,eg,ep,ev,re,r,rp) Duel.GetControl(tc,tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002772.lua b/unofficial/c511002772.lua index 4848af1312..33930382b3 100644 --- a/unofficial/c511002772.lua +++ b/unofficial/c511002772.lua @@ -7,4 +7,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_DOUBLE_XYZ_MATERIAL) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002773.lua b/unofficial/c511002773.lua index e483a0d2ca..fa1883a2f8 100644 --- a/unofficial/c511002773.lua +++ b/unofficial/c511002773.lua @@ -23,7 +23,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RegisterEffect(e1,tp) end function s.filter1(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0xba) and c:IsLevelBelow(3) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) and c:IsLevelBelow(3) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode()) end function s.filter2(c,e,tp,code) @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002774.lua b/unofficial/c511002774.lua index dab4b08527..2e17eaf0b1 100644 --- a/unofficial/c511002774.lua +++ b/unofficial/c511002774.lua @@ -74,4 +74,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if _replace_count<=_replace_max and tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002775.lua b/unofficial/c511002775.lua index 6cd4b4e733..b7665daa2a 100644 --- a/unofficial/c511002775.lua +++ b/unofficial/c511002775.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0xe6) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_FLOWER_CARDIAN) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002776.lua b/unofficial/c511002776.lua index bb6f353b85..b04874bf04 100644 --- a/unofficial/c511002776.lua +++ b/unofficial/c511002776.lua @@ -31,4 +31,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511002777.lua b/unofficial/c511002777.lua index 6f19e86880..86355fa389 100644 --- a/unofficial/c511002777.lua +++ b/unofficial/c511002777.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002778.lua b/unofficial/c511002778.lua index abcb9c34c5..924ba9c13e 100644 --- a/unofficial/c511002778.lua +++ b/unofficial/c511002778.lua @@ -84,4 +84,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,atk,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002780.lua b/unofficial/c511002780.lua index b6cdd8eb4a..228a71bc3c 100644 --- a/unofficial/c511002780.lua +++ b/unofficial/c511002780.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002787.lua b/unofficial/c511002787.lua index 7b71a09fdd..5e0eaf631e 100644 --- a/unofficial/c511002787.lua +++ b/unofficial/c511002787.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.Damage(1-tp,800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002789.lua b/unofficial/c511002789.lua index dd7ee8515b..9cfc6ead30 100644 --- a/unofficial/c511002789.lua +++ b/unofficial/c511002789.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(a:GetAttack()) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002790.lua b/unofficial/c511002790.lua index a94127de9b..50fc29eb43 100644 --- a/unofficial/c511002790.lua +++ b/unofficial/c511002790.lua @@ -15,7 +15,7 @@ end function s.cfilter(c,tp) local ec=c:GetPreviousEquipTarget() return c:IsReason(REASON_LOST_TARGET) and ec and ec:IsPreviousControler(tp) - and c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA) and ec:IsLocation(LOCATION_GRAVE) + and c:IsLocation(LOCATION_GRAVE|LOCATION_REMOVED|LOCATION_EXTRA) and ec:IsLocation(LOCATION_GRAVE) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.cfilter,nil,tp) @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) ec:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002791.lua b/unofficial/c511002791.lua index 1c3d3f624c..cc877935eb 100644 --- a/unofficial/c511002791.lua +++ b/unofficial/c511002791.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002792.lua b/unofficial/c511002792.lua index 97cd62b388..5bedef4fff 100644 --- a/unofficial/c511002792.lua +++ b/unofficial/c511002792.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangePosition(g,0,POS_FACEUP_ATTACK,0,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511002793.lua b/unofficial/c511002793.lua index d838317df5..db3931b1cb 100644 --- a/unofficial/c511002793.lua +++ b/unofficial/c511002793.lua @@ -42,4 +42,4 @@ function s.regcon(e,tp,eg,ep,ev,re,r,rp) end function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id+1,RESET_EVENT+0x1fa0000,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002794.lua b/unofficial/c511002794.lua index 5f767559da..e7cd7f17cb 100644 --- a/unofficial/c511002794.lua +++ b/unofficial/c511002794.lua @@ -169,4 +169,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc=sg:GetNext() end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002795.lua b/unofficial/c511002795.lua index fdee6a101e..a7d7d25d6c 100644 --- a/unofficial/c511002795.lua +++ b/unofficial/c511002795.lua @@ -33,7 +33,7 @@ end function s.condition(e,tp,eg,ep,ev,re,r,rp) if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) - if not tg or #tg~=1 or tg:GetFirst():IsFacedown() or not tg:GetFirst():IsSetCard(0x33) or not tg:GetFirst():IsLocation(LOCATION_MZONE) + if not tg or #tg~=1 or tg:GetFirst():IsFacedown() or not tg:GetFirst():IsSetCard(SET_BLACKWING) or not tg:GetFirst():IsLocation(LOCATION_MZONE) or tg:GetFirst():IsControler(1-tp) then return false end return rp~=tp and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev) end @@ -75,4 +75,4 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.desval(e,c) return c==e:GetHandler():GetFirstCardTarget() -end +end \ No newline at end of file diff --git a/unofficial/c511002796.lua b/unofficial/c511002796.lua index b5fe072b21..8741686f68 100644 --- a/unofficial/c511002796.lua +++ b/unofficial/c511002796.lua @@ -37,4 +37,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002797.lua b/unofficial/c511002797.lua index 5f86584358..45531045ed 100644 --- a/unofficial/c511002797.lua +++ b/unofficial/c511002797.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SSet(1-tp,sg:GetFirst()) end Duel.ShuffleHand(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002798.lua b/unofficial/c511002798.lua index 9cc8868298..592412a941 100644 --- a/unofficial/c511002798.lua +++ b/unofficial/c511002798.lua @@ -16,10 +16,10 @@ s.listed_series={0x1048} function s.condition(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - return ep==tp and ev>=2000 and (a:IsSetCard(0x1048) and a:IsControler(1-tp) or (d and d:IsSetCard(0x1048) and d:IsControler(1-tp))) + return ep==tp and ev>=2000 and (a:IsSetCard(SET_NUMBER_C) and a:IsControler(1-tp) or (d and d:IsSetCard(SET_NUMBER_C) and d:IsControler(1-tp))) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x1048) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER_C) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=g:RandomSelect(tp,1) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002799.lua b/unofficial/c511002799.lua index f34c10c23f..7d2b6c8c52 100644 --- a/unofficial/c511002799.lua +++ b/unofficial/c511002799.lua @@ -59,4 +59,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002800.lua b/unofficial/c511002800.lua index 7b57e26ad3..a1a906a381 100644 --- a/unofficial/c511002800.lua +++ b/unofficial/c511002800.lua @@ -46,4 +46,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetLabel()) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002801.lua b/unofficial/c511002801.lua index fc7fa44bd7..da82c9a18c 100644 --- a/unofficial/c511002801.lua +++ b/unofficial/c511002801.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002802.lua b/unofficial/c511002802.lua index 2b28753ce4..c80057bb10 100644 --- a/unofficial/c511002802.lua +++ b/unofficial/c511002802.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002803.lua b/unofficial/c511002803.lua index 4d8112bf83..0cc2eb2294 100644 --- a/unofficial/c511002803.lua +++ b/unofficial/c511002803.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc2:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002804.lua b/unofficial/c511002804.lua index 7476d7111f..48e04838df 100644 --- a/unofficial/c511002804.lua +++ b/unofficial/c511002804.lua @@ -76,4 +76,4 @@ function s.sumcon(e) end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp) return c==e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c511002805.lua b/unofficial/c511002805.lua index cbd8c8c03d..65c0000379 100644 --- a/unofficial/c511002805.lua +++ b/unofficial/c511002805.lua @@ -20,4 +20,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511002806.lua b/unofficial/c511002806.lua index 9570484d26..c9094f3035 100644 --- a/unofficial/c511002806.lua +++ b/unofficial/c511002806.lua @@ -25,4 +25,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511002807.lua b/unofficial/c511002807.lua index 7618da9288..4c9c129123 100644 --- a/unofficial/c511002807.lua +++ b/unofficial/c511002807.lua @@ -24,4 +24,4 @@ function s.spcon(e,c) end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002808.lua b/unofficial/c511002808.lua index 055f16e852..7723e700ab 100644 --- a/unofficial/c511002808.lua +++ b/unofficial/c511002808.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x10f2),aux.FilterBoolFunctionEx(Card.IsRace,RACE_BEAST)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_PENDULUM_DRAGON),aux.FilterBoolFunctionEx(Card.IsRace,RACE_BEAST)) --damage local e3=Effect.CreateEffect(c) e3:SetCategory(CATEGORY_DAMAGE) diff --git a/unofficial/c511002809.lua b/unofficial/c511002809.lua index 7bd7709484..c71d4575b9 100644 --- a/unofficial/c511002809.lua +++ b/unofficial/c511002809.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x10f2),aux.FilterBoolFunctionEx(Card.IsRace,RACE_SPELLCASTER)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_PENDULUM_DRAGON),aux.FilterBoolFunctionEx(Card.IsRace,RACE_SPELLCASTER)) --multi attack local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) @@ -61,4 +61,4 @@ function s.valcheck(e,c) end end e:GetLabelObject():SetLabel(flag) -end +end \ No newline at end of file diff --git a/unofficial/c511002810.lua b/unofficial/c511002810.lua index 622928442b..f8ab32a539 100644 --- a/unofficial/c511002810.lua +++ b/unofficial/c511002810.lua @@ -72,4 +72,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002811.lua b/unofficial/c511002811.lua index 933e853e8e..98d0af1259 100644 --- a/unofficial/c511002811.lua +++ b/unofficial/c511002811.lua @@ -30,7 +30,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return s[tp] end function s.cfilter(c) - return c:IsSetCard(0x9f) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) + return c:IsSetCard(SET_PERFORMAPAL) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and (c:GetReason()&REASON_DESTROY)==REASON_DESTROY end function s.checkop(e,tp,eg,ep,ev,re,r,rp) @@ -77,4 +77,4 @@ function s.refcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511002812.lua b/unofficial/c511002812.lua index aa05ce9315..701816734f 100644 --- a/unofficial/c511002812.lua +++ b/unofficial/c511002812.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) @@ -19,7 +19,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil end function s.filter(c,e,tp) - return c:IsSetCard(0x55) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PHOTON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -57,4 +57,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3,true) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002813.lua b/unofficial/c511002813.lua index 81624d3866..f03b1e8e33 100644 --- a/unofficial/c511002813.lua +++ b/unofficial/c511002813.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT+REASON_RETURN) end -end +end \ No newline at end of file diff --git a/unofficial/c511002814.lua b/unofficial/c511002814.lua index 4c177d05c9..57019d4e18 100644 --- a/unofficial/c511002814.lua +++ b/unofficial/c511002814.lua @@ -73,4 +73,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-ct*500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002815.lua b/unofficial/c511002815.lua index 6cc6886321..9476f51c9f 100644 --- a/unofficial/c511002815.lua +++ b/unofficial/c511002815.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002816.lua b/unofficial/c511002816.lua index 9c989d2fd9..b00860e44c 100644 --- a/unofficial/c511002816.lua +++ b/unofficial/c511002816.lua @@ -23,4 +23,4 @@ function s.spcon(e,c) end function s.atcon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_MZONE,0)>1 -end +end \ No newline at end of file diff --git a/unofficial/c511002817.lua b/unofficial/c511002817.lua index 9386aa5de9..3f35a44363 100644 --- a/unofficial/c511002817.lua +++ b/unofficial/c511002817.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp and Duel.GetCurrentPhase()0 and Duel.IsExistingMatchingCard(s.filter,p,LOCATION_MZONE,0,1,nil,atk) -end +end \ No newline at end of file diff --git a/unofficial/c511002818.lua b/unofficial/c511002818.lua index 4bd9ff92d6..a4365eeb30 100644 --- a/unofficial/c511002818.lua +++ b/unofficial/c511002818.lua @@ -29,4 +29,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002820.lua b/unofficial/c511002820.lua index 622f50ee47..509548599d 100644 --- a/unofficial/c511002820.lua +++ b/unofficial/c511002820.lua @@ -18,4 +18,4 @@ function s.initial_effect(c) end function s.tg(e,c) return c:GetLevel()<=4 -end +end \ No newline at end of file diff --git a/unofficial/c511002822.lua b/unofficial/c511002822.lua index 1d3fd35010..8762aefbc3 100644 --- a/unofficial/c511002822.lua +++ b/unofficial/c511002822.lua @@ -13,5 +13,5 @@ function s.checkextra(tp,sg,fc) and sg:FilterCount(Card.IsAngel,nil,fc,SUMMON_TYPE_FUSION,tp)==2 end function s.fextra(e,tp,mg) - return Duel.GetMatchingGroup(Fusion.IsMonsterFilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,nil),s.checkextra -end + return Duel.GetMatchingGroup(Fusion.IsMonsterFilter,tp,LOCATION_HAND|LOCATION_GRAVE,0,nil),s.checkextra +end \ No newline at end of file diff --git a/unofficial/c511002823.lua b/unofficial/c511002823.lua index 52eb0485d9..90afb1e824 100644 --- a/unofficial/c511002823.lua +++ b/unofficial/c511002823.lua @@ -3,7 +3,7 @@ --rescripted by Naim to match the Fusion Summon procedure local s,id=GetID() function s.initial_effect(c) - local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,0x7),matfilter=aux.FALSE,extrafil=s.extrafilter,stage2=s.stage2,extraop=s.extraop}) + local e1=Fusion.CreateSummonEff({handler=c,fusfilter=aux.FilterBoolFunction(Card.IsSetCard,SET_ANCIENT_GEAR),matfilter=aux.FALSE,extrafil=s.extrafilter,stage2=s.stage2,extraop=s.extraop}) c:RegisterEffect(e1) end function s.extrafilter(e,tp,eg,ep,ev,re,r,rp) diff --git a/unofficial/c511002824.lua b/unofficial/c511002824.lua index cce2f486e9..00fcbddf2f 100644 --- a/unofficial/c511002824.lua +++ b/unofficial/c511002824.lua @@ -68,4 +68,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002825.lua b/unofficial/c511002825.lua index 4eb1b15f6b..986e6e25b9 100644 --- a/unofficial/c511002825.lua +++ b/unofficial/c511002825.lua @@ -26,8 +26,8 @@ function s.stage2(e,tc,tp,sg,chk) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) if e:GetLabelObject():GetFlagEffect(id)==0 then e:Reset() return false end - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(e:GetLabelObject():GetControler(),e:GetLabel(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002826.lua b/unofficial/c511002826.lua index 1372893011..176696887e 100644 --- a/unofficial/c511002826.lua +++ b/unofficial/c511002826.lua @@ -37,7 +37,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x93) and c:IsRace(RACE_MACHINE) and c:IsAbleToGraveAsCost() + return c:IsFaceup() and c:IsSetCard(SET_CYBER) and c:IsRace(RACE_MACHINE) and c:IsAbleToGraveAsCost() end function s.descost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end @@ -81,4 +81,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002827.lua b/unofficial/c511002827.lua index 033fb0e419..1e085457ed 100644 --- a/unofficial/c511002827.lua +++ b/unofficial/c511002827.lua @@ -51,4 +51,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local e3=e2:Clone() a:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511002829.lua b/unofficial/c511002829.lua index e47fa7c53d..c401575853 100644 --- a/unofficial/c511002829.lua +++ b/unofficial/c511002829.lua @@ -47,4 +47,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) g:AddCard(tc2) Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002830.lua b/unofficial/c511002830.lua index 30367af890..91a0d2f7a3 100644 --- a/unofficial/c511002830.lua +++ b/unofficial/c511002830.lua @@ -48,7 +48,7 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) tc:AddCounter(0x1024,1) tc=g:GetNext() end - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,2) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,2) end function s.descon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFlagEffect(tp,id)~=0 and Duel.GetTurnPlayer()~=tp @@ -83,5 +83,5 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,dam2,REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002831.lua b/unofficial/c511002831.lua index f4ce20f540..a420bf21ea 100644 --- a/unofficial/c511002831.lua +++ b/unofficial/c511002831.lua @@ -27,4 +27,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.SendtoHand(g,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002832.lua b/unofficial/c511002832.lua index daefb7e65e..d289f9bb0c 100644 --- a/unofficial/c511002832.lua +++ b/unofficial/c511002832.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e7:SetValue(-800) tc:RegisterEffect(e7) end -end +end \ No newline at end of file diff --git a/unofficial/c511002833.lua b/unofficial/c511002833.lua index bb0e77fd32..88c170c6dd 100644 --- a/unofficial/c511002833.lua +++ b/unofficial/c511002833.lua @@ -41,7 +41,7 @@ function s.ssop(e,tp,eg,ep,ev,re,r,rp) end end function s.dmcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.dmtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -53,4 +53,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002834.lua b/unofficial/c511002834.lua index 03ebbfe793..a6e0b1fdca 100644 --- a/unofficial/c511002834.lua +++ b/unofficial/c511002834.lua @@ -71,7 +71,7 @@ function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) c:RegisterEffect(e2,true) end function s.damfilter(c) - return c:IsFaceup() and c:IsSetCard(0x49) and c:IsRace(RACE_FIEND) + return c:IsFaceup() and c:IsSetCard(SET_SKYBLASTER) and c:IsRace(RACE_FIEND) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -83,4 +83,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetMatchingGroupCount(s.damfilter,tp,LOCATION_MZONE,0,nil) Duel.Damage(p,ct*300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002835.lua b/unofficial/c511002835.lua index 04b78caca5..124e876b13 100644 --- a/unofficial/c511002835.lua +++ b/unofficial/c511002835.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002836.lua b/unofficial/c511002836.lua index 40bd1705e4..546cdf80c7 100644 --- a/unofficial/c511002836.lua +++ b/unofficial/c511002836.lua @@ -26,4 +26,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP_ATTACK) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002837.lua b/unofficial/c511002837.lua index a59b721435..69b6e9bb3d 100644 --- a/unofficial/c511002837.lua +++ b/unofficial/c511002837.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:CanAttack() and not tc:IsStatus(STATUS_ATTACK_CANCELED) and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.Damage(1-tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002838.lua b/unofficial/c511002838.lua index d30dfedc3c..c2979bdd85 100644 --- a/unofficial/c511002838.lua +++ b/unofficial/c511002838.lua @@ -17,4 +17,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002839.lua b/unofficial/c511002839.lua index c2d19b9ca6..427501be64 100644 --- a/unofficial/c511002839.lua +++ b/unofficial/c511002839.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002840.lua b/unofficial/c511002840.lua index 3a274d0336..7e4286613b 100644 --- a/unofficial/c511002840.lua +++ b/unofficial/c511002840.lua @@ -37,4 +37,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002841.lua b/unofficial/c511002841.lua index 63b7c73b14..2aa4268b2d 100644 --- a/unofficial/c511002841.lua +++ b/unofficial/c511002841.lua @@ -28,4 +28,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_BATTLE) c:RegisterEffect(e1) Duel.ChainAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511002843.lua b/unofficial/c511002843.lua index 5f5cb47cc8..f6fe4fee6f 100644 --- a/unofficial/c511002843.lua +++ b/unofficial/c511002843.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002844.lua b/unofficial/c511002844.lua index 630a91bff4..909794bd69 100644 --- a/unofficial/c511002844.lua +++ b/unofficial/c511002844.lua @@ -87,4 +87,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD) e1:SetValue(-c:GetPreviousAttackOnField()) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002845.lua b/unofficial/c511002845.lua index e927f49f03..2b985e19e5 100644 --- a/unofficial/c511002845.lua +++ b/unofficial/c511002845.lua @@ -32,4 +32,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002846.lua b/unofficial/c511002846.lua index 30579643d2..1ad8838330 100644 --- a/unofficial/c511002846.lua +++ b/unofficial/c511002846.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.DiscardDeck(tp,g:GetFirst():GetLevel(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002848.lua b/unofficial/c511002848.lua index 6c7af72fe5..4d7f069f35 100644 --- a/unofficial/c511002848.lua +++ b/unofficial/c511002848.lua @@ -76,4 +76,4 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) e3:SetValue(1) c:RegisterEffect(e3,true) e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511002849.lua b/unofficial/c511002849.lua index bd34a1a9d9..3718bd9b5c 100644 --- a/unofficial/c511002849.lua +++ b/unofficial/c511002849.lua @@ -7,4 +7,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_DOUBLE_XYZ_MATERIAL) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511002850.lua b/unofficial/c511002850.lua index ad1a588c17..f4ce4318ef 100644 --- a/unofficial/c511002850.lua +++ b/unofficial/c511002850.lua @@ -53,4 +53,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002854.lua b/unofficial/c511002854.lua index 417d212e6c..82808c8fca 100644 --- a/unofficial/c511002854.lua +++ b/unofficial/c511002854.lua @@ -125,4 +125,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,c:GetAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002855.lua b/unofficial/c511002855.lua index f9cb4fc0ed..ef53d4d8f1 100644 --- a/unofficial/c511002855.lua +++ b/unofficial/c511002855.lua @@ -132,4 +132,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) Duel.BreakEffect() Duel.SendtoGrave(sg,REASON_EFFECT) Duel.ShuffleHand(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002856.lua b/unofficial/c511002856.lua index 7c07b81219..60fdb4bcc0 100644 --- a/unofficial/c511002856.lua +++ b/unofficial/c511002856.lua @@ -43,4 +43,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002857.lua b/unofficial/c511002857.lua index 55972cf701..6505c48a88 100644 --- a/unofficial/c511002857.lua +++ b/unofficial/c511002857.lua @@ -42,4 +42,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002858.lua b/unofficial/c511002858.lua index dcf833f086..6f74629418 100644 --- a/unofficial/c511002858.lua +++ b/unofficial/c511002858.lua @@ -65,4 +65,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) if ct>0 then Duel.Damage(1-tp,ct*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002859.lua b/unofficial/c511002859.lua index 6e970e2a4d..02620fe306 100644 --- a/unofficial/c511002859.lua +++ b/unofficial/c511002859.lua @@ -21,5 +21,5 @@ function s.filter(c) return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsRace(RACE_DRAGON) end function s.atkval(e,c) - return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,c)*500 + return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,c)*500 end \ No newline at end of file diff --git a/unofficial/c511002860.lua b/unofficial/c511002860.lua index 6387bd1f5b..d5544e4a08 100644 --- a/unofficial/c511002860.lua +++ b/unofficial/c511002860.lua @@ -36,4 +36,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or not c:IsRelateToEffect(e) then return end Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511002861.lua b/unofficial/c511002861.lua index d7c9d72f64..8f4f81cf2f 100644 --- a/unofficial/c511002861.lua +++ b/unofficial/c511002861.lua @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002862.lua b/unofficial/c511002862.lua index 5f3a3c651c..0954adbb10 100644 --- a/unofficial/c511002862.lua +++ b/unofficial/c511002862.lua @@ -17,4 +17,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.ChangePosition(c,POS_FACEUP_DEFENSE) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511002863.lua b/unofficial/c511002863.lua index e6b485d7c0..1d5950598e 100644 --- a/unofficial/c511002863.lua +++ b/unofficial/c511002863.lua @@ -11,11 +11,11 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x70) + return c:IsFaceup() and c:IsSetCard(SET_CHRONOMALY) end function s.spcon(e,c) if c==nil then return true end local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002864.lua b/unofficial/c511002864.lua index 0755fda72c..6cfbb45207 100644 --- a/unofficial/c511002864.lua +++ b/unofficial/c511002864.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EFFECT_REFLECT_BATTLE_DAMAGE) c:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511002865.lua b/unofficial/c511002865.lua index f629dd7fcf..39d31b9194 100644 --- a/unofficial/c511002865.lua +++ b/unofficial/c511002865.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(c:GetLevel()*2) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002866.lua b/unofficial/c511002866.lua index 23f14dba08..dc659cff9b 100644 --- a/unofficial/c511002866.lua +++ b/unofficial/c511002866.lua @@ -86,4 +86,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsDestructable,tp,0,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002867.lua b/unofficial/c511002867.lua index 83545ba85c..51d7d5f880 100644 --- a/unofficial/c511002867.lua +++ b/unofficial/c511002867.lua @@ -90,4 +90,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002868.lua b/unofficial/c511002868.lua index a17bdba888..ccbbabb36b 100644 --- a/unofficial/c511002868.lua +++ b/unofficial/c511002868.lua @@ -15,13 +15,13 @@ function s.initial_effect(c) end s.listed_series={0xba} function s.cfilter(c) - return c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:IsSpecialSummoned() end function s.xyzcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsBattlePhase() and Duel.IsExistingMatchingCard(s.cfilter,tp,0,LOCATION_MZONE,1,nil) end function s.xyzfilter(c) - return c:IsXyzSummonable() and c:IsSetCard(0xba) + return c:IsXyzSummonable() and c:IsSetCard(SET_RAIDRAPTOR) end function s.xyztg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.xyzfilter,tp,LOCATION_EXTRA,0,1,nil) end @@ -134,4 +134,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002869.lua b/unofficial/c511002869.lua index b09f47bcd6..2ba1cee936 100644 --- a/unofficial/c511002869.lua +++ b/unofficial/c511002869.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002870.lua b/unofficial/c511002870.lua index f99480c44c..8d38eb1ac8 100644 --- a/unofficial/c511002870.lua +++ b/unofficial/c511002870.lua @@ -137,5 +137,4 @@ function s.indesop(e,tp,eg,ep,ev,re,r,rp) end c:RegisterEffect(e1) end -end - +end \ No newline at end of file diff --git a/unofficial/c511002871.lua b/unofficial/c511002871.lua index 1386443194..75fbb87bd5 100644 --- a/unofficial/c511002871.lua +++ b/unofficial/c511002871.lua @@ -76,4 +76,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002872.lua b/unofficial/c511002872.lua index 2227e69301..691cee7860 100644 --- a/unofficial/c511002872.lua +++ b/unofficial/c511002872.lua @@ -73,4 +73,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 and Duel.Destroy(g,REASON_EFFECT)>0 then Duel.Damage(1-tp,g:GetFirst():GetPreviousAttackOnField(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002873.lua b/unofficial/c511002873.lua index 23eee1df3f..c207271664 100644 --- a/unofficial/c511002873.lua +++ b/unofficial/c511002873.lua @@ -95,5 +95,5 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002874.lua b/unofficial/c511002874.lua index 575357d56f..85b92f6ad8 100644 --- a/unofficial/c511002874.lua +++ b/unofficial/c511002874.lua @@ -56,4 +56,4 @@ function s.cbop(e,tp,eg,ep,ev,re,r,rp) if at:IsAttackPos() and at:IsRelateToBattle() then Duel.ChangePosition(at,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511002875.lua b/unofficial/c511002875.lua index 7c6759a0c0..1b38507036 100644 --- a/unofficial/c511002875.lua +++ b/unofficial/c511002875.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511002876.lua b/unofficial/c511002876.lua index a51c1c3ada..4ebe047bc2 100644 --- a/unofficial/c511002876.lua +++ b/unofficial/c511002876.lua @@ -57,4 +57,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002877.lua b/unofficial/c511002877.lua index b09f4c9e0a..ee336e0673 100644 --- a/unofficial/c511002877.lua +++ b/unofficial/c511002877.lua @@ -42,4 +42,4 @@ function s.surop2(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,100,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002878.lua b/unofficial/c511002878.lua index 83c7fd14e1..a3db7f6889 100644 --- a/unofficial/c511002878.lua +++ b/unofficial/c511002878.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x54) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GAGAGA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002879.lua b/unofficial/c511002879.lua index 58b63ddb53..b28372383b 100644 --- a/unofficial/c511002879.lua +++ b/unofficial/c511002879.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(e:GetLabel(),1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002880.lua b/unofficial/c511002880.lua index 18e179f563..f8cda4cac8 100644 --- a/unofficial/c511002880.lua +++ b/unofficial/c511002880.lua @@ -12,4 +12,4 @@ end function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsPosition(POS_FACEUP_DEFENSE) end return true -end +end \ No newline at end of file diff --git a/unofficial/c511002881.lua b/unofficial/c511002881.lua index 5196ce9d15..15c731f3d4 100644 --- a/unofficial/c511002881.lua +++ b/unofficial/c511002881.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002882.lua b/unofficial/c511002882.lua index 48897778af..194c556c56 100644 --- a/unofficial/c511002882.lua +++ b/unofficial/c511002882.lua @@ -35,4 +35,4 @@ end function s.synlimit(e,c) if not c then return false end return not c:IsRace(RACE_BEAST) -end +end \ No newline at end of file diff --git a/unofficial/c511002883.lua b/unofficial/c511002883.lua index d4ef91e157..ae6a90ce6f 100644 --- a/unofficial/c511002883.lua +++ b/unofficial/c511002883.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.indtg) e2:SetOperation(s.indop) c:RegisterEffect(e2) @@ -83,4 +83,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) c:RegisterEffect(e2) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511002884.lua b/unofficial/c511002884.lua index 9cc06248c4..6e96ddfaae 100644 --- a/unofficial/c511002884.lua +++ b/unofficial/c511002884.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002885.lua b/unofficial/c511002885.lua index 4b16f00e87..1e93ae6767 100644 --- a/unofficial/c511002885.lua +++ b/unofficial/c511002885.lua @@ -41,9 +41,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.Destroy(g,REASON_EFFECT) Duel.BreakEffect() - local g1=Duel.GetMatchingGroup(s.setfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,511002783) - local g2=Duel.GetMatchingGroup(s.setfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,511002786) - local g3=Duel.GetMatchingGroup(s.setfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,511002781) + local g1=Duel.GetMatchingGroup(s.setfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,511002783) + local g2=Duel.GetMatchingGroup(s.setfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,511002786) + local g3=Duel.GetMatchingGroup(s.setfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,511002781) if #g1>0 and #g2>0 and #g3>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>2 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) local sg1=g1:Select(tp,1,1,nil) @@ -74,4 +74,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002886.lua b/unofficial/c511002886.lua index caee490ed0..6f3adc21ff 100644 --- a/unofficial/c511002886.lua +++ b/unofficial/c511002886.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)*400 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002887.lua b/unofficial/c511002887.lua index b670c6c3e7..2b8b9cf1cc 100644 --- a/unofficial/c511002887.lua +++ b/unofficial/c511002887.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c) return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:GetBattledGroupCount()==0 @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(1-tp,ct*400,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002888.lua b/unofficial/c511002888.lua index 856c7b92f6..eb2dfce531 100644 --- a/unofficial/c511002888.lua +++ b/unofficial/c511002888.lua @@ -42,4 +42,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc=sg:GetNext() end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002889.lua b/unofficial/c511002889.lua index bb63a29c5c..1f8e3871c7 100644 --- a/unofficial/c511002889.lua +++ b/unofficial/c511002889.lua @@ -36,4 +36,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511002890.lua b/unofficial/c511002890.lua index 7549f1a321..c7ba094f44 100644 --- a/unofficial/c511002890.lua +++ b/unofficial/c511002890.lua @@ -59,4 +59,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002891.lua b/unofficial/c511002891.lua index 111bee6730..6e6530d3b4 100644 --- a/unofficial/c511002891.lua +++ b/unofficial/c511002891.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,1000,REASON_EFFECT,true) Duel.Damage(tp,1000,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002892.lua b/unofficial/c511002892.lua index 0df6dc73e9..cb3aa58387 100644 --- a/unofficial/c511002892.lua +++ b/unofficial/c511002892.lua @@ -60,7 +60,7 @@ end function s.rmcon(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() if tc:GetFlagEffectLabel(id)==e:GetLabel() then - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) else e:Reset() return false diff --git a/unofficial/c511002893.lua b/unofficial/c511002893.lua index 7fe412ae5d..837879c53f 100644 --- a/unofficial/c511002893.lua +++ b/unofficial/c511002893.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,dam1,REASON_EFFECT,true) Duel.Damage(1-tp,dam2,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511002894.lua b/unofficial/c511002894.lua index 4f88f4c9eb..37684f6156 100644 --- a/unofficial/c511002894.lua +++ b/unofficial/c511002894.lua @@ -26,4 +26,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002895.lua b/unofficial/c511002895.lua index e3281d4537..db6d8179fd 100644 --- a/unofficial/c511002895.lua +++ b/unofficial/c511002895.lua @@ -54,4 +54,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511002896.lua b/unofficial/c511002896.lua index 57b75d6f04..4be2a095c5 100644 --- a/unofficial/c511002896.lua +++ b/unofficial/c511002896.lua @@ -77,4 +77,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002897.lua b/unofficial/c511002897.lua index 7a3a0f1a1a..2be48bf719 100644 --- a/unofficial/c511002897.lua +++ b/unofficial/c511002897.lua @@ -16,4 +16,4 @@ function s.filter(c,tp) end function s.condition(e) return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_GRAVE,0,1,nil,e:GetHandlerPlayer()) -end +end \ No newline at end of file diff --git a/unofficial/c511002898.lua b/unofficial/c511002898.lua index 167b835a25..9cb4807d2f 100644 --- a/unofficial/c511002898.lua +++ b/unofficial/c511002898.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(tp,e:GetHandler():GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002899.lua b/unofficial/c511002899.lua index 7ee58af05b..bb39e91aca 100644 --- a/unofficial/c511002899.lua +++ b/unofficial/c511002899.lua @@ -93,4 +93,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local tg=g:Filter(s.desfilter,nil,e:GetLabel()) Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002900.lua b/unofficial/c511002900.lua index 0370830dfc..dfa54d28ea 100644 --- a/unofficial/c511002900.lua +++ b/unofficial/c511002900.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002902.lua b/unofficial/c511002902.lua index e4214c6e0e..26f44646e7 100644 --- a/unofficial/c511002902.lua +++ b/unofficial/c511002902.lua @@ -66,4 +66,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002907.lua b/unofficial/c511002907.lua index b1e0d225f1..09e4b63c52 100644 --- a/unofficial/c511002907.lua +++ b/unofficial/c511002907.lua @@ -102,4 +102,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local tok=e:GetLabelObject() Duel.Damage(tok:GetPreviousControler(),300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002908.lua b/unofficial/c511002908.lua index 8848ed4402..3226bfba8f 100644 --- a/unofficial/c511002908.lua +++ b/unofficial/c511002908.lua @@ -44,4 +44,4 @@ function s.refcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then e:SetLabel(val) return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511002910.lua b/unofficial/c511002910.lua index b6962aeeba..8b1e61eef1 100644 --- a/unofficial/c511002910.lua +++ b/unofficial/c511002910.lua @@ -37,4 +37,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002911.lua b/unofficial/c511002911.lua index 538e71f14b..9b86ecf0dc 100644 --- a/unofficial/c511002911.lua +++ b/unofficial/c511002911.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002912.lua b/unofficial/c511002912.lua index 04eae6823b..629704d9f8 100644 --- a/unofficial/c511002912.lua +++ b/unofficial/c511002912.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002913.lua b/unofficial/c511002913.lua index db9e4ee33a..3f5cc95399 100644 --- a/unofficial/c511002913.lua +++ b/unofficial/c511002913.lua @@ -52,5 +52,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511002914.lua b/unofficial/c511002914.lua index 3dc207bd23..0a8ad66e86 100644 --- a/unofficial/c511002914.lua +++ b/unofficial/c511002914.lua @@ -99,4 +99,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002915.lua b/unofficial/c511002915.lua index 6d3f6a5b99..7a9f6c4f81 100644 --- a/unofficial/c511002915.lua +++ b/unofficial/c511002915.lua @@ -37,4 +37,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002916.lua b/unofficial/c511002916.lua index 22077c59b3..7d149e27bd 100644 --- a/unofficial/c511002916.lua +++ b/unofficial/c511002916.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) Duel.BreakEffect() Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511002917.lua b/unofficial/c511002917.lua index 26804bd6b5..08ce18d3d4 100644 --- a/unofficial/c511002917.lua +++ b/unofficial/c511002917.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsPosition(POS_FACEUP_ATTACK) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511002918.lua b/unofficial/c511002918.lua index 8e17136867..6f6f94fdec 100644 --- a/unofficial/c511002918.lua +++ b/unofficial/c511002918.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002919.lua b/unofficial/c511002919.lua index 6be0c4ff5d..342a36b567 100644 --- a/unofficial/c511002919.lua +++ b/unofficial/c511002919.lua @@ -34,4 +34,4 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.desval(e,c) return c:IsFaceup() and c:IsOnField() and c:IsReason(REASON_BATTLE) and c:IsComicsHero() -end +end \ No newline at end of file diff --git a/unofficial/c511002920.lua b/unofficial/c511002920.lua index c76460b793..00bf63f8a7 100644 --- a/unofficial/c511002920.lua +++ b/unofficial/c511002920.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002921.lua b/unofficial/c511002921.lua index 47a816045c..76b6a4e7b1 100644 --- a/unofficial/c511002921.lua +++ b/unofficial/c511002921.lua @@ -37,4 +37,4 @@ end function s.lpop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.SetLP(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002922.lua b/unofficial/c511002922.lua index c2dcdfa689..c00df57081 100644 --- a/unofficial/c511002922.lua +++ b/unofficial/c511002922.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002923.lua b/unofficial/c511002923.lua index 3c67518b4a..2041837c6c 100644 --- a/unofficial/c511002923.lua +++ b/unofficial/c511002923.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(dg,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002924.lua b/unofficial/c511002924.lua index d1352b3d96..f933a7df20 100644 --- a/unofficial/c511002924.lua +++ b/unofficial/c511002924.lua @@ -36,4 +36,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002925.lua b/unofficial/c511002925.lua index 625b30e157..1d12a26faa 100644 --- a/unofficial/c511002925.lua +++ b/unofficial/c511002925.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) e4:SetType(EFFECT_TYPE_EQUIP) e4:SetCode(EFFECT_CANNOT_CHANGE_POSITION) c:RegisterEffect(e4) -end +end \ No newline at end of file diff --git a/unofficial/c511002926.lua b/unofficial/c511002926.lua index ef7d7e0e83..2fabc4b146 100644 --- a/unofficial/c511002926.lua +++ b/unofficial/c511002926.lua @@ -12,11 +12,11 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter1(c,tp) - return c:GetLevel()>0 and c:IsSetCard(0x54) + return c:GetLevel()>0 and c:IsSetCard(SET_GAGAGA) and Duel.IsExistingTarget(s.filter2,tp,LOCATION_MZONE,0,1,c,c:GetLevel()) end function s.filter2(c,lv) - return c:GetLevel()>0 and c:GetLevel()~=lv and c:IsSetCard(0x54) + return c:GetLevel()>0 and c:GetLevel()~=lv and c:IsSetCard(SET_GAGAGA) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.Damage(1-tp,lv*300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511002927.lua b/unofficial/c511002927.lua index 782f726868..2df1189254 100644 --- a/unofficial/c511002927.lua +++ b/unofficial/c511002927.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,e,tp) - return c:GetLevel()>0 and c:IsFaceup() and c:IsSetCard(0x54) + return c:GetLevel()>0 and c:IsFaceup() and c:IsSetCard(SET_GAGAGA) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -40,4 +40,4 @@ function s.con(e) end function s.val(e) return e:GetHandler():GetFirstCardTarget():GetLevel() -end +end \ No newline at end of file diff --git a/unofficial/c511002928.lua b/unofficial/c511002928.lua index 7b41b1bbe0..0c0b344f78 100644 --- a/unofficial/c511002928.lua +++ b/unofficial/c511002928.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002929.lua b/unofficial/c511002929.lua index 4c04da847f..370d0cec78 100644 --- a/unofficial/c511002929.lua +++ b/unofficial/c511002929.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFacedown() then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511002930.lua b/unofficial/c511002930.lua index 27fd843772..dba385b9a7 100644 --- a/unofficial/c511002930.lua +++ b/unofficial/c511002930.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002931.lua b/unofficial/c511002931.lua index cfedeba1b1..c12ce99ff4 100644 --- a/unofficial/c511002931.lua +++ b/unofficial/c511002931.lua @@ -64,4 +64,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.op(e,tp,eg,ep,ev,re,r,rp,chk) Duel.ChangePosition(e:GetHandler(),POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511002932.lua b/unofficial/c511002932.lua index ac829ef219..5b7642d6aa 100644 --- a/unofficial/c511002932.lua +++ b/unofficial/c511002932.lua @@ -15,4 +15,4 @@ function s.ntcon(e,c) return c:GetLevel()>4 and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511002933.lua b/unofficial/c511002933.lua index 60f49c2855..2b937eb259 100644 --- a/unofficial/c511002933.lua +++ b/unofficial/c511002933.lua @@ -55,4 +55,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511002934.lua b/unofficial/c511002934.lua index a3b53f43b6..8727d5c74b 100644 --- a/unofficial/c511002934.lua +++ b/unofficial/c511002934.lua @@ -46,4 +46,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e) return not Duel.IsExistingMatchingCard(Card.IsCode,e:GetHandlerPlayer(),LOCATION_GRAVE,0,1,nil,511002933) -end +end \ No newline at end of file diff --git a/unofficial/c511002935.lua b/unofficial/c511002935.lua index 3f69f8b0c0..4e552a6c6d 100644 --- a/unofficial/c511002935.lua +++ b/unofficial/c511002935.lua @@ -19,4 +19,4 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(e:GetHandler():GetControler(),0) -end +end \ No newline at end of file diff --git a/unofficial/c511002936.lua b/unofficial/c511002936.lua index 358c2787ee..a4ad556964 100644 --- a/unofficial/c511002936.lua +++ b/unofficial/c511002936.lua @@ -34,4 +34,4 @@ function s.dammul(e,re,val,r,rp,rc) local cc=Duel.GetCurrentChain() if cc==0 or (r&REASON_EFFECT)==0 then return end return val*2 -end +end \ No newline at end of file diff --git a/unofficial/c511002937.lua b/unofficial/c511002937.lua index c34ecfdd50..de49b3a0ee 100644 --- a/unofficial/c511002937.lua +++ b/unofficial/c511002937.lua @@ -56,7 +56,7 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_CHANGE_POSITION) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_COPY_INHERIT) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) else e1:SetReset(RESET_PHASE+PHASE_END+RESET_SELF_TURN) @@ -64,4 +64,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511002938.lua b/unofficial/c511002938.lua index 4974da3d34..8c4d49b953 100644 --- a/unofficial/c511002938.lua +++ b/unofficial/c511002938.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) tc:AddCounter(0x94,2) end -end +end \ No newline at end of file diff --git a/unofficial/c511002939.lua b/unofficial/c511002939.lua index 7bf63de6ac..29be827ebc 100644 --- a/unofficial/c511002939.lua +++ b/unofficial/c511002939.lua @@ -19,13 +19,13 @@ function s.rmfilter(c) return c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,5,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,5,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,5,5,nil) + local g=Duel.SelectMatchingCard(tp,s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,5,5,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.op(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateAttack() then Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002940.lua b/unofficial/c511002940.lua index 2970306c5e..9d15dbee6b 100644 --- a/unofficial/c511002940.lua +++ b/unofficial/c511002940.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002941.lua b/unofficial/c511002941.lua index 7b98e666ac..5016a21fad 100644 --- a/unofficial/c511002941.lua +++ b/unofficial/c511002941.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) a:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002942.lua b/unofficial/c511002942.lua index 9c3761db58..ddc45b3a3e 100644 --- a/unofficial/c511002942.lua +++ b/unofficial/c511002942.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002943.lua b/unofficial/c511002943.lua index 886a11b6b7..5793cd9e2e 100644 --- a/unofficial/c511002943.lua +++ b/unofficial/c511002943.lua @@ -25,4 +25,4 @@ end function s.tgop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.DiscardHand(p,nil,d,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002944.lua b/unofficial/c511002944.lua index 9d22de61d4..ce3abbf63f 100644 --- a/unofficial/c511002944.lua +++ b/unofficial/c511002944.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atkval(e,c) return c:GetBaseAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511002945.lua b/unofficial/c511002945.lua index 209bf82082..d2b82b5269 100644 --- a/unofficial/c511002945.lua +++ b/unofficial/c511002945.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e2) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002946.lua b/unofficial/c511002946.lua index 6287f95eca..c351d190ff 100644 --- a/unofficial/c511002946.lua +++ b/unofficial/c511002946.lua @@ -12,13 +12,13 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1034) + return c:IsFaceup() and c:IsSetCard(SET_CRYSTAL_BEAST) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_SZONE,0,2,nil) end function s.filter(c,e,tp) - return c:IsSetCard(0x1034) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.BreakEffect() Duel.Draw(1-tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002947.lua b/unofficial/c511002947.lua index 3f49f6f94c..15c16b552f 100644 --- a/unofficial/c511002947.lua +++ b/unofficial/c511002947.lua @@ -56,4 +56,4 @@ end function s.disop(e,tp) local dis1=(0x1<0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_MZONE,0,2,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002953.lua b/unofficial/c511002953.lua index 5e6ec69ae8..0c18f57225 100644 --- a/unofficial/c511002953.lua +++ b/unofficial/c511002953.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) --synchro summon - Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0xf0),1,1,Synchro.NonTunerEx(Card.IsSetCard,0xf0),1,99) + Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_WINDWITCH),1,1,Synchro.NonTunerEx(Card.IsSetCard,SET_WINDWITCH),1,99) c:EnableReviveLimit() --copy local e1=Effect.CreateEffect(c) @@ -29,7 +29,7 @@ function s.initial_effect(c) end) end function s.filter(c) - return c:IsMonster() and c:IsSetCard(0xf0) and c:IsLevelBelow(4) + return c:IsMonster() and c:IsSetCard(SET_WINDWITCH) and c:IsLevelBelow(4) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and c:IsFaceup() and tc and tc:IsRelateToEffect(e) then c:CopyEffect(tc:GetOriginalCode(),RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002954.lua b/unofficial/c511002954.lua index 2cf3e5445f..161d3d008b 100644 --- a/unofficial/c511002954.lua +++ b/unofficial/c511002954.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,14577226,aux.FilterBoolFunctionEx(Card.IsSetCard,0xf0)) + Fusion.AddProcMix(c,true,true,14577226,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_WINDWITCH)) --copy local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(30312361,0)) @@ -81,4 +81,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #tg>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>=#tg then Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002955.lua b/unofficial/c511002955.lua index fd06be30ba..6fd51f77b6 100644 --- a/unofficial/c511002955.lua +++ b/unofficial/c511002955.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,e,tp) - return c:IsSetCard(0xf0) and c:IsLevelBelow(4) and c:IsMonster() and not c:IsPublic() + return c:IsSetCard(SET_WINDWITCH) and c:IsLevelBelow(4) and c:IsMonster() and not c:IsPublic() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode()) end function s.spfilter(c,e,tp,code) @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002956.lua b/unofficial/c511002956.lua index c6f79f25e0..a849aff73c 100644 --- a/unofficial/c511002956.lua +++ b/unofficial/c511002956.lua @@ -20,7 +20,7 @@ function s.spfilter(c,e,tp,lv) return c:IsLevelBelow(lv) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.filter(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0xf0) + return c:IsFaceup() and c:IsSetCard(SET_WINDWITCH) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp,c:GetLevel()) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:RegisterEffect(e1) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511002957.lua b/unofficial/c511002957.lua index aa99a5674b..289cbf59d4 100644 --- a/unofficial/c511002957.lua +++ b/unofficial/c511002957.lua @@ -18,4 +18,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511002959.lua b/unofficial/c511002959.lua index 3f61d33422..e52ee83db3 100644 --- a/unofficial/c511002959.lua +++ b/unofficial/c511002959.lua @@ -78,4 +78,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(c:GetBaseAttack()/2) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002960.lua b/unofficial/c511002960.lua index 26754a0574..d327e343a4 100644 --- a/unofficial/c511002960.lua +++ b/unofficial/c511002960.lua @@ -42,4 +42,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002961.lua b/unofficial/c511002961.lua index 4233d95538..5687118e90 100644 --- a/unofficial/c511002961.lua +++ b/unofficial/c511002961.lua @@ -61,4 +61,4 @@ function s.eqlimit(e,c) end function s.repval(e,re,r,rp) return (r&REASON_BATTLE+REASON_EFFECT)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511002962.lua b/unofficial/c511002962.lua index f6f17c1c6b..26393f9838 100644 --- a/unofficial/c511002962.lua +++ b/unofficial/c511002962.lua @@ -3,14 +3,14 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,15951532,aux.FilterBoolFunctionEx(Card.IsSetCard,0x4)) + Fusion.AddProcMix(c,true,true,15951532,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_AMAZONESS)) --indes local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,0) - e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x4)) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_AMAZONESS)) e1:SetValue(1) c:RegisterEffect(e1) local e2=e1:Clone() @@ -21,4 +21,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_PIERCE) c:RegisterEffect(e3) end -s.material_setcode=0x4 +s.material_setcode=0x4 \ No newline at end of file diff --git a/unofficial/c511002963.lua b/unofficial/c511002963.lua index c2402b0387..228584faa7 100644 --- a/unofficial/c511002963.lua +++ b/unofficial/c511002963.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,10979723,aux.FilterBoolFunctionEx(Card.IsSetCard,0x4)) + Fusion.AddProcMix(c,true,true,10979723,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_AMAZONESS)) --atkup local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -46,7 +46,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() if not d then return false end - return a:IsControler(tp) and d:IsControler(1-tp) and a:IsSetCard(0x4) + return a:IsControler(tp) and d:IsControler(1-tp) and a:IsSetCard(SET_AMAZONESS) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end @@ -64,4 +64,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-800) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511002964.lua b/unofficial/c511002964.lua index 3b1da9a031..183b31458c 100644 --- a/unofficial/c511002964.lua +++ b/unofficial/c511002964.lua @@ -44,8 +44,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,sum,REASON_EFFECT) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x4) + return c:IsFaceup() and c:IsSetCard(SET_AMAZONESS) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002965.lua b/unofficial/c511002965.lua index bf77a7c181..e1606b6ae8 100644 --- a/unofficial/c511002965.lua +++ b/unofficial/c511002965.lua @@ -14,10 +14,10 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() - return tc:IsControler(tp) and tc:IsFaceup() and tc:IsSetCard(0x4) + return tc:IsControler(tp) and tc:IsFaceup() and tc:IsSetCard(SET_AMAZONESS) end function s.filter(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0x4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and c:IsSetCard(SET_AMAZONESS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511002966.lua b/unofficial/c511002966.lua index 1f08c3ec14..a223a2e1ba 100644 --- a/unofficial/c511002966.lua +++ b/unofficial/c511002966.lua @@ -60,7 +60,7 @@ function s.clear(e,tp,eg,ep,ev,re,r,rp) s[3]=0 end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x4) + return c:IsFaceup() and c:IsSetCard(SET_AMAZONESS) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) @@ -74,4 +74,4 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) local t=s[tp] local lp=Duel.AnnounceNumber(tp,table.unpack(t)) Duel.Recover(tp,lp,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002967.lua b/unofficial/c511002967.lua index 3eb21bb702..449cf3bc39 100644 --- a/unofficial/c511002967.lua +++ b/unofficial/c511002967.lua @@ -46,4 +46,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) Duel.ChangeBattleDamage(tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511002968.lua b/unofficial/c511002968.lua index 55f4ee067e..6d2c15f492 100644 --- a/unofficial/c511002968.lua +++ b/unofficial/c511002968.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x4) + return c:IsFaceup() and c:IsSetCard(SET_AMAZONESS) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) @@ -49,4 +49,4 @@ function s.refcon(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() -end +end \ No newline at end of file diff --git a/unofficial/c511002969.lua b/unofficial/c511002969.lua index ddea208d5a..3906e73140 100644 --- a/unofficial/c511002969.lua +++ b/unofficial/c511002969.lua @@ -50,4 +50,4 @@ function s.con3(e) end function s.con4(e) return Duel.GetActivityCount(1-e:GetHandlerPlayer(),ACTIVITY_NORMALSUMMON)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511002970.lua b/unofficial/c511002970.lua index 7cb74a86b1..516bb5e34f 100644 --- a/unofficial/c511002970.lua +++ b/unofficial/c511002970.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511002973.lua b/unofficial/c511002973.lua index 3cdf340db2..2d41df8392 100644 --- a/unofficial/c511002973.lua +++ b/unofficial/c511002973.lua @@ -57,20 +57,20 @@ s.listed_names={id+1,511002975} function s.condition(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - return ep==tp and (a:IsSetCard(0x19) or (d and d:IsSetCard(0x19))) + return ep==tp and (a:IsSetCard(SET_GLADIATOR) or (d and d:IsSetCard(SET_GLADIATOR))) end function s.desfilter(c) - return not c:IsSetCard(0x19) or c:IsFacedown() + return not c:IsSetCard(SET_GLADIATOR) or c:IsFacedown() end function s.filter(c,tid) --if not c:IsCode(id+1) or c:GetFlagEffect(id)>0 then return false end if c:GetFlagEffect(id)>0 then return false end if c:IsHasEffect(id+1) and c:GetFieldID()<=tid then return false end --return not c:IsHasEffect(id+1) or c:GetFieldID()>tid - return c:IsFaceup() and c:IsSetCard(0x19) + return c:IsFaceup() and c:IsSetCard(SET_GLADIATOR) end function s.ovfilter(c) - return c:IsSetCard(0x19) and c:IsMonster() + return c:IsSetCard(SET_GLADIATOR) and c:IsMonster() end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_ONFIELD,0,nil) @@ -123,7 +123,7 @@ function s.effcon(e) end end function s.gbtg(e,c) - if not c:IsSetCard(0x19) or c==e:GetHandler() or c:GetSequence()>=5 then return false end + if not c:IsSetCard(SET_GLADIATOR) or c==e:GetHandler() or c:GetSequence()>=5 then return false end return not c:IsHasEffect(id+1) or c:GetFieldID()>e:GetHandler():GetFieldID() end function s.cfilter(c) @@ -215,4 +215,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511002974.lua b/unofficial/c511002974.lua index 8d67e3cebc..3342e1e065 100644 --- a/unofficial/c511002974.lua +++ b/unofficial/c511002974.lua @@ -62,7 +62,7 @@ function s.gbcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetOverlayCount()==0 end function s.gbfilter(c) - return c:IsSetCard(0x19) and c:IsMonster() + return c:IsSetCard(SET_GLADIATOR) and c:IsMonster() end function s.gbtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.gbfilter,tp,LOCATION_DECK,0,1,nil) end @@ -94,7 +94,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x19) and c:GetFlagEffect(id)==0 and c:GetFlagEffect(id+1)==0 + return c:IsFaceup() and c:IsSetCard(SET_GLADIATOR) and c:GetFlagEffect(id)==0 and c:GetFlagEffect(id+1)==0 and c:GetFlagEffect(511002972)==0 and c:GetFlagEffect(511002973)==0 end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -196,4 +196,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp) end function s.indesval(e,re) return re==e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c511002975.lua b/unofficial/c511002975.lua index 2d6b69a632..771f27abb8 100644 --- a/unofficial/c511002975.lua +++ b/unofficial/c511002975.lua @@ -35,7 +35,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.filter(c) - return c:IsSetCard(0x19) and c:IsMonster() + return c:IsSetCard(SET_GLADIATOR) and c:IsMonster() end function s.activate(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -71,7 +71,7 @@ function s.atcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x19) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GLADIATOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.attg(e,tp,eg,ep,ev,re,r,rp,chk) local g=e:GetHandler():GetOverlayGroup() @@ -148,4 +148,4 @@ function s.ovop(e,tp,eg,ep,ev,re,r,rp) end local g=Duel.GetMatchingGroup(s.ovfilter,tp,LOCATION_MZONE,0,nil,chk) Duel.Overlay(c,g) -end +end \ No newline at end of file diff --git a/unofficial/c511002976.lua b/unofficial/c511002976.lua index f373e084d8..e6b646dba3 100644 --- a/unofficial/c511002976.lua +++ b/unofficial/c511002976.lua @@ -23,4 +23,4 @@ end function s.filter2(c,e,tp,m,f,gc) return c:IsType(TYPE_FUSION) and (not f or f(c)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,gc) -end +end \ No newline at end of file diff --git a/unofficial/c511002977.lua b/unofficial/c511002977.lua index b501941c5e..2a5a495614 100644 --- a/unofficial/c511002977.lua +++ b/unofficial/c511002977.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(g2,nil,-2,REASON_EFFECT) Duel.SendtoGrave(g1,REASON_EFFECT,1-tp) Duel.SendtoGrave(g2,REASON_EFFECT,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511002978.lua b/unofficial/c511002978.lua index 98d565fc04..80bc42e502 100644 --- a/unofficial/c511002978.lua +++ b/unofficial/c511002978.lua @@ -64,4 +64,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) te:SetProperty(te:GetProperty()&~EFFECT_FLAG_DAMAGE_STEP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002981.lua b/unofficial/c511002981.lua index accefcd363..0f85546f45 100644 --- a/unofficial/c511002981.lua +++ b/unofficial/c511002981.lua @@ -7,4 +7,4 @@ function s.initial_effect(c) end function s.fextra(e,tp,mg) return Duel.GetMatchingGroup(Card.IsAbleToGrave,tp,LOCATION_PZONE,LOCATION_PZONE,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511002984.lua b/unofficial/c511002984.lua index a875bbe9f6..1f29079091 100644 --- a/unofficial/c511002984.lua +++ b/unofficial/c511002984.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_names={CARD_BLUEEYES_W_DRAGON,CARD_DARK_MAGICIAN} function s.filter(c,e,tp,m1,ft) - if (not c:IsSetCard(0xcf) and not c:IsSetCard(0x1048)) or c:GetType()&0x81~=0x81 + if (not c:IsSetCard(SET_CHAOS) and not c:IsSetCard(SET_NUMBER_C)) or c:GetType()&SET_FIRE_KING~=SET_FIRE_KING or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end local mg=m1:Filter(Card.IsCanBeRitualMaterial,c,c) if ft>0 then diff --git a/unofficial/c511002985.lua b/unofficial/c511002985.lua index d78f6eba9c..7a95a3d7f1 100644 --- a/unofficial/c511002985.lua +++ b/unofficial/c511002985.lua @@ -45,4 +45,4 @@ function s.effectfilter(e,ct) local te=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT) local tc=te:GetHandler() return tc:IsRace(RACE_DIVINE) -end +end \ No newline at end of file diff --git a/unofficial/c511002986.lua b/unofficial/c511002986.lua index 73d65a81da..d4334b08c9 100644 --- a/unofficial/c511002986.lua +++ b/unofficial/c511002986.lua @@ -62,4 +62,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) end end -end +end \ No newline at end of file diff --git a/unofficial/c511002987.lua b/unofficial/c511002987.lua index f18645bc4f..8bab56c4cb 100644 --- a/unofficial/c511002987.lua +++ b/unofficial/c511002987.lua @@ -21,4 +21,4 @@ function s.indtg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.indval(e,c) return s.filter(c,e:GetHandlerPlayer()) -end +end \ No newline at end of file diff --git a/unofficial/c511002988.lua b/unofficial/c511002988.lua index cf88f6a565..1bf0417603 100644 --- a/unofficial/c511002988.lua +++ b/unofficial/c511002988.lua @@ -60,4 +60,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511002989.lua b/unofficial/c511002989.lua index 7b7929061c..08a2c042f5 100644 --- a/unofficial/c511002989.lua +++ b/unofficial/c511002989.lua @@ -74,14 +74,14 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local ec=c:GetPreviousEquipTarget() if not ec then return end - if c:IsReason(REASON_LOST_TARGET) and ec:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA) + if c:IsReason(REASON_LOST_TARGET) and ec:IsLocation(LOCATION_GRAVE|LOCATION_REMOVED|LOCATION_EXTRA) and ec:GetReasonEffect() and (ec:GetReason()&0x41)==0x41 and ec:GetReasonEffect():GetOwner()~=c then local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(37534148,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_PHASE+PHASE_END) - e1:SetRange(LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_HAND) + e1:SetRange(LOCATION_GRAVE|LOCATION_REMOVED|LOCATION_HAND) e1:SetCountLimit(1) e1:SetTarget(s.sptg) e1:SetOperation(s.spop) @@ -103,4 +103,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511002990.lua b/unofficial/c511002990.lua index 5c4376afb7..1e70e6c6c7 100644 --- a/unofficial/c511002990.lua +++ b/unofficial/c511002990.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 and Duel.SendtoGrave(g,REASON_EFFECT)>0 then Duel.NegateActivation(ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511002999.lua b/unofficial/c511002999.lua index f60f5477c6..26c88de4fc 100644 --- a/unofficial/c511002999.lua +++ b/unofficial/c511002999.lua @@ -30,7 +30,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e1:SetCost(s.accost) e1:SetTarget(s.actg) e1:SetOperation(s.acop) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e1:SetCondition(s.accon2) e1:SetLabel(Duel.GetTurnCount()) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) @@ -84,4 +84,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) if (te:GetHandler():GetType()&TYPE_EQUIP+TYPE_CONTINUOUS+TYPE_FIELD)==0 then e:GetHandler():CancelToGrave(false) end -end +end \ No newline at end of file diff --git a/unofficial/c511003000.lua b/unofficial/c511003000.lua index 5c146c7447..6a75b555af 100644 --- a/unofficial/c511003000.lua +++ b/unofficial/c511003000.lua @@ -52,4 +52,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if e1 then e1:Reset() end if e2 then e2:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511003001.lua b/unofficial/c511003001.lua index a151443bf6..70c1676214 100644 --- a/unofficial/c511003001.lua +++ b/unofficial/c511003001.lua @@ -49,4 +49,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(-1000) rc:RegisterEffect(e1,true) -end +end \ No newline at end of file diff --git a/unofficial/c511003002.lua b/unofficial/c511003002.lua index 267a73d879..bd19ab13cb 100644 --- a/unofficial/c511003002.lua +++ b/unofficial/c511003002.lua @@ -79,4 +79,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=e:GetHandler():GetOwner() Duel.ChangeBattleDamage(p,ev,false) Duel.ChangeBattleDamage(1-p,0,false) -end +end \ No newline at end of file diff --git a/unofficial/c511003003.lua b/unofficial/c511003003.lua index ab02578363..fa41b6e364 100644 --- a/unofficial/c511003003.lua +++ b/unofficial/c511003003.lua @@ -45,7 +45,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) end end function s.ffilter(c,fc,sumtype,tp) - return c:IsRace(RACE_ROCK,fc,sumtype,tp) and c:IsSetCard(0x1047,fc,sumtype,tp) + return c:IsRace(RACE_ROCK,fc,sumtype,tp) and c:IsSetCard(SET_GEM_KNIGHT,fc,sumtype,tp) end function s.filter(c,e,tp) return c:IsCanBeFusionMaterial() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) @@ -75,4 +75,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) sc:CompleteProcedure() end end -end +end \ No newline at end of file diff --git a/unofficial/c511003004.lua b/unofficial/c511003004.lua index 36dce40bbc..9aeb9f4674 100644 --- a/unofficial/c511003004.lua +++ b/unofficial/c511003004.lua @@ -43,7 +43,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) end end function s.cfilter(c,tp) - return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0xad) + return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(SET_FRIGHTFUR) end function s.condition(e,tp,eg,ep,ev,re,r,rp) if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end @@ -56,10 +56,10 @@ function s.filter(c,e,tp) return c:IsCanBeEffectTarget(e) and Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) end function s.tgfilter(c,e,tp,tc) - return c:IsSetCard(0xad) and c:GetLevel()==tc:GetLevel() and c:IsAbleToGrave() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,c,e,tp,tc) + return c:IsSetCard(SET_FRIGHTFUR) and c:GetLevel()==tc:GetLevel() and c:IsAbleToGrave() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,c,e,tp,tc) end function s.spfilter(c,e,tp,tc) - return c:IsSetCard(0xad) and c:IsType(TYPE_FUSION) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) + return c:IsSetCard(SET_FRIGHTFUR) and c:IsType(TYPE_FUSION) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(s[0],tc,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -92,4 +92,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511003005.lua b/unofficial/c511003005.lua index 8e220c4320..994e22c50d 100644 --- a/unofficial/c511003005.lua +++ b/unofficial/c511003005.lua @@ -44,7 +44,7 @@ function s.reset(e,tp,eg,ep,ev,re,r,rp) s.desop(e:GetLabelObject(),tp,eg,ep,ev,e,r,rp) end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -56,5 +56,5 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.atktg(e,c) - return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsPreviousLocation(LOCATION_GRAVE) -end + return c:IsSpecialSummoned() and c:IsPreviousLocation(LOCATION_GRAVE) +end \ No newline at end of file diff --git a/unofficial/c511003010.lua b/unofficial/c511003010.lua index 0e88513b55..f4e67694cd 100644 --- a/unofficial/c511003010.lua +++ b/unofficial/c511003010.lua @@ -36,4 +36,4 @@ function s.extraop(e,tc,tp,mat) end function s.sumsuc(e,tp,eg,ep,ev,re,r,rp) Duel.SetChainLimitTillChainEnd(aux.FALSE) -end +end \ No newline at end of file diff --git a/unofficial/c511003025.lua b/unofficial/c511003025.lua index 4317a1bab6..7a1311e515 100644 --- a/unofficial/c511003025.lua +++ b/unofficial/c511003025.lua @@ -39,4 +39,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511003029.lua b/unofficial/c511003029.lua index 72aab7b512..08c7be1ef3 100644 --- a/unofficial/c511003029.lua +++ b/unofficial/c511003029.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,dam,REASON_EFFECT,true) Duel.Damage(tp,dam,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511003038.lua b/unofficial/c511003038.lua index bdc64a9b6b..e4b2dc9b05 100644 --- a/unofficial/c511003038.lua +++ b/unofficial/c511003038.lua @@ -17,8 +17,8 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.cfilter(c,tp) local re=c:GetReasonEffect() - return c:IsFaceup() and c:IsSummonPlayer(tp) and c:IsType(TYPE_XYZ) and c:IsSummonType(SUMMON_TYPE_XYZ) - and re and re:GetHandler():IsSetCard(0x95) and re:IsActiveType(TYPE_SPELL) + return c:IsFaceup() and c:IsSummonPlayer(tp) and c:IsType(TYPE_XYZ) and c:IsXyzSummoned() + and re and re:GetHandler():IsSetCard(SET_RANK_UP_MAGIC) and re:IsActiveType(TYPE_SPELL) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local g=eg:Filter(s.cfilter,nil,tp) @@ -166,4 +166,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511003039.lua b/unofficial/c511003039.lua index 9ff6a0e3f4..ca7ab4d0bb 100644 --- a/unofficial/c511003039.lua +++ b/unofficial/c511003039.lua @@ -35,4 +35,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) e1:SetValue(ct) e1:SetOperation(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WATER)) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511003045.lua b/unofficial/c511003045.lua index 4935f636f1..b4dde2fd41 100644 --- a/unofficial/c511003045.lua +++ b/unofficial/c511003045.lua @@ -103,4 +103,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) mg:AddCard(c) Duel.SynchroSummon(tp,sc,nil,mg) end -end +end \ No newline at end of file diff --git a/unofficial/c511003046.lua b/unofficial/c511003046.lua index 6ca7fd792f..1b2ec69b64 100644 --- a/unofficial/c511003046.lua +++ b/unofficial/c511003046.lua @@ -26,4 +26,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) sc:RegisterFlagEffect(id,RESET_EVENT|(RESETS_STANDARD&~RESET_TOFIELD),0,1,e:GetFieldID()) aux.DelayedOperation(sc,PHASE_END,id,e,tp,function(ag) Duel.SendtoDeck(ag,nil,SEQ_DECKTOP,REASON_EFFECT) end,nil) end -end +end \ No newline at end of file diff --git a/unofficial/c511003047.lua b/unofficial/c511003047.lua index 8bd4744050..b7adfbd1fd 100644 --- a/unofficial/c511003047.lua +++ b/unofficial/c511003047.lua @@ -137,4 +137,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(bc:GetAttack()) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511003048.lua b/unofficial/c511003048.lua index 6ae592a3d6..0d38103f8a 100644 --- a/unofficial/c511003048.lua +++ b/unofficial/c511003048.lua @@ -49,4 +49,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) if hc:IsType(e:GetLabel()) and Duel.Destroy(c,REASON_EFFECT)>0 then Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511003049.lua b/unofficial/c511003049.lua index ef41610b2f..a7eda6ae9e 100644 --- a/unofficial/c511003049.lua +++ b/unofficial/c511003049.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.indval(e,re,tp) return e:GetOwner():GetControler()~=tp -end +end \ No newline at end of file diff --git a/unofficial/c511003050.lua b/unofficial/c511003050.lua index a0c5da7a78..a919f90e8f 100644 --- a/unofficial/c511003050.lua +++ b/unofficial/c511003050.lua @@ -19,4 +19,4 @@ function s.initial_effect(c) end function s.filter(e,c) return not c:IsControler(e:GetHandlerPlayer()) -end +end \ No newline at end of file diff --git a/unofficial/c511003051.lua b/unofficial/c511003051.lua index f8bf938015..90128794ae 100644 --- a/unofficial/c511003051.lua +++ b/unofficial/c511003051.lua @@ -222,4 +222,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511003052.lua b/unofficial/c511003052.lua index 02a5f23db8..61d4fb3c0a 100644 --- a/unofficial/c511003052.lua +++ b/unofficial/c511003052.lua @@ -196,4 +196,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511003053.lua b/unofficial/c511003053.lua index 8b0e426101..eeac04670d 100644 --- a/unofficial/c511003053.lua +++ b/unofficial/c511003053.lua @@ -67,4 +67,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511003070.lua b/unofficial/c511003070.lua index afbe6a7824..0314e99a1a 100644 --- a/unofficial/c511003070.lua +++ b/unofficial/c511003070.lua @@ -3,4 +3,4 @@ local s,id=GetID() function s.initial_effect(c) Ritual.AddProcGreaterCode(c,4,nil,85346853) -end +end \ No newline at end of file diff --git a/unofficial/c511003072.lua b/unofficial/c511003072.lua index cfa88a5b1c..34cd18bc42 100644 --- a/unofficial/c511003072.lua +++ b/unofficial/c511003072.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SynchroSummon(tp,sg:GetFirst(),nil,tg) end end -end +end \ No newline at end of file diff --git a/unofficial/c511003074.lua b/unofficial/c511003074.lua index 5cfa8cabc9..1bf35b3b15 100644 --- a/unofficial/c511003074.lua +++ b/unofficial/c511003074.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_GRAVE) e3:SetProperty(EFFECT_FLAG_CARD_TARGET) - e3:SetCost(aux.bfgcost) + e3:SetCost(Cost.SelfBanish) e3:SetTarget(s.atktg) e3:SetOperation(s.atkop) c:RegisterEffect(e3) @@ -40,4 +40,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511003076.lua b/unofficial/c511003076.lua index b8e006c5d5..f7e5c63d06 100644 --- a/unofficial/c511003076.lua +++ b/unofficial/c511003076.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511003077.lua b/unofficial/c511003077.lua index 4803275b29..e5dc654384 100644 --- a/unofficial/c511003077.lua +++ b/unofficial/c511003077.lua @@ -24,4 +24,4 @@ function s.spcon(e,c) end function s.value(e,c) return Duel.GetLP(1-e:GetHandlerPlayer())-100 -end +end \ No newline at end of file diff --git a/unofficial/c511003078.lua b/unofficial/c511003078.lua index 5af4b391a1..43a9552ced 100644 --- a/unofficial/c511003078.lua +++ b/unofficial/c511003078.lua @@ -63,4 +63,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511003080.lua b/unofficial/c511003080.lua index 94b5cd0251..d52ca2a526 100644 --- a/unofficial/c511003080.lua +++ b/unofficial/c511003080.lua @@ -64,4 +64,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_SET_DEFENSE) token:RegisterEffect(e2,true) Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511003081.lua b/unofficial/c511003081.lua index f8794849d6..f8959583d5 100644 --- a/unofficial/c511003081.lua +++ b/unofficial/c511003081.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local sum=g:GetSum(Card.GetAttack) Duel.Damage(1-tp,sum,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511003082.lua b/unofficial/c511003082.lua index 593cf581ac..b99927469b 100644 --- a/unofficial/c511003082.lua +++ b/unofficial/c511003082.lua @@ -17,4 +17,4 @@ function s.initial_effect(c) end function s.atktarget(e,c) return c:GetLevel()>0 -end +end \ No newline at end of file diff --git a/unofficial/c511003083.lua b/unofficial/c511003083.lua index f71231749b..07c83b3e26 100644 --- a/unofficial/c511003083.lua +++ b/unofficial/c511003083.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else c:CancelToGrave(false) end -end +end \ No newline at end of file diff --git a/unofficial/c511003084.lua b/unofficial/c511003084.lua index 9f0c786422..2e06cf6fc5 100644 --- a/unofficial/c511003084.lua +++ b/unofficial/c511003084.lua @@ -88,4 +88,4 @@ function s.winop(e,tp,eg,ep,ev,re,r,rp) if e:GetLabelObject():GetLabel()==1 then Duel.Win(1-tp,WIN_REASON_DRAW_OF_FATE) end -end +end \ No newline at end of file diff --git a/unofficial/c511003085.lua b/unofficial/c511003085.lua index d79bfd5cbc..27191370bd 100644 --- a/unofficial/c511003085.lua +++ b/unofficial/c511003085.lua @@ -59,4 +59,4 @@ function s.resop(e,tp,eg,ep,ev,re,r,rp) if e:GetLabelObject():GetLabel()~=0 then e:GetLabelObject():SetLabel(0) end -end +end \ No newline at end of file diff --git a/unofficial/c511003086.lua b/unofficial/c511003086.lua index 14830a59da..0b2986fae3 100644 --- a/unofficial/c511003086.lua +++ b/unofficial/c511003086.lua @@ -23,4 +23,4 @@ function s.initial_effect(c) e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e3:SetTarget(aux.NOT(aux.TargetBoolFunction(Card.IsType,TYPE_XYZ))) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511003087.lua b/unofficial/c511003087.lua index 438b22ef31..26e7eaa14c 100644 --- a/unofficial/c511003087.lua +++ b/unofficial/c511003087.lua @@ -69,4 +69,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511003088.lua b/unofficial/c511003088.lua index e30ddb9742..16709bd814 100644 --- a/unofficial/c511003088.lua +++ b/unofficial/c511003088.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511003089.lua b/unofficial/c511003089.lua index 19b64a1688..1681cb1cfc 100644 --- a/unofficial/c511003089.lua +++ b/unofficial/c511003089.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) g:AddCard(e:GetHandler()) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511003115.lua b/unofficial/c511003115.lua index e3e387d8ff..d7fe3dec9e 100644 --- a/unofficial/c511003115.lua +++ b/unofficial/c511003115.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x33} function s.filter(c) - return c:IsSetCard(0x33) and c:IsAbleToHand() + return c:IsSetCard(SET_BLACKWING) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511003201.lua b/unofficial/c511003201.lua index dc5079ab9b..8b564e7554 100644 --- a/unofficial/c511003201.lua +++ b/unofficial/c511003201.lua @@ -134,4 +134,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(rc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511003202.lua b/unofficial/c511003202.lua index 355817de42..c7365630d4 100644 --- a/unofficial/c511003202.lua +++ b/unofficial/c511003202.lua @@ -25,4 +25,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Group.FromCards(c,tc) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511003203.lua b/unofficial/c511003203.lua index 3463d73805..fab5a0fd06 100644 --- a/unofficial/c511003203.lua +++ b/unofficial/c511003203.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511003204.lua b/unofficial/c511003204.lua index d073b0f887..3f556fda70 100644 --- a/unofficial/c511003204.lua +++ b/unofficial/c511003204.lua @@ -41,4 +41,4 @@ function s.actcon(e) if res then return teg:IsExists(s.cfilter,1,nil,1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511003205.lua b/unofficial/c511003205.lua index 8d42339d86..ad7dcf7fb9 100644 --- a/unofficial/c511003205.lua +++ b/unofficial/c511003205.lua @@ -101,4 +101,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) e:GetOwner():RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511003206.lua b/unofficial/c511003206.lua index 3d74d5458f..45cc5c2e71 100644 --- a/unofficial/c511003206.lua +++ b/unofficial/c511003206.lua @@ -44,4 +44,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) end function s.nscon(e) return e:GetHandler():GetFlagEffect(id)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511003207.lua b/unofficial/c511003207.lua index 786bde76a1..8fc8493c26 100644 --- a/unofficial/c511003207.lua +++ b/unofficial/c511003207.lua @@ -22,4 +22,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if ep~=tp and Duel.SelectEffectYesNo(tp,e:GetHandler()) and Duel.Destroy(g,REASON_EFFECT+REASON_REPLACE) then Duel.ChangeBattleDamage(1-tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511003208.lua b/unofficial/c511003208.lua index fd0154f879..0bade9b924 100644 --- a/unofficial/c511003208.lua +++ b/unofficial/c511003208.lua @@ -50,4 +50,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511003209.lua b/unofficial/c511003209.lua index a00817b1c6..5b41038448 100644 --- a/unofficial/c511003209.lua +++ b/unofficial/c511003209.lua @@ -19,7 +19,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(1-tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT) local dg=Duel.GetOperatedGroup():GetFirst() - if dg:IsSetCard(0x10af) then + if dg:IsSetCard(SET_DDD) then Duel.ConfirmCards(1-tp,dg) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511003210.lua b/unofficial/c511003210.lua index db9e04cf5a..f25bec8648 100644 --- a/unofficial/c511003210.lua +++ b/unofficial/c511003210.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.val(e,c) return c:GetEquipCount()-1 -end +end \ No newline at end of file diff --git a/unofficial/c511003211.lua b/unofficial/c511003211.lua index ea4e7b97a6..f3f1d42c8f 100644 --- a/unofficial/c511003211.lua +++ b/unofficial/c511003211.lua @@ -32,4 +32,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511003212.lua b/unofficial/c511003212.lua index 10ea7377c4..7f375086ea 100644 --- a/unofficial/c511003212.lua +++ b/unofficial/c511003212.lua @@ -119,4 +119,4 @@ function s.diceop(e,tp,eg,ep,ev,re,r,rp) end function s.distg(e,c) return c:IsAttribute(e:GetHandler():GetAttribute()) and c~=e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c511003213.lua b/unofficial/c511003213.lua index 9280356ae6..fb934b47fe 100644 --- a/unofficial/c511003213.lua +++ b/unofficial/c511003213.lua @@ -48,4 +48,4 @@ end function s.indcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetLabelObject() return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_HAND,0)==0 and c:GetFlagEffect(id)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511003214.lua b/unofficial/c511003214.lua index eaa89bd39f..1dc2ea7c73 100644 --- a/unofficial/c511003214.lua +++ b/unofficial/c511003214.lua @@ -42,4 +42,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_DISABLE_EFFECT) bc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511003215.lua b/unofficial/c511003215.lua index ee8a5d94b6..83d5aaf669 100644 --- a/unofficial/c511003215.lua +++ b/unofficial/c511003215.lua @@ -60,4 +60,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511003216.lua b/unofficial/c511003216.lua index bec6a74dd9..dd3e48f8de 100644 --- a/unofficial/c511003216.lua +++ b/unofficial/c511003216.lua @@ -31,11 +31,11 @@ function s.initial_effect(c) end function s.reg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - e:GetHandler():RegisterFlagEffect(id,RESET_PHASE+PHASE_END,EFFECT_FLAG_OATH,1) + e:GetHandler():RegisterFlagEffect(id,RESET_PHASE|PHASE_END,EFFECT_FLAG_OATH,1) end function s.descon(e) return e:GetHandler():GetFlagEffect(id)>0 end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511003217.lua b/unofficial/c511003217.lua index 919a22621c..5957cef5b3 100644 --- a/unofficial/c511003217.lua +++ b/unofficial/c511003217.lua @@ -23,4 +23,4 @@ function s.initial_effect(c) end function s.value(e,c) return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_REMOVED,0)*300 -end +end \ No newline at end of file diff --git a/unofficial/c511003218.lua b/unofficial/c511003218.lua index 85a20170b3..443893c3d4 100644 --- a/unofficial/c511003218.lua +++ b/unofficial/c511003218.lua @@ -63,4 +63,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511003219.lua b/unofficial/c511003219.lua index cb93c6f6c0..a11dc2d5da 100644 --- a/unofficial/c511003219.lua +++ b/unofficial/c511003219.lua @@ -159,4 +159,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511003220.lua b/unofficial/c511003220.lua index 205ebbb81c..e364275172 100644 --- a/unofficial/c511003220.lua +++ b/unofficial/c511003220.lua @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_FIRST_ATTACK) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511003221.lua b/unofficial/c511003221.lua index 537c8f7fee..a94a0ce91b 100644 --- a/unofficial/c511003221.lua +++ b/unofficial/c511003221.lua @@ -57,4 +57,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(tg,REASON_COST) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511003222.lua b/unofficial/c511003222.lua index fabc93abb9..3150fcfffd 100644 --- a/unofficial/c511003222.lua +++ b/unofficial/c511003222.lua @@ -115,4 +115,4 @@ function s.dop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511003223.lua b/unofficial/c511003223.lua index 0dd123fd33..e546b28f33 100644 --- a/unofficial/c511003223.lua +++ b/unofficial/c511003223.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511003224.lua b/unofficial/c511003224.lua index 789c582930..72e1634fc1 100644 --- a/unofficial/c511003224.lua +++ b/unofficial/c511003224.lua @@ -70,4 +70,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) bc:RegisterEffect(e1) c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511003228.lua b/unofficial/c511003228.lua index 522764ef1b..ec3577f5b4 100644 --- a/unofficial/c511003228.lua +++ b/unofficial/c511003228.lua @@ -44,4 +44,4 @@ function s.extraop(e,tc,tp,sg,chk) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(LOCATION_REMOVED) e:GetHandler():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511003230.lua b/unofficial/c511003230.lua index b4a13c32ff..f4778bc801 100644 --- a/unofficial/c511003230.lua +++ b/unofficial/c511003230.lua @@ -74,4 +74,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511003233.lua b/unofficial/c511003233.lua index 746dc18f93..3a6e0f1307 100644 --- a/unofficial/c511003233.lua +++ b/unofficial/c511003233.lua @@ -80,4 +80,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end function s.indestg(e,c) return c==e:GetHandler():GetBattleTarget() -end +end \ No newline at end of file diff --git a/unofficial/c511003235.lua b/unofficial/c511003235.lua index 99e96ababf..5f5ad435ed 100644 --- a/unofficial/c511003235.lua +++ b/unofficial/c511003235.lua @@ -16,4 +16,4 @@ function s.initial_effect(c) e2:SetValue(1) c:RegisterEffect(e2) end -s.listed_series={SET_VEHICROID} +s.listed_series={SET_VEHICROID} \ No newline at end of file diff --git a/unofficial/c511003236.lua b/unofficial/c511003236.lua index 8d09c6fefe..d7a3f4f34f 100644 --- a/unofficial/c511003236.lua +++ b/unofficial/c511003236.lua @@ -60,4 +60,4 @@ function s.tg(e,c) end function s.val(e,re,c) return re:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511003242.lua b/unofficial/c511003242.lua index ad71f39618..ec328bd938 100644 --- a/unofficial/c511003242.lua +++ b/unofficial/c511003242.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetValue(1) Duel.RegisterEffect(e3,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511003243.lua b/unofficial/c511003243.lua index b7afe3312a..c6aef56c33 100644 --- a/unofficial/c511003243.lua +++ b/unofficial/c511003243.lua @@ -41,4 +41,4 @@ function s.val(e,re,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511004000.lua b/unofficial/c511004000.lua index e703bdfaf8..5a384b670e 100644 --- a/unofficial/c511004000.lua +++ b/unofficial/c511004000.lua @@ -30,7 +30,7 @@ if not DestinyDraw then end function DestinyDraw.op(e,tp,eg,ep,ev,re,r,rp) for p=0,1 do - local g=Duel.GetFieldGroup(p,LOCATION_DECK+LOCATION_HAND,0) + local g=Duel.GetFieldGroup(p,LOCATION_DECK|LOCATION_HAND,0) if DestinyDraw[p]==nil and Duel.SelectYesNo(p,aux.Stringid(id,0)) then DestinyDraw[p]=aux.SelectUnselectGroup(g,e,p,1,5,aux.dncheck,1,p) DestinyDraw[p]:KeepAlive() @@ -54,4 +54,4 @@ if not DestinyDraw then end end finishsetup() -end +end \ No newline at end of file diff --git a/unofficial/c511004001.lua b/unofficial/c511004001.lua index 7d25e8a384..3680d35cd3 100644 --- a/unofficial/c511004001.lua +++ b/unofficial/c511004001.lua @@ -108,4 +108,4 @@ function s.disop(e,tp) else return 0xA110A11 end -end +end \ No newline at end of file diff --git a/unofficial/c511004003.lua b/unofficial/c511004003.lua index 83e377d7c2..2f1e60b7bb 100644 --- a/unofficial/c511004003.lua +++ b/unofficial/c511004003.lua @@ -59,7 +59,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(tc,p,2,REASON_EFFECT) elseif (loc&LOCATION_HAND)~=0 then Duel.SendtoHand(tc,p,REASON_EFFECT) - elseif (loc&LOCATION_MZONE+LOCATION_SZONE)~=0 then + elseif (loc&LOCATION_MZONE|LOCATION_SZONE)~=0 then local seq2=0 if pzone then loc=LOCATION_PZONE @@ -98,4 +98,4 @@ end function s.fil2(c) loc,pos,p=s.GetInfos(c) return loc~=c:GetLocation() or pos~=c:GetPosition() or p~=c:GetControler() -end +end \ No newline at end of file diff --git a/unofficial/c511004004.lua b/unofficial/c511004004.lua index 06dee01458..b26dea5568 100644 --- a/unofficial/c511004004.lua +++ b/unofficial/c511004004.lua @@ -143,4 +143,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local tg=g:Filter(s.rmfilter,nil,e:GetLabel()) Duel.SendtoHand(tg,tg:GetFirst():GetOwner(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511004006.lua b/unofficial/c511004006.lua index 6bfbfd4cdc..384217115b 100644 --- a/unofficial/c511004006.lua +++ b/unofficial/c511004006.lua @@ -52,7 +52,7 @@ end function s.checkop(e,tp,eg,ep,ev,re,r,rp) for tc in aux.Next(eg) do if tc:IsMonster() and tc:IsPreviousLocation(LOCATION_MZONE) and tc:IsPreviousPosition(POS_ATTACK) then - tc:RegisterFlagEffect(id+1,RESET_PHASE+PHASE_END,0,5) + tc:RegisterFlagEffect(id+1,RESET_PHASE|PHASE_END,0,5) end end end @@ -60,7 +60,7 @@ function s.spcfilter(c,ft) return c:GetFlagEffect(id+1)>0 and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) - local rg=Duel.GetMatchingGroup(s.spcfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.spcfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if chk==0 then return #rg>2 and aux.SelectUnselectGroup(rg,e,tp,3,3,aux.ChkfMMZ(1),0) end local g=aux.SelectUnselectGroup(rg,e,tp,3,3,aux.ChkfMMZ(1),1,tp,HINTMSG_REMOVE) Duel.Remove(g,POS_FACEUP,REASON_COST) @@ -113,4 +113,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,dam,REASON_EFFECT) Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511004008.lua b/unofficial/c511004008.lua index 9233ff16ad..1b2ec3ba35 100644 --- a/unofficial/c511004008.lua +++ b/unofficial/c511004008.lua @@ -18,4 +18,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END,1) e1:SetTargetRange(0,1) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511004014.lua b/unofficial/c511004014.lua index 2310fa2a1a..2a47c867a1 100644 --- a/unofficial/c511004014.lua +++ b/unofficial/c511004014.lua @@ -336,7 +336,7 @@ function s.setlimit(e,c,tp) end function s.aclimit1(e,tp,eg,ep,ev,re,r,rp) if re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and re:GetHandler():IsPreviousLocation(LOCATION_HAND) then - re:GetHandler():RegisterFlagEffect(EFFECT_TYPE_ACTIVATE,RESET_PHASE+PHASE_END,0,1) + re:GetHandler():RegisterFlagEffect(EFFECT_TYPE_ACTIVATE,RESET_PHASE|PHASE_END,0,1) end end function s.aclimit2(e,tp,eg,ep,ev,re,r,rp) @@ -348,10 +348,10 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) local hg=eg:Filter(Card.IsPreviousLocation,nil,LOCATION_HAND) if #hg>0 then if hg:IsExists(Card.IsSpell,1,nil) then - Duel.RegisterFlagEffect(rp,TYPE_SPELL,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(rp,TYPE_SPELL,RESET_PHASE|PHASE_END,0,1) end if hg:IsExists(Card.IsTrap,1,nil) then - Duel.RegisterFlagEffect(rp,TYPE_TRAP,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(rp,TYPE_TRAP,RESET_PHASE|PHASE_END,0,1) end end end diff --git a/unofficial/c511004015.lua b/unofficial/c511004015.lua index 410584e4d6..caa27bbf92 100644 --- a/unofficial/c511004015.lua +++ b/unofficial/c511004015.lua @@ -95,4 +95,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tc:GetOwner(),tc:GetBaseAttack()/2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511004016.lua b/unofficial/c511004016.lua index c2c8ce342c..a955996b78 100644 --- a/unofficial/c511004016.lua +++ b/unofficial/c511004016.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsType(TYPE_FUSION) and c:IsFaceup() and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_FUSION) + return c:IsType(TYPE_FUSION) and c:IsFaceup() and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsFusionSummoned() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end diff --git a/unofficial/c511004100.lua b/unofficial/c511004100.lua index d05005c6b6..13d887f601 100644 --- a/unofficial/c511004100.lua +++ b/unofficial/c511004100.lua @@ -69,4 +69,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.op(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511004103.lua b/unofficial/c511004103.lua index 0f9f646a8e..b6e2de58dc 100644 --- a/unofficial/c511004103.lua +++ b/unofficial/c511004103.lua @@ -69,4 +69,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp,chk) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511004104.lua b/unofficial/c511004104.lua index 682c905d42..5fb717af02 100644 --- a/unofficial/c511004104.lua +++ b/unofficial/c511004104.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511004106.lua b/unofficial/c511004106.lua index 66abb04491..359ac41a3a 100644 --- a/unofficial/c511004106.lua +++ b/unofficial/c511004106.lua @@ -52,4 +52,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.CalculateDamage(sg:GetFirst(),tc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511004108.lua b/unofficial/c511004108.lua index b3393e618a..c7f8010f7f 100644 --- a/unofficial/c511004108.lua +++ b/unofficial/c511004108.lua @@ -23,4 +23,4 @@ function s.filter(c) end function s.val(e,c) return Duel.GetMatchingGroupCount(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511004111.lua b/unofficial/c511004111.lua index 8457240206..bf6f997d9b 100644 --- a/unofficial/c511004111.lua +++ b/unofficial/c511004111.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SSet(p,sg:GetFirst()) end end -end +end \ No newline at end of file diff --git a/unofficial/c511004112.lua b/unofficial/c511004112.lua index 154b525b56..52306af1f5 100644 --- a/unofficial/c511004112.lua +++ b/unofficial/c511004112.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsSetCard(0x66) and c:IsMonster() + return c:IsSetCard(SET_WARRIOR) and c:IsMonster() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local g=eg:Filter(s.cfilter,nil) @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_PHASE+PHASE_END) e2:SetValue(1) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511004114.lua b/unofficial/c511004114.lua index 1edf3a3c6f..ad5424c0ee 100644 --- a/unofficial/c511004114.lua +++ b/unofficial/c511004114.lua @@ -77,4 +77,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local tg=g:Filter(s.desfilter,nil,e:GetLabel()) Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511004117.lua b/unofficial/c511004117.lua index 76ce087e90..385f5130bb 100644 --- a/unofficial/c511004117.lua +++ b/unofficial/c511004117.lua @@ -74,7 +74,7 @@ function s.equipop(e,tp,eg,ep,ev,re,r,rp) end function s.reeqcond(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() - return (tc:IsSummonType(SUMMON_TYPE_TRIBUTE) or tc:IsSummonType(SUMMON_TYPE_FUSION)) + return (tc:IsTributeSummoned() or tc:IsFusionSummoned()) and tc:GetMaterial():IsContains(e:GetHandler():GetPreviousEquipTarget()) end function s.cfilter(c,e,oldec) diff --git a/unofficial/c511004121.lua b/unofficial/c511004121.lua index eb7523d196..2f28f8b71b 100644 --- a/unofficial/c511004121.lua +++ b/unofficial/c511004121.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x7f) + return c:IsFaceup() and c:IsSetCard(SET_UTOPIC) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end @@ -23,7 +23,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) - e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x7f)) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_UTOPIC)) e1:SetValue(aux.tgoval) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.disfilter(c) return c:IsFaceup() and c:GetCardTarget() and c:GetCardTarget():GetCount()>0 and c:GetCardTarget():IsExists(s.filter,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511004122.lua b/unofficial/c511004122.lua index 0c0a48fcb4..980cb9b44d 100644 --- a/unofficial/c511004122.lua +++ b/unofficial/c511004122.lua @@ -14,7 +14,7 @@ local e1=Effect.CreateEffect(c) end function s.con2(e,tp,eg,ep,ev,re,r,rp) local bt=eg:GetFirst() - return r~=REASON_BATTLE and bt:IsSetCard(0x107f) + return r~=REASON_BATTLE and bt:IsSetCard(SET_UTOPIA) end function s.op2(e,tp,eg,ep,ev,re,r,rp) local bt=Duel.GetAttackTarget() diff --git a/unofficial/c511004123.lua b/unofficial/c511004123.lua index d7d276b45b..541af4a192 100644 --- a/unofficial/c511004123.lua +++ b/unofficial/c511004123.lua @@ -115,4 +115,4 @@ function s.resetop(e,tp,eg,ep,ev,re,r,rp) end e:Reset() end -end +end \ No newline at end of file diff --git a/unofficial/c511004124.lua b/unofficial/c511004124.lua index 9b98422196..01b7a208a7 100644 --- a/unofficial/c511004124.lua +++ b/unofficial/c511004124.lua @@ -64,4 +64,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511004126.lua b/unofficial/c511004126.lua index 651f2af247..4d920ba287 100644 --- a/unofficial/c511004126.lua +++ b/unofficial/c511004126.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511004322.lua b/unofficial/c511004322.lua index 5a3eacb5f0..a78daaca85 100644 --- a/unofficial/c511004322.lua +++ b/unofficial/c511004322.lua @@ -43,7 +43,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE+EFFECT_FLAG_CANNOT_DISABLE) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetCode(EVENT_PREDRAW) - e1:SetRange(LOCATION_HAND+LOCATION_DECK) + e1:SetRange(LOCATION_HAND|LOCATION_DECK) e1:SetCountLimit(1) e1:SetCondition(s.activecondition) e1:SetOperation(s.activeoperation) @@ -147,7 +147,7 @@ function s.activeoperation(e,tp,eg,ep,ev,re,r,rp) end --normal/set function s.normalsetcondition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 + return Duel.IsMainPhase() end function s.normalsettarget(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end @@ -359,4 +359,4 @@ end scripter note: not fully working, you can see monster by searching effect's also, need event deck shuffle the cost may be working wrong if it demand to dischard top card deck, because it may be turned on sending random card, since you don't have top deck card theoricaly ---]] +--]] \ No newline at end of file diff --git a/unofficial/c511004328.lua b/unofficial/c511004328.lua index 640dda021f..f86f9e2809 100644 --- a/unofficial/c511004328.lua +++ b/unofficial/c511004328.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) oc:AddCounter(0x1107,1) oc=og:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511004331.lua b/unofficial/c511004331.lua index c8e46bd16e..5f833f64e5 100644 --- a/unofficial/c511004331.lua +++ b/unofficial/c511004331.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511004335.lua b/unofficial/c511004335.lua index f8a20e52b8..96e9294ad4 100644 --- a/unofficial/c511004335.lua +++ b/unofficial/c511004335.lua @@ -54,4 +54,4 @@ function s.damcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return val/2 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511004336.lua b/unofficial/c511004336.lua index 6f4046a9f6..38baf0ff06 100644 --- a/unofficial/c511004336.lua +++ b/unofficial/c511004336.lua @@ -26,4 +26,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.MoveToField(Duel.GetAttacker(),tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.GetAttacker():AddCounter(0x1107,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511004337.lua b/unofficial/c511004337.lua index ba6b97d762..267077b28b 100644 --- a/unofficial/c511004337.lua +++ b/unofficial/c511004337.lua @@ -34,4 +34,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511004339.lua b/unofficial/c511004339.lua index 57b8eb7565..c7da5c3577 100644 --- a/unofficial/c511004339.lua +++ b/unofficial/c511004339.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ev,ep,re,r,rp,chk) tc2:AddCounter(0x1107,1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511004341.lua b/unofficial/c511004341.lua index a6c449409b..5ad2b692bb 100644 --- a/unofficial/c511004341.lua +++ b/unofficial/c511004341.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and Duel.NegateAttack() then Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511004399.lua b/unofficial/c511004399.lua index 8b1ec832a4..4f7785da18 100644 --- a/unofficial/c511004399.lua +++ b/unofficial/c511004399.lua @@ -29,4 +29,4 @@ function s.operation(e,tp) end function s.handcon(tp) return tp~=Duel.GetTurnPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511004400.lua b/unofficial/c511004400.lua index eabc0bb0ab..cf6d47ae0e 100644 --- a/unofficial/c511004400.lua +++ b/unofficial/c511004400.lua @@ -45,4 +45,4 @@ end id+1 potential yell current id: 511004399 ---]] +--]] \ No newline at end of file diff --git a/unofficial/c511004401.lua b/unofficial/c511004401.lua index d09ee3efe3..85066cfbca 100644 --- a/unofficial/c511004401.lua +++ b/unofficial/c511004401.lua @@ -21,4 +21,4 @@ function s.op() end function s.handcon(tp) return tp~=Duel.GetTurnPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511004403.lua b/unofficial/c511004403.lua index 3af2d171f2..67eeb1d400 100644 --- a/unofficial/c511004403.lua +++ b/unofficial/c511004403.lua @@ -111,4 +111,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511004404.lua b/unofficial/c511004404.lua index 9dabb0ce5a..772750383e 100644 --- a/unofficial/c511004404.lua +++ b/unofficial/c511004404.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ev,ep,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511004405.lua b/unofficial/c511004405.lua index c28deb7f61..60e82d0a59 100644 --- a/unofficial/c511004405.lua +++ b/unofficial/c511004405.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,tp) - return c:IsFaceup() and c:IsSetCard(0x9f) and Duel.IsExistingMatchingCard(s.ctfilter,tp,LOCATION_MZONE,0,1,c,c:GetLevel()) + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAPAL) and Duel.IsExistingMatchingCard(s.ctfilter,tp,LOCATION_MZONE,0,1,c,c:GetLevel()) end function s.ctfilter(c,lv) return c:IsFaceup() and c:GetLevel()>0 and c:GetLevel()ct then ctg=ctg:Select(tp,ct,ct,nil) end - Duel.GetControl(ctg,1-tp,RESET_PHASE+PHASE_END,1) + Duel.GetControl(ctg,1-tp,RESET_PHASE|PHASE_END,1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511004406.lua b/unofficial/c511004406.lua index dd0047a019..8b038dacfe 100644 --- a/unofficial/c511004406.lua +++ b/unofficial/c511004406.lua @@ -52,4 +52,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(), REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511004407.lua b/unofficial/c511004407.lua index de1afa7fc1..cd70b429e5 100644 --- a/unofficial/c511004407.lua +++ b/unofficial/c511004407.lua @@ -23,7 +23,7 @@ function s.con(e,tp,eg,ev,ep,re,r,rp) a,d=d,a end e:SetLabelObject(a) - return a:IsControler(1-tp) and d:IsSetCard(0xc008) and d:IsControler(tp) + return a:IsControler(1-tp) and d:IsSetCard(SET_DESTINY_HERO) and d:IsControler(tp) end function s.tg(e,tp,eg,ev,ep,re,r,rp,chk) local c=e:GetHandler() @@ -36,7 +36,7 @@ end function s.op(e,tp,eg,ev,ep,re,r,rp) local tc=Duel.GetFirstTarget() local bc=tc:GetBattleTarget() - if not bc or not bc:IsRelateToBattle() or not bc:IsSetCard(0xc008) then return end + if not bc or not bc:IsRelateToBattle() or not bc:IsSetCard(SET_DESTINY_HERO) then return end local c=e:GetHandler() local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() @@ -76,4 +76,4 @@ function s.op(e,tp,eg,ev,ep,re,r,rp) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511004408.lua b/unofficial/c511004408.lua index 3ed504c692..f9f5e2d824 100644 --- a/unofficial/c511004408.lua +++ b/unofficial/c511004408.lua @@ -71,4 +71,4 @@ function s.op(e,tp,eg,ev,ep,re,r,rp) Duel.SpecialSummonComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511004409.lua b/unofficial/c511004409.lua index f1d4c92432..25a6341819 100644 --- a/unofficial/c511004409.lua +++ b/unofficial/c511004409.lua @@ -73,7 +73,7 @@ function s.spop(e,tp,eg,ev,ep,re,r,rp) end end function s.mtcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tgfilter(c) return c:IsSpell() and c:IsType(TYPE_CONTINUOUS) and c:IsFaceup() and c:IsAbleToGrave() @@ -94,4 +94,4 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) if not tc or not tc:IsRelateToEffect(e) or Duel.SendtoGrave(tc,REASON_EFFECT)==0 then Duel.Damage(tp,3000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511004410.lua b/unofficial/c511004410.lua index 9c96aa8867..90efd629c0 100644 --- a/unofficial/c511004410.lua +++ b/unofficial/c511004410.lua @@ -77,7 +77,7 @@ function s.daop(e,tp,eg,ev,ep,re,r,rp) end end function s.mtcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tgfilter(c) return c:IsSpell() and c:IsType(TYPE_CONTINUOUS) and c:IsFaceup() and c:IsAbleToGrave() @@ -98,4 +98,4 @@ function s.mtop(e,tp,eg,ep,ev,re,r,rp) if not tc or not tc:IsRelateToEffect(e) or Duel.SendtoGrave(tc,REASON_EFFECT)==0 then Duel.Damage(tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511004412.lua b/unofficial/c511004412.lua index a1480ab218..321b3b08ca 100644 --- a/unofficial/c511004412.lua +++ b/unofficial/c511004412.lua @@ -30,4 +30,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511004413.lua b/unofficial/c511004413.lua index 9935c4a1cb..d537b03be2 100644 --- a/unofficial/c511004413.lua +++ b/unofficial/c511004413.lua @@ -64,4 +64,4 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) xc:RegisterEffect(e1) Duel.XyzSummon(tp,tc,Group.FromCards(mc,xc),nil,2,2) end -end +end \ No newline at end of file diff --git a/unofficial/c511004414.lua b/unofficial/c511004414.lua index 5dfb184ecb..2f6ba23efe 100644 --- a/unofficial/c511004414.lua +++ b/unofficial/c511004414.lua @@ -78,4 +78,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511004415.lua b/unofficial/c511004415.lua index 23ac6de5a8..d8ec4297dd 100644 --- a/unofficial/c511004415.lua +++ b/unofficial/c511004415.lua @@ -26,7 +26,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) return true end function s.cfilter(c) - return c:IsMonster() and c:IsSetCard(0xc008) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) + return c:IsMonster() and c:IsSetCard(SET_DESTINY_HERO) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) end function s.target(e,tp,eg,ev,ep,re,r,rp,chk,chkc) if chkc then return s.filter(chkc,e,tp) and eg:IsContains(chkc) end @@ -45,7 +45,7 @@ function s.target(e,tp,eg,ev,ep,re,r,rp,chk,chkc) Duel.Remove(rc,POS_FACEUP,REASON_COST) end function s.afilter(c) - return c:IsMonster() and c:IsSetCard(0xc008) and c:GetAttackedCount()~=0 + return c:IsMonster() and c:IsSetCard(SET_DESTINY_HERO) and c:GetAttackedCount()~=0 end function s.operation(e,tp,eg,ev,ep,re,r,rp) local atk=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) @@ -57,7 +57,7 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) e1:SetValue(-atk) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE then local ag=Duel.SelectMatchingCard(tp,s.afilter,tp,LOCATION_MZONE,0,1,1,nil) local ac=ag:GetFirst() if not ac then return end @@ -78,4 +78,4 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) end function s.atlimit(e,c) return c~=e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c511004416.lua b/unofficial/c511004416.lua index 374784101e..79844d31f5 100644 --- a/unofficial/c511004416.lua +++ b/unofficial/c511004416.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_PHASE+PHASE_BATTLE) e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.tg) e2:SetOperation(s.op) c:RegisterEffect(e2) @@ -22,7 +22,7 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetTargetRange(LOCATION_MZONE,0) - e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x9f)) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_PERFORMAPAL)) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) @@ -31,7 +31,7 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) Duel.RegisterEffect(e2,tp) end function s.filter1(c,e,tp) - return c:IsMonster() and c:IsSetCard(0x9f) and c:IsAbleToChangeControler() and c:IsFaceup() and c:GetBattledGroupCount()~=0 + return c:IsMonster() and c:IsSetCard(SET_PERFORMAPAL) and c:IsAbleToChangeControler() and c:IsFaceup() and c:GetBattledGroupCount()~=0 end function s.filter2(c,e,tp) return c:IsMonster() and c:IsAbleToChangeControler() and c:IsFaceup() @@ -69,4 +69,4 @@ function s.op(e,tp,eg,ev,ep,re,r,rp) end if gc1 then g1:RemoveCard(gc1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511004417.lua b/unofficial/c511004417.lua index d898996f58..27ef46c562 100644 --- a/unofficial/c511004417.lua +++ b/unofficial/c511004417.lua @@ -13,8 +13,8 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,0x9f) end - local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,0x9f) + if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,SET_PERFORMAPAL) end + local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,SET_PERFORMAPAL) Duel.Release(g,REASON_COST) end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -52,7 +52,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(g2,REASON_EFFECT) local lv1=0 local lv2=0 - local dam=Duel.GetMatchingGroupCount(Card.IsMonster,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil)*200 + local dam=Duel.GetMatchingGroupCount(Card.IsMonster,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,nil)*200 local tc1=g1:GetFirst() while tc1 do if tc1:IsMonster() then @@ -72,4 +72,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) else Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511004418.lua b/unofficial/c511004418.lua index fdfd04934d..a980467391 100644 --- a/unofficial/c511004418.lua +++ b/unofficial/c511004418.lua @@ -61,9 +61,9 @@ function s.op1(e,tp,eg,ev,ep,re,r,rp) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_CANNOT_ATTACK) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY then e1:SetReset(RESET_PHASE+PHASE_STANDBY,4) - elseif Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()~=PHASE_STANDBY then + elseif Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()~=PHASE_STANDBY then e1:SetReset(RESET_PHASE+PHASE_STANDBY,3) elseif Duel.GetTurnPlayer()~=tp and Duel.GetCurrentPhase()==PHASE_STANDBY then e1:SetReset(RESET_PHASE+PHASE_STANDBY,3) diff --git a/unofficial/c511004419.lua b/unofficial/c511004419.lua index 3830ff7e10..c12e61b221 100644 --- a/unofficial/c511004419.lua +++ b/unofficial/c511004419.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetCondition(s.condition) e1:SetTarget(s.target) e1:SetOperation(s.operation) @@ -22,10 +22,10 @@ function s.initial_effect(c) end) end function s.gop(e,tp,eg,ep,ev,re,r,rp) - Duel.RegisterFlagEffect(ep,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ep,id,RESET_PHASE|PHASE_END,0,1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE and Duel.GetTurnPlayer()==tp + return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE and Duel.IsTurnPlayer(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetFlagEffect(tp,id)~=0 or Duel.GetFlagEffect(1-tp,id)~=0 end @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) Duel.Damage(tp,d,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511004421.lua b/unofficial/c511004421.lua index 4360d0c202..3fa3727c8f 100644 --- a/unofficial/c511004421.lua +++ b/unofficial/c511004421.lua @@ -15,14 +15,14 @@ end s.listed_series={0xe5} function s.filter(c,e,tp) local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ) - return #pg<=1 and c:IsSetCard(0xe5) and c:IsCanBeEffectTarget(e) and (c:GetRank()>0 or c:IsStatus(STATUS_NO_LEVEL)) + return #pg<=1 and c:IsSetCard(SET_CIPHER) and c:IsCanBeEffectTarget(e) and (c:GetRank()>0 or c:IsStatus(STATUS_NO_LEVEL)) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,c:GetRank()+1,pg) end function s.spfilter(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 - and c:IsSetCard(0xe5) and c:IsRank(rk) and mc:IsCanBeXyzMaterial(c,tp) + and c:IsSetCard(SET_CIPHER) and c:IsRank(rk) and mc:IsCanBeXyzMaterial(c,tp) and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end function s.target(e,tp,eg,ev,ep,re,r,rp,chk,chkc) @@ -95,4 +95,4 @@ function s.sumop(e,tp,eg,ev,ep,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511004423.lua b/unofficial/c511004423.lua index 127dc375ed..0314a9e1e8 100644 --- a/unofficial/c511004423.lua +++ b/unofficial/c511004423.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) end s.listed_series={0x99} function s.spcon(e) - return Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_EXTRA,0,1,nil,0x99) + return Duel.IsExistingMatchingCard(Card.IsSetCard,e:GetHandlerPlayer(),LOCATION_EXTRA,0,1,nil,SET_ODD_EYES) end function s.atkfilter(c) return c:IsType(TYPE_PENDULUM) and c:IsFaceup() diff --git a/unofficial/c511004424.lua b/unofficial/c511004424.lua index 5957cee35d..5be62bc2a3 100644 --- a/unofficial/c511004424.lua +++ b/unofficial/c511004424.lua @@ -54,7 +54,7 @@ function s.initial_effect(c) end s.listed_series={0xf8} function s.atcon(e,tp,eg,ev,ep,re,r,rp) - return Duel.GetTurnPlayer()==1-tp and Duel.IsBattlePhase() + return Duel.IsTurnPlayer(1-tp) and Duel.IsBattlePhase() and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0xf8),tp,LOCATION_MZONE,0,1,nil) end function s.filter(c) @@ -152,4 +152,4 @@ function s.atop2(e,tp,eg,ev,ep,re,r,rp) e2:SetReset(RESET_PHASE|PHASE_BATTLE) e2:SetTargetRange(0,1) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511004425.lua b/unofficial/c511004425.lua index beda796e24..491a222784 100644 --- a/unofficial/c511004425.lua +++ b/unofficial/c511004425.lua @@ -45,7 +45,7 @@ end function s.rumcheck(e,tp,eg,ev,ep,re,r,rp) if not re then return end local rc=re:GetHandler() - if rc:IsSetCard(0x95) and rc:IsSpell() then + if rc:IsSetCard(SET_RANK_UP_MAGIC) and rc:IsSpell() then for ec in eg:Iter() do ec:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,0) end @@ -64,7 +64,7 @@ function s.rmfilter(c) return c:GetAttackedCount()==0 and c:IsAbleToRemove() end function s.rmop(e,tp,eg,ev,ep,re,r,rp) - if Duel.GetTurnPlayer()==tp then return end + if Duel.IsTurnPlayer(tp) then return end local g=Duel.GetMatchingGroup(s.rmfilter,tp,0,LOCATION_MZONE,nil) if #g>0 then Duel.Hint(HINT_CARD,0,id) diff --git a/unofficial/c511004426.lua b/unofficial/c511004426.lua index c77bb42d5f..2900c82447 100644 --- a/unofficial/c511004426.lua +++ b/unofficial/c511004426.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetAttackTarget() if not d then return false end if d:IsControler(1-tp) then a,d=d,a end - if not d or d:IsControler(1-tp) or not d:IsSetCard(0xba) then return false end + if not d or d:IsControler(1-tp) or not d:IsSetCard(SET_RAIDRAPTOR) then return false end if d:IsHasEffect(EFFECT_INDESTRUCTABLE_BATTLE) then local tcind={d:GetCardEffect(EFFECT_INDESTRUCTABLE_BATTLE)} for i=1,#tcind do @@ -82,4 +82,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511004427.lua b/unofficial/c511004427.lua index 3b9fa1a4be..435b88503d 100644 --- a/unofficial/c511004427.lua +++ b/unofficial/c511004427.lua @@ -103,4 +103,4 @@ function s.activate2(e,tp,eg,ev,ep,re,r,rp) Duel.BreakEffect() Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511004428.lua b/unofficial/c511004428.lua index 2e8e5360d7..8e14187397 100644 --- a/unofficial/c511004428.lua +++ b/unofficial/c511004428.lua @@ -79,4 +79,4 @@ function s.desop(e,tp) if ct==3 then Duel.Destroy(c,REASON_RULE) end -end +end \ No newline at end of file diff --git a/unofficial/c511004429.lua b/unofficial/c511004429.lua index 55325d85ec..00a07d4259 100644 --- a/unofficial/c511004429.lua +++ b/unofficial/c511004429.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x10ec} function s.filter(c,g) - return c:IsFaceup() and c:IsSetCard(0x10ec) and c:IsLevelBelow(4) + return c:IsFaceup() and c:IsSetCard(SET_ABYSS_ACTOR) and c:IsLevelBelow(4) end function s.target(e,tp,eg,ev,ep,re,r,rp,chk,chkc) local a,d=Duel.GetAttacker(),Duel.GetAttackTarget() @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ev,ep,re,r,rp) end function s.rdop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,ev+e:GetLabel()) -end +end \ No newline at end of file diff --git a/unofficial/c511004430.lua b/unofficial/c511004430.lua index 0a488ac167..2cd88c7a13 100644 --- a/unofficial/c511004430.lua +++ b/unofficial/c511004430.lua @@ -111,4 +111,4 @@ end function s.spop(e,tp,eg,ev,ep,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.SpecialSummon(e:GetLabelObject(),0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511004432.lua b/unofficial/c511004432.lua index 422dca7ead..26090f231d 100644 --- a/unofficial/c511004432.lua +++ b/unofficial/c511004432.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.ccon(e,tp,eg,ev,ep,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.cop(e,tp,eg,ev,ep,re,r,rp) local str=66 diff --git a/unofficial/c511004434.lua b/unofficial/c511004434.lua index e118f26471..0ec862d4ee 100644 --- a/unofficial/c511004434.lua +++ b/unofficial/c511004434.lua @@ -51,7 +51,7 @@ end function s.condition(e,tp,eg,ev,ep,re,r,rp) if Duel.GetAttacker() or Duel.GetCurrentChain(true)>0 then return false end local ph=Duel.GetCurrentPhase() - return (Duel.GetTurnPlayer()==tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)) + return (Duel.IsTurnPlayer(tp) and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)) or (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) end function s.filter(c) @@ -115,4 +115,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local g=e:GetHandler():GetOverlayGroup() g:KeepAlive() e:GetLabelObject():SetLabelObject(g) -end +end \ No newline at end of file diff --git a/unofficial/c511004436.lua b/unofficial/c511004436.lua index ca2029e300..fe4598e45f 100644 --- a/unofficial/c511004436.lua +++ b/unofficial/c511004436.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ev,ep,re,r,rp) return a and a:IsControler(1-tp) and d==nil end function s.filter1(c,e,tp) - return c:IsMonster() and c:IsSetCard(0xe3) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SPECIAL,tp,true,false) + return c:IsMonster() and c:IsSetCard(SET_CUBIC) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SPECIAL,tp,true,false) end function s.filter2(c,e,tp,a) return c:IsMonster() and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SPECIAL,tp,true,false) and c:IsCode(a:GetCode()) diff --git a/unofficial/c511004437.lua b/unofficial/c511004437.lua index bd82e923a9..4083068e95 100644 --- a/unofficial/c511004437.lua +++ b/unofficial/c511004437.lua @@ -76,4 +76,4 @@ function s.operation0(e,tp,eg,ev,ep,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<#mg or (Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and #mg>1) then return end Duel.SpecialSummon(mg,SUMMON_TYPE_SPECIAL,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511004438.lua b/unofficial/c511004438.lua index ce82271024..e695d9180f 100644 --- a/unofficial/c511004438.lua +++ b/unofficial/c511004438.lua @@ -36,7 +36,7 @@ function s.initial_effect(c) end s.listed_names={4998619} function s.condition(e,tp,eg,ev,ep,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,sc) return c:IsMonster() and c:IsCubicSeed() and c:IsFaceup() @@ -86,4 +86,4 @@ function s.operation0(e,tp,eg,ev,ep,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<#mg or (Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and #mg>1) then return end Duel.SpecialSummon(mg,SUMMON_TYPE_SPECIAL,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511004439.lua b/unofficial/c511004439.lua index af1aa45669..32b8e5e505 100644 --- a/unofficial/c511004439.lua +++ b/unofficial/c511004439.lua @@ -46,7 +46,7 @@ function s.initial_effect(c) end s.listed_names={CARD_VIJAM} function s.condition(e,tp,eg,ev,ep,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,sc) return c:IsFaceup() and c:IsCubicSeed() @@ -111,4 +111,4 @@ function s.operation1(e,tp,eg,ev,ep,re,r,rp) if c:IsRelateToEffect(e) and Duel.Remove(c,POS_FACEUP,REASON_EFFECT)~=0 then Duel.SendtoHand(tg,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511004440.lua b/unofficial/c511004440.lua index ce0d19f263..e0a0f916d4 100644 --- a/unofficial/c511004440.lua +++ b/unofficial/c511004440.lua @@ -135,4 +135,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511004441.lua b/unofficial/c511004441.lua index 3808cd22ba..db3152106a 100644 --- a/unofficial/c511004441.lua +++ b/unofficial/c511004441.lua @@ -92,4 +92,4 @@ function s.operation1(e,tp,eg,ev,ep,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<#mg or (Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and #mg>1) then return end Duel.SpecialSummon(mg,SUMMON_TYPE_SPECIAL,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511004442.lua b/unofficial/c511004442.lua index 4a1e975006..7f5322d138 100644 --- a/unofficial/c511004442.lua +++ b/unofficial/c511004442.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) end s.listed_names={CARD_VIJAM} function s.filter1(c) - return c:IsMonster() and c:IsFaceup() and c:IsSetCard(0xe3) + return c:IsMonster() and c:IsFaceup() and c:IsSetCard(SET_CUBIC) end function s.filter2(c) return c:IsCode(CARD_VIJAM) @@ -44,7 +44,7 @@ function s.filter3(c,tp) return c:IsMonster() and c:IsCubicSeed() end function s.condition0(e,tp,eg,ev,ep,re,r,rp) - return eg:IsExists(s.filter3,1,nil,tp) and re:GetHandler():IsMonster() and re:GetHandler():IsSetCard(0xe3) and Duel.GetTurnPlayer()~=tp + return eg:IsExists(s.filter3,1,nil,tp) and re:GetHandler():IsMonster() and re:GetHandler():IsSetCard(SET_CUBIC) and Duel.GetTurnPlayer()~=tp end function s.cost0(e,tp,eg,ev,ep,re,r,rp,chk) local c=e:GetHandler() diff --git a/unofficial/c511004443.lua b/unofficial/c511004443.lua index 3b729043a2..560fe48b4d 100644 --- a/unofficial/c511004443.lua +++ b/unofficial/c511004443.lua @@ -38,7 +38,7 @@ function s.initial_effect(c) end s.listed_names={3775068} function s.condition(e,tp,eg,ev,ep,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,sc) return c:IsMonster() and c:IsCubicSeed() and c:IsFaceup() @@ -97,4 +97,4 @@ function s.operation1(e,tp,eg,ev,ep,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<#mg or (Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and #mg>1) then return end Duel.SpecialSummon(mg,SUMMON_TYPE_SPECIAL,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511004444.lua b/unofficial/c511004444.lua index fa85d4802e..c56be7556b 100644 --- a/unofficial/c511004444.lua +++ b/unofficial/c511004444.lua @@ -39,7 +39,7 @@ function s.initial_effect(c) e3:SetLabelObject(g) end function s.filter(c) - return c:IsFaceup() and c:IsMonster() and c:IsSetCard(0xe3) + return c:IsFaceup() and c:IsMonster() and c:IsSetCard(SET_CUBIC) end function s.target(e,tp,eg,ev,ep,re,r,rp,chk) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end diff --git a/unofficial/c511004445.lua b/unofficial/c511004445.lua index 19d4bc6821..89a001631d 100644 --- a/unofficial/c511004445.lua +++ b/unofficial/c511004445.lua @@ -18,7 +18,7 @@ function s.op(e,tp,eg,ev,ep,re,r,rp) local c=Duel.GetOperatedGroup():GetFirst() Duel.ConfirmCards(1-tp,c) Duel.SendtoGrave(c,REASON_EFFECT) - if c:IsMonster() and c:IsSetCard(0x9f) then + if c:IsMonster() and c:IsSetCard(SET_PERFORMAPAL) then Duel.NegateAttack() end end diff --git a/unofficial/c511004448.lua b/unofficial/c511004448.lua index acdaec7446..f11d95a6f8 100644 --- a/unofficial/c511004448.lua +++ b/unofficial/c511004448.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511004449.lua b/unofficial/c511004449.lua index 3acfea6b25..9bbaf02873 100644 --- a/unofficial/c511004449.lua +++ b/unofficial/c511004449.lua @@ -81,4 +81,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511004450.lua b/unofficial/c511004450.lua index 7738c9789b..7d84740a6a 100644 --- a/unofficial/c511004450.lua +++ b/unofficial/c511004450.lua @@ -14,7 +14,7 @@ function s.operation(e,tp) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_INDESTRUCTABLE) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) - e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xaf)) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_DD)) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) diff --git a/unofficial/c511004501.lua b/unofficial/c511004501.lua index 11d0fc58d0..4c62fb9ded 100644 --- a/unofficial/c511004501.lua +++ b/unofficial/c511004501.lua @@ -88,4 +88,4 @@ function s.rmop2(e,tp,eg,ep,ev,re,r,rp) end function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.ReturnToField(e:GetLabelObject()) -end +end \ No newline at end of file diff --git a/unofficial/c511005001.lua b/unofficial/c511005001.lua index 6b9c9ed5f6..832a3bd0d8 100644 --- a/unofficial/c511005001.lua +++ b/unofficial/c511005001.lua @@ -103,4 +103,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.GetControl(tc,tp,PHASE_END,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511005002.lua b/unofficial/c511005002.lua index eed1a70d10..8ce85ed4d1 100644 --- a/unofficial/c511005002.lua +++ b/unofficial/c511005002.lua @@ -80,4 +80,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local tg=g:Filter(s.desfilter,nil,e:GetLabel()) g:DeleteGroup() Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005008.lua b/unofficial/c511005008.lua index f8d401f042..2603740f38 100644 --- a/unofficial/c511005008.lua +++ b/unofficial/c511005008.lua @@ -17,4 +17,4 @@ function s.val(e,c) return 1000 end return 0 -end +end \ No newline at end of file diff --git a/unofficial/c511005009.lua b/unofficial/c511005009.lua index 8be4e9791d..584ccadba4 100644 --- a/unofficial/c511005009.lua +++ b/unofficial/c511005009.lua @@ -56,4 +56,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511005010.lua b/unofficial/c511005010.lua index c53f4ebb75..667935b62c 100644 --- a/unofficial/c511005010.lua +++ b/unofficial/c511005010.lua @@ -64,4 +64,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(tg,REASON_DISCARD) end Duel.Damage(tp,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005013.lua b/unofficial/c511005013.lua index 738aee4cd9..96f23d6cb3 100644 --- a/unofficial/c511005013.lua +++ b/unofficial/c511005013.lua @@ -18,4 +18,4 @@ function s.spcon(e,c) if not c then return true end local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,4,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511005017.lua b/unofficial/c511005017.lua index e8176b9603..6847501077 100644 --- a/unofficial/c511005017.lua +++ b/unofficial/c511005017.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:CancelToGrave() Duel.Overlay(tc,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511005018.lua b/unofficial/c511005018.lua index 3dd195e488..a7bb8ad795 100644 --- a/unofficial/c511005018.lua +++ b/unofficial/c511005018.lua @@ -63,4 +63,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e1:GetValue()+ev-tc:GetAttack()) end end -end +end \ No newline at end of file diff --git a/unofficial/c511005020.lua b/unofficial/c511005020.lua index 9f76c22380..e617306c47 100644 --- a/unofficial/c511005020.lua +++ b/unofficial/c511005020.lua @@ -34,4 +34,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.ChangeTargetCard(ev,Group.FromCards(tc)) end -end +end \ No newline at end of file diff --git a/unofficial/c511005021.lua b/unofficial/c511005021.lua index 77e5e51a13..4f4f25a32c 100644 --- a/unofficial/c511005021.lua +++ b/unofficial/c511005021.lua @@ -58,4 +58,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511005022.lua b/unofficial/c511005022.lua index 658c5c0e94..221b395696 100644 --- a/unofficial/c511005022.lua +++ b/unofficial/c511005022.lua @@ -56,4 +56,4 @@ end function s.dmg_op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,e:GetLabel(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005023.lua b/unofficial/c511005023.lua index 720a9ce0ce..5c2798e7a1 100644 --- a/unofficial/c511005023.lua +++ b/unofficial/c511005023.lua @@ -76,4 +76,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() if tc and tc:IsOnField() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511005025.lua b/unofficial/c511005025.lua index da065d3749..58c48681fb 100644 --- a/unofficial/c511005025.lua +++ b/unofficial/c511005025.lua @@ -9,4 +9,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetValue(500) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511005026.lua b/unofficial/c511005026.lua index acc91212f5..3d80cb678d 100644 --- a/unofficial/c511005026.lua +++ b/unofficial/c511005026.lua @@ -46,4 +46,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) local tg=dg:Filter(s.lv_fil,nil,lv):Filter(Card.IsCanBeSpecialSummoned,nil,e,0,tp,false,false):Select(tp,1,1,nil) Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511005028.lua b/unofficial/c511005028.lua index cb07b47914..15b80347d8 100644 --- a/unofficial/c511005028.lua +++ b/unofficial/c511005028.lua @@ -28,7 +28,7 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE and Duel.GetChainInfo(0,CHAININFO_CHAIN_ID)==s[0] and Duel.IsChainDisablable(ev) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -37,4 +37,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511005029.lua b/unofficial/c511005029.lua index 47f5ae1a30..e77bdaed4f 100644 --- a/unofficial/c511005029.lua +++ b/unofficial/c511005029.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetValue(500) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511005032.lua b/unofficial/c511005032.lua index 2bbf32b61b..46d1b0aff8 100644 --- a/unofficial/c511005032.lua +++ b/unofficial/c511005032.lua @@ -38,4 +38,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end Duel.SendtoGrave(eg,REASON_EFFECT,rp) return true -end +end \ No newline at end of file diff --git a/unofficial/c511005035.lua b/unofficial/c511005035.lua index 89f621d230..9e9514d933 100644 --- a/unofficial/c511005035.lua +++ b/unofficial/c511005035.lua @@ -31,4 +31,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and tc then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511005038.lua b/unofficial/c511005038.lua index a82da20f7a..615005d35c 100644 --- a/unofficial/c511005038.lua +++ b/unofficial/c511005038.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005039.lua b/unofficial/c511005039.lua index 50ba57d815..64a4c740cd 100644 --- a/unofficial/c511005039.lua +++ b/unofficial/c511005039.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE|PHASE_END) e1:SetValue(1) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511005041.lua b/unofficial/c511005041.lua index d232b234cc..fb5d214895 100644 --- a/unofficial/c511005041.lua +++ b/unofficial/c511005041.lua @@ -41,4 +41,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) if not g then return end Duel.Release(g,REASON_COST) g:DeleteGroup() -end +end \ No newline at end of file diff --git a/unofficial/c511005043.lua b/unofficial/c511005043.lua index ab4f591cd5..f2132caf18 100644 --- a/unofficial/c511005043.lua +++ b/unofficial/c511005043.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x55) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PHOTON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -21,7 +21,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x55) + return c:IsFaceup() and c:IsSetCard(SET_PHOTON) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) @@ -65,4 +65,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511005044.lua b/unofficial/c511005044.lua index 049f18e9bd..365d3d2748 100644 --- a/unofficial/c511005044.lua +++ b/unofficial/c511005044.lua @@ -20,4 +20,4 @@ function s.tg(e,c) end function s.val(e,c) return Duel.GetMatchingGroup(s.fil,c:GetControler(),LOCATION_MZONE,0,c):GetSum(Card.GetBaseAttack) -end +end \ No newline at end of file diff --git a/unofficial/c511005045.lua b/unofficial/c511005045.lua index 5c895f34c6..06543ec7d0 100644 --- a/unofficial/c511005045.lua +++ b/unofficial/c511005045.lua @@ -34,7 +34,7 @@ function s.cd(e,tp,eg,ep,ev,re,r,rp) return s.dmg[tp]>0 end function s.sum_fil(c,e,tp) - return c:IsSetCard(0x7b) and c:IsDefenseBelow(s.dmg[tp]) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GALAXY) and c:IsDefenseBelow(s.dmg[tp]) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingTarget(s.sum_fil,tp,LOCATION_GRAVE,0,1,nil,e,tp) end @@ -47,4 +47,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511005046.lua b/unofficial/c511005046.lua index 5de762e9de..23553e1ae4 100644 --- a/unofficial/c511005046.lua +++ b/unofficial/c511005046.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.dm_cd(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetHandler():GetFlagEffect(id)==0 + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetFlagEffect(id)==0 end function s.dm_tg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -72,7 +72,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(re:GetHandler(),REASON_EFFECT) end - if Duel.GetCurrentPhase()==PHASE_STANDBY and Duel.GetTurnPlayer()==tp then + if Duel.GetCurrentPhase()==PHASE_STANDBY and Duel.IsTurnPlayer(tp) then e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) end end diff --git a/unofficial/c511005047.lua b/unofficial/c511005047.lua index d3b585292e..78161b3cb3 100644 --- a/unofficial/c511005047.lua +++ b/unofficial/c511005047.lua @@ -26,4 +26,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.zero_op(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511005051.lua b/unofficial/c511005051.lua index 336e45e728..32bd94d2b4 100644 --- a/unofficial/c511005051.lua +++ b/unofficial/c511005051.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511005053.lua b/unofficial/c511005053.lua index cb67cf3198..587529b445 100644 --- a/unofficial/c511005053.lua +++ b/unofficial/c511005053.lua @@ -3,7 +3,7 @@ --cleaned and updated by MLD local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x107b)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_GALAXY_EYES)) --eff local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) @@ -31,4 +31,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005054.lua b/unofficial/c511005054.lua index 6a8cae1c6d..48d80b317d 100644 --- a/unofficial/c511005054.lua +++ b/unofficial/c511005054.lua @@ -81,4 +81,4 @@ function s.negs_op(e,tp,eg,ep,ev,re,r,rp) end function s.rst_op(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():SetFlagEffectLabel(id,0) -end +end \ No newline at end of file diff --git a/unofficial/c511005055.lua b/unofficial/c511005055.lua index 652ac230ba..50d4c5c0e4 100644 --- a/unofficial/c511005055.lua +++ b/unofficial/c511005055.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511005056.lua b/unofficial/c511005056.lua index a1a4b586a8..acc3919d1a 100644 --- a/unofficial/c511005056.lua +++ b/unofficial/c511005056.lua @@ -109,4 +109,4 @@ function s.acon(e) end function s.aval(e,c) return c:GetAttack()*2 -end +end \ No newline at end of file diff --git a/unofficial/c511005057.lua b/unofficial/c511005057.lua index 3225dbd60a..ed4ab75d83 100644 --- a/unofficial/c511005057.lua +++ b/unofficial/c511005057.lua @@ -94,4 +94,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511005060.lua b/unofficial/c511005060.lua index 55b9fd7ad7..cc01903f21 100644 --- a/unofficial/c511005060.lua +++ b/unofficial/c511005060.lua @@ -119,4 +119,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) tgc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511005064.lua b/unofficial/c511005064.lua index 3be2de7fe9..e0cb56d806 100644 --- a/unofficial/c511005064.lua +++ b/unofficial/c511005064.lua @@ -55,7 +55,7 @@ function s.cfilter(c,tp) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) if eg:IsExists(s.cfilter,1,nil,Duel.GetTurnPlayer()) then - Duel.RegisterFlagEffect(Duel.GetTurnPlayer(),id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(Duel.GetTurnPlayer(),id,RESET_PHASE|PHASE_END,0,1) end end function s.checkop2(e,tp,eg,ep,ev,re,r,rp) @@ -73,5 +73,5 @@ function s.checkop2(e,tp,eg,ep,ev,re,r,rp) end end function s.checkop3(e,tp,eg,ep,ev,re,r,rp) - Duel.RegisterFlagEffect(Duel.GetTurnPlayer(),id,RESET_PHASE+PHASE_END,0,1) -end + Duel.RegisterFlagEffect(Duel.GetTurnPlayer(),id,RESET_PHASE|PHASE_END,0,1) +end \ No newline at end of file diff --git a/unofficial/c511005066.lua b/unofficial/c511005066.lua index be902e1e8d..70f4e562bb 100644 --- a/unofficial/c511005066.lua +++ b/unofficial/c511005066.lua @@ -44,4 +44,4 @@ function s.operation2(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511005067.lua b/unofficial/c511005067.lua index fcec15a94f..38730c79cd 100644 --- a/unofficial/c511005067.lua +++ b/unofficial/c511005067.lua @@ -51,4 +51,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511005068.lua b/unofficial/c511005068.lua index 4d4f203ddf..85ed4e8b8f 100644 --- a/unofficial/c511005068.lua +++ b/unofficial/c511005068.lua @@ -86,4 +86,4 @@ function s.con_op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(rc:GetOwner()) e1:SetReset(RESET_EVENT+RESETS_STANDARD-(RESET_TOFIELD+RESET_TEMP_REMOVE+RESET_TURN_SET)) rc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511005069.lua b/unofficial/c511005069.lua index 062bd7c525..358ea73965 100644 --- a/unofficial/c511005069.lua +++ b/unofficial/c511005069.lua @@ -119,4 +119,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,dam,REASON_EFFECT) end Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005070.lua b/unofficial/c511005070.lua index 91e8f287c9..30cb7ec045 100644 --- a/unofficial/c511005070.lua +++ b/unofficial/c511005070.lua @@ -37,4 +37,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511005071.lua b/unofficial/c511005071.lua index a980b99e26..cba56ef518 100644 --- a/unofficial/c511005071.lua +++ b/unofficial/c511005071.lua @@ -109,4 +109,4 @@ function s.flagcond(e,tp,eg,ep,ev,re,r,rp) end function s.flagop2(e,tp,eg,ep,ev,re,r,rp) ec:SetFlagEffectLabel(id,1) -end +end \ No newline at end of file diff --git a/unofficial/c511005074.lua b/unofficial/c511005074.lua index d8a16cc6f2..0b11a1ead1 100644 --- a/unofficial/c511005074.lua +++ b/unofficial/c511005074.lua @@ -34,4 +34,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511005076.lua b/unofficial/c511005076.lua index 9523de81d6..1de5e51e17 100644 --- a/unofficial/c511005076.lua +++ b/unofficial/c511005076.lua @@ -104,4 +104,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511005077.lua b/unofficial/c511005077.lua index dfd607d086..7f6e909fdf 100644 --- a/unofficial/c511005077.lua +++ b/unofficial/c511005077.lua @@ -63,4 +63,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if c:IsFaceup() and c:IsRelateToEffect(e) then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511005079.lua b/unofficial/c511005079.lua index dcaaedee1f..d251422cb7 100644 --- a/unofficial/c511005079.lua +++ b/unofficial/c511005079.lua @@ -16,7 +16,7 @@ function s.cd(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) if not g or #g~=1 then return false end local c=g:GetFirst() - if c:IsOnField() and c:IsFaceup() and c:IsSetCard(0x54) then + if c:IsOnField() and c:IsFaceup() and c:IsSetCard(SET_GAGAGA) then e:SetLabelObject(c) return true end diff --git a/unofficial/c511005081.lua b/unofficial/c511005081.lua index aa9376da79..11a762392a 100644 --- a/unofficial/c511005081.lua +++ b/unofficial/c511005081.lua @@ -22,13 +22,13 @@ function s.initial_effect(c) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) local rc=re:GetHandler() - if re:IsMonsterEffect() and re:GetCode()==EVENT_SUMMON_SUCCESS and rc:IsSummonType(SUMMON_TYPE_TRIBUTE) then + if re:IsMonsterEffect() and re:GetCode()==EVENT_SUMMON_SUCCESS and rc:IsTributeSummoned() then rc:RegisterFlagEffect(id,RESET_EVENT|RESETS_STANDARD,0,0) end end function s.filter(c) return c:IsFaceup() and c:IsLevelAbove(5) and c:IsMonarch() - and c:IsSummonType(SUMMON_TYPE_TRIBUTE) and c:HasFlagEffect(id) + and c:IsTributeSummoned() and c:HasFlagEffect(id) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end diff --git a/unofficial/c511005083.lua b/unofficial/c511005083.lua index f3c076a04d..69d5940e20 100644 --- a/unofficial/c511005083.lua +++ b/unofficial/c511005083.lua @@ -121,4 +121,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,300,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511005084.lua b/unofficial/c511005084.lua index f48a454142..d79f08b132 100644 --- a/unofficial/c511005084.lua +++ b/unofficial/c511005084.lua @@ -86,4 +86,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,300,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511005086.lua b/unofficial/c511005086.lua index 93dfe00c69..5c0b28a8ae 100644 --- a/unofficial/c511005086.lua +++ b/unofficial/c511005086.lua @@ -27,7 +27,7 @@ function s.reg_cd(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFlagEffect(0,id)==0 and eg:IsExists(s.filter,1,nil,tp) and #eg==1 end function s.reg_op(e,tp,eg,ep,ev,re,r,rp) - Duel.RegisterFlagEffect(0,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(0,id,RESET_PHASE|PHASE_END,0,1) end function s.cd(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFlagEffect(0,id)~=0 @@ -41,4 +41,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511005087.lua b/unofficial/c511005087.lua index 8a12fb89d3..2344f6d1d7 100644 --- a/unofficial/c511005087.lua +++ b/unofficial/c511005087.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) elseif atc and atc:IsControler(1-tp) and atc:IsRelateToBattle() then Duel.Destroy(atc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511005089.lua b/unofficial/c511005089.lua index 91cc1fe7b4..3bd3cb5ea6 100644 --- a/unofficial/c511005089.lua +++ b/unofficial/c511005089.lua @@ -128,4 +128,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end function s.imval(e,re) return re:GetOwner()~=e:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511005090.lua b/unofficial/c511005090.lua index dba40a3403..a2b60c4f80 100644 --- a/unofficial/c511005090.lua +++ b/unofficial/c511005090.lua @@ -56,4 +56,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511005092.lua b/unofficial/c511005092.lua index be28b3f787..8198f8e752 100644 --- a/unofficial/c511005092.lua +++ b/unofficial/c511005092.lua @@ -345,4 +345,4 @@ if not SealedDuel then end if not Duel.GetStartingHand then Duel.GetStartingHand=function() return 5 end -end +end \ No newline at end of file diff --git a/unofficial/c511005093.lua b/unofficial/c511005093.lua index 79e65dca40..56f1e82561 100644 --- a/unofficial/c511005093.lua +++ b/unofficial/c511005093.lua @@ -168,4 +168,4 @@ if not BoosterDraft then e:Reset() end finish_setup() -end +end \ No newline at end of file diff --git a/unofficial/c511005592.lua b/unofficial/c511005592.lua index 8db0649a93..0deb415e2e 100644 --- a/unofficial/c511005592.lua +++ b/unofficial/c511005592.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_DEFENSE) e2:SetValue(1000) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511005595.lua b/unofficial/c511005595.lua index d1cae9df04..f2fd480b58 100644 --- a/unofficial/c511005595.lua +++ b/unofficial/c511005595.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(atk) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511005596.lua b/unofficial/c511005596.lua index 5c10b45504..bf0f5c6c13 100644 --- a/unofficial/c511005596.lua +++ b/unofficial/c511005596.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.GetControl(tc,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511005598.lua b/unofficial/c511005598.lua index 163771885f..3f0862683a 100644 --- a/unofficial/c511005598.lua +++ b/unofficial/c511005598.lua @@ -56,4 +56,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.ChangeAttackTarget(g:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511005599.lua b/unofficial/c511005599.lua index 6ede8e746b..d4f6f337c1 100644 --- a/unofficial/c511005599.lua +++ b/unofficial/c511005599.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511005601.lua b/unofficial/c511005601.lua index 8eb50167ad..7f9435702d 100644 --- a/unofficial/c511005601.lua +++ b/unofficial/c511005601.lua @@ -59,4 +59,4 @@ function s.activate(e,tp,eg,ev,ep,re,r,rp) if chk then c:CancelToGrave() end -end +end \ No newline at end of file diff --git a/unofficial/c511005604.lua b/unofficial/c511005604.lua index 1e99861d35..65936b3f90 100644 --- a/unofficial/c511005604.lua +++ b/unofficial/c511005604.lua @@ -40,4 +40,4 @@ function s.desfilter(c) end function s.descon(e) return Duel.IsExistingMatchingCard(s.desfilter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511005623.lua b/unofficial/c511005623.lua index f33de8bd09..c4bef8cdf8 100644 --- a/unofficial/c511005623.lua +++ b/unofficial/c511005623.lua @@ -25,4 +25,4 @@ function s.condition(e) end function s.atlimit(e,c) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH) -end +end \ No newline at end of file diff --git a/unofficial/c511005624.lua b/unofficial/c511005624.lua index 7cdc478116..b6fb55e486 100644 --- a/unofficial/c511005624.lua +++ b/unofficial/c511005624.lua @@ -25,4 +25,4 @@ function s.condition(e) end function s.atlimit(e,c) return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_EARTH) -end +end \ No newline at end of file diff --git a/unofficial/c511005628.lua b/unofficial/c511005628.lua index 2569b27c6c..cf76867ab0 100644 --- a/unofficial/c511005628.lua +++ b/unofficial/c511005628.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,c:GetOriginalCode()) Duel.PayLPCost(1-ep,ev) c:ResetFlagEffect(id) -end +end \ No newline at end of file diff --git a/unofficial/c511005629.lua b/unofficial/c511005629.lua index 7f283a31a2..fee2dd10c8 100644 --- a/unofficial/c511005629.lua +++ b/unofficial/c511005629.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=eg:Filter(s.filter,nil,e,tp) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) Duel.Damage(1-tp,1000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005630.lua b/unofficial/c511005630.lua index fe8f5ceef1..3ce754f2fe 100644 --- a/unofficial/c511005630.lua +++ b/unofficial/c511005630.lua @@ -37,4 +37,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK,0,1,1,nil,e,tp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511005633.lua b/unofficial/c511005633.lua index 77d14ef4cd..4f149a1e9a 100644 --- a/unofficial/c511005633.lua +++ b/unofficial/c511005633.lua @@ -91,4 +91,4 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005637.lua b/unofficial/c511005637.lua index c8f8730469..da7dd75bb8 100644 --- a/unofficial/c511005637.lua +++ b/unofficial/c511005637.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(s.filter,nil) Duel.NegateSummon(g) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005639.lua b/unofficial/c511005639.lua index 94f4fe4ba2..0baafe13be 100644 --- a/unofficial/c511005639.lua +++ b/unofficial/c511005639.lua @@ -142,7 +142,7 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) - if Duel.Destroy(g,REASON_EFFECT)>0 and c:IsRelateToEffect(e) and c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) then + if Duel.Destroy(g,REASON_EFFECT)>0 and c:IsRelateToEffect(e) and c:IsLocation(LOCATION_GRAVE|LOCATION_REMOVED) then c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,0,1) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) @@ -157,7 +157,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e:Reset() end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() @@ -165,4 +165,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:GetFlagEffect(id)>0 and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511005642.lua b/unofficial/c511005642.lua index 216e5fa4ca..20d3671be3 100644 --- a/unofficial/c511005642.lua +++ b/unofficial/c511005642.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.RaiseEvent(tc,EVENT_CHAIN_SOLVED,tc:GetActivateEffect(),0,tp,tp,Duel.GetCurrentChain()) end -end +end \ No newline at end of file diff --git a/unofficial/c511005643.lua b/unofficial/c511005643.lua index eabea22b6c..ff2e0a24d8 100644 --- a/unofficial/c511005643.lua +++ b/unofficial/c511005643.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511005644.lua b/unofficial/c511005644.lua index eb886380b2..5b81ee9c03 100644 --- a/unofficial/c511005644.lua +++ b/unofficial/c511005644.lua @@ -49,4 +49,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511005645.lua b/unofficial/c511005645.lua index 957596730a..92cc469edb 100644 --- a/unofficial/c511005645.lua +++ b/unofficial/c511005645.lua @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil) Duel.DiscardDeck(1-tp,ct,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511005646.lua b/unofficial/c511005646.lua index 6a5c16cb4d..d6b30f78da 100644 --- a/unofficial/c511005646.lua +++ b/unofficial/c511005646.lua @@ -70,4 +70,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetValue(ct*-1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511005647.lua b/unofficial/c511005647.lua index 6916680a5c..9d0778756b 100644 --- a/unofficial/c511005647.lua +++ b/unofficial/c511005647.lua @@ -31,4 +31,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511005709.lua b/unofficial/c511005709.lua index a47a80aa1c..32832d4fc4 100644 --- a/unofficial/c511005709.lua +++ b/unofficial/c511005709.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511005710.lua b/unofficial/c511005710.lua index 52e7675b99..f086cbd0a0 100644 --- a/unofficial/c511005710.lua +++ b/unofficial/c511005710.lua @@ -67,7 +67,7 @@ end function s.lvcon(e,tp,eg,ep,ev,re,r,rp) local sg=e:GetLabelObject() if sg:FilterCount(s.lvfilter,nil)>0 then - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) else sg:DeleteGroup() e:Reset() @@ -90,7 +90,7 @@ end function s.dcondition(e,tp,eg,ep,ev,re,r,rp) local lv1=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil):GetSum(Card.GetLevel) local lv2=Duel.GetMatchingGroup(Card.IsFaceup,1-tp,LOCATION_MZONE,0,nil):GetSum(Card.GetLevel) - return lv1<=lv2 and Duel.GetTurnPlayer()==tp + return lv1<=lv2 and Duel.IsTurnPlayer(tp) end function s.dtarget(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -100,4 +100,4 @@ function s.doperation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511005711.lua b/unofficial/c511005711.lua index 2615532378..cf020a869a 100644 --- a/unofficial/c511005711.lua +++ b/unofficial/c511005711.lua @@ -153,11 +153,11 @@ end function s.endop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p=Duel.GetTurnPlayer() - Duel.SkipPhase(p,PHASE_DRAW,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(p,PHASE_STANDBY,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(p,PHASE_BATTLE,RESET_PHASE+PHASE_END,1,1) - Duel.SkipPhase(p,PHASE_MAIN2,RESET_PHASE+PHASE_END,1) + Duel.SkipPhase(p,PHASE_DRAW,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(p,PHASE_STANDBY,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(p,PHASE_BATTLE,RESET_PHASE|PHASE_END,1,1) + Duel.SkipPhase(p,PHASE_MAIN2,RESET_PHASE|PHASE_END,1) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_BP) @@ -226,4 +226,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511005713.lua b/unofficial/c511005713.lua index 5442bbe014..4e069d21f7 100644 --- a/unofficial/c511005713.lua +++ b/unofficial/c511005713.lua @@ -56,10 +56,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e4,tp) end function s.turncon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.turnop(e,tp,eg,ep,ev,re,r,rp) local ct=e:GetLabel()+1 e:SetLabel(ct) e:GetHandler():SetTurnCounter(ct) -end +end \ No newline at end of file diff --git a/unofficial/c511005714.lua b/unofficial/c511005714.lua index bae4022684..9a0fb8df23 100644 --- a/unofficial/c511005714.lua +++ b/unofficial/c511005714.lua @@ -15,7 +15,7 @@ end s.listed_series={0x9f} function s.cfilter(c) -return c:IsOnField() and c:IsMonster() and c:IsSetCard(0x9f) +return c:IsOnField() and c:IsMonster() and c:IsSetCard(SET_PERFORMAPAL) end function s.condition(e,tp,eg,ep,ev,re,r,rp) diff --git a/unofficial/c511005715.lua b/unofficial/c511005715.lua index 87bbd5f136..edd4cfccd4 100644 --- a/unofficial/c511005715.lua +++ b/unofficial/c511005715.lua @@ -27,4 +27,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511005737.lua b/unofficial/c511005737.lua index 9feeb5535a..878847d84c 100644 --- a/unofficial/c511005737.lua +++ b/unofficial/c511005737.lua @@ -51,4 +51,4 @@ function s.adcon(e) end function s.adval(e,c) return e:GetHandler():GetBattleTarget():GetAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511006002.lua b/unofficial/c511006002.lua index 30315c6fd7..fccbd60308 100644 --- a/unofficial/c511006002.lua +++ b/unofficial/c511006002.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local c = Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND,0,1,1,nil,tc,e,tp) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511006003.lua b/unofficial/c511006003.lua index 9152b9fc31..a515765c19 100644 --- a/unofficial/c511006003.lua +++ b/unofficial/c511006003.lua @@ -19,8 +19,8 @@ function s.initial_effect(c) end s.listed_series={0x8e} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x8e) + return c:IsFaceup() and c:IsSetCard(SET_VAMPIRE) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511006004.lua b/unofficial/c511006004.lua index 7cf0bd3355..d0f459942d 100644 --- a/unofficial/c511006004.lua +++ b/unofficial/c511006004.lua @@ -57,4 +57,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.Summon(tp,tc,false,se) end -end +end \ No newline at end of file diff --git a/unofficial/c511007001.lua b/unofficial/c511007001.lua index 79603dfed7..25e63cfc44 100644 --- a/unofficial/c511007001.lua +++ b/unofficial/c511007001.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c,tp) - return c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_PENDULUM) + return c:IsControler(tp) and c:IsPendulumSummoned() end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,1-tp) @@ -41,4 +41,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_DISABLE_EFFECT) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511007003.lua b/unofficial/c511007003.lua index ea0d400cf0..b5380248f5 100644 --- a/unofficial/c511007003.lua +++ b/unofficial/c511007003.lua @@ -53,4 +53,4 @@ function s.bancon(e) end function s.bantg(e,c,re,r) return c==e:GetLabelObject():GetLabelObject() and c:GetFlagEffect(id)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511007006.lua b/unofficial/c511007006.lua index 995d02fd89..2e6c4c09c0 100644 --- a/unofficial/c511007006.lua +++ b/unofficial/c511007006.lua @@ -35,7 +35,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetLabel(fid) e2:SetOperation(s.regop) tc:RegisterEffect(e2) - tc:RegisterFlagEffect(fid,RESET_PHASE+PHASE_END,0,1,0) + tc:RegisterFlagEffect(fid,RESET_PHASE|PHASE_END,0,1,0) end sg:KeepAlive() local e2=Effect.CreateEffect(c) @@ -83,4 +83,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.desopfilter,tp,0,LOCATION_MZONE,nil,dam) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511007010.lua b/unofficial/c511007010.lua index 860b4a02ea..07f6ecc9a3 100644 --- a/unofficial/c511007010.lua +++ b/unofficial/c511007010.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,tp,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511007013.lua b/unofficial/c511007013.lua index a16779e4dd..d4d3dde0f6 100644 --- a/unofficial/c511007013.lua +++ b/unofficial/c511007013.lua @@ -58,4 +58,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511007014.lua b/unofficial/c511007014.lua index 9b8c76f839..c9d13f5f5a 100644 --- a/unofficial/c511007014.lua +++ b/unofficial/c511007014.lua @@ -93,4 +93,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_BATTLE) e1:SetValue(tc:GetAttack()-ev) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511007015.lua b/unofficial/c511007015.lua index 28d5f2c876..9fbcb6430e 100644 --- a/unofficial/c511007015.lua +++ b/unofficial/c511007015.lua @@ -57,4 +57,4 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) Duel.TossCoin(tp,ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511007018.lua b/unofficial/c511007018.lua index 2b154133af..dcf6f416e7 100644 --- a/unofficial/c511007018.lua +++ b/unofficial/c511007018.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.IsMainPhase() and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>=3 + return Duel.IsTurnPlayer(tp) and Duel.IsMainPhase() and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>=3 end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local g1=Duel.GetFieldGroup(tp,0,LOCATION_MZONE):GetMinGroup(Card.GetAttack) @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511007019.lua b/unofficial/c511007019.lua index d5ddb2d497..2df511a82b 100644 --- a/unofficial/c511007019.lua +++ b/unofficial/c511007019.lua @@ -54,7 +54,7 @@ function s.initial_effect(c) end) end function s.cfilter(c,tp) - return c:IsSummonType(SUMMON_TYPE_XYZ) and c:IsSummonPlayer(tp) + return c:IsXyzSummoned() and c:IsSummonPlayer(tp) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) if eg:IsExists(s.cfilter,1,nil,tp) then @@ -123,4 +123,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511007022.lua b/unofficial/c511007022.lua index d991991607..33ed663e68 100644 --- a/unofficial/c511007022.lua +++ b/unofficial/c511007022.lua @@ -44,4 +44,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511007024.lua b/unofficial/c511007024.lua index b1f41e43c2..823089e6e7 100644 --- a/unofficial/c511007024.lua +++ b/unofficial/c511007024.lua @@ -54,7 +54,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(s.damop) e1:SetReset(RESET_CHAIN) Duel.RegisterEffect(e1,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end end function s.damop(e,re,val,r,rp,rc) @@ -63,4 +63,4 @@ function s.damop(e,re,val,r,rp,rc) if cc==0 or rp~=tp or (r&REASON_EFFECT)==0 or Duel.GetFlagEffect(tp,id)==0 then return val end Duel.ResetFlagEffect(tp,id) return val*2 -end +end \ No newline at end of file diff --git a/unofficial/c511007029.lua b/unofficial/c511007029.lua index 11cb009146..4bb745b3b8 100644 --- a/unofficial/c511007029.lua +++ b/unofficial/c511007029.lua @@ -22,4 +22,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc then tc:CopyEffect(tc:GetOriginalCode(),RESET_EVENT+RESETS_STANDARD) end -end +end \ No newline at end of file diff --git a/unofficial/c511007031.lua b/unofficial/c511007031.lua index 67ef47a288..1543428415 100644 --- a/unofficial/c511007031.lua +++ b/unofficial/c511007031.lua @@ -48,7 +48,7 @@ function s.atkval(e,c) return 400*atkct end function s.condition1(e,tp) - return Duel.GetTurnPlayer()==tp and Duel.GetAttacker()==e:GetHandler():GetEquipTarget() + return Duel.IsTurnPlayer(tp) and Duel.GetAttacker()==e:GetHandler():GetEquipTarget() end function s.haltop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -70,4 +70,4 @@ function s.haltop(e,tp,eg,ep,ev,re,r,rp) end function s.ftarget(e,c) return c~=e:GetOwner():GetEquipTarget() -end +end \ No newline at end of file diff --git a/unofficial/c511008001.lua b/unofficial/c511008001.lua index 903238a33b..1019c8b9df 100644 --- a/unofficial/c511008001.lua +++ b/unofficial/c511008001.lua @@ -16,4 +16,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UPDATE_ATTACK) e3:SetValue(300) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511008004.lua b/unofficial/c511008004.lua index 8be8cc1b32..b25bccdd29 100644 --- a/unofficial/c511008004.lua +++ b/unofficial/c511008004.lua @@ -22,4 +22,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511008015.lua b/unofficial/c511008015.lua index 7d08ac39ac..e095c98e26 100644 --- a/unofficial/c511008015.lua +++ b/unofficial/c511008015.lua @@ -59,4 +59,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_EVENT+RESETS_STANDARD) a:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511008016.lua b/unofficial/c511008016.lua index 603c690a30..4baffc55ab 100644 --- a/unofficial/c511008016.lua +++ b/unofficial/c511008016.lua @@ -254,4 +254,4 @@ function s.leaveop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(og,REASON_RULE) end Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511008019.lua b/unofficial/c511008019.lua index ea9a8e1545..386cffa0ad 100644 --- a/unofficial/c511008019.lua +++ b/unofficial/c511008019.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_DAMAGE) d:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511008020.lua b/unofficial/c511008020.lua index 2e2cf5494f..85763ea720 100644 --- a/unofficial/c511008020.lua +++ b/unofficial/c511008020.lua @@ -30,7 +30,7 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) s[ep]=s[ep]+ev end function s.filter1(c) - return c:IsFaceup() and c:IsSetCard(0x7f) + return c:IsFaceup() and c:IsSetCard(SET_UTOPIC) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(tp)<=Duel.GetLP(1-tp) @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511008023.lua b/unofficial/c511008023.lua index d3fcc77c11..b182710117 100644 --- a/unofficial/c511008023.lua +++ b/unofficial/c511008023.lua @@ -65,4 +65,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsSpell() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511008025.lua b/unofficial/c511008025.lua index 3bf7484b6a..2d3dcc03f8 100644 --- a/unofficial/c511008025.lua +++ b/unofficial/c511008025.lua @@ -15,4 +15,4 @@ end function s.condition(e) local bc=e:GetHandler():GetEquipTarget():GetBattleTarget() return bc and bc:IsFaceup() and bc:IsRace(RACE_DRAGON) -end +end \ No newline at end of file diff --git a/unofficial/c511008026.lua b/unofficial/c511008026.lua index b024b15974..a71d7ae30b 100644 --- a/unofficial/c511008026.lua +++ b/unofficial/c511008026.lua @@ -52,4 +52,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) else Duel.SendtoGrave(eqtg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511008027.lua b/unofficial/c511008027.lua index abd8f21335..49562d0265 100644 --- a/unofficial/c511008027.lua +++ b/unofficial/c511008027.lua @@ -85,4 +85,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511008029.lua b/unofficial/c511008029.lua index 89ed789908..de20d64bb2 100644 --- a/unofficial/c511008029.lua +++ b/unofficial/c511008029.lua @@ -33,5 +33,3 @@ end - - diff --git a/unofficial/c511008500.lua b/unofficial/c511008500.lua index bc1734382b..64583ccc9f 100644 --- a/unofficial/c511008500.lua +++ b/unofficial/c511008500.lua @@ -52,4 +52,4 @@ function s.damval(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511008502.lua b/unofficial/c511008502.lua index 18082f77df..e97fea0a2c 100644 --- a/unofficial/c511008502.lua +++ b/unofficial/c511008502.lua @@ -32,4 +32,4 @@ function s.indct(e,re,r,rp) if (r&REASON_BATTLE+REASON_EFFECT)~=0 then return 1 else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c511008503.lua b/unofficial/c511008503.lua index 07acfee6dc..50ff3211f0 100644 --- a/unofficial/c511008503.lua +++ b/unofficial/c511008503.lua @@ -29,4 +29,4 @@ end function s.tg(e,c) local tc=e:GetHandler():GetCardTarget():GetFirst() return tc and c:IsLevel(tc:GetLevel()) -end +end \ No newline at end of file diff --git a/unofficial/c511008505.lua b/unofficial/c511008505.lua index b0eaab43ca..976ce598cc 100644 --- a/unofficial/c511008505.lua +++ b/unofficial/c511008505.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x19) + return c:IsFaceup() and c:IsSetCard(SET_GLADIATOR) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -35,4 +35,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,dam1,REASON_EFFECT,true) Duel.Damage(1-tp,dam2,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511008506.lua b/unofficial/c511008506.lua index bd06038c44..0e4cedf01d 100644 --- a/unofficial/c511008506.lua +++ b/unofficial/c511008506.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_DRAW) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) - e1:SetRange(LOCATION_GRAVE+LOCATION_HAND+LOCATION_REMOVED+LOCATION_EXTRA) + e1:SetRange(LOCATION_GRAVE|LOCATION_HAND|LOCATION_REMOVED|LOCATION_EXTRA) e1:SetCode(EVENT_LEAVE_FIELD) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetCondition(s.drcon) @@ -30,4 +30,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511008507.lua b/unofficial/c511008507.lua index 3576f7b02b..be59a81401 100644 --- a/unofficial/c511008507.lua +++ b/unofficial/c511008507.lua @@ -34,4 +34,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511008508.lua b/unofficial/c511008508.lua index c245d7afcc..70671ebe0e 100644 --- a/unofficial/c511008508.lua +++ b/unofficial/c511008508.lua @@ -49,4 +49,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511008509.lua b/unofficial/c511008509.lua index 3b3a991204..f15b9b4f19 100644 --- a/unofficial/c511008509.lua +++ b/unofficial/c511008509.lua @@ -51,4 +51,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009000.lua b/unofficial/c511009000.lua index 06eb65ea29..bf12e926d2 100644 --- a/unofficial/c511009000.lua +++ b/unofficial/c511009000.lua @@ -85,4 +85,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) for tc in aux.Next(tg) do Duel.ReturnToField(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511009001.lua b/unofficial/c511009001.lua index 91b4bff795..766227598a 100644 --- a/unofficial/c511009001.lua +++ b/unofficial/c511009001.lua @@ -38,4 +38,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:HasNonZeroAttack() and tc:IsRelateToEffect(e) then Duel.Damage(1-tp,tc:GetAttack()//2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009002.lua b/unofficial/c511009002.lua index 58335d2b5d..ec37e014f6 100644 --- a/unofficial/c511009002.lua +++ b/unofficial/c511009002.lua @@ -33,7 +33,7 @@ function s.initial_effect(c) c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT) end function s.filter(c) - return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:HasNonZeroAttack() + return c:IsSpecialSummoned() and c:HasNonZeroAttack() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -115,4 +115,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009003.lua b/unofficial/c511009003.lua index b247ba8c57..5169ef50cc 100644 --- a/unofficial/c511009003.lua +++ b/unofficial/c511009003.lua @@ -3,4 +3,4 @@ local s,id=GetID() function s.initial_effect(c) --pendulum summon Pendulum.AddProcedure(c) -end +end \ No newline at end of file diff --git a/unofficial/c511009004.lua b/unofficial/c511009004.lua index a67d21c611..993fb3a543 100644 --- a/unofficial/c511009004.lua +++ b/unofficial/c511009004.lua @@ -41,4 +41,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009005.lua b/unofficial/c511009005.lua index 9eec7d7549..4947b889d3 100644 --- a/unofficial/c511009005.lua +++ b/unofficial/c511009005.lua @@ -20,4 +20,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009006.lua b/unofficial/c511009006.lua index 1b8367f0e4..be79fc340b 100644 --- a/unofficial/c511009006.lua +++ b/unofficial/c511009006.lua @@ -12,4 +12,4 @@ function s.initial_effect(c) e1:SetTarget(Fusion.SummonEffTG(table.unpack(params))) e1:SetOperation(Fusion.SummonEffOP(table.unpack(params))) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009007.lua b/unofficial/c511009007.lua index b52142b132..55953187ca 100644 --- a/unofficial/c511009007.lua +++ b/unofficial/c511009007.lua @@ -39,4 +39,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009008.lua b/unofficial/c511009008.lua index 2a805c86c6..a8c2862179 100644 --- a/unofficial/c511009008.lua +++ b/unofficial/c511009008.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009009.lua b/unofficial/c511009009.lua index 78f0dff8bf..1b346a4ea5 100644 --- a/unofficial/c511009009.lua +++ b/unofficial/c511009009.lua @@ -49,4 +49,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) and mg:FilterCount(aux.NecroValleyFilter(s.mgfilter),nil,e,tp,rc)==ct then Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009010.lua b/unofficial/c511009010.lua index 92c3778818..0d14c86a38 100644 --- a/unofficial/c511009010.lua +++ b/unofficial/c511009010.lua @@ -78,4 +78,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009011.lua b/unofficial/c511009011.lua index 6e99efb3e4..f56fed1193 100644 --- a/unofficial/c511009011.lua +++ b/unofficial/c511009011.lua @@ -27,4 +27,4 @@ function s.addc2(e,tp,eg,ep,ev,re,r,rp) if tc:IsFaceup() and tc:IsRelateToEffect(e) then tc:AddCounter(0x1109,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009014.lua b/unofficial/c511009014.lua index 1046ea5f1c..a295954b13 100644 --- a/unofficial/c511009014.lua +++ b/unofficial/c511009014.lua @@ -43,4 +43,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009018.lua b/unofficial/c511009018.lua index dedecbb620..5df1683be4 100644 --- a/unofficial/c511009018.lua +++ b/unofficial/c511009018.lua @@ -31,17 +31,17 @@ function s.initial_effect(c) end s.listed_series={0xfc} function s.matfilter(c,scard,sumtype,tp) - return c:IsSetCard(0xfc,lc,sumtype,tp) + return c:IsSetCard(SET_GOUKI,lc,sumtype,tp) end function s.indesfil(c) - return c:IsFaceup() and c:IsSetCard(0xfc) + return c:IsFaceup() and c:IsSetCard(SET_GOUKI) end function s.incon(e) return e:GetHandler():GetLinkedGroupCount()>0 and e:GetHandler():GetLinkedGroup():IsExists(s.indesfil,1,nil) end function s.seqfilter(c,zone) - return c:IsFaceup() and c:IsSetCard(0xfc) and c:GetSequence()<5 + return c:IsFaceup() and c:IsSetCard(SET_GOUKI) and c:GetSequence()<5 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE,c:GetControler(),LOCATION_REASON_CONTROL,zone)>0 end function s.seqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -63,4 +63,4 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE) local nseq=math.log(Duel.SelectDisableField(tp,1,LOCATION_MZONE,LOCATION_MZONE,~(zone<0 and c:IsSynchroSummonable(tc) @@ -78,4 +78,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,1,1,nil) Duel.SynchroSummon(tp,sg:GetFirst(),tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511009023.lua b/unofficial/c511009023.lua index 50c55d1b7a..319add3b4b 100644 --- a/unofficial/c511009023.lua +++ b/unofficial/c511009023.lua @@ -36,15 +36,15 @@ function s.initial_effect(c) end s.listed_series={0xfc} function s.spcfilter(c) - return c:GetSequence()>=5 and c:IsSetCard(0xfc) + return c:GetSequence()>=5 and c:IsSetCard(SET_GOUKI) end function s.condition(e) return Duel.IsExistingMatchingCard(s.spcfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) end function s.target(e,c) - return c:IsSetCard(0xfc) and c:GetSequence()<5 + return c:IsSetCard(SET_GOUKI) and c:GetSequence()<5 end function s.descon(e) local tp=e:GetHandlerPlayer() return Duel.GetLP(tp)>Duel.GetLP(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511009024.lua b/unofficial/c511009024.lua index 7bad0ae948..ae4b56db15 100644 --- a/unofficial/c511009024.lua +++ b/unofficial/c511009024.lua @@ -44,7 +44,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) - local sg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,tc) + local sg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,tc) if #sg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then Duel.BreakEffect() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) @@ -61,4 +61,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511009025.lua b/unofficial/c511009025.lua index 67960c49ae..c9bf8dd4e2 100644 --- a/unofficial/c511009025.lua +++ b/unofficial/c511009025.lua @@ -128,4 +128,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end Duel.Damage(1-tp,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009027.lua b/unofficial/c511009027.lua index cfb941ff45..a4091c4dc1 100644 --- a/unofficial/c511009027.lua +++ b/unofficial/c511009027.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP_ATTACK) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511009030.lua b/unofficial/c511009030.lua index 1939dd8b0b..724bee6058 100644 --- a/unofficial/c511009030.lua +++ b/unofficial/c511009030.lua @@ -64,4 +64,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local tg=g:Filter(s.desfilter,nil,e:GetLabel()) Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009032.lua b/unofficial/c511009032.lua index b9eb56d254..b276aac684 100644 --- a/unofficial/c511009032.lua +++ b/unofficial/c511009032.lua @@ -27,7 +27,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsMantis),tp,LOCATION_MZONE,0,1,nil) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -41,4 +41,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,TOKEN_BABY_MANTIS) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009034.lua b/unofficial/c511009034.lua index d081488064..b6d4d4af20 100644 --- a/unofficial/c511009034.lua +++ b/unofficial/c511009034.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UPDATE_RSCALE) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511009035.lua b/unofficial/c511009035.lua index 3e373f5221..d3c44e2e86 100644 --- a/unofficial/c511009035.lua +++ b/unofficial/c511009035.lua @@ -19,11 +19,11 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.cfilter(c,tp) - return c:GetAttack()>0 and c:IsSetCard(0xc008) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:GetAttack()>0 and c:IsSetCard(SET_DESTINY_HERO) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,c) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xc008) + return c:IsFaceup() and c:IsSetCard(SET_DESTINY_HERO) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(1) @@ -34,10 +34,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then if e:GetLabel()~=1 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,tp) + return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,tp) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,tp) local atk=g:GetFirst():GetAttack() Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) @@ -55,4 +55,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009036.lua b/unofficial/c511009036.lua index 24afff394f..556c5acab5 100644 --- a/unofficial/c511009036.lua +++ b/unofficial/c511009036.lua @@ -37,7 +37,7 @@ function s.initial_effect(c) end s.listed_series={0xaf} function s.thfilter(c,tp) - return c:IsType(TYPE_PENDULUM) and c:IsSetCard(0xaf) and c:IsPreviousControler(tp) and c:IsControler(tp) + return c:IsType(TYPE_PENDULUM) and c:IsSetCard(SET_DD) and c:IsPreviousControler(tp) and c:IsControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) @@ -58,7 +58,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -70,4 +70,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009040.lua b/unofficial/c511009040.lua index 69d521d9d2..9d80b0e23d 100644 --- a/unofficial/c511009040.lua +++ b/unofficial/c511009040.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x9f) + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAPAL) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end diff --git a/unofficial/c511009042.lua b/unofficial/c511009042.lua index 332a236742..b3f4cae829 100644 --- a/unofficial/c511009042.lua +++ b/unofficial/c511009042.lua @@ -1,7 +1,7 @@ --Ancient Gear Magic Shield local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x7)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_ANCIENT_GEAR)) --Atk local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_EQUIP) @@ -14,4 +14,4 @@ function s.initial_effect(c) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e3:SetValue(1) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511009043.lua b/unofficial/c511009043.lua index 8f2a80cde7..1135e0f6fc 100644 --- a/unofficial/c511009043.lua +++ b/unofficial/c511009043.lua @@ -51,4 +51,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009044.lua b/unofficial/c511009044.lua index 343b1a7148..e240ff4a44 100644 --- a/unofficial/c511009044.lua +++ b/unofficial/c511009044.lua @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009047.lua b/unofficial/c511009047.lua index bcc5004082..f510fa7649 100644 --- a/unofficial/c511009047.lua +++ b/unofficial/c511009047.lua @@ -45,7 +45,7 @@ function s.drcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x9f) + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAPAL) end function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil) @@ -58,4 +58,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009049.lua b/unofficial/c511009049.lua index cc242c719d..922d9ac485 100644 --- a/unofficial/c511009049.lua +++ b/unofficial/c511009049.lua @@ -81,4 +81,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009051.lua b/unofficial/c511009051.lua index e81a59bb6f..ca150a87b2 100644 --- a/unofficial/c511009051.lua +++ b/unofficial/c511009051.lua @@ -34,4 +34,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(1-tp,ct*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009052.lua b/unofficial/c511009052.lua index 1b0f1d48d0..19b7c24aca 100644 --- a/unofficial/c511009052.lua +++ b/unofficial/c511009052.lua @@ -27,11 +27,11 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0xc008) and c:GetFlagEffect(id)>0 + return c:IsFaceup() and c:IsSetCard(SET_DESTINY_HERO) and c:GetFlagEffect(id)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,c:GetAttack(),e,tp) end function s.spfilter(c,atk,e,tp) - return c:IsSetCard(0xc008) and c:GetAttack()<=atk and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_DESTINY_HERO) and c:GetAttack()<=atk and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -48,4 +48,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009053.lua b/unofficial/c511009053.lua index 8e91f3794a..5606723728 100644 --- a/unofficial/c511009053.lua +++ b/unofficial/c511009053.lua @@ -38,7 +38,7 @@ function s.initial_effect(c) end s.material_setcode={SET_HERO,SET_DESTINY_HERO} function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) + return e:GetHandler():IsFusionSummoned() end function s.damfilter(c,fc) local mg=fc:GetMaterial() @@ -84,4 +84,4 @@ function s.descon2(e,tp,eg,ep,ev,re,r,rp) local val=0 if c:GetFlagEffect(384)>0 then val=c:GetFlagEffectLabel(384) end return c:GetDefense()~=val -end +end \ No newline at end of file diff --git a/unofficial/c511009054.lua b/unofficial/c511009054.lua index 5d96342055..fcc9c17083 100644 --- a/unofficial/c511009054.lua +++ b/unofficial/c511009054.lua @@ -53,7 +53,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:SetMaterial(tc) Duel.Overlay(sc,tc) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) - if (tc:IsSetCard(0x10db) or tc:IsCode(16195942)) and Duel.SelectYesNo(tp,aux.Stringid(95100814,0)) then + if (tc:IsSetCard(SET_THE_PHANTOM_KNIGHTS) or tc:IsCode(16195942)) and Duel.SelectYesNo(tp,aux.Stringid(95100814,0)) then e:GetHandler():CancelToGrave() Duel.Overlay(sc,e:GetHandler()) end @@ -62,7 +62,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetLabelObject() and e:GetLabelObject():IsLocation(LOCATION_MZONE) + return Duel.IsTurnPlayer(tp) and e:GetLabelObject() and e:GetLabelObject():IsLocation(LOCATION_MZONE) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) local tc=e:GetLabelObject() @@ -75,4 +75,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) if tc:IsLocation(LOCATION_MZONE) then Duel.Overlay(tc,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511009055.lua b/unofficial/c511009055.lua index b06bd39755..42e37cf775 100644 --- a/unofficial/c511009055.lua +++ b/unofficial/c511009055.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsSetCard(0x4) and c:IsMonster() and not c:IsPublic() + return c:IsSetCard(SET_AMAZONESS) and c:IsMonster() and not c:IsPublic() end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end @@ -32,4 +32,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009058.lua b/unofficial/c511009058.lua index d5df46a8dc..fec4c249a6 100644 --- a/unofficial/c511009058.lua +++ b/unofficial/c511009058.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,g) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009060.lua b/unofficial/c511009060.lua index 14438b39bd..b7c4e530fb 100644 --- a/unofficial/c511009060.lua +++ b/unofficial/c511009060.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) sg:AddCard(tc2) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009061.lua b/unofficial/c511009061.lua index f52884826a..edbfa66a30 100644 --- a/unofficial/c511009061.lua +++ b/unofficial/c511009061.lua @@ -45,4 +45,4 @@ function s.val(e,c) end function s.filter(c) return c:IsFaceup() and c:IsHeavyIndustry() -end +end \ No newline at end of file diff --git a/unofficial/c511009062.lua b/unofficial/c511009062.lua index 2908477f0b..30122f343b 100644 --- a/unofficial/c511009062.lua +++ b/unofficial/c511009062.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009063.lua b/unofficial/c511009063.lua index df8cb7a3b5..f10c578509 100644 --- a/unofficial/c511009063.lua +++ b/unofficial/c511009063.lua @@ -27,4 +27,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009064.lua b/unofficial/c511009064.lua index 50504675f2..3a98a9112a 100644 --- a/unofficial/c511009064.lua +++ b/unofficial/c511009064.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsSetCard(0x9a) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_SUPERHEAVY_SAMURAI) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.hspcon(e,c) if c==nil then return true end @@ -26,4 +26,4 @@ function s.hspop(e,tp,eg,ep,ev,re,r,rp,c) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND,0,1,1,c) Duel.SendtoGrave(g,REASON_COST) -end +end \ No newline at end of file diff --git a/unofficial/c511009065.lua b/unofficial/c511009065.lua index db0ba3a453..eb66375daa 100644 --- a/unofficial/c511009065.lua +++ b/unofficial/c511009065.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) --synchro summon - Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsRace,RACE_MACHINE),1,1,Synchro.NonTunerEx(Card.IsSetCard,0x9a),1,99) + Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsRace,RACE_MACHINE),1,1,Synchro.NonTunerEx(Card.IsSetCard,SET_SUPERHEAVY_SAMURAI),1,99) c:EnableReviveLimit() --Destroy local e1=Effect.CreateEffect(c) @@ -47,4 +47,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(tc,REASON_EFFECT)==0 then return end Duel.Damage(p,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009066.lua b/unofficial/c511009066.lua index 9c04aaf3e6..2635400079 100644 --- a/unofficial/c511009066.lua +++ b/unofficial/c511009066.lua @@ -26,10 +26,10 @@ function s.initial_effect(c) end s.listed_series={0x10ec} function s.thfilter1(c) - return c:IsSetCard(0x10ec) and c:IsFaceup() and c:IsAbleToHand() + return c:IsSetCard(SET_ABYSS_ACTOR) and c:IsFaceup() and c:IsAbleToHand() end function s.thfilter2(c) - return c:IsSetCard(0x10ec) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_ABYSS_ACTOR) and c:IsMonster() and c:IsAbleToHand() end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter1,tp,LOCATION_EXTRA,0,1,nil) end @@ -54,4 +54,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009068.lua b/unofficial/c511009068.lua index c4acaab309..027172cd31 100644 --- a/unofficial/c511009068.lua +++ b/unofficial/c511009068.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x10ec) + return c:IsFaceup() and c:IsSetCard(SET_ABYSS_ACTOR) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -55,4 +55,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local sg=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,0,LOCATION_EXTRA,3,3,nil) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009070.lua b/unofficial/c511009070.lua index 9a998ca1e6..f97c1b2590 100644 --- a/unofficial/c511009070.lua +++ b/unofficial/c511009070.lua @@ -38,4 +38,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,0,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009071.lua b/unofficial/c511009071.lua index e466049376..6dee203da1 100644 --- a/unofficial/c511009071.lua +++ b/unofficial/c511009071.lua @@ -37,4 +37,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009072.lua b/unofficial/c511009072.lua index a078864ee8..394b42a657 100644 --- a/unofficial/c511009072.lua +++ b/unofficial/c511009072.lua @@ -27,4 +27,4 @@ function s.spcon(e,c) end function s.condition(e,c) return c:IsType(TYPE_PENDULUM) -end +end \ No newline at end of file diff --git a/unofficial/c511009073.lua b/unofficial/c511009073.lua index 0b33c31164..25f7fa47db 100644 --- a/unofficial/c511009073.lua +++ b/unofficial/c511009073.lua @@ -107,4 +107,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(c:GetAttack()*2) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009074.lua b/unofficial/c511009074.lua index 4139f51643..0fb296f482 100644 --- a/unofficial/c511009074.lua +++ b/unofficial/c511009074.lua @@ -112,4 +112,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if #g>0 and Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)>0 then Duel.NegateEffect(ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511009075.lua b/unofficial/c511009075.lua index d4589c0cc4..2b1c4068ad 100644 --- a/unofficial/c511009075.lua +++ b/unofficial/c511009075.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,0,LOCATION_MZONE,nil) local dam=Duel.ChangePosition(g,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) Duel.Damage(1-tp,dam*200,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009077.lua b/unofficial/c511009077.lua index e654b7b866..7d95f506cb 100644 --- a/unofficial/c511009077.lua +++ b/unofficial/c511009077.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,e,tp) - return c:IsSetCard(0x9f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PERFORMAPAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -46,4 +46,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAttackPos,tp,LOCATION_MZONE,0,nil) Duel.ChangePosition(g,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511009078.lua b/unofficial/c511009078.lua index 4af2befc2c..6df83db2be 100644 --- a/unofficial/c511009078.lua +++ b/unofficial/c511009078.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.repfilter(c,tp) - return c:IsFaceup() and c:IsControler(tp) and c:IsReason(REASON_BATTLE) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(0xba) + return c:IsFaceup() and c:IsControler(tp) and c:IsReason(REASON_BATTLE) and c:IsLocation(LOCATION_MZONE) and c:IsSetCard(SET_RAIDRAPTOR) and not c:IsReason(REASON_REPLACE) and c:CheckRemoveOverlayCard(tp,1,REASON_EFFECT) end function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -38,4 +38,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) tc:RemoveOverlayCard(tp,1,1,REASON_EFFECT) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009079.lua b/unofficial/c511009079.lua index dd769a8367..00c9eeb367 100644 --- a/unofficial/c511009079.lua +++ b/unofficial/c511009079.lua @@ -42,7 +42,7 @@ s.listed_series={0xba} function s.atkcon(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - return d and a and d:IsFaceup() and d:IsSetCard(0xba) and d:IsRelateToBattle() and (d:GetSummonType()&SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ + return d and a and d:IsFaceup() and d:IsSetCard(SET_RAIDRAPTOR) and d:IsRelateToBattle() and (d:GetSummonType()&SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ and not e:GetHandler():IsStatus(STATUS_CHAINING) and d:IsControler(tp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp,chk) @@ -63,7 +63,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp,chk) d:RegisterEffect(e2) end function s.filter(c,tp) - return c:IsFaceup() and (c:GetSummonType()&SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ and c:IsSetCard(0xba) + return c:IsFaceup() and (c:GetSummonType()&SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ and c:IsSetCard(SET_RAIDRAPTOR) and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) end function s.discon(e,tp,eg,ep,ev,re,r,rp) @@ -77,4 +77,4 @@ function s.distg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511009080.lua b/unofficial/c511009080.lua index 1941798470..d7429d6f66 100644 --- a/unofficial/c511009080.lua +++ b/unofficial/c511009080.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x7} function s.filter(c,e,tp) - return c:IsSetCard(0x7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_ANCIENT_GEAR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -47,4 +47,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009081.lua b/unofficial/c511009081.lua index 7339aab155..e5b24d550f 100644 --- a/unofficial/c511009081.lua +++ b/unofficial/c511009081.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetValue(300) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511009082.lua b/unofficial/c511009082.lua index b934b54d59..b7cf3228a3 100644 --- a/unofficial/c511009082.lua +++ b/unofficial/c511009082.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_DEFENSE) e2:SetValue(300) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511009083.lua b/unofficial/c511009083.lua index 750091c951..10c623eb33 100644 --- a/unofficial/c511009083.lua +++ b/unofficial/c511009083.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if sc then Duel.Equip(tp,sc,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511009084.lua b/unofficial/c511009084.lua index 40cae8c1cf..7b70697d38 100644 --- a/unofficial/c511009084.lua +++ b/unofficial/c511009084.lua @@ -88,4 +88,4 @@ function s.op2(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc2:GetCode()) tc1:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009085.lua b/unofficial/c511009085.lua index c6454be8fb..444fae6e91 100644 --- a/unofficial/c511009085.lua +++ b/unofficial/c511009085.lua @@ -25,4 +25,4 @@ end function s.atkop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511009086.lua b/unofficial/c511009086.lua index 7f2f1c5ad5..b8613ca536 100644 --- a/unofficial/c511009086.lua +++ b/unofficial/c511009086.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009088.lua b/unofficial/c511009088.lua index efd539f60c..a88ec6c957 100644 --- a/unofficial/c511009088.lua +++ b/unofficial/c511009088.lua @@ -32,7 +32,7 @@ function s.spfilter(c,e,tp) return c:IsLevelBelow(4) and c:IsRace(RACE_MACHINE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -57,4 +57,4 @@ function s.damop2(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetTurnPlayer() Duel.Hint(HINT_CARD,0,95100782) Duel.Damage(p,100,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009089.lua b/unofficial/c511009089.lua index ce3bc75533..19e5094699 100644 --- a/unofficial/c511009089.lua +++ b/unofficial/c511009089.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c511009091.lua b/unofficial/c511009091.lua index 88e2e077d1..53159701bc 100644 --- a/unofficial/c511009091.lua +++ b/unofficial/c511009091.lua @@ -99,4 +99,4 @@ function s.val(e,re,dam,r,rp,rc) if r&REASON_BATTLE~=0 then return dam/2 else return dam end -end +end \ No newline at end of file diff --git a/unofficial/c511009093.lua b/unofficial/c511009093.lua index 9b2d241308..8478ff2272 100644 --- a/unofficial/c511009093.lua +++ b/unofficial/c511009093.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsAbleToEnterBP() end function s.cfilter(c,tp) - return c:IsFaceup() and c:IsAttackAbove(3000) and c:IsSetCard(0xe5) + return c:IsFaceup() and c:IsAttackAbove(3000) and c:IsSetCard(SET_CIPHER) and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,c) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -37,7 +37,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabelObject(tc) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xe5) + return c:IsFaceup() and c:IsSetCard(SET_CIPHER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local tc=e:GetLabelObject() @@ -70,4 +70,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009094.lua b/unofficial/c511009094.lua index ca130b2309..52e3cbd25a 100644 --- a/unofficial/c511009094.lua +++ b/unofficial/c511009094.lua @@ -25,7 +25,7 @@ s.listed_series={0xc008} function s.atkcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) end -s.filter=aux.FaceupFilter(Card.IsSetCard,0xc008) +s.filter=aux.FaceupFilter(Card.IsSetCard,SET_DESTINY_HERO) function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,nil) end @@ -43,4 +43,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(100) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009095.lua b/unofficial/c511009095.lua index f0ebf8c20e..d03960d370 100644 --- a/unofficial/c511009095.lua +++ b/unofficial/c511009095.lua @@ -79,4 +79,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511009098.lua b/unofficial/c511009098.lua index 8b4ff948af..6d56a8eb64 100644 --- a/unofficial/c511009098.lua +++ b/unofficial/c511009098.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009100.lua b/unofficial/c511009100.lua index f0b742936f..ee1dbe03a5 100644 --- a/unofficial/c511009100.lua +++ b/unofficial/c511009100.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511009102.lua b/unofficial/c511009102.lua index f9b6e4d39f..6ff536b9da 100644 --- a/unofficial/c511009102.lua +++ b/unofficial/c511009102.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511009103.lua b/unofficial/c511009103.lua index 727cc14aba..514841f2e9 100644 --- a/unofficial/c511009103.lua +++ b/unofficial/c511009103.lua @@ -61,4 +61,4 @@ function s.accon(e) end function s.aclimit(e,re,tp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) -end +end \ No newline at end of file diff --git a/unofficial/c511009104.lua b/unofficial/c511009104.lua index 9d5388b464..6e6f4e7dc8 100644 --- a/unofficial/c511009104.lua +++ b/unofficial/c511009104.lua @@ -16,13 +16,13 @@ s.listed_series={0xe5} function s.filter1(c,e,tp) local rk=c:GetRank() local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ) - return #pg<=1 and c:IsFaceup() and c:IsSetCard(0xe5) and (rk>0 or c:IsStatus(STATUS_NO_LEVEL)) + return #pg<=1 and c:IsFaceup() and c:IsSetCard(SET_CIPHER) and (rk>0 or c:IsStatus(STATUS_NO_LEVEL)) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,rk+1,pg) end function s.filter2(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ) - return #pg<=1 and c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(0xe5) and mc:IsCanBeXyzMaterial(c,tp) + return #pg<=1 and c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(SET_CIPHER) and mc:IsCanBeXyzMaterial(c,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end @@ -61,4 +61,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009105.lua b/unofficial/c511009105.lua index 7182499a5c..cc14363ea9 100644 --- a/unofficial/c511009105.lua +++ b/unofficial/c511009105.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0xc6),2) + Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_PERFORMAGE),2) --indes local e2=Effect.CreateEffect(c) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) @@ -41,10 +41,10 @@ end s.listed_series={0xc6} s.material_setcode=0xc6 function s.target(e,c) - return c:IsSetCard(0xc6) + return c:IsSetCard(SET_PERFORMAGE) end function s.atfilter(c) - return c:IsFaceup() and c:IsSetCard(0xc6) + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAGE) end function s.atcon(e) return Duel.IsExistingMatchingCard(s.atfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) @@ -55,7 +55,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) if not bc then return false end if bc:IsControler(1-tp) then bc=tc end e:SetLabelObject(bc:GetBattleTarget()) - return bc:IsFaceup() and bc:IsSetCard(0xc6) + return bc:IsFaceup() and bc:IsSetCard(SET_PERFORMAGE) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local tc=e:GetLabelObject() @@ -75,4 +75,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009107.lua b/unofficial/c511009107.lua index 652f552aa6..bab4b163ee 100644 --- a/unofficial/c511009107.lua +++ b/unofficial/c511009107.lua @@ -34,7 +34,7 @@ function s.initial_effect(c) end s.listed_series={0xc6} function s.scfilter(c) - return c:IsFaceup() and c:IsSetCard(0xc6) + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAGE) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) local phase=Duel.GetCurrentPhase() @@ -64,7 +64,7 @@ function s.indescon(e,tp,eg,ep,ev,re,r,rp) tc=Duel.GetAttackTarget() bc=Duel.GetAttacker() end - if not tc or not bc or tc:IsControler(1-tp) or not tc:IsSetCard(0xc6) then return false end + if not tc or not bc or tc:IsControler(1-tp) or not tc:IsSetCard(SET_PERFORMAGE) then return false end if tc:IsHasEffect(EFFECT_INDESTRUCTABLE_BATTLE) then local tcind={tc:GetCardEffect(EFFECT_INDESTRUCTABLE_BATTLE)} for _,te in ipairs(tcind) do @@ -101,7 +101,7 @@ function s.indescon(e,tp,eg,ep,ev,re,r,rp) end function s.cfilter(c,e,tp) return c:IsOnField() and c:IsMonster() and c:IsControler(tp) and (not e or c:IsRelateToEffect(e)) - and c:IsSetCard(0xc6) + and c:IsSetCard(SET_PERFORMAGE) end function s.indescon2(e,tp,eg,ep,ev,re,r,rp) local ex,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY) @@ -132,4 +132,4 @@ function s.indesop(e,tp,eg,ep,ev,re,r,rp) end tc:RegisterEffect(e1) end) -end +end \ No newline at end of file diff --git a/unofficial/c511009108.lua b/unofficial/c511009108.lua index bcd7181237..43ee29543c 100644 --- a/unofficial/c511009108.lua +++ b/unofficial/c511009108.lua @@ -39,4 +39,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009109.lua b/unofficial/c511009109.lua index e844e3f9c1..b464cda3da 100644 --- a/unofficial/c511009109.lua +++ b/unofficial/c511009109.lua @@ -49,4 +49,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) d:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511009110.lua b/unofficial/c511009110.lua index 527a9ce2d8..7be8d0b1f7 100644 --- a/unofficial/c511009110.lua +++ b/unofficial/c511009110.lua @@ -43,7 +43,7 @@ function s.stage2(e,tc,tp,sg,chk) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) @@ -69,4 +69,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) and Duel.SelectEffectYesNo(tp,c) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009111.lua b/unofficial/c511009111.lua index 7264bd1a47..64060f268c 100644 --- a/unofficial/c511009111.lua +++ b/unofficial/c511009111.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009123.lua b/unofficial/c511009123.lua index 96aedddd83..48e50e3ebf 100644 --- a/unofficial/c511009123.lua +++ b/unofficial/c511009123.lua @@ -25,4 +25,4 @@ function s.ntop(e,tp,eg,ep,ev,re,r,rp,c) e1:SetCode(EFFECT_SET_ATTACK) e1:SetValue(0) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009124.lua b/unofficial/c511009124.lua index 7ea5e35fe3..c843a85569 100644 --- a/unofficial/c511009124.lua +++ b/unofficial/c511009124.lua @@ -29,4 +29,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_OATH) e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009126.lua b/unofficial/c511009126.lua index 4d1f0c747a..bf13fa08de 100644 --- a/unofficial/c511009126.lua +++ b/unofficial/c511009126.lua @@ -53,9 +53,9 @@ function s.cfilter(c,tp) and (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 or (c:IsLocation(LOCATION_MZONE) and c:GetSequence()<5)) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,e:GetHandler(),tp) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,e:GetHandler(),tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,e:GetHandler(),tp) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,e:GetHandler(),tp) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) @@ -73,4 +73,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009128.lua b/unofficial/c511009128.lua index dc972f2476..368fbc4792 100644 --- a/unofficial/c511009128.lua +++ b/unofficial/c511009128.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009130.lua b/unofficial/c511009130.lua index a4e57141cb..022edec56d 100644 --- a/unofficial/c511009130.lua +++ b/unofficial/c511009130.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_SZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009132.lua b/unofficial/c511009132.lua index c5998d621d..229b2ac490 100644 --- a/unofficial/c511009132.lua +++ b/unofficial/c511009132.lua @@ -24,4 +24,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_HAND,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009133.lua b/unofficial/c511009133.lua index ebb0a9249c..ace5056274 100644 --- a/unofficial/c511009133.lua +++ b/unofficial/c511009133.lua @@ -31,7 +31,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) tc=Duel.GetAttackTarget() end e:SetLabelObject(tc) - return tc and tc:IsFaceup() and tc:IsSetCard(0xe5) and tc:IsRelateToBattle() + return tc and tc:IsFaceup() and tc:IsSetCard(SET_CIPHER) and tc:IsRelateToBattle() and Duel.IsExistingMatchingCard(s.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,tc,tc:GetCode()) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -50,4 +50,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009136.lua b/unofficial/c511009136.lua index 1dbd419efc..22a5fa9efa 100644 --- a/unofficial/c511009136.lua +++ b/unofficial/c511009136.lua @@ -48,7 +48,7 @@ function s.initial_effect(c) end s.listed_names={18963306,id} function s.efcon(e) - return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetHandler():GetFlagEffect(id)>0 + return e:GetHandler():IsXyzSummoned() and e:GetHandler():GetFlagEffect(id)>0 end function s.eftg(e,c) return c==e:GetHandler() @@ -136,4 +136,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) else e:GetLabelObject():SetLabel(0) end -end +end \ No newline at end of file diff --git a/unofficial/c511009137.lua b/unofficial/c511009137.lua index 9e1ea4be47..87939b5da2 100644 --- a/unofficial/c511009137.lua +++ b/unofficial/c511009137.lua @@ -30,4 +30,4 @@ function s.sdfilter(c,atk) end function s.sdcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.sdfilter,e:GetHandlerPlayer(),0,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack()) -end +end \ No newline at end of file diff --git a/unofficial/c511009138.lua b/unofficial/c511009138.lua index 20d7d6269a..6ae8a5034b 100644 --- a/unofficial/c511009138.lua +++ b/unofficial/c511009138.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) e4:SetType(EFFECT_TYPE_FIELD) e4:SetRange(LOCATION_SZONE) e4:SetTargetRange(LOCATION_MZONE,0) - e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xe5)) + e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_CIPHER)) e4:SetCondition(s.damcon) e4:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e4:SetValue(1) @@ -37,8 +37,8 @@ function s.damval(e,re,val,r,rp,rc) return val end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xe5) + return c:IsFaceup() and c:IsSetCard(SET_CIPHER) end function s.damcon(e) return Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,2,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511009141.lua b/unofficial/c511009141.lua index 4c65dedfe3..0847afe92a 100644 --- a/unofficial/c511009141.lua +++ b/unofficial/c511009141.lua @@ -31,4 +31,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009142.lua b/unofficial/c511009142.lua index c7e98cc97c..c7027579d7 100644 --- a/unofficial/c511009142.lua +++ b/unofficial/c511009142.lua @@ -39,4 +39,4 @@ function s.tnop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009143.lua b/unofficial/c511009143.lua index 877e677449..6e8781e971 100644 --- a/unofficial/c511009143.lua +++ b/unofficial/c511009143.lua @@ -25,15 +25,15 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) g:GetFirst():CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511009144.lua b/unofficial/c511009144.lua index 2ef24c4e9d..cc6ba51bd9 100644 --- a/unofficial/c511009144.lua +++ b/unofficial/c511009144.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0xc2} function s.cfilter(c) - return c:IsFaceup() and (c:IsRace(RACE_DRAGON) or c:IsSetCard(0xc2)) and c:IsAbleToGraveAsCost() + return c:IsFaceup() and (c:IsRace(RACE_DRAGON) or c:IsSetCard(SET_POWER_TOOL)) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.RaiseEvent(g,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511009145.lua b/unofficial/c511009145.lua index bfe05cf5d6..10da7a3403 100644 --- a/unofficial/c511009145.lua +++ b/unofficial/c511009145.lua @@ -14,5 +14,5 @@ function s.initial_effect(c) end function s.tncon(e) - return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetHandler():GetMaterial():IsExists(Card.IsSetCard,1,nil,0x33) -end + return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetHandler():GetMaterial():IsExists(Card.IsSetCard,1,nil,SET_BLACKWING) +end \ No newline at end of file diff --git a/unofficial/c511009146.lua b/unofficial/c511009146.lua index 1df41d11e1..8cca1704f2 100644 --- a/unofficial/c511009146.lua +++ b/unofficial/c511009146.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetValue(500) c:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511009153.lua b/unofficial/c511009153.lua index 9a708623ef..d6bd7d025f 100644 --- a/unofficial/c511009153.lua +++ b/unofficial/c511009153.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009155.lua b/unofficial/c511009155.lua index 3282b2981d..49b848e688 100644 --- a/unofficial/c511009155.lua +++ b/unofficial/c511009155.lua @@ -14,11 +14,11 @@ function s.initial_effect(c) end function s.filter1(c,tp) - return c:IsLevelAbove(1) and c:IsSetCard(0x9f) + return c:IsLevelAbove(1) and c:IsSetCard(SET_PERFORMAPAL) and Duel.IsExistingTarget(s.filter2,tp,LOCATION_GRAVE,0,1,c,c:GetLevel()) end function s.filter2(c,lvl) - return c:IsLevelAbove(1) and c:IsSetCard(0x9f) and (c:GetLevel()+lvl)<=12 + return c:IsLevelAbove(1) and c:IsSetCard(SET_PERFORMAPAL) and (c:GetLevel()+lvl)<=12 end @@ -47,4 +47,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009156.lua b/unofficial/c511009156.lua index 1ac0653add..479085d0ef 100644 --- a/unofficial/c511009156.lua +++ b/unofficial/c511009156.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009157.lua b/unofficial/c511009157.lua index a7add2f650..44edb62bcf 100644 --- a/unofficial/c511009157.lua +++ b/unofficial/c511009157.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoHand(g, nil, REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009159.lua b/unofficial/c511009159.lua index c13af6665f..33837c2ddd 100644 --- a/unofficial/c511009159.lua +++ b/unofficial/c511009159.lua @@ -82,4 +82,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return c:GetControler()==e:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511009160.lua b/unofficial/c511009160.lua index 85befb332c..337d43ddf9 100644 --- a/unofficial/c511009160.lua +++ b/unofficial/c511009160.lua @@ -42,4 +42,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD) ec:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009162.lua b/unofficial/c511009162.lua index df0d0b0254..be8ebcbffb 100644 --- a/unofficial/c511009162.lua +++ b/unofficial/c511009162.lua @@ -50,4 +50,4 @@ function s.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511009165.lua b/unofficial/c511009165.lua index 1b1fe56e3a..1db9baafa2 100644 --- a/unofficial/c511009165.lua +++ b/unofficial/c511009165.lua @@ -36,4 +36,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.ChangePosition(c,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511009167.lua b/unofficial/c511009167.lua index 514357b48b..d915ec3b10 100644 --- a/unofficial/c511009167.lua +++ b/unofficial/c511009167.lua @@ -21,7 +21,7 @@ function s.filter(c) return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsFaceup() end function s.eqfilter(c) - return c:IsSetCard(0x9f) and c:IsAttackBelow(1000) and c:IsMonster() + return c:IsSetCard(SET_PERFORMAPAL) and c:IsAttackBelow(1000) and c:IsMonster() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -72,4 +72,4 @@ function s.eqlimit(e,c) end function s.tgop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009168.lua b/unofficial/c511009168.lua index ac0a401c29..a4d562d50c 100644 --- a/unofficial/c511009168.lua +++ b/unofficial/c511009168.lua @@ -2,7 +2,7 @@ --fixed by MLD local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0xc008)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_DESTINY_HERO)) -- local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_EQUIP) @@ -88,5 +88,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,500,REASON_EFFECT) end end -end - +end \ No newline at end of file diff --git a/unofficial/c511009169.lua b/unofficial/c511009169.lua index 2b9ae85892..be2171af41 100644 --- a/unofficial/c511009169.lua +++ b/unofficial/c511009169.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.costfilter(c) - return c:IsSetCard(0x2016) and c:IsAbleToGraveAsCost() and c:IsMonster() + return c:IsSetCard(SET_SPEEDROID) and c:IsAbleToGraveAsCost() and c:IsMonster() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end @@ -21,7 +21,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.filter(c) - return c:IsSetCard(0x2016) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_SPEEDROID) and c:IsMonster() and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009170.lua b/unofficial/c511009170.lua index 000a565150..95219a5331 100644 --- a/unofficial/c511009170.lua +++ b/unofficial/c511009170.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,e,tp) - return c:IsSetCard(0x2016) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_SPEEDROID) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -35,5 +35,5 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.atktg(e,c) - return c:IsSetCard(0x2016) -end + return c:IsSetCard(SET_SPEEDROID) +end \ No newline at end of file diff --git a/unofficial/c511009180.lua b/unofficial/c511009180.lua index 12e3458889..19805ca00d 100644 --- a/unofficial/c511009180.lua +++ b/unofficial/c511009180.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end function s.sfilter(c) - return c:IsSetCard(0x95) and c:IsSpell() and c:IsAbleToHand() + return c:IsSetCard(SET_RANK_UP_MAGIC) and c:IsSpell() and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.sfilter,tp,LOCATION_DECK,0,1,nil) end @@ -27,4 +27,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009181.lua b/unofficial/c511009181.lua index 5f1f49b6d4..ddaba55bfd 100644 --- a/unofficial/c511009181.lua +++ b/unofficial/c511009181.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009182.lua b/unofficial/c511009182.lua index 518d25487e..90d15ef9bb 100644 --- a/unofficial/c511009182.lua +++ b/unofficial/c511009182.lua @@ -30,16 +30,16 @@ function s.filter(c,e,tp) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp) + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp) local tc=g:RandomSelect(tp,1):GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,true,POS_FACEUP) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511009186.lua b/unofficial/c511009186.lua index 1e3125cbfc..b19b28c01f 100644 --- a/unofficial/c511009186.lua +++ b/unofficial/c511009186.lua @@ -9,4 +9,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_SPSUMMON_CONDITION) e1:SetValue(aux.FALSE) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009189.lua b/unofficial/c511009189.lua index 4b19093475..c14c7400cb 100644 --- a/unofficial/c511009189.lua +++ b/unofficial/c511009189.lua @@ -15,7 +15,7 @@ s.listed_names={511009183,511009184,511009185} s.list={[511009183]=511009186,[511009184]=511009187,[511009185]=511009188} function s.cfilter(c) return c:IsCode(511009183) or c:IsCode(511009184) or c:IsCode(511009185) and - Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,s.list[c:GetCode()],e,tp) + Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,nil,s.list[c:GetCode()],e,tp) end function s.spfilter(c,code,e,tp) return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) @@ -29,15 +29,15 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local code=e:GetLabel() - local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,s.list[code],e,tp) + local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,s.list[code],e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) g:GetFirst():CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511009190.lua b/unofficial/c511009190.lua index d0584a9c31..7411d424b7 100644 --- a/unofficial/c511009190.lua +++ b/unofficial/c511009190.lua @@ -61,7 +61,7 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCode(EVENT_SPSUMMON_SUCCESS) - e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) end) + e1:SetCondition(function(e) return e:GetHandler():IsXyzSummoned() end) e1:SetTarget(s.atktg) e1:SetOperation(s.atkop) e1:SetReset(RESET_EVENT|RESETS_STANDARD) diff --git a/unofficial/c511009191.lua b/unofficial/c511009191.lua index 37b93fc345..97117e2f45 100644 --- a/unofficial/c511009191.lua +++ b/unofficial/c511009191.lua @@ -13,10 +13,10 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.spfilter(c,e,tp) - return c:GetLevel()==1 and c:IsSetCard(0xf7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:GetLevel()==1 and c:IsSetCard(SET_LYRILUSC) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.filter(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0xf7) and c:GetCode()~=60954556 + return c:IsFaceup() and c:IsSetCard(SET_LYRILUSC) and c:GetCode()~=60954556 end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>1 @@ -35,4 +35,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) g:AddCard(c) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009192.lua b/unofficial/c511009192.lua index 48b3b33f84..c86a197825 100644 --- a/unofficial/c511009192.lua +++ b/unofficial/c511009192.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009193.lua b/unofficial/c511009193.lua index 2905b0384a..874b7b9e5e 100644 --- a/unofficial/c511009193.lua +++ b/unofficial/c511009193.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --xyz summon - Xyz.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0xf7),1,2,nil,nil,63) + Xyz.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_LYRILUSC),1,2,nil,nil,63) c:EnableReviveLimit() --atk local e1=Effect.CreateEffect(c) @@ -124,4 +124,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_AVOID_BATTLE_DAMAGE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009194.lua b/unofficial/c511009194.lua index b3eb712de2..576db543ae 100644 --- a/unofficial/c511009194.lua +++ b/unofficial/c511009194.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,48608796,aux.FilterBoolFunctionEx(Card.IsSetCard,0xf7)) + Fusion.AddProcMix(c,true,true,48608796,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_LYRILUSC)) --level local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -74,4 +74,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=e:GetHandler():GetLevel()*500 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009195.lua b/unofficial/c511009195.lua index 5b1b3924c5..637d26a568 100644 --- a/unofficial/c511009195.lua +++ b/unofficial/c511009195.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return ep~=tp and eg:GetFirst():GetControler()==tp and eg:GetFirst():IsSetCard(0xf7) + return ep~=tp and eg:GetFirst():GetControler()==tp and eg:GetFirst():IsSetCard(SET_LYRILUSC) end function s.filter(c,e,tp) return c:GetLevel()==1 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511009196.lua b/unofficial/c511009196.lua index d52ba42a03..76d6cc8d51 100644 --- a/unofficial/c511009196.lua +++ b/unofficial/c511009196.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xf7) + return c:IsFaceup() and c:IsSetCard(SET_LYRILUSC) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009198.lua b/unofficial/c511009198.lua index 8395891b09..6c7e39d263 100644 --- a/unofficial/c511009198.lua +++ b/unofficial/c511009198.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x107b} function s.cfilter(c,ft,tp) - return c:IsSetCard(0x107b) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) + return c:IsSetCard(SET_GALAXY_EYES) and (ft>0 or (c:IsControler(tp) and c:GetSequence()<5)) and (c:IsControler(tp) or c:IsFaceup()) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(1) @@ -25,7 +25,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(g,REASON_COST) end function s.filter(c,e,tp) - return c:IsSetCard(0x107b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GALAXY_EYES) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc,e,tp) end @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009203.lua b/unofficial/c511009203.lua index 8abd34e3ef..04a776fdb1 100644 --- a/unofficial/c511009203.lua +++ b/unofficial/c511009203.lua @@ -33,4 +33,4 @@ function s.chop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e1) Duel.ChainAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511009204.lua b/unofficial/c511009204.lua index 0c809b4d4b..b9cac9a0d6 100644 --- a/unofficial/c511009204.lua +++ b/unofficial/c511009204.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009208.lua b/unofficial/c511009208.lua index 97a6b16bba..996c644d9b 100644 --- a/unofficial/c511009208.lua +++ b/unofficial/c511009208.lua @@ -64,4 +64,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler()==e:GetLabelObject() then Duel.NegateActivation(ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511009209.lua b/unofficial/c511009209.lua index e38578220c..d9b5be13c7 100644 --- a/unofficial/c511009209.lua +++ b/unofficial/c511009209.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,e,pl) - return c:IsSetCard(0x85) and c:IsCanBeSpecialSummoned(e,0,pl,false,false) + return c:IsSetCard(SET_SUPER_DEFENSE_ROBOT) and c:IsCanBeSpecialSummoned(e,0,pl,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local pl=eg:GetFirst():GetSummonPlayer() diff --git a/unofficial/c511009210.lua b/unofficial/c511009210.lua index 051c80ca71..38b9544d3f 100644 --- a/unofficial/c511009210.lua +++ b/unofficial/c511009210.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(sg) Duel.SendtoGrave(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009212.lua b/unofficial/c511009212.lua index 58c34a883b..b0e05480f7 100644 --- a/unofficial/c511009212.lua +++ b/unofficial/c511009212.lua @@ -68,4 +68,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009213.lua b/unofficial/c511009213.lua index 8cd31c79cf..f14a7f2dbb 100644 --- a/unofficial/c511009213.lua +++ b/unofficial/c511009213.lua @@ -25,4 +25,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-tp,ev*2) -end +end \ No newline at end of file diff --git a/unofficial/c511009214.lua b/unofficial/c511009214.lua index b6c23344ba..af4807f892 100644 --- a/unofficial/c511009214.lua +++ b/unofficial/c511009214.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(tc:GetAttack()*3/4) c:RegisterEffect(e2) Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511009300.lua b/unofficial/c511009300.lua index 82f99c227f..9a2c0679b3 100644 --- a/unofficial/c511009300.lua +++ b/unofficial/c511009300.lua @@ -147,4 +147,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(atk) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009301.lua b/unofficial/c511009301.lua index 4e96b91e7f..f6afb93721 100644 --- a/unofficial/c511009301.lua +++ b/unofficial/c511009301.lua @@ -18,11 +18,11 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x19) + return c:IsFaceup() and c:IsSetCard(SET_GLADIATOR) end function s.actcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end function s.attg(e,c) return s.cfilter(c) -end +end \ No newline at end of file diff --git a/unofficial/c511009302.lua b/unofficial/c511009302.lua index 71c179d8e3..d53fce5e34 100644 --- a/unofficial/c511009302.lua +++ b/unofficial/c511009302.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e2:SetRange(LOCATION_SZONE) e2:SetTargetRange(LOCATION_MZONE,0) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x19)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_GLADIATOR)) e2:SetValue(1) c:RegisterEffect(e2) --damage reduce diff --git a/unofficial/c511009303.lua b/unofficial/c511009303.lua index 0c7cd44118..386ab472e9 100644 --- a/unofficial/c511009303.lua +++ b/unofficial/c511009303.lua @@ -6,4 +6,4 @@ function s.initial_effect(c) end function s.matfilter(c,lc,sumtype,tp) return c:IsLevelAbove(5) and c:IsRace(RACE_BEAST,lc,sumtype,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511009304.lua b/unofficial/c511009304.lua index 60318c0ccc..de6dca5de6 100644 --- a/unofficial/c511009304.lua +++ b/unofficial/c511009304.lua @@ -64,7 +64,7 @@ end s.listed_series={0x19} s.material_setcode=0x19 function s.ffilter(c,fc,sumtype,tp) - return c:IsSetCard(0x19,fc,sumtype,tp) and c:GetLevel()>=5 + return c:IsSetCard(SET_GLADIATOR,fc,sumtype,tp) and c:GetLevel()>=5 end function s.splimit(e,se,sp,st) return e:GetHandler():GetLocation()~=LOCATION_EXTRA @@ -80,7 +80,7 @@ function s.contactop(g,tp) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST+REASON_MATERIAL) end function s.espfilter(c,e,tp) - return c:IsSetCard(0x19) and c:IsType(TYPE_FUSION) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and c:IsCanBeSpecialSummoned(e,124,tp,true,false) + return c:IsSetCard(SET_GLADIATOR) and c:IsType(TYPE_FUSION) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and c:IsCanBeSpecialSummoned(e,124,tp,true,false) end function s.esptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.espfilter,tp,LOCATION_EXTRA,LOCATION_EXTRA,1,nil,e,tp) end @@ -94,7 +94,7 @@ function s.espop(e,tp,eg,ep,ev,re,r,rp) end end function s.desconfilter(c) - return c:IsFaceup() and c:IsSetCard(0x19) + return c:IsFaceup() and c:IsSetCard(SET_GLADIATOR) end function s.descon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.desconfilter,tp,LOCATION_MZONE,LOCATION_MZONE,2,nil) @@ -140,7 +140,7 @@ end function s.checkop(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() local d=Duel.GetAttackTarget() - if (a:IsSetCard(0x19)) or (d and d:IsSetCard(0x19)) then + if (a:IsSetCard(SET_GLADIATOR)) or (d and d:IsSetCard(SET_GLADIATOR)) then s[0]=true s[1]=true end @@ -150,7 +150,7 @@ function s.clear(e,tp,eg,ep,ev,re,r,rp) s[1]=false end function s.cfilter(c,ft) - return c:IsFaceup() and c:IsSetCard(0x19) and c:IsAbleToDeck() and (ft>0 or c:GetSequence()<5) + return c:IsFaceup() and c:IsSetCard(SET_GLADIATOR) and c:IsAbleToDeck() and (ft>0 or c:GetSequence()<5) end function s.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) @@ -160,7 +160,7 @@ function s.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST) end function s.spfilter2(c,e,tp) - return c:IsSetCard(0x19) and c:IsCanBeSpecialSummoned(e,124,tp,false,false) + return c:IsSetCard(SET_GLADIATOR) and c:IsCanBeSpecialSummoned(e,124,tp,false,false) end function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 @@ -178,4 +178,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) tc:RegisterFlagEffect(tc:GetOriginalCode(),RESET_EVENT+RESETS_STANDARD_DISABLE,0,0) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009305.lua b/unofficial/c511009305.lua index a58587e4b8..934e9f19d2 100644 --- a/unofficial/c511009305.lua +++ b/unofficial/c511009305.lua @@ -49,4 +49,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009306.lua b/unofficial/c511009306.lua index e04306f998..a4e6d8f84a 100644 --- a/unofficial/c511009306.lua +++ b/unofficial/c511009306.lua @@ -53,10 +53,10 @@ function s.initial_effect(c) end s.listed_series={0x19} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x19) + return c:IsFaceup() and c:IsSetCard(SET_GLADIATOR) end function s.negcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsNegatableMonster,tp,0,LOCATION_MZONE,1,nil) end @@ -101,7 +101,7 @@ function s.setcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetFlagEffect(id)>0 end function s.setfilter(c) - return c:IsSetCard(0x19) and c:IsTrap() and c:IsSSetable() + return c:IsSetCard(SET_GLADIATOR) and c:IsTrap() and c:IsSSetable() end function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 @@ -113,4 +113,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SSet(tp,g:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511009307.lua b/unofficial/c511009307.lua index 009deca0a8..37bcadf4ac 100644 --- a/unofficial/c511009307.lua +++ b/unofficial/c511009307.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x7),2) + Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_ANCIENT_GEAR),2) --damage local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(5014629,0)) @@ -47,4 +47,4 @@ function s.eqcon(e) end function s.unval(e,te) return te:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511009308.lua b/unofficial/c511009308.lua index 941e287229..35366ecc49 100644 --- a/unofficial/c511009308.lua +++ b/unofficial/c511009308.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009310.lua b/unofficial/c511009310.lua index 203d704d6b..cefcfe1658 100644 --- a/unofficial/c511009310.lua +++ b/unofficial/c511009310.lua @@ -34,4 +34,4 @@ end function s.op(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511009311.lua b/unofficial/c511009311.lua index 756694f560..5f17cb2401 100644 --- a/unofficial/c511009311.lua +++ b/unofficial/c511009311.lua @@ -21,7 +21,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetDescription(aux.Stringid(96729612,0)) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) - e1:SetRange(LOCATION_GRAVE+LOCATION_HAND+LOCATION_REMOVED) + e1:SetRange(LOCATION_GRAVE|LOCATION_HAND|LOCATION_REMOVED) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetTarget(s.thtg) e1:SetOperation(s.thop) @@ -42,4 +42,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009312.lua b/unofficial/c511009312.lua index 9dde76b9dd..3ec7967f42 100644 --- a/unofficial/c511009312.lua +++ b/unofficial/c511009312.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.spfilter(c,e,tp) - return c:IsMonster() and c:IsSetCard(0x7) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsMonster() and c:IsSetCard(SET_ANCIENT_GEAR) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -49,4 +49,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511009313.lua b/unofficial/c511009313.lua index 0715713d48..ecb1ae9d60 100644 --- a/unofficial/c511009313.lua +++ b/unofficial/c511009313.lua @@ -39,4 +39,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009315.lua b/unofficial/c511009315.lua index 0bb1c3ecc4..e327376a43 100644 --- a/unofficial/c511009315.lua +++ b/unofficial/c511009315.lua @@ -73,4 +73,4 @@ function s.damop2(e,tp,eg,ep,ev,re,r,rp) if count>0 then Duel.Damage(tp,count*100,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009316.lua b/unofficial/c511009316.lua index 6d9eefda8d..6e2c46b786 100644 --- a/unofficial/c511009316.lua +++ b/unofficial/c511009316.lua @@ -33,4 +33,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009317.lua b/unofficial/c511009317.lua index 38c164d77c..f56aacb052 100644 --- a/unofficial/c511009317.lua +++ b/unofficial/c511009317.lua @@ -37,10 +37,10 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.eqlimit(e,c) - return c:IsSetCard(0xba) and c:IsType(TYPE_XYZ) + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsType(TYPE_XYZ) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xba) and c:IsType(TYPE_XYZ) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) and c:IsType(TYPE_XYZ) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -60,10 +60,10 @@ function s.sumcon(e,tp,eg,ep,ev,re,r,rp) and not e:GetHandler():IsStatus(STATUS_CHAINING) end function s.ovfilter(c,e) - return c:IsSetCard(0xba) and c:IsType(TYPE_XYZ) and c:IsMonster() and (not e or c:IsCanBeEffectTarget(e)) + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsType(TYPE_XYZ) and c:IsMonster() and (not e or c:IsCanBeEffectTarget(e)) end function s.spfilter(c,e,tp,e2) - return c:IsSetCard(0xba) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.IsExistingTarget(s.ovfilter,tp,LOCATION_GRAVE,0,1,c) and (not e2 or c:IsCanBeEffectTarget(e2)) end function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -101,4 +101,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) g:RemoveCard(tc) Duel.Overlay(tc,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009318.lua b/unofficial/c511009318.lua index ebcfb01a49..4ee8af897c 100644 --- a/unofficial/c511009318.lua +++ b/unofficial/c511009318.lua @@ -29,13 +29,13 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetLabelObject(e) e1:SetTarget(s.sumlimit) Duel.RegisterEffect(e1,tp) - e:GetHandler():RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,1) + e:GetHandler():RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,1) end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) return e:GetLabelObject()~=se end function s.filter(c,e,tp) - return c:IsSetCard(0x9f) and c:IsType(TYPE_PENDULUM) and c:IsFaceup() and c:GetLevel()==1 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PERFORMAPAL) and c:IsType(TYPE_PENDULUM) and c:IsFaceup() and c:GetLevel()==1 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -92,7 +92,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsReason(REASON_RULE) end function s.cfilter(c) - return c:IsSetCard(0x9f) and c:IsAbleToDeckAsCost() + return c:IsSetCard(SET_PERFORMAPAL) and c:IsAbleToDeckAsCost() and Duel.IsExistingMatchingCard(Card.IsStatus,0,LOCATION_MZONE,LOCATION_MZONE,1,c,STATUS_SPSUMMON_TURN) end function s.descost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -109,4 +109,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsStatus,tp,LOCATION_MZONE,LOCATION_MZONE,nil,STATUS_SPSUMMON_TURN) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009319.lua b/unofficial/c511009319.lua index 5ccb5613b7..5c2eac93c9 100644 --- a/unofficial/c511009319.lua +++ b/unofficial/c511009319.lua @@ -13,10 +13,10 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetAttackTarget() - return tc and tc:IsControler(tp) and tc:IsFaceup() and tc:IsSetCard(0xba) and tc:IsType(TYPE_XYZ) + return tc and tc:IsControler(tp) and tc:IsFaceup() and tc:IsSetCard(SET_RAIDRAPTOR) and tc:IsType(TYPE_XYZ) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xba) and c:IsType(TYPE_XYZ) and c:GetOverlayCount()~=0 + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) and c:IsType(TYPE_XYZ) and c:GetOverlayCount()~=0 end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local tc=Duel.GetAttackTarget() @@ -27,4 +27,4 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511009320.lua b/unofficial/c511009320.lua index 906a6f8c8e..435ddf79c6 100644 --- a/unofficial/c511009320.lua +++ b/unofficial/c511009320.lua @@ -9,4 +9,4 @@ function s.initial_effect(c) e1:SetRange(LOCATION_HAND) e1:SetValue(TYPE_MONSTER) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009321.lua b/unofficial/c511009321.lua index 1ad9fbfd48..170bb5f0d2 100644 --- a/unofficial/c511009321.lua +++ b/unofficial/c511009321.lua @@ -53,4 +53,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e3:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511009322.lua b/unofficial/c511009322.lua index 98eff944b1..82056405fe 100644 --- a/unofficial/c511009322.lua +++ b/unofficial/c511009322.lua @@ -27,7 +27,7 @@ function s.spcon(e,c) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,LOCATION_MZONE)==0 end function s.filter(c,e,tp) - return c:GetLevel()==1 and c:IsSetCard(0xf7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:GetLevel()==1 and c:IsSetCard(SET_LYRILUSC) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -41,4 +41,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009323.lua b/unofficial/c511009323.lua index ea7e7d3090..7bb03aa36f 100644 --- a/unofficial/c511009323.lua +++ b/unofficial/c511009323.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009324.lua b/unofficial/c511009324.lua index 8094f4ce43..d9832a60a4 100644 --- a/unofficial/c511009324.lua +++ b/unofficial/c511009324.lua @@ -137,4 +137,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511009325.lua b/unofficial/c511009325.lua index 5b1a8e2641..fb8ef48952 100644 --- a/unofficial/c511009325.lua +++ b/unofficial/c511009325.lua @@ -80,5 +80,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(total*500) tc:RegisterEffect(e1) end -end - +end \ No newline at end of file diff --git a/unofficial/c511009326.lua b/unofficial/c511009326.lua index 7cce3a3ae3..2942c09e22 100644 --- a/unofficial/c511009326.lua +++ b/unofficial/c511009326.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009327.lua b/unofficial/c511009327.lua index a23a717124..b3470c7f8a 100644 --- a/unofficial/c511009327.lua +++ b/unofficial/c511009327.lua @@ -15,7 +15,7 @@ end s.listed_series={0x10db} function s.filter1(c,e,tp) local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ) - return #pg<=1 and c:IsSetCard(0x10db) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return #pg<=1 and c:IsSetCard(SET_THE_PHANTOM_KNIGHTS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (c:GetRank()>0 or c:IsStatus(STATUS_NO_LEVEL)) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,c:GetRank()+2,pg) end @@ -53,4 +53,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(sc,c) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009328.lua b/unofficial/c511009328.lua index f408063611..1cb51b734d 100644 --- a/unofficial/c511009328.lua +++ b/unofficial/c511009328.lua @@ -31,12 +31,12 @@ function s.initial_effect(c) end) end function s.cfilter(c) - return c:IsSetCard(0x10db) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_THE_PHANTOM_KNIGHTS) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local rg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,2,2,nil) + local rg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,2,2,nil) Duel.Remove(rg,POS_FACEUP,REASON_COST) end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -89,4 +89,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,s[tp]*800,REASON_EFFECT) Duel.Damage(1-tp,s[1-tp]*800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009329.lua b/unofficial/c511009329.lua index a65f36e97c..8f51215c86 100644 --- a/unofficial/c511009329.lua +++ b/unofficial/c511009329.lua @@ -74,4 +74,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) if tc:IsAttackPos() then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511009330.lua b/unofficial/c511009330.lua index addb8dc746..c875998fa4 100644 --- a/unofficial/c511009330.lua +++ b/unofficial/c511009330.lua @@ -20,7 +20,7 @@ function s.crfilter(c,tp) return c:IsAbleToRemoveAsCost() and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,c) end function s.cfilter(c) - return c:IsMonster() and (c:IsRace(RACE_DRAGON) or c:IsSetCard(0xc2)) + return c:IsMonster() and (c:IsRace(RACE_DRAGON) or c:IsSetCard(SET_POWER_TOOL)) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.crfilter,tp,LOCATION_MZONE,0,1,nil,tp) @@ -83,4 +83,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e:Reset() end c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE,0,0) -end +end \ No newline at end of file diff --git a/unofficial/c511009332.lua b/unofficial/c511009332.lua index ca2fc53a33..b30d3288c7 100644 --- a/unofficial/c511009332.lua +++ b/unofficial/c511009332.lua @@ -25,7 +25,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():GetFlagEffect(id)0 end function s.nttg(e,c) - return c:IsLevelAbove(5) and c:IsSetCard(0x99) -end + return c:IsLevelAbove(5) and c:IsSetCard(SET_ODD_EYES) +end \ No newline at end of file diff --git a/unofficial/c511009335.lua b/unofficial/c511009335.lua index 0935c7ce92..a97cbb4838 100644 --- a/unofficial/c511009335.lua +++ b/unofficial/c511009335.lua @@ -41,7 +41,7 @@ s.listed_series={0x52} s.listed_names={511009337} s.material_setcode=0x52 function s.ffilter(c,fc,sumtype,tp) - return c:IsSetCard(0x52) and c:IsAttribute(ATTRIBUTE_DARK,fc,sumtype,tp) + return c:IsSetCard(SET_GUARDIAN) and c:IsAttribute(ATTRIBUTE_DARK,fc,sumtype,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -92,4 +92,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:UpdateAttack(-800,nil,e:GetHandler())==-800 then Duel.Recover(tp,800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009336.lua b/unofficial/c511009336.lua index fa497164b2..d92914f230 100644 --- a/unofficial/c511009336.lua +++ b/unofficial/c511009336.lua @@ -41,7 +41,7 @@ s.listed_series={0x52} s.listed_names={511009337} s.material_setcode=0x52 function s.ffilter(c,fc,sumtype,tp) - return c:IsSetCard(0x52) and c:IsAttribute(ATTRIBUTE_LIGHT,fc,sumtype,tp) + return c:IsSetCard(SET_GUARDIAN) and c:IsAttribute(ATTRIBUTE_LIGHT,fc,sumtype,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -92,4 +92,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:UpdateAttack(-800,nil,e:GetHandler())==-800 then Duel.Damage(1-tp,800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009338.lua b/unofficial/c511009338.lua index 9468a3f332..5a82710834 100644 --- a/unofficial/c511009338.lua +++ b/unofficial/c511009338.lua @@ -157,4 +157,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511009339.lua b/unofficial/c511009339.lua index a8ee479f30..fb1843d945 100644 --- a/unofficial/c511009339.lua +++ b/unofficial/c511009339.lua @@ -57,4 +57,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return c==e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c511009340.lua b/unofficial/c511009340.lua index 6ac1b27092..85ade13c37 100644 --- a/unofficial/c511009340.lua +++ b/unofficial/c511009340.lua @@ -132,7 +132,7 @@ function s.valcheck(e,c) end end function s.efcon(e) - return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetHandler():GetFlagEffect(id)>0 + return e:GetHandler():IsXyzSummoned() and e:GetHandler():GetFlagEffect(id)>0 end function s.eftg(e,c) return c==e:GetHandler() @@ -150,4 +150,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(g,REASON_EFFECT)~=0 and e:GetHandler():IsRelateToEffect(e) then Duel.MoveToField(e:GetHandler(),tp,tp,LOCATION_PZONE,POS_FACEUP,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511009341.lua b/unofficial/c511009341.lua index 0b614a46d5..ebdeb80ef0 100644 --- a/unofficial/c511009341.lua +++ b/unofficial/c511009341.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511009342.lua b/unofficial/c511009342.lua index 4333cbb845..a4ec38ef08 100644 --- a/unofficial/c511009342.lua +++ b/unofficial/c511009342.lua @@ -107,4 +107,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009343.lua b/unofficial/c511009343.lua index eff6996597..3c8f15362d 100644 --- a/unofficial/c511009343.lua +++ b/unofficial/c511009343.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511009344.lua b/unofficial/c511009344.lua index bb9e41a60a..d99a97409a 100644 --- a/unofficial/c511009344.lua +++ b/unofficial/c511009344.lua @@ -74,4 +74,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return e:GetLabelObject()==c -end +end \ No newline at end of file diff --git a/unofficial/c511009345.lua b/unofficial/c511009345.lua index 85d6e8e56c..5da779f4b4 100644 --- a/unofficial/c511009345.lua +++ b/unofficial/c511009345.lua @@ -111,4 +111,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end Duel.EquipComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511009347.lua b/unofficial/c511009347.lua index 7be01a292c..567dfe2c91 100644 --- a/unofficial/c511009347.lua +++ b/unofficial/c511009347.lua @@ -114,4 +114,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) end function s.indtg(e,c) return c:IsParasite() -end +end \ No newline at end of file diff --git a/unofficial/c511009349.lua b/unofficial/c511009349.lua index f4594d6d27..2e59ab5bf2 100644 --- a/unofficial/c511009349.lua +++ b/unofficial/c511009349.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) - e1:SetCondition(function(e,tp) return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and Duel.GetLP(1-tp)-Duel.GetLP(tp)>=3000 end) + e1:SetCondition(function(e,tp) return e:GetHandler():IsXyzSummoned() and Duel.GetLP(1-tp)-Duel.GetLP(tp)>=3000 end) e1:SetTarget(s.atktg) e1:SetOperation(s.atkop) c:RegisterEffect(e1) @@ -53,4 +53,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(sg,true) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009350.lua b/unofficial/c511009350.lua index 547830b683..4a519b576d 100644 --- a/unofficial/c511009350.lua +++ b/unofficial/c511009350.lua @@ -45,4 +45,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) e2:SetValue(atk) e:GetHandler():RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511009351.lua b/unofficial/c511009351.lua index 5d39837de2..95c908cad1 100644 --- a/unofficial/c511009351.lua +++ b/unofficial/c511009351.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009353.lua b/unofficial/c511009353.lua index f429acb056..43bd6fc0a5 100644 --- a/unofficial/c511009353.lua +++ b/unofficial/c511009353.lua @@ -30,4 +30,4 @@ function s.ntcon(e,c,minc) end function s.atklimit(e,c) return c==e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c511009355.lua b/unofficial/c511009355.lua index 56faa556eb..9b0fe42f9b 100644 --- a/unofficial/c511009355.lua +++ b/unofficial/c511009355.lua @@ -24,7 +24,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND) end function s.tgfilter(c) - return c:IsSetCard(0x2016) and c:IsMonster() and c:IsAbleToGrave() + return c:IsSetCard(SET_SPEEDROID) and c:IsMonster() and c:IsAbleToGrave() end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #dg>0 then Duel.SendtoGrave(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009357.lua b/unofficial/c511009357.lua index e2c05a7f6e..b0d8124d12 100644 --- a/unofficial/c511009357.lua +++ b/unofficial/c511009357.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:RegisterEffect(e2,true) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009361.lua b/unofficial/c511009361.lua index 0dbc4c6fa6..a94c3843e8 100644 --- a/unofficial/c511009361.lua +++ b/unofficial/c511009361.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xba) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsChainNegatable(ev) and aux.damcon1(e,tp,eg,ep,ev,re,r,rp) and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -24,4 +24,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511009362.lua b/unofficial/c511009362.lua index 83faff4984..09bef48273 100644 --- a/unofficial/c511009362.lua +++ b/unofficial/c511009362.lua @@ -46,4 +46,4 @@ function s.filter(c,tpe) end function s.con(e) return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil,e:GetLabel()) -end +end \ No newline at end of file diff --git a/unofficial/c511009363.lua b/unofficial/c511009363.lua index c32728f5b4..f1e194c1c3 100644 --- a/unofficial/c511009363.lua +++ b/unofficial/c511009363.lua @@ -94,4 +94,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(tc:GetRightScale()) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511009364.lua b/unofficial/c511009364.lua index b60e1f049c..89571a3440 100644 --- a/unofficial/c511009364.lua +++ b/unofficial/c511009364.lua @@ -77,11 +77,11 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) end end function s.effcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) + return e:GetHandler():IsPendulumSummoned() end function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetFlagEffect(id)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511009365.lua b/unofficial/c511009365.lua index b12615dcbf..a749f72f7a 100644 --- a/unofficial/c511009365.lua +++ b/unofficial/c511009365.lua @@ -16,7 +16,7 @@ function s.filter(c,code) return c:IsCode(code) and c:IsAbleToGrave() end function s.tgfilter(c,tp) - return (c:IsSetCard(0xae) or c:IsSetCard(0xaf) ) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil,c:GetCode()) + return (c:IsSetCard(SET_DARK_CONTRACT) or c:IsSetCard(SET_DD) ) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil,c:GetCode()) end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.tgfilter(chkc,tp) end @@ -31,4 +31,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_DECK,0,1,1,nil,tc:GetCode()) Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009366.lua b/unofficial/c511009366.lua index fcb5f3a14a..e629ce220c 100644 --- a/unofficial/c511009366.lua +++ b/unofficial/c511009366.lua @@ -89,7 +89,7 @@ function s.atlimit2(e,c) return lv>lsc and lv0 then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009406.lua b/unofficial/c511009406.lua index 33467627e8..adef318ecb 100644 --- a/unofficial/c511009406.lua +++ b/unofficial/c511009406.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) and Duel.GetActivityCount(tp,ACTIVITY_NORMALSUMMON)==0 end @@ -33,7 +33,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RegisterEffect(e2,tp) end function s.filter(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0x10f3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and c:IsSetCard(SET_PREDAPLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -52,4 +52,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) if #g>ft then g=g:Select(tp,ft,ft,nil) end Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511009407.lua b/unofficial/c511009407.lua index d99f1d0b73..b591147955 100644 --- a/unofficial/c511009407.lua +++ b/unofficial/c511009407.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009410.lua b/unofficial/c511009410.lua index 96e50fd6db..5a998940f9 100644 --- a/unofficial/c511009410.lua +++ b/unofficial/c511009410.lua @@ -88,7 +88,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) return tp==Duel.GetTurnPlayer() end function s.filter(c) - return c:IsSetCard(0x10f3) and c:IsReleasableByEffect() + return c:IsSetCard(SET_PREDAPLANT) and c:IsReleasableByEffect() end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -106,4 +106,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not tc or not tc:IsRelateToEffect(e) or Duel.Release(tc,REASON_EFFECT)==0 then Duel.Destroy(e:GetHandler(), REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009411.lua b/unofficial/c511009411.lua index 2d5177c02e..d48bf67684 100644 --- a/unofficial/c511009411.lua +++ b/unofficial/c511009411.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.costfilter(c) - return c:IsSetCard(0x10f3) and c:IsLevelBelow(4) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_PREDAPLANT) and c:IsLevelBelow(4) and c:IsMonster() and c:IsAbleToGraveAsCost() end s.listed_series={0x10f3} function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -57,7 +57,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x10f3) + return c:IsFaceup() and c:IsSetCard(SET_PREDAPLANT) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end @@ -73,4 +73,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009412.lua b/unofficial/c511009412.lua index 3fa577575d..fbae7f5842 100644 --- a/unofficial/c511009412.lua +++ b/unofficial/c511009412.lua @@ -41,4 +41,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) and tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009413.lua b/unofficial/c511009413.lua index 936b11153e..3c41aecc5a 100644 --- a/unofficial/c511009413.lua +++ b/unofficial/c511009413.lua @@ -41,4 +41,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009414.lua b/unofficial/c511009414.lua index 81ba7a92a9..e343ec673f 100644 --- a/unofficial/c511009414.lua +++ b/unofficial/c511009414.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) end s.listed_series={0x9f} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x9f) and c:GetSummonType()==SUMMON_TYPE_PENDULUM + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAPAL) and c:GetSummonType()==SUMMON_TYPE_PENDULUM end function s.drcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsContains(e:GetHandler()) and eg:IsExists(s.cfilter,1,nil) @@ -63,4 +63,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009415.lua b/unofficial/c511009415.lua index 531ac86185..2262037666 100644 --- a/unofficial/c511009415.lua +++ b/unofficial/c511009415.lua @@ -59,7 +59,7 @@ function s.rdop(e,tp,eg,ep,ev,re,r,rp) end end function s.copycon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and (Duel.IsMainPhase() or Duel.IsBattlePhase()) + return Duel.IsTurnPlayer(tp) and (Duel.IsMainPhase() or Duel.IsBattlePhase()) end function s.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsNegatableMonster() end @@ -111,4 +111,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) for tc in g:Iter() do tc:AddCounter(0x1149,#eg,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511009416.lua b/unofficial/c511009416.lua index ad30068656..40caa92e21 100644 --- a/unofficial/c511009416.lua +++ b/unofficial/c511009416.lua @@ -23,11 +23,11 @@ function s.tfilter(c,scard,sumtype,tp) return c:IsSummonCode(scard,sumtype,tp,63977008) or c:IsHasEffect(20932152) end function s.con(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) + return e:GetHandler():IsSynchroSummoned() end function s.filter(c) return c:IsFaceup() and c:IsLevelBelow(2) end function s.value(e,c) return Duel.GetMatchingGroup(s.filter,c:GetControler(),LOCATION_MZONE,0,c):GetSum(Card.GetAttack) -end +end \ No newline at end of file diff --git a/unofficial/c511009417.lua b/unofficial/c511009417.lua index 11c1c11c96..a668d8c03c 100644 --- a/unofficial/c511009417.lua +++ b/unofficial/c511009417.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) e1:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e1) --Fusion Summon - local params={aux.FilterBoolFunction(Card.IsSetCard,0x10af),Fusion.OnFieldMat} + local params={aux.FilterBoolFunction(Card.IsSetCard,SET_DDD),Fusion.OnFieldMat} local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(id,0)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON) @@ -43,7 +43,7 @@ function s.initial_effect(c) end s.listed_series={0xaf,0x10af} function s.filter(c) - return c:IsFaceup() and c:GetLevel()>0 and c:IsSetCard(0xaf) + return c:IsFaceup() and c:GetLevel()>0 and c:IsSetCard(SET_DD) end function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -64,7 +64,7 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -77,4 +77,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetMatchingGroupCount(Card.IsSummonLocation,tp,LOCATION_MZONE,0,nil,LOCATION_EXTRA) Duel.Damage(p,ct*1000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009418.lua b/unofficial/c511009418.lua index 48333966f6..36872aa350 100644 --- a/unofficial/c511009418.lua +++ b/unofficial/c511009418.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=tg:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511009421.lua b/unofficial/c511009421.lua index 0c805fa42a..b21110731a 100644 --- a/unofficial/c511009421.lua +++ b/unofficial/c511009421.lua @@ -53,4 +53,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009424.lua b/unofficial/c511009424.lua index 622602d583..c601017d0a 100644 --- a/unofficial/c511009424.lua +++ b/unofficial/c511009424.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.cfilter(c) - return c:IsSetCard(0x10f3) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_PREDAPLANT) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end @@ -27,7 +27,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.spfilter(c,e,tp) - return c:IsLevelBelow(3) and c:IsSetCard(0x10f3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(3) and c:IsSetCard(SET_PREDAPLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -41,4 +41,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009425.lua b/unofficial/c511009425.lua index 5b6ed37125..5cf2ce87c9 100644 --- a/unofficial/c511009425.lua +++ b/unofficial/c511009425.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.thfilter(c) - return c:IsSetCard(0x46) and c:IsSpell() and c:IsAbleToHand() + return c:IsSetCard(SET_FUSION) and c:IsSpell() and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end diff --git a/unofficial/c511009429.lua b/unofficial/c511009429.lua index 244d48b456..243966345e 100644 --- a/unofficial/c511009429.lua +++ b/unofficial/c511009429.lua @@ -82,4 +82,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) end end) -end +end \ No newline at end of file diff --git a/unofficial/c511009436.lua b/unofficial/c511009436.lua index 34868e5c2d..8853bc63b2 100644 --- a/unofficial/c511009436.lua +++ b/unofficial/c511009436.lua @@ -14,11 +14,11 @@ function s.initial_effect(c) end s.listed_series={0x10af} function s.filter(c,tp) - return c:IsFaceup() and c:IsSetCard(0x10af) + return c:IsFaceup() and c:IsSetCard(SET_DDD) and Duel.IsExistingMatchingCard(s.deffilter,tp,0,LOCATION_MZONE,1,nil) end function s.thfilter(c) - return c:IsSetCard(0x10af) and c:IsAbleToHand() + return c:IsSetCard(SET_DDD) and c:IsAbleToHand() end function s.deffilter(c) return c:IsFaceup() and c:GetDefense()>0 @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) dc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009437.lua b/unofficial/c511009437.lua index bbc89eec76..f4a928388f 100644 --- a/unofficial/c511009437.lua +++ b/unofficial/c511009437.lua @@ -35,7 +35,7 @@ end function s.checkop(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() while tc do - if tc:IsSetCard(0x10af) and (tc:GetSummonType()&SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM then + if tc:IsSetCard(SET_DDD) and (tc:GetSummonType()&SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM then local p=tc:GetSummonPlayer() s[p]=s[p]+1 end @@ -61,4 +61,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511009438.lua b/unofficial/c511009438.lua index 84272060ce..4aa676c0a8 100644 --- a/unofficial/c511009438.lua +++ b/unofficial/c511009438.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atktg(e,c) return c:GetAttack()>c:GetBaseAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511009439.lua b/unofficial/c511009439.lua index bcee9b6d75..a293e49df9 100644 --- a/unofficial/c511009439.lua +++ b/unofficial/c511009439.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x10f3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PREDAPLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc,e,tp) end @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009441.lua b/unofficial/c511009441.lua index c83535425f..09f395eefe 100644 --- a/unofficial/c511009441.lua +++ b/unofficial/c511009441.lua @@ -205,4 +205,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009442.lua b/unofficial/c511009442.lua index f0eeb3b4f1..0b04cd4e6b 100644 --- a/unofficial/c511009442.lua +++ b/unofficial/c511009442.lua @@ -39,4 +39,4 @@ function s.filter(c) end function s.con2(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511009443.lua b/unofficial/c511009443.lua index 0ac3d2afe2..79d7bb845b 100644 --- a/unofficial/c511009443.lua +++ b/unofficial/c511009443.lua @@ -90,4 +90,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009445.lua b/unofficial/c511009445.lua index e9c465ed59..f5a2c18859 100644 --- a/unofficial/c511009445.lua +++ b/unofficial/c511009445.lua @@ -17,7 +17,7 @@ function s.cfilter(c,tp) return c:IsOnField() and c:IsControler(1-tp) end function s.confilter(c) - return c:IsFaceup() and c:IsSetCard(0xad) + return c:IsFaceup() and c:IsSetCard(SET_FRIGHTFUR) end function s.condition(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsExistingMatchingCard(s.confilter,tp,LOCATION_MZONE,0,1,nil) then return false end @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if ct>0 then Duel.Damage(1-tp,ct*500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009446.lua b/unofficial/c511009446.lua index 2368070d98..f85acf89aa 100644 --- a/unofficial/c511009446.lua +++ b/unofficial/c511009446.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0xc008} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xc008) + return c:IsFaceup() and c:IsSetCard(SET_DESTINY_HERO) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RDComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511009447.lua b/unofficial/c511009447.lua index d3a14eb611..b5b21ebff6 100644 --- a/unofficial/c511009447.lua +++ b/unofficial/c511009447.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xc008) + return c:IsFaceup() and c:IsSetCard(SET_DESTINY_HERO) end function s.condition(e,tp,eg,ev,ep,re,r,rp) return eg:IsExists(Card.IsControler,1,nil,1-tp) and Duel.IsExistingMatchingCard(Card.IsSummonType,tp,0,LOCATION_MZONE,1,nil,SUMMON_TYPE_SPECIAL) @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsStatus,tp,0,LOCATION_MZONE,nil,STATUS_SPSUMMON_TURN) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009462.lua b/unofficial/c511009462.lua index d6455ac6f1..312545a45a 100644 --- a/unofficial/c511009462.lua +++ b/unofficial/c511009462.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009469.lua b/unofficial/c511009469.lua index 6a9c0740a9..158c607c7e 100644 --- a/unofficial/c511009469.lua +++ b/unofficial/c511009469.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.actcon(e) return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511009480.lua b/unofficial/c511009480.lua index 233f27c2a4..460e1f8c85 100644 --- a/unofficial/c511009480.lua +++ b/unofficial/c511009480.lua @@ -192,4 +192,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511009508.lua b/unofficial/c511009508.lua index 4d0b4a3c75..0b01d28b87 100644 --- a/unofficial/c511009508.lua +++ b/unofficial/c511009508.lua @@ -50,7 +50,7 @@ end s.listed_series={SET_SUPREME_KING_DRAGON} s.listed_names={13331639} function s.spfilter(c,tp) - return c:IsControler(1-tp) and c:IsType(TYPE_XYZ) and c:IsSummonType(SUMMON_TYPE_XYZ) + return c:IsControler(1-tp) and c:IsType(TYPE_XYZ) and c:IsXyzSummoned() end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.spfilter,1,nil,tp) and e:GetHandler():IsXyzSummonable() @@ -166,4 +166,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009509.lua b/unofficial/c511009509.lua index 3aa7016555..cab2263eaf 100644 --- a/unofficial/c511009509.lua +++ b/unofficial/c511009509.lua @@ -52,4 +52,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.CalculateDamage(at,sc) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009510.lua b/unofficial/c511009510.lua index 0b9e5eb941..9cb431113b 100644 --- a/unofficial/c511009510.lua +++ b/unofficial/c511009510.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) end s.listed_series={0x95} function s.checkop(e,tp,eg,ep,ev,re,r,rp) - if re and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and re:GetHandler():IsSetCard(0x95) then + if re and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and re:GetHandler():IsSetCard(SET_RANK_UP_MAGIC) then s[0]=s[0]+1 end end @@ -32,7 +32,7 @@ function s.cfilter(c,tp) return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsControler(1-tp) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return re and eg:IsExists(s.cfilter,1,nil,tp) and re:GetHandler():IsSpell() and re:GetHandler():IsSetCard(0x95) + return re and eg:IsExists(s.cfilter,1,nil,tp) and re:GetHandler():IsSpell() and re:GetHandler():IsSetCard(SET_RANK_UP_MAGIC) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -79,4 +79,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009513.lua b/unofficial/c511009513.lua index d142e2e8e6..15811cb777 100644 --- a/unofficial/c511009513.lua +++ b/unofficial/c511009513.lua @@ -38,4 +38,4 @@ end function s.damval(e,re,val,r,rp,rc) if (r&REASON_EFFECT)~=0 and e:GetHandler():GetControler()==e:GetLabel() then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511009514.lua b/unofficial/c511009514.lua index 0e4f7a04bf..7477dd3471 100644 --- a/unofficial/c511009514.lua +++ b/unofficial/c511009514.lua @@ -102,4 +102,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e3:SetValue(1000) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511009515.lua b/unofficial/c511009515.lua index 233b0c50d1..9a9f49b52d 100644 --- a/unofficial/c511009515.lua +++ b/unofficial/c511009515.lua @@ -55,4 +55,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009517.lua b/unofficial/c511009517.lua index 13ba76fc49..9de67aee36 100644 --- a/unofficial/c511009517.lua +++ b/unofficial/c511009517.lua @@ -60,7 +60,7 @@ end s.listed_series={SET_SUPREME_KING_DRAGON} s.listed_names={13331639} function s.spfilter(c,tp) - return c:IsControler(1-tp) and c:IsType(TYPE_SYNCHRO) and c:IsSummonType(SUMMON_TYPE_SYNCHRO) + return c:IsControler(1-tp) and c:IsType(TYPE_SYNCHRO) and c:IsSynchroSummoned() end function s.cfilter(c) return c:IsFaceup() and c:IsCode(13331639) @@ -199,4 +199,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009518.lua b/unofficial/c511009518.lua index 47d59046cb..6750989a42 100644 --- a/unofficial/c511009518.lua +++ b/unofficial/c511009518.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) end function s.filter(c) return c:IsSetCard(0xf8) and c:IsFaceup() -end +end \ No newline at end of file diff --git a/unofficial/c511009519.lua b/unofficial/c511009519.lua index 6761b85ae2..4e234eee43 100644 --- a/unofficial/c511009519.lua +++ b/unofficial/c511009519.lua @@ -45,7 +45,7 @@ function s.filter(c,tp) return Duel.IsExistingMatchingCard(s.tfilter,tp,LOCATION_MZONE,0,1,c) end function s.tfilter(c) - return c:IsSetCard(0x9a) and c:IsReleasableByEffect() + return c:IsSetCard(SET_SUPERHEAVY_SAMURAI) and c:IsReleasableByEffect() end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc,tp) end @@ -140,4 +140,4 @@ function s.rsop(e,tp,eg,ep,ev,re,r,rp) c:CancelCardTarget(tc) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009522.lua b/unofficial/c511009522.lua index 61fa1ebe7b..b3d4c9f2b0 100644 --- a/unofficial/c511009522.lua +++ b/unofficial/c511009522.lua @@ -65,7 +65,7 @@ end s.listed_series={SET_SUPREME_KING_DRAGON} s.listed_names={13331639} function s.spfilter(c,tp) - return c:IsControler(1-tp) and c:IsType(TYPE_PENDULUM) and c:IsSummonType(SUMMON_TYPE_PENDULUM) + return c:IsControler(1-tp) and c:IsType(TYPE_PENDULUM) and c:IsPendulumSummoned() end function s.costfilter(c,tp,sg,tc) if not c:IsSetCard(SET_SUPREME_KING_DRAGON) then return false end @@ -167,4 +167,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SendtoExtraP(e:GetHandler(),nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009523.lua b/unofficial/c511009523.lua index 6c77fc28ab..e896ba3655 100644 --- a/unofficial/c511009523.lua +++ b/unofficial/c511009523.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(1-p) end -end +end \ No newline at end of file diff --git a/unofficial/c511009524.lua b/unofficial/c511009524.lua index d093829d92..80144b5724 100644 --- a/unofficial/c511009524.lua +++ b/unofficial/c511009524.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009526.lua b/unofficial/c511009526.lua index c4292b97ae..7fcecc74a0 100644 --- a/unofficial/c511009526.lua +++ b/unofficial/c511009526.lua @@ -19,13 +19,13 @@ function s.initial_effect(c) e2:SetRange(LOCATION_GRAVE) e2:SetCode(EVENT_FREE_CHAIN) e2:SetCondition(s.negcon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetOperation(s.negop) c:RegisterEffect(e2) end function s.cfilter(c,e,tp) return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE) - and c:IsPreviousSetCard(0x33) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeEffectTarget(e) and c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) + and c:IsPreviousSetCard(0x33) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeEffectTarget(e) and c:IsLocation(LOCATION_GRAVE|LOCATION_REMOVED) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return eg:IsContains(chkc) and s.cfilter(chkc,e,tp) end @@ -52,7 +52,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.negcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetAttacker() and Duel.GetAttacker():IsSetCard(0x33) + return Duel.GetAttacker() and Duel.GetAttacker():IsSetCard(SET_BLACKWING) end function s.negop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -91,4 +91,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) -end +end \ No newline at end of file diff --git a/unofficial/c511009527.lua b/unofficial/c511009527.lua index c53587b539..82e4fa35bc 100644 --- a/unofficial/c511009527.lua +++ b/unofficial/c511009527.lua @@ -88,4 +88,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Recover(1-tp,lp,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009528.lua b/unofficial/c511009528.lua index 8e591dd574..c827ec04eb 100644 --- a/unofficial/c511009528.lua +++ b/unofficial/c511009528.lua @@ -58,7 +58,7 @@ end s.listed_series={SET_SUPREME_KING_DRAGON} s.listed_names={13331639} function s.spfilter(c,tp) - return c:IsControler(1-tp) and c:IsType(TYPE_FUSION) and c:IsSummonType(SUMMON_TYPE_FUSION) + return c:IsControler(1-tp) and c:IsType(TYPE_FUSION) and c:IsFusionSummoned() end function s.costfilter(c,tp,sg,tc) if not c:IsSetCard(SET_SUPREME_KING_DRAGON) then return false end @@ -96,7 +96,7 @@ function s.atlimit(e,c) return c:IsFaceup() and c:IsType(TYPE_FUSION) and c~=e:GetHandler() end function s.cpcon(e,tp,eg,ep,ev,re,r,rp) - if Duel.GetTurnPlayer()==1-tp then return false end + if Duel.IsTurnPlayer(1-tp) then return false end return Duel.IsMainPhase() or Duel.IsBattlePhase() end function s.cptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -160,4 +160,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009530.lua b/unofficial/c511009530.lua index d884c7c59c..16b3762b03 100644 --- a/unofficial/c511009530.lua +++ b/unofficial/c511009530.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0xaf),s.ffilter) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_DD),s.ffilter) --spsummon local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) @@ -30,16 +30,16 @@ function s.initial_effect(c) end s.material_setcode=0xaf function s.ffilter(c,fc,sumtype,tp) - return c:IsSetCard(0xaf,fc,sumtype,tp) and c:IsLevelAbove(5) + return c:IsSetCard(SET_DD,fc,sumtype,tp) and c:IsLevelAbove(5) end function s.cfilter(c,tp) - return c:IsFaceup() and c:IsSetCard(0xaf) and c:IsControler(tp) + return c:IsFaceup() and c:IsSetCard(SET_DD) and c:IsControler(tp) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return not eg:IsContains(e:GetHandler()) and eg:IsExists(s.cfilter,1,nil,tp) end function s.spfilter(c,e,tp) - return c:IsSetCard(0xaf) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_DD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -56,7 +56,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xaf) + return c:IsFaceup() and c:IsSetCard(SET_DD) end function s.disfilter(c) return c:IsSpellTrap() and c:IsFaceup() and not c:IsDisabled() @@ -97,4 +97,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511009531.lua b/unofficial/c511009531.lua index 2d7dd40732..9ec4748efb 100644 --- a/unofficial/c511009531.lua +++ b/unofficial/c511009531.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) --synchro summon - Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0xaf),1,1,Synchro.NonTuner(nil),1,99) + Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_DD),1,1,Synchro.NonTuner(nil),1,99) c:EnableReviveLimit() --tohand local e1=Effect.CreateEffect(c) @@ -30,13 +30,13 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.cfilter(c,tp) - return c:IsFaceup() and c:IsSetCard(0xaf) and c:IsControler(tp) + return c:IsFaceup() and c:IsSetCard(SET_DD) and c:IsControler(tp) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return not eg:IsContains(e:GetHandler()) and eg:IsExists(s.cfilter,1,nil,tp) end function s.spfilter(c,e,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0xaf) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLevelBelow(4) and c:IsSetCard(SET_DD) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -53,7 +53,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.vfilter(c) - return c:IsFaceup() and c:IsSetCard(0xaf) + return c:IsFaceup() and c:IsSetCard(SET_DD) end function s.valcon(e) local c=e:GetHandler() @@ -61,4 +61,4 @@ function s.valcon(e) end function s.val(e,c) return e:GetHandler():GetAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511009533.lua b/unofficial/c511009533.lua index 69de9bbe1a..fbd98cd944 100644 --- a/unofficial/c511009533.lua +++ b/unofficial/c511009533.lua @@ -55,4 +55,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,ct2*600,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009534.lua b/unofficial/c511009534.lua index 07c66a0ffe..869a4c320b 100644 --- a/unofficial/c511009534.lua +++ b/unofficial/c511009534.lua @@ -26,4 +26,4 @@ s.listed_names={511009535} function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,511009535),tp,LOCATION_STZONE,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_GRAVE,0,3,nil,TYPE_FUSION) -end +end \ No newline at end of file diff --git a/unofficial/c511009535.lua b/unofficial/c511009535.lua index a8ca235554..b8b1dddc6a 100644 --- a/unofficial/c511009535.lua +++ b/unofficial/c511009535.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_FIELD) e2:SetCode(EFFECT_DISABLE) e2:SetRange(LOCATION_SZONE) - e2:SetTargetRange(LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED) + e2:SetTargetRange(LOCATION_MZONE|LOCATION_GRAVE|LOCATION_REMOVED,LOCATION_MZONE|LOCATION_GRAVE|LOCATION_REMOVED) e2:SetTarget(aux.TargetBoolFunction(Card.IsOriginalType,TYPE_SYNCHRO)) c:RegisterEffect(e2) local e3=e2:Clone() @@ -26,4 +26,4 @@ s.listed_names={511009536} function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,511009536),tp,LOCATION_STZONE,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_GRAVE,0,3,nil,TYPE_SYNCHRO) -end +end \ No newline at end of file diff --git a/unofficial/c511009536.lua b/unofficial/c511009536.lua index fb70f24cbd..41eba26e10 100644 --- a/unofficial/c511009536.lua +++ b/unofficial/c511009536.lua @@ -26,4 +26,4 @@ s.listed_names={511009533} function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,511009533),tp,LOCATION_STZONE,0,1,nil) and Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_GRAVE,0,3,nil,TYPE_XYZ) -end +end \ No newline at end of file diff --git a/unofficial/c511009537.lua b/unofficial/c511009537.lua index 8f11de64e2..e61bb03c6a 100644 --- a/unofficial/c511009537.lua +++ b/unofficial/c511009537.lua @@ -131,4 +131,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511009538.lua b/unofficial/c511009538.lua index 0a4679e1ea..ce374151e5 100644 --- a/unofficial/c511009538.lua +++ b/unofficial/c511009538.lua @@ -60,4 +60,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) e1:SetOperation(s.damop) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511009541.lua b/unofficial/c511009541.lua index b9874ba80d..b9975d782d 100644 --- a/unofficial/c511009541.lua +++ b/unofficial/c511009541.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SSet(tp,tc) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009542.lua b/unofficial/c511009542.lua index 5072e0e639..6acad68702 100644 --- a/unofficial/c511009542.lua +++ b/unofficial/c511009542.lua @@ -19,12 +19,12 @@ function s.initial_effect(c) end s.listed_series={0x20ec} function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,0x10ec) end - local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,0x10ec) + if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,nil,SET_ABYSS_ACTOR) end + local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,nil,SET_ABYSS_ACTOR) Duel.Release(g,REASON_COST) end function s.cfilter(c) - return c:IsSetCard(0x20ec) and c:IsSpell() and c:IsSSetable() + return c:IsSetCard(SET_ABYSS_SCRIPT) and c:IsSpell() and c:IsSSetable() end function s.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.cfilter(chkc) end @@ -38,4 +38,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsSSetable() then Duel.SSet(tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511009543.lua b/unofficial/c511009543.lua index d7894f4066..a183418fe2 100644 --- a/unofficial/c511009543.lua +++ b/unofficial/c511009543.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) end s.listed_series={0x2b} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x2b) and not c:IsHasEffect(EFFECT_PIERCE) + return c:IsFaceup() and c:IsSetCard(SET_NINJA) and not c:IsHasEffect(EFFECT_PIERCE) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end diff --git a/unofficial/c511009544.lua b/unofficial/c511009544.lua index ede89dea94..5c58d5c921 100644 --- a/unofficial/c511009544.lua +++ b/unofficial/c511009544.lua @@ -74,7 +74,7 @@ function s.rstop(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) local at=Duel.GetAttacker() - return at:IsControler(tp) and at:IsSetCard(0x2b) + return at:IsControler(tp) and at:IsSetCard(SET_NINJA) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end @@ -93,7 +93,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x2b) + return c:IsFaceup() and c:IsSetCard(SET_NINJA) end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -111,4 +111,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009545.lua b/unofficial/c511009545.lua index abbd1d6260..4a4eff54b3 100644 --- a/unofficial/c511009545.lua +++ b/unofficial/c511009545.lua @@ -58,4 +58,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(c:GetAttack()) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009546.lua b/unofficial/c511009546.lua index 8f75bc0039..f1fa67ff36 100644 --- a/unofficial/c511009546.lua +++ b/unofficial/c511009546.lua @@ -66,4 +66,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,sum2,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009549.lua b/unofficial/c511009549.lua index 923267532a..441fb4da6c 100644 --- a/unofficial/c511009549.lua +++ b/unofficial/c511009549.lua @@ -28,7 +28,7 @@ function s.atkcond(e,tp,eg,ep,ev,re,r,rp) tc=bc end e:SetLabelObject(bc) - return tc:IsFaceup() and tc:IsSetCard(0x10ec) + return tc:IsFaceup() and tc:IsSetCard(SET_ABYSS_ACTOR) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() diff --git a/unofficial/c511009553.lua b/unofficial/c511009553.lua index 544195ec04..62d24e117d 100644 --- a/unofficial/c511009553.lua +++ b/unofficial/c511009553.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --synchro summon c:EnableReviveLimit() - Synchro.AddProcedure(c,nil,1,1,Synchro.NonTuner(Card.IsSetCard,0x9a),1,99) + Synchro.AddProcedure(c,nil,1,1,Synchro.NonTuner(Card.IsSetCard,SET_SUPERHEAVY_SAMURAI),1,99) --defense attack local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) @@ -72,4 +72,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,e:GetLabel()*200,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009555.lua b/unofficial/c511009555.lua index b2d789c082..dbe7ac652d 100644 --- a/unofficial/c511009555.lua +++ b/unofficial/c511009555.lua @@ -20,13 +20,13 @@ end function s.filter1(c,e,tp) local rk=c:GetRank() local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ) - return #pg<=1 and c:IsFaceup() and c:IsSetCard(0xba) and (rk>0 or c:IsStatus(STATUS_NO_LEVEL)) + return #pg<=1 and c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) and (rk>0 or c:IsStatus(STATUS_NO_LEVEL)) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,rk+2,pg) end function s.filter2(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) - and c:IsRank(rk) and c:IsSetCard(0xba) and mc:IsCanBeXyzMaterial(c,tp) + and c:IsRank(rk) and c:IsSetCard(SET_RAIDRAPTOR) and mc:IsCanBeXyzMaterial(c,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511009559.lua b/unofficial/c511009559.lua index ad4b19f654..78911844b3 100644 --- a/unofficial/c511009559.lua +++ b/unofficial/c511009559.lua @@ -70,4 +70,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511009560.lua b/unofficial/c511009560.lua index 469c3c57ce..df53d08f7b 100644 --- a/unofficial/c511009560.lua +++ b/unofficial/c511009560.lua @@ -127,4 +127,4 @@ function s.dirregop(e,tp,eg,ep,ev,re,r,rp) end function s.dircon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetFlagEffect(id)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511009561.lua b/unofficial/c511009561.lua index 54a2615e51..2b0d4178ec 100644 --- a/unofficial/c511009561.lua +++ b/unofficial/c511009561.lua @@ -68,4 +68,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.dop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-tp,Duel.GetBattleDamage(1-tp)*2) -end +end \ No newline at end of file diff --git a/unofficial/c511009562.lua b/unofficial/c511009562.lua index 322ea8e156..bd5ce4c348 100644 --- a/unofficial/c511009562.lua +++ b/unofficial/c511009562.lua @@ -38,4 +38,4 @@ function s.atkup(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetValue(400) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009563.lua b/unofficial/c511009563.lua index 6edba3e378..46a46c383d 100644 --- a/unofficial/c511009563.lua +++ b/unofficial/c511009563.lua @@ -47,4 +47,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToBattle() then Duel.ChainAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c511009565.lua b/unofficial/c511009565.lua index 07ca20d1da..133843bb45 100644 --- a/unofficial/c511009565.lua +++ b/unofficial/c511009565.lua @@ -95,4 +95,4 @@ function s.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SetTargetParam(def) -end +end \ No newline at end of file diff --git a/unofficial/c511009569.lua b/unofficial/c511009569.lua index 3cb0eb1967..8ebbfcf93c 100644 --- a/unofficial/c511009569.lua +++ b/unofficial/c511009569.lua @@ -37,7 +37,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.spfilter(c,e,tp) - return c:IsSetCard(0xba) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) and Duel.GetLocationCount(tp,LOCATION_MZONE)>1 @@ -52,4 +52,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,2,2,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511009572.lua b/unofficial/c511009572.lua index ff933c1c9a..26cc79f13c 100644 --- a/unofficial/c511009572.lua +++ b/unofficial/c511009572.lua @@ -28,7 +28,7 @@ end s.listed_series={0x9f,0x99} function s.atkupcon(e,tp,eg,ep,ev,re,r,rp) local at=Duel.GetAttacker() - return at:IsControler(tp) and (at:IsSetCard(0x9f) or at:IsSetCard(0x99)) + return at:IsControler(tp) and (at:IsSetCard(SET_PERFORMAPAL) or at:IsSetCard(SET_ODD_EYES)) end function s.atkupop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end @@ -46,7 +46,7 @@ function s.atkcon(e) local d=Duel.GetAttackTarget() local a=Duel.GetAttacker() local tp=e:GetHandlerPlayer() - return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and d and d:IsControler(1-tp) and a and (a:IsSetCard(0x9f) or a:IsSetCard(0x99)) + return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and d and d:IsControler(1-tp) and a and (a:IsSetCard(SET_PERFORMAPAL) or a:IsSetCard(SET_ODD_EYES)) end function s.atktg(e,c) return c==Duel.GetAttackTarget() @@ -56,4 +56,4 @@ function s.atkfilter(c) end function s.atkval(e,c) return Duel.GetMatchingGroupCount(s.atkfilter,e:GetHandler():GetControler(),LOCATION_MZONE,0,nil)*(-100) -end +end \ No newline at end of file diff --git a/unofficial/c511009574.lua b/unofficial/c511009574.lua index c3bc3243f1..fd70174148 100644 --- a/unofficial/c511009574.lua +++ b/unofficial/c511009574.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009582.lua b/unofficial/c511009582.lua index f455baa97b..d5f7306395 100644 --- a/unofficial/c511009582.lua +++ b/unofficial/c511009582.lua @@ -31,4 +31,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009583.lua b/unofficial/c511009583.lua index 009a3b29be..bc8a0dfb0b 100644 --- a/unofficial/c511009583.lua +++ b/unofficial/c511009583.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009587.lua b/unofficial/c511009587.lua index 3b263546ed..bf6433db67 100644 --- a/unofficial/c511009587.lua +++ b/unofficial/c511009587.lua @@ -184,4 +184,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511009588.lua b/unofficial/c511009588.lua index 077742c30d..28e568d504 100644 --- a/unofficial/c511009588.lua +++ b/unofficial/c511009588.lua @@ -203,4 +203,4 @@ function s.valcheck(e,c) e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009593.lua b/unofficial/c511009593.lua index 0f438c90c6..5e3e3994b2 100644 --- a/unofficial/c511009593.lua +++ b/unofficial/c511009593.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --Fusion summon - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x10af),aux.FilterBoolFunctionEx(Card.IsSetCard,0xaf)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_DDD),aux.FilterBoolFunctionEx(Card.IsSetCard,SET_DD)) c:EnableReviveLimit() --pendulum summon Pendulum.AddProcedure(c,false) @@ -103,4 +103,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetBaseAttack()) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009601.lua b/unofficial/c511009601.lua index 2eee592b6e..1c02ac885f 100644 --- a/unofficial/c511009601.lua +++ b/unofficial/c511009601.lua @@ -26,4 +26,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if not c:IsRelateToEffect(e) then return end Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511009602.lua b/unofficial/c511009602.lua index c365974b98..9db781941f 100644 --- a/unofficial/c511009602.lua +++ b/unofficial/c511009602.lua @@ -64,9 +64,9 @@ function s.rmfilter(c,code) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() - if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,c,c:GetCode()) end + if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,c,c:GetCode()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,c,c:GetCode()) + local g=Duel.SelectMatchingCard(tp,s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,c,c:GetCode()) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -85,4 +85,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP_DEFENSE) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009603.lua b/unofficial/c511009603.lua index 43adf7e2dc..984c24de8c 100644 --- a/unofficial/c511009603.lua +++ b/unofficial/c511009603.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.damtg) e2:SetOperation(s.damop) c:RegisterEffect(e2) @@ -55,4 +55,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009605.lua b/unofficial/c511009605.lua index a74156e253..20d8889f64 100644 --- a/unofficial/c511009605.lua +++ b/unofficial/c511009605.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0xfc} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0xfc) + return c:IsFaceup() and c:IsSetCard(SET_GOUKI) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511009606.lua b/unofficial/c511009606.lua index fdd99d737d..fe7e5a193b 100644 --- a/unofficial/c511009606.lua +++ b/unofficial/c511009606.lua @@ -4,7 +4,7 @@ --cleaned up by MLD local s,id=GetID() function s.initial_effect(c) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0xfc)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_GOUKI)) --indestructable local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_EQUIP) @@ -61,4 +61,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.splimit(e,c,tp,sumtp,sumpos) return sumtp&SUMMON_TYPE_LINK==SUMMON_TYPE_LINK -end +end \ No newline at end of file diff --git a/unofficial/c511009607.lua b/unofficial/c511009607.lua index 9f808ac287..a337adc600 100644 --- a/unofficial/c511009607.lua +++ b/unofficial/c511009607.lua @@ -25,7 +25,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RegisterEffect(e1,tp) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xfc) and c:IsLinkMonster() and c:GetBaseAttack()0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009644.lua b/unofficial/c511009644.lua index ad747be188..ed6b802164 100644 --- a/unofficial/c511009644.lua +++ b/unofficial/c511009644.lua @@ -84,4 +84,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009645.lua b/unofficial/c511009645.lua index 862cd892f9..5cd578bc76 100644 --- a/unofficial/c511009645.lua +++ b/unofficial/c511009645.lua @@ -89,4 +89,4 @@ function s.efilterT(e,te) end function s.efilterM(e,te) return te:IsActiveType(TYPE_MONSTER) and not te:GetHandler():IsSetCard(0x572) -end +end \ No newline at end of file diff --git a/unofficial/c511009646.lua b/unofficial/c511009646.lua index 05fdcdd529..0fb82372ad 100644 --- a/unofficial/c511009646.lua +++ b/unofficial/c511009646.lua @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511009650.lua b/unofficial/c511009650.lua index 5319fafbd6..bd41e694ae 100644 --- a/unofficial/c511009650.lua +++ b/unofficial/c511009650.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(g,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009651.lua b/unofficial/c511009651.lua index 4e81bb71f1..a5265dc829 100644 --- a/unofficial/c511009651.lua +++ b/unofficial/c511009651.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) --link summon - Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0xfb),2) + Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_TRICKSTAR),2) c:EnableReviveLimit() --immune local e1=Effect.CreateEffect(c) @@ -28,7 +28,7 @@ end function s.imcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetLinkedGroupCount()==0 + return c:IsLinkSummoned() and c:GetLinkedGroupCount()==0 end function s.immval(e,te) return te:GetOwner()~=e:GetOwner() @@ -37,7 +37,7 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetLinkedGroupCount()==0 end function s.damfilter(c) - return c:IsSetCard(0xfb) and c:IsMonster() + return c:IsSetCard(SET_TRICKSTAR) and c:IsMonster() end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.damfilter,tp,LOCATION_GRAVE,0,1,nil) end @@ -52,5 +52,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.damfilter,tp,LOCATION_GRAVE,0,nil) local dam=g:GetClassCount(Card.GetCode)*200 Duel.Damage(p,dam,REASON_EFFECT) -end - +end \ No newline at end of file diff --git a/unofficial/c511009654.lua b/unofficial/c511009654.lua index 8e5e67b4ca..5f16c0027a 100644 --- a/unofficial/c511009654.lua +++ b/unofficial/c511009654.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511009656.lua b/unofficial/c511009656.lua index 9c5a0e534a..4fbd090e07 100644 --- a/unofficial/c511009656.lua +++ b/unofficial/c511009656.lua @@ -57,4 +57,4 @@ function s.atkcon(e) end function s.incon(e) return e:GetHandler():IsLinked() -end +end \ No newline at end of file diff --git a/unofficial/c511009657.lua b/unofficial/c511009657.lua index df56311aa0..315a93a934 100644 --- a/unofficial/c511009657.lua +++ b/unofficial/c511009657.lua @@ -84,7 +84,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) end function s.rmcon(chk) return function(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp and (chk==1 or Duel.GetTurnCount()~=e:GetLabel()) + return Duel.IsTurnPlayer(1-tp) and (chk==1 or Duel.GetTurnCount()~=e:GetLabel()) end end function s.rmop(e,tp,eg,ep,ev,re,r,rp) @@ -96,5 +96,5 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) end end function s.con(e,tp,eg,ep,ev,re,r,rp) - return eg:GetFirst():IsSummonType(SUMMON_TYPE_LINK) -end + return eg:GetFirst():IsLinkSummoned() +end \ No newline at end of file diff --git a/unofficial/c511009658.lua b/unofficial/c511009658.lua index d655d4b6b0..dbfa7465dc 100644 --- a/unofficial/c511009658.lua +++ b/unofficial/c511009658.lua @@ -59,4 +59,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,511009659) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP,zone) end -end +end \ No newline at end of file diff --git a/unofficial/c511009660.lua b/unofficial/c511009660.lua index 95e9a81614..23b7c78f92 100644 --- a/unofficial/c511009660.lua +++ b/unofficial/c511009660.lua @@ -81,4 +81,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() tc:SetStatus(STATUS_DESTROY_CONFIRMED,false) Duel.Destroy(tc,REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c511009661.lua b/unofficial/c511009661.lua index 2ea1a30e71..bd803578cb 100644 --- a/unofficial/c511009661.lua +++ b/unofficial/c511009661.lua @@ -63,4 +63,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009662.lua b/unofficial/c511009662.lua index ac69dcf830..073c9253e1 100644 --- a/unofficial/c511009662.lua +++ b/unofficial/c511009662.lua @@ -46,4 +46,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009663.lua b/unofficial/c511009663.lua index 9a2dd35a49..165e0c6b5e 100644 --- a/unofficial/c511009663.lua +++ b/unofficial/c511009663.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP,zone) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009665.lua b/unofficial/c511009665.lua index 4548a38afc..1e89ae16e9 100644 --- a/unofficial/c511009665.lua +++ b/unofficial/c511009665.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) and Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)>0 then Duel.NegateActivation(ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511009666.lua b/unofficial/c511009666.lua index 3b3624d8a1..8b94d9fe42 100644 --- a/unofficial/c511009666.lua +++ b/unofficial/c511009666.lua @@ -41,24 +41,24 @@ function s.matfilter(c,lc,sumtype,tp) end function s.matcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetTurnID()==Duel.GetTurnCount() + return c:IsLinkSummoned() and c:GetTurnID()==Duel.GetTurnCount() end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return ep==tp and r&REASON_BATTLE+REASON_EFFECT~=0 end function s.filter(c,e,tp,zone) - return c:IsSetCard(0x2157) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) + return c:IsSetCard(SET_SUNVINE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then - local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,0x1157) + local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,SET_SUNAVALON) return zone>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,zone) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,ev) end function s.spop(e,tp,eg,ep,ev,re,r,rp) - local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,0x1157) + local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,SET_SUNAVALON) if zone==0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,zone) diff --git a/unofficial/c511009667.lua b/unofficial/c511009667.lua index 46ecc7c95b..d71822d7df 100644 --- a/unofficial/c511009667.lua +++ b/unofficial/c511009667.lua @@ -44,10 +44,10 @@ end s.listed_series={0x2157,0x1157} function s.matcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetTurnID()==Duel.GetTurnCount() + return c:IsLinkSummoned() and c:GetTurnID()==Duel.GetTurnCount() end function s.matfilter(c) - return c:IsOriginalSetCard(0x1157) + return c:IsOriginalSetCard(SET_SUNAVALON) end function s.valcheck(e,c) if c:GetMaterial():IsExists(s.matfilter,1,nil,tp) then @@ -60,18 +60,18 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return ep==tp and (r&REASON_BATTLE+REASON_EFFECT)~=0 and e:GetLabelObject():GetLabel()==1 end function s.filter(c,e,tp,zone) - return c:IsSetCard(0x2157) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) + return c:IsSetCard(SET_SUNVINE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then - local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,0x1157) + local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,SET_SUNAVALON) return zone>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,zone) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,ev) end function s.spop(e,tp,eg,ep,ev,re,r,rp) - local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,0x1157) + local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,SET_SUNAVALON) if zone==0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,zone) diff --git a/unofficial/c511009668.lua b/unofficial/c511009668.lua index c5db3cf2b6..ffebe69dc9 100644 --- a/unofficial/c511009668.lua +++ b/unofficial/c511009668.lua @@ -54,10 +54,10 @@ end s.listed_series={0x2157,0x1157} function s.matcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetTurnID()==Duel.GetTurnCount() + return c:IsLinkSummoned() and c:GetTurnID()==Duel.GetTurnCount() end function s.matfilter(c) - return c:IsOriginalSetCard(0x1157) + return c:IsOriginalSetCard(SET_SUNAVALON) end function s.valcheck(e,c) if c:GetMaterial():IsExists(s.matfilter,1,nil,tp) then @@ -70,18 +70,18 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return ep==tp and r&REASON_BATTLE+REASON_EFFECT~=0 and e:GetLabelObject():GetLabel()==1 end function s.filter(c,e,tp,zone) - return c:IsSetCard(0x2157) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) + return c:IsSetCard(SET_SUNVINE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then - local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,0x1157) + local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,SET_SUNAVALON) return zone>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,zone) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,ev) end function s.spop(e,tp,eg,ep,ev,re,r,rp) - local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,0x1157) + local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,SET_SUNAVALON) if zone==0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,zone) diff --git a/unofficial/c511009669.lua b/unofficial/c511009669.lua index faa9e969d9..3038c9778d 100644 --- a/unofficial/c511009669.lua +++ b/unofficial/c511009669.lua @@ -39,7 +39,7 @@ function s.matfilter(c,lc,sumtype,tp) return c:IsType(TYPE_NORMAL,lc,sumtype,tp) and c:IsRace(RACE_PLANT,lc,sumtype,tp) end function s.filter(c,sc,atk) - return c:IsFaceup() and c:IsSetCard(0x1157) and c:IsType(TYPE_LINK) and c:GetLinkedGroup():IsContains(sc) and (not atk or c:GetLink()>0) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) and c:IsType(TYPE_LINK) and c:GetLinkedGroup():IsContains(sc) and (not atk or c:GetLink()>0) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler()) @@ -87,7 +87,7 @@ function s.sumcon(e,tp,eg,ep,ev,re,r,rp) end function s.sumop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() - local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,0x1157) + local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,SET_SUNAVALON) if zone>0 and tc:IsLocation(LOCATION_GRAVE) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP,zone) end diff --git a/unofficial/c511009670.lua b/unofficial/c511009670.lua index c531cebd0a..6c68c2d299 100644 --- a/unofficial/c511009670.lua +++ b/unofficial/c511009670.lua @@ -34,7 +34,7 @@ function s.initial_effect(c) end s.listed_series={0x1157} function s.filter(c,sc,dam) - return c:IsFaceup() and c:IsSetCard(0x1157) and c:IsType(TYPE_LINK) and c:GetLinkedGroup():IsContains(sc) and (not dam or c:GetLink()>0) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) and c:IsType(TYPE_LINK) and c:GetLinkedGroup():IsContains(sc) and (not dam or c:GetLink()>0) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler()) @@ -67,4 +67,4 @@ function s.bptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.bpop(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) -end +end \ No newline at end of file diff --git a/unofficial/c511009671.lua b/unofficial/c511009671.lua index 36fc5802f1..8fb9eb2e94 100644 --- a/unofficial/c511009671.lua +++ b/unofficial/c511009671.lua @@ -26,13 +26,13 @@ function s.initial_effect(c) end s.listed_series={0x1157} function s.desfilter(c,e) - return c:IsFaceup() and c:IsSetCard(0x1157) and c:IsLinkMonster() and c:GetLinkedGroup():IsContains(e:GetHandler()) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) and c:IsLinkMonster() and c:GetLinkedGroup():IsContains(e:GetHandler()) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.desfilter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,1,nil,e) end function s.filter(c,card) - return c:IsFaceup() and c:IsSetCard(0x1157) and c:IsLinkMonster() and c:GetLinkedGroup():IsContains(card) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) and c:IsLinkMonster() and c:GetLinkedGroup():IsContains(card) end function s.lptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc,e:GetHandler()) end @@ -45,4 +45,4 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) and tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.Recover(tp,tc:GetLink()*300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009672.lua b/unofficial/c511009672.lua index 8ceeec5a70..178cc7bc9c 100644 --- a/unofficial/c511009672.lua +++ b/unofficial/c511009672.lua @@ -44,7 +44,7 @@ function s.initial_effect(c) end s.listed_series={0x1157} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1157) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -93,4 +93,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then Duel.SSet(tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511009673.lua b/unofficial/c511009673.lua index f2d77999d9..44a7431eb7 100644 --- a/unofficial/c511009673.lua +++ b/unofficial/c511009673.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x1157} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1157) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -36,8 +36,8 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(tp,tc) if tc:IsTrap() and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)>0 then Duel.BreakEffect() - local g=Duel.GetMatchingGroup(Card.IsCode,tp,0,LOCATION_DECK+LOCATION_HAND,nil,tc:GetCode()) + local g=Duel.GetMatchingGroup(Card.IsCode,tp,0,LOCATION_DECK|LOCATION_HAND,nil,tc:GetCode()) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009675.lua b/unofficial/c511009675.lua index edcd9c1dde..bcde4ce7d0 100644 --- a/unofficial/c511009675.lua +++ b/unofficial/c511009675.lua @@ -56,7 +56,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0) end function s.linkfilter(c) - return c:IsLinkSummonable() and c:IsSetCard(0x1157) + return c:IsLinkSummonable() and c:IsSetCard(SET_SUNAVALON) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end @@ -120,7 +120,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end end function s.atlimit(e,c) - return c:GetControler(e:GetOwnerPlayer()) and (not c:IsSetCard(0x2157) or c:IsFacedown()) + return c:GetControler(e:GetOwnerPlayer()) and (not c:IsSetCard(SET_SUNVINE) or c:IsFacedown()) end -------------------------------------- function s.sfilter(c,p) @@ -133,4 +133,4 @@ function s.sdescon(e,tp,eg,ep,ev,re,r,rp) end function s.sdesop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009677.lua b/unofficial/c511009677.lua index 9d225b8dc5..0f61c6392b 100644 --- a/unofficial/c511009677.lua +++ b/unofficial/c511009677.lua @@ -87,11 +87,11 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,dam,REASON_EFFECT) end function s.desfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1157) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.desfilter,0,LOCATION_MZONE,LOCATION_MZONE,1,nil) end function s.tgtg(e,c) - return c:IsSetCard(0x1157) and c:IsLinkMonster() -end + return c:IsSetCard(SET_SUNAVALON) and c:IsLinkMonster() +end \ No newline at end of file diff --git a/unofficial/c511009678.lua b/unofficial/c511009678.lua index bdcf513b07..ba96f28ca7 100644 --- a/unofficial/c511009678.lua +++ b/unofficial/c511009678.lua @@ -34,7 +34,7 @@ function s.initial_effect(c) end function s.matcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetTurnID()==Duel.GetTurnCount() + return c:IsLinkSummoned() and c:GetTurnID()==Duel.GetTurnCount() end function s.tdcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckReleaseGroupCost(tp,nil,1,false,nil,nil) end @@ -57,4 +57,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009680.lua b/unofficial/c511009680.lua index bd27780aed..f2cae83306 100644 --- a/unofficial/c511009680.lua +++ b/unofficial/c511009680.lua @@ -88,4 +88,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local sg=g:Filter(Card.IsRelateToEffect,nil,e) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009682.lua b/unofficial/c511009682.lua index a950d7ffce..37ee2cfaa0 100644 --- a/unofficial/c511009682.lua +++ b/unofficial/c511009682.lua @@ -40,7 +40,7 @@ function s.initial_effect(c) end s.listed_series={0x1157} function s.filter(c,e,tp) - return c:IsSetCard(0x1157) and c:IsType(TYPE_LINK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_SUNAVALON) and c:IsType(TYPE_LINK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -111,4 +111,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009683.lua b/unofficial/c511009683.lua index 39dd4ff01b..e6d3445dfc 100644 --- a/unofficial/c511009683.lua +++ b/unofficial/c511009683.lua @@ -23,7 +23,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return not e:GetHandler():IsPublic() end end function s.filter(c,e,tp,tid) - return c:IsSetCard(0xfc) and c:IsLinkMonster() and c:IsReason(REASON_DESTROY) and c:GetTurnID()==tid + return c:IsSetCard(SET_GOUKI) and c:IsLinkMonster() and c:IsReason(REASON_DESTROY) and c:GetTurnID()==tid and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -62,4 +62,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.rcon(e) return e:GetHandler():GetFirstCardTarget()~=nil -end +end \ No newline at end of file diff --git a/unofficial/c511009684.lua b/unofficial/c511009684.lua index c4df38d93f..9391125a2c 100644 --- a/unofficial/c511009684.lua +++ b/unofficial/c511009684.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsSetCard(0xfc) and c:IsLinkMonster() and c:IsAbleToExtra() + return c:IsSetCard(SET_GOUKI) and c:IsLinkMonster() and c:IsAbleToExtra() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -24,7 +24,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) end function s.filter2(c) - return c:IsSetCard(0xfc) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_GOUKI) and c:IsMonster() and c:IsAbleToHand() end function s.operation(e,tp,eg,ep,ev,re,r,rp) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local tg2=g2:Select(tp,1,1,nil) Duel.SendtoHand(tg2,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009685.lua b/unofficial/c511009685.lua index efa7ea05f0..b431997d59 100644 --- a/unofficial/c511009685.lua +++ b/unofficial/c511009685.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --link summon c:EnableReviveLimit() - Link.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0xfc),2,2) + Link.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,SET_GOUKI),2,2) --negate local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) @@ -34,7 +34,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.spfilter(c,e,tp) - return c:IsLinkMonster() and c:IsSetCard(0xfc) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLinkMonster() and c:IsSetCard(SET_GOUKI) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0 @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009686.lua b/unofficial/c511009686.lua index 62a29b2e9f..ecf40a78c7 100644 --- a/unofficial/c511009686.lua +++ b/unofficial/c511009686.lua @@ -24,12 +24,12 @@ function s.atkcon(e) return ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL end function s.atktg(e,c) - return c==Duel.GetAttacker() and c:IsSetCard(0xfc) + return c==Duel.GetAttacker() and c:IsSetCard(SET_GOUKI) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xfc) + return c:IsFaceup() and c:IsSetCard(SET_GOUKI) end function s.atkval(e,c) local sg=Duel.GetMatchingGroup(s.filter,c:GetControler(),LOCATION_MZONE,0,nil) return #sg*300 -end +end \ No newline at end of file diff --git a/unofficial/c511009691.lua b/unofficial/c511009691.lua index 6eb1d19d03..1557227cc2 100644 --- a/unofficial/c511009691.lua +++ b/unofficial/c511009691.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) end s.listed_series={0xfc} function s.spfilter(c,e,tp,tid) - return c:GetTurnID()==tid and c:IsReason(REASON_DESTROY) and c:IsSetCard(0xfc) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:GetTurnID()==tid and c:IsReason(REASON_DESTROY) and c:IsSetCard(SET_GOUKI) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local tid=Duel.GetTurnCount() @@ -70,4 +70,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009693.lua b/unofficial/c511009693.lua index 997d8f73aa..0e53ee5dfc 100644 --- a/unofficial/c511009693.lua +++ b/unofficial/c511009693.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+resets+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009697.lua b/unofficial/c511009697.lua index 67080f48d3..eb3c48a8c7 100644 --- a/unofficial/c511009697.lua +++ b/unofficial/c511009697.lua @@ -17,4 +17,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) if c:IsFaceup() and c:IsRelateToEffect(e) then Duel.ChangePosition(c,POS_FACEUP_DEFENSE,0,POS_FACEUP_ATTACK,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511009700.lua b/unofficial/c511009700.lua index 0a0c7d30d1..3182611379 100644 --- a/unofficial/c511009700.lua +++ b/unofficial/c511009700.lua @@ -64,4 +64,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009704.lua b/unofficial/c511009704.lua index fd92052979..187fde5b3d 100644 --- a/unofficial/c511009704.lua +++ b/unofficial/c511009704.lua @@ -6,7 +6,7 @@ local s,id=GetID() function s.initial_effect(c) --link summon c:EnableReviveLimit() - Link.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x102),2,2) + Link.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,SET_ROKKET),2,2) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(1357146,0)) @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x10f) and c:IsLinkMonster() + return c:IsFaceup() and c:IsSetCard(SET_BORREL) and c:IsLinkMonster() end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009705.lua b/unofficial/c511009705.lua index 28e3c1032c..c9726f4c96 100644 --- a/unofficial/c511009705.lua +++ b/unofficial/c511009705.lua @@ -105,4 +105,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009706.lua b/unofficial/c511009706.lua index a2365a5c6a..bcc0eae71b 100644 --- a/unofficial/c511009706.lua +++ b/unofficial/c511009706.lua @@ -122,4 +122,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and not tc:IsAttackPos() then Duel.ChangePosition(tc,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511009708.lua b/unofficial/c511009708.lua index ea99dbac53..230c7c2db0 100644 --- a/unofficial/c511009708.lua +++ b/unofficial/c511009708.lua @@ -14,4 +14,4 @@ end function s.hspcon(e,c) if c==nil then return true end return Duel.GetFieldGroupCount(0,LOCATION_MMZONE,LOCATION_MMZONE)==0 -end +end \ No newline at end of file diff --git a/unofficial/c511009709.lua b/unofficial/c511009709.lua index ba504f53ad..e9f13cdf3d 100644 --- a/unofficial/c511009709.lua +++ b/unofficial/c511009709.lua @@ -40,4 +40,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,id+1) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511009711.lua b/unofficial/c511009711.lua index 7f3744197d..835ec6d67d 100644 --- a/unofficial/c511009711.lua +++ b/unofficial/c511009711.lua @@ -59,4 +59,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,511009710) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511009713.lua b/unofficial/c511009713.lua index ec7a6f4227..d7f181e1c0 100644 --- a/unofficial/c511009713.lua +++ b/unofficial/c511009713.lua @@ -59,4 +59,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,511009710) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511009714.lua b/unofficial/c511009714.lua index 18c1ead93e..055ccf052e 100644 --- a/unofficial/c511009714.lua +++ b/unofficial/c511009714.lua @@ -58,4 +58,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) or not Duel.IsPlayerCanSpecialSummonMonster(tp,511009710,0x577,TYPES_TOKEN,0,0,1,RACE_CYBERSE,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE) then return end local token=Duel.CreateToken(tp,511009710) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) -end +end \ No newline at end of file diff --git a/unofficial/c511009716.lua b/unofficial/c511009716.lua index 8256dedfb1..b0bb889a9e 100644 --- a/unofficial/c511009716.lua +++ b/unofficial/c511009716.lua @@ -30,7 +30,7 @@ function s.mfilter(c,lc,sumtype,tp) return c:IsSetCard(0x577,lc,sumtype,tp) and c:IsType(TYPE_LINK,lc,sumtype,tp) end function s.attcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.cfilter(c,e,tp) return c:IsSetCard(0x577) and c:IsLinkMonster() and c:IsLocation(LOCATION_GRAVE) @@ -67,4 +67,4 @@ function s.attop(e,tp,eg,ep,ev,re,r,rp) end function s.distg(e,c) return c:IsAttribute(e:GetHandler():GetAttribute()) -end +end \ No newline at end of file diff --git a/unofficial/c511009717.lua b/unofficial/c511009717.lua index acac3185e6..c157b56e52 100644 --- a/unofficial/c511009717.lua +++ b/unofficial/c511009717.lua @@ -41,7 +41,7 @@ function s.mfilter(c,lc,sumtype,tp) return c:IsSetCard(0x577) and c:IsType(TYPE_LINK,lc,sumtype,tp) end function s.attcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.cfilter(c,e,tp) return c:IsSetCard(0x577) and c:IsLinkMonster() and c:IsLocation(LOCATION_GRAVE) @@ -104,4 +104,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) gc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009724.lua b/unofficial/c511009724.lua index 18feb89e04..891106cdf4 100644 --- a/unofficial/c511009724.lua +++ b/unofficial/c511009724.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_SZONE) e2:SetTargetRange(LOCATION_MZONE,0) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x11a)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_DINOWRESTLER)) e2:SetValue(400) c:RegisterEffect(e2) --indes @@ -29,4 +29,4 @@ function s.indct(e,re,r,rp) if r&REASON_BATTLE+REASON_EFFECT~=0 then return 1 else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c511009726.lua b/unofficial/c511009726.lua index 5e0fbc486e..9ea63671e7 100644 --- a/unofficial/c511009726.lua +++ b/unofficial/c511009726.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsLinkMonster() and c:IsSetCard(0x119) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) + return c:IsLinkMonster() and c:IsSetCard(SET_SALAMANGREAT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end local damage=tc:GetLink()*200 Duel.Damage(1-tp,damage,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009727.lua b/unofficial/c511009727.lua index 4335d35179..5c792bce2f 100644 --- a/unofficial/c511009727.lua +++ b/unofficial/c511009727.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e2:SetRange(LOCATION_GRAVE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCondition(s.descon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.destg) e2:SetOperation(s.desop) c:RegisterEffect(e2) @@ -50,4 +50,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009729.lua b/unofficial/c511009729.lua index 7e295e3203..1f8a0a8d3a 100644 --- a/unofficial/c511009729.lua +++ b/unofficial/c511009729.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) ec:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009735.lua b/unofficial/c511009735.lua index 7c87f0a2f5..32cf4d3056 100644 --- a/unofficial/c511009735.lua +++ b/unofficial/c511009735.lua @@ -76,4 +76,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) if Duel.Destroy(g,REASON_EFFECT)~=0 then Duel.Damage(1-tp,3000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009737.lua b/unofficial/c511009737.lua index e5c04e51a6..eabb0e09c6 100644 --- a/unofficial/c511009737.lua +++ b/unofficial/c511009737.lua @@ -36,8 +36,8 @@ function s.spcon(e,c) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_MZONE,0,1,nil) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return eg:IsExists(Card.IsPreviousLocation,1,nil,LOCATION_HAND+LOCATION_DECK+LOCATION_ONFIELD) end - local ct=eg:FilterCount(Card.IsPreviousLocation,nil,LOCATION_HAND+LOCATION_DECK+LOCATION_ONFIELD) + if chk==0 then return eg:IsExists(Card.IsPreviousLocation,1,nil,LOCATION_HAND|LOCATION_DECK|LOCATION_ONFIELD) end + local ct=eg:FilterCount(Card.IsPreviousLocation,nil,LOCATION_HAND|LOCATION_DECK|LOCATION_ONFIELD) Duel.SetTargetParam(ct*300) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,ct*300) end @@ -46,4 +46,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,dam,REASON_EFFECT,true) Duel.Damage(1-tp,dam,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511009740.lua b/unofficial/c511009740.lua index 562f1ed64a..7f7f032b28 100644 --- a/unofficial/c511009740.lua +++ b/unofficial/c511009740.lua @@ -39,4 +39,4 @@ function s.tg(e,c) end function s.atktg(e,c) return c:IsLinkMonster() -end +end \ No newline at end of file diff --git a/unofficial/c511009741.lua b/unofficial/c511009741.lua index d759aad1b8..ebd65f5525 100644 --- a/unofficial/c511009741.lua +++ b/unofficial/c511009741.lua @@ -63,4 +63,4 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) end function s.condition(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_MZONE,0)<=1 -end +end \ No newline at end of file diff --git a/unofficial/c511009742.lua b/unofficial/c511009742.lua index 0197af3224..a9c69fd9c9 100644 --- a/unofficial/c511009742.lua +++ b/unofficial/c511009742.lua @@ -55,4 +55,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_CANNOT_ATTACK_ANNOUNCE) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511009743.lua b/unofficial/c511009743.lua index e68f34604e..9eb0ffcbd0 100644 --- a/unofficial/c511009743.lua +++ b/unofficial/c511009743.lua @@ -67,4 +67,4 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) local p=(opt==0 and tp or 1-tp) local d=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009744.lua b/unofficial/c511009744.lua index 3b7e22d81f..15759726d4 100644 --- a/unofficial/c511009744.lua +++ b/unofficial/c511009744.lua @@ -106,4 +106,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009745.lua b/unofficial/c511009745.lua index ee4853af1d..cc50764cfa 100644 --- a/unofficial/c511009745.lua +++ b/unofficial/c511009745.lua @@ -77,7 +77,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end function s.tkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) + return Duel.IsTurnPlayer(tp) and Duel.IsMainPhase() end function s.tktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -106,4 +106,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511009747.lua b/unofficial/c511009747.lua index 2f0825e052..0b16e6ee39 100644 --- a/unofficial/c511009747.lua +++ b/unofficial/c511009747.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.atkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,nil) local d=g:GetSum(Card.GetLink)*100 Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511009748.lua b/unofficial/c511009748.lua index 89bb801ff1..9158f38e49 100644 --- a/unofficial/c511009748.lua +++ b/unofficial/c511009748.lua @@ -34,10 +34,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(s.val) e1:SetReset(RESET_PHASE+PHASE_END,1) Duel.RegisterEffect(e1,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end function s.val(e,re,dam,r,rp,rc) if s[e:GetOwnerPlayer()]==1 or (r&REASON_BATTLE)~=0 then return dam/2 else return dam end -end +end \ No newline at end of file diff --git a/unofficial/c511009749.lua b/unofficial/c511009749.lua index ebd1e2a70d..e3a49cf875 100644 --- a/unofficial/c511009749.lua +++ b/unofficial/c511009749.lua @@ -88,4 +88,4 @@ function s.filter(c) end function s.fcon(e) return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511009916.lua b/unofficial/c511009916.lua index 68fcf44a48..50c1be7ed5 100644 --- a/unofficial/c511009916.lua +++ b/unofficial/c511009916.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_series={0x119} function s.filter(c,ft) - return c:IsFaceup() and (ft>0 or c:GetSequence()<5) and c:IsSetCard(0x119) and c:IsAbleToHand() + return c:IsFaceup() and (ft>0 or c:GetSequence()<5) and c:IsSetCard(SET_SALAMANGREAT) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) diff --git a/unofficial/c511009917.lua b/unofficial/c511009917.lua index 8ff4c7a9d0..8a02a2f7bc 100644 --- a/unofficial/c511009917.lua +++ b/unofficial/c511009917.lua @@ -20,7 +20,7 @@ function s.filter(c) return c:IsFaceup() and c:IsSpellTrap() end function s.costfilter(c) - return c:IsSetCard(0x119) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_SALAMANGREAT) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -47,4 +47,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(dg) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511009918.lua b/unofficial/c511009918.lua index d79d44ad61..23a75621c9 100644 --- a/unofficial/c511009918.lua +++ b/unofficial/c511009918.lua @@ -47,7 +47,7 @@ function s.spop1(e,tp,eg,ep,ev,re,r,rp) end end function s.spcfilter(c) - return c:IsMonster() and c:IsSetCard(0x119) and c:IsAbleToGraveAsCost() + return c:IsMonster() and c:IsSetCard(SET_SALAMANGREAT) and c:IsAbleToGraveAsCost() end function s.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.spcfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end @@ -66,4 +66,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009919.lua b/unofficial/c511009919.lua index 7065c1c0c1..18387dd554 100644 --- a/unofficial/c511009919.lua +++ b/unofficial/c511009919.lua @@ -74,21 +74,21 @@ function s.linkop(e,tp,eg,ep,ev,re,r,rp,c) local mg=e:GetLabelObject() c:SetMaterial(mg) Duel.SendtoGrave(mg,REASON_MATERIAL+REASON_LINK) - Duel.RegisterFlagEffect(tp,alias,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,alias,RESET_PHASE|PHASE_END,0,1) end function s.mattg(e,c) - return c:IsSetCard(0x119) and c:IsLinkMonster() + return c:IsSetCard(SET_SALAMANGREAT) and c:IsLinkMonster() end function s.condition(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetAttackTarget() - return Duel.GetBattleDamage(tp)>0 and (Duel.GetAttacker():IsSetCard(0x119) or (d and d:IsSetCard(0x119))) + return Duel.GetBattleDamage(tp)>0 and (Duel.GetAttacker():IsSetCard(SET_SALAMANGREAT) or (d and d:IsSetCard(SET_SALAMANGREAT))) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckLPCost(tp,1000) end Duel.PayLPCost(tp,1000) end function s.filter(c) - return c:HasNonZeroAttack() and c:IsLinkMonster() and c:IsSetCard(0x119) + return c:HasNonZeroAttack() and c:IsLinkMonster() and c:IsSetCard(SET_SALAMANGREAT) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -111,4 +111,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,tc:GetBaseAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009920.lua b/unofficial/c511009920.lua index 8c24b33315..1ef5829802 100644 --- a/unofficial/c511009920.lua +++ b/unofficial/c511009920.lua @@ -49,4 +49,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1,true) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511009921.lua b/unofficial/c511009921.lua index 688e897bd0..2a8b36a442 100644 --- a/unofficial/c511009921.lua +++ b/unofficial/c511009921.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,511009926) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009923.lua b/unofficial/c511009923.lua index 78bc0530b7..880d090573 100644 --- a/unofficial/c511009923.lua +++ b/unofficial/c511009923.lua @@ -17,7 +17,7 @@ function s.cfilter(c,lk) return c:IsFaceup() and c:IsSetCard(0x579) and c:IsLink(lk) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND+LOCATION_MZONE) + local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND|LOCATION_MZONE) return ct>0 and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil,ct) end function s.activate(e,tp,eg,ep,ev,re,r,rp) @@ -60,4 +60,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e5:SetReset(resets) tc:RegisterEffect(e5) end -end +end \ No newline at end of file diff --git a/unofficial/c511009927.lua b/unofficial/c511009927.lua index 50edae164b..4c44684554 100644 --- a/unofficial/c511009927.lua +++ b/unofficial/c511009927.lua @@ -15,10 +15,10 @@ s.listed_series={0x119} function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetAttackTarget() e:SetLabelObject(tc) - return tc and tc:IsControler(tp) and Duel.GetTurnPlayer()==1-tp + return tc and tc:IsControler(tp) and Duel.IsTurnPlayer(1-tp) end function s.filter(c,e,tp) - return c:GetAttack()>0 and c:IsSetCard(0x119) and c:IsMonster() and c:IsAbleToDeck() + return c:GetAttack()>0 and c:IsSetCard(SET_SALAMANGREAT) and c:IsMonster() and c:IsAbleToDeck() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc) end @@ -47,9 +47,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) bc:RegisterEffect(e1) end if tc and tc:IsRelateToEffect(e) then - if Duel.SendtoDeck(tc,nil,0,REASON_EFFECT)>0 and tc:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then + if Duel.SendtoDeck(tc,nil,0,REASON_EFFECT)>0 and tc:IsLocation(LOCATION_DECK|LOCATION_EXTRA) then if tc:IsLocation(LOCATION_DECK) then Duel.ShuffleDeck(tp) end Duel.Recover(p,d,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511009930.lua b/unofficial/c511009930.lua index bb44d3c393..443bc6198e 100644 --- a/unofficial/c511009930.lua +++ b/unofficial/c511009930.lua @@ -38,8 +38,8 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) end end function s.retcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.ReturnToField(e:GetLabelObject()) -end +end \ No newline at end of file diff --git a/unofficial/c511009935.lua b/unofficial/c511009935.lua index 7639cc2905..c6d1d6af9f 100644 --- a/unofficial/c511009935.lua +++ b/unofficial/c511009935.lua @@ -29,4 +29,4 @@ function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c511009938.lua b/unofficial/c511009938.lua index ae447e9284..c21ced0092 100644 --- a/unofficial/c511009938.lua +++ b/unofficial/c511009938.lua @@ -51,4 +51,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511009951.lua b/unofficial/c511009951.lua index 667965d88d..965ff8c9b3 100644 --- a/unofficial/c511009951.lua +++ b/unofficial/c511009951.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetHintTiming(0,TIMING_END_PHASE) e2:SetCondition(s.tdcon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.tdtg) e2:SetOperation(s.tdop) c:RegisterEffect(e2) @@ -43,7 +43,7 @@ function s.initial_effect(c) end s.listed_series={0x135} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x135) + return c:IsFaceup() and c:IsSetCard(SET_IGNISTER) end function s.desfilter(c) return c:IsType(TYPE_SPELL+TYPE_TRAP) @@ -83,4 +83,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) if eg:IsExists(s.cfilter,1,nil,tp) then e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009952.lua b/unofficial/c511009952.lua index fc45f4c402..f68127068d 100644 --- a/unofficial/c511009952.lua +++ b/unofficial/c511009952.lua @@ -38,7 +38,7 @@ function s.extrafilter(c,tp) return c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) end function s.extracon(c,e,tp,sg,mg,lc,og,chk) - return (sg+mg):Filter(s.extrafilter,nil,e:GetHandlerPlayer()):IsExists(Card.IsSetCard,1,og,0x103) and + return (sg+mg):Filter(s.extrafilter,nil,e:GetHandlerPlayer()):IsExists(Card.IsSetCard,1,og,SET_ALTERGEIST) and sg:FilterCount(s.flagcheck,nil)<2 end function s.flagcheck(c) @@ -48,7 +48,7 @@ function s.extraval(chk,summon_type,e,...) local c=e:GetHandler() if chk==0 then local tp,sc=... - if summon_type~=SUMMON_TYPE_LINK or not sc:IsSetCard(0x103) or Duel.GetFlagEffect(tp,id)>0 then + if summon_type~=SUMMON_TYPE_LINK or not sc:IsSetCard(SET_ALTERGEIST) or Duel.GetFlagEffect(tp,id)>0 then return Group.CreateGroup() else table.insert(s.flagmap[c],c:RegisterFlagEffect(id,0,0,1)) @@ -58,7 +58,7 @@ function s.extraval(chk,summon_type,e,...) local sg,sc,tp=... if summon_type&SUMMON_TYPE_LINK == SUMMON_TYPE_LINK and #sg>0 then Duel.Hint(HINT_CARD,tp,id) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end elseif chk==2 then for _,eff in ipairs(s.flagmap[c]) do @@ -68,7 +68,7 @@ function s.extraval(chk,summon_type,e,...) end end function s.cfilter(c,tp) - return c:IsSetCard(0x103) and c:IsLinkMonster() and c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsSetCard(SET_ALTERGEIST) and c:IsLinkMonster() and c:IsControler(tp) and c:IsLinkSummoned() end function s.thcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) @@ -83,4 +83,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511009953.lua b/unofficial/c511009953.lua index e83b52d83e..7ea6840e79 100644 --- a/unofficial/c511009953.lua +++ b/unofficial/c511009953.lua @@ -43,7 +43,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) e:GetHandler():SetTurnCounter(0) end function s.sdescon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.sdesop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -56,4 +56,4 @@ function s.sdesop(e,tp,eg,ep,ev,re,r,rp) end function s.tg(e,c) return c:IsMonster() and c:IsDrone() -end +end \ No newline at end of file diff --git a/unofficial/c511009954.lua b/unofficial/c511009954.lua index f44778d7db..4afe6b5b65 100644 --- a/unofficial/c511009954.lua +++ b/unofficial/c511009954.lua @@ -60,7 +60,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) end end function s.cfilter(c,ft,tp) - return c:IsSetCard(0x135) and c:IsControler(tp) + return c:IsSetCard(SET_IGNISTER) and c:IsControler(tp) and c:GetSummonLocation()==LOCATION_EXTRA and (ft>0 or c:GetSequence()<5) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -77,4 +77,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511009955.lua b/unofficial/c511009955.lua index 09e56c79ae..63b8ff92a7 100644 --- a/unofficial/c511009955.lua +++ b/unofficial/c511009955.lua @@ -4,7 +4,7 @@ local s,id,alias=GetID() function s.initial_effect(c) alias=c:GetOriginalCodeRule() --link summon - Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0x103),2) + Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_ALTERGEIST),2) --atkup local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(alias,0)) @@ -101,4 +101,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetValue(1) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511009956.lua b/unofficial/c511009956.lua index b90ccff843..c6b452c738 100644 --- a/unofficial/c511009956.lua +++ b/unofficial/c511009956.lua @@ -35,7 +35,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetAttacker() if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end e:SetLabelObject(tc) - return tc and tc:IsSetCard(0xfc) and tc:IsRelateToBattle() and Duel.GetAttackTarget()~=nil + return tc and tc:IsSetCard(SET_GOUKI) and tc:IsRelateToBattle() and Duel.GetAttackTarget()~=nil end function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end @@ -70,7 +70,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) end function s.thfilter(c) - return c:IsSetCard(0xfc) and not c:IsCode(id) and c:IsAbleToHand() + return c:IsSetCard(SET_GOUKI) and not c:IsCode(id) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end @@ -83,4 +83,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511009957.lua b/unofficial/c511009957.lua index 154c3bd911..861dbc90b4 100644 --- a/unofficial/c511009957.lua +++ b/unofficial/c511009957.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) e1:SetDescription(aux.Stringid(id,0)) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) - e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) + e1:SetRange(LOCATION_HAND|LOCATION_GRAVE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCountLimit(1,id) e1:SetCondition(s.damcon) diff --git a/unofficial/c511009958.lua b/unofficial/c511009958.lua index 3610ecd321..e5434bc7e4 100644 --- a/unofficial/c511009958.lua +++ b/unofficial/c511009958.lua @@ -36,7 +36,7 @@ function s.atkcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()~=tp end function s.costfilter(c) - return c:IsSetCard(0xfc) and c:IsLevelBelow(2) and not c:IsPublic() + return c:IsSetCard(SET_GOUKI) and c:IsLevelBelow(2) and not c:IsPublic() end function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() @@ -49,7 +49,7 @@ function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(g:GetFirst():GetAttack()) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xfc) + return c:IsFaceup() and c:IsSetCard(SET_GOUKI) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -72,7 +72,7 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) end function s.thfilter(c) - return c:IsSetCard(0xfc) and not c:IsCode(id) and c:IsAbleToHand() + return c:IsSetCard(SET_GOUKI) and not c:IsCode(id) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end diff --git a/unofficial/c511009959.lua b/unofficial/c511009959.lua index be92a3e9c8..5acecf6b6f 100644 --- a/unofficial/c511009959.lua +++ b/unofficial/c511009959.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --link summon - Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0xfc),2) + Link.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_GOUKI),2) c:EnableReviveLimit() --immune local e1=Effect.CreateEffect(c) @@ -36,13 +36,13 @@ function s.initial_effect(c) end s.listed_series={0xfc} function s.econ(e) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.efilter(e,te) return te:GetOwner()~=e:GetOwner() end function s.atkfilter(c) - return c:IsType(TYPE_LINK) and c:IsSetCard(0xfc) + return c:IsType(TYPE_LINK) and c:IsSetCard(SET_GOUKI) end function s.atkval(e,c) local g=Duel.GetMatchingGroup(s.atkfilter,e:GetHandlerPlayer(),LOCATION_MZONE,LOCATION_MZONE,0,c) @@ -64,7 +64,7 @@ function s.spcheck(sg,tp,exg,dg) return #dg-a>=sg:GetFirst():GetLink() end function s.cfilter(c) - return c:IsSetCard(0xfc) and c:IsLinkMonster() + return c:IsSetCard(SET_GOUKI) and c:IsLinkMonster() end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end @@ -86,4 +86,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #dg>0 then Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511010007.lua b/unofficial/c511010007.lua index 6ef9f91e2b..34d0152e5d 100644 --- a/unofficial/c511010007.lua +++ b/unofficial/c511010007.lua @@ -50,4 +50,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE|RESET_PHASE|PHASE_BATTLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511010009.lua b/unofficial/c511010009.lua index 7f9c1beb9a..27aa7d6ce0 100644 --- a/unofficial/c511010009.lua +++ b/unofficial/c511010009.lua @@ -90,4 +90,4 @@ function s.daop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511010010.lua b/unofficial/c511010010.lua index 55c9dc9db4..dcd3085e3a 100644 --- a/unofficial/c511010010.lua +++ b/unofficial/c511010010.lua @@ -43,5 +43,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.indes(e,c) -return not c:IsSetCard(0x48) +return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010011.lua b/unofficial/c511010011.lua index 405ec797b5..bcd147ff42 100644 --- a/unofficial/c511010011.lua +++ b/unofficial/c511010011.lua @@ -50,5 +50,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010012.lua b/unofficial/c511010012.lua index 4a8cd255cc..4e0392e674 100644 --- a/unofficial/c511010012.lua +++ b/unofficial/c511010012.lua @@ -29,5 +29,5 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) else return false end end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010020.lua b/unofficial/c511010020.lua index 3ddd729580..5319ebdd56 100644 --- a/unofficial/c511010020.lua +++ b/unofficial/c511010020.lua @@ -40,5 +40,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010021.lua b/unofficial/c511010021.lua index bedb1290d2..3208a987e6 100644 --- a/unofficial/c511010021.lua +++ b/unofficial/c511010021.lua @@ -51,5 +51,5 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(g,REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010025.lua b/unofficial/c511010025.lua index dee097a939..6bd50a33fe 100644 --- a/unofficial/c511010025.lua +++ b/unofficial/c511010025.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e3) end s.xyz_number=25 @@ -63,4 +63,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e3) end end -end +end \ No newline at end of file diff --git a/unofficial/c511010032.lua b/unofficial/c511010032.lua index 172c687a4d..0c9d1a15ea 100644 --- a/unofficial/c511010032.lua +++ b/unofficial/c511010032.lua @@ -60,5 +60,5 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511010034.lua b/unofficial/c511010034.lua index bfdfdfea2f..920213a344 100644 --- a/unofficial/c511010034.lua +++ b/unofficial/c511010034.lua @@ -46,5 +46,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010035.lua b/unofficial/c511010035.lua index 7972fd3795..69cbdefe7b 100644 --- a/unofficial/c511010035.lua +++ b/unofficial/c511010035.lua @@ -34,4 +34,4 @@ function s.val(e,c) else return (Duel.GetLP(tp)-Duel.GetLP(1-tp))/2 end -end +end \ No newline at end of file diff --git a/unofficial/c511010039.lua b/unofficial/c511010039.lua index c78f1f0227..a398ca3555 100644 --- a/unofficial/c511010039.lua +++ b/unofficial/c511010039.lua @@ -67,5 +67,5 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511010047.lua b/unofficial/c511010047.lua index c4f9277d39..dbc4ad085b 100644 --- a/unofficial/c511010047.lua +++ b/unofficial/c511010047.lua @@ -37,12 +37,12 @@ function s.matfilter(c) return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and not c:IsType(TYPE_TOKEN) and c:GetLevel()==3 and c:IsAttribute(ATTRIBUTE_WATER) end function s.mattg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.matfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.matfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,1,nil) end end function s.matop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) - local g=Duel.SelectMatchingCard(tp,s.matfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.matfilter,tp,LOCATION_HAND|LOCATION_MZONE,0,1,1,nil) if #g>=0 then Duel.Overlay(e:GetHandler(),g) end @@ -86,5 +86,5 @@ function s.ftarget(e,c) return e:GetLabel()~=c:GetFieldID() end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511010053.lua b/unofficial/c511010053.lua index 661a518cdd..c7584de799 100644 --- a/unofficial/c511010053.lua +++ b/unofficial/c511010053.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e2) --equip local e3=Effect.CreateEffect(c) @@ -211,4 +211,4 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511010056.lua b/unofficial/c511010056.lua index bbdf10afb9..4f2a9514bc 100644 --- a/unofficial/c511010056.lua +++ b/unofficial/c511010056.lua @@ -44,5 +44,5 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010062.lua b/unofficial/c511010062.lua index face91b409..1e8c9cd52a 100644 --- a/unofficial/c511010062.lua +++ b/unofficial/c511010062.lua @@ -82,7 +82,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local ct=e:GetLabel() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) - e1:SetRange(LOCATION_EXTRA+LOCATION_REMOVED+LOCATION_GRAVE) + e1:SetRange(LOCATION_EXTRA|LOCATION_REMOVED|LOCATION_GRAVE) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) if Duel.IsPhase(PHASE_STANDBY) and Duel.IsTurnPlayer(tp) then e1:SetLabel(-1) diff --git a/unofficial/c511010064.lua b/unofficial/c511010064.lua index dd42f92e4c..a4402e8042 100644 --- a/unofficial/c511010064.lua +++ b/unofficial/c511010064.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e3) end s.listed_names={39972130} @@ -63,4 +63,4 @@ function s.ifilter(c) end function s.indcon(e) return Duel.IsExistingMatchingCard(s.ifilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,e:GetHandler()) -end +end \ No newline at end of file diff --git a/unofficial/c511010065.lua b/unofficial/c511010065.lua index 4a742aea42..352084b96c 100644 --- a/unofficial/c511010065.lua +++ b/unofficial/c511010065.lua @@ -45,5 +45,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,500,REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511010083.lua b/unofficial/c511010083.lua index d9f1cf0f1d..99105d5a43 100644 --- a/unofficial/c511010083.lua +++ b/unofficial/c511010083.lua @@ -54,5 +54,5 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010096.lua b/unofficial/c511010096.lua index 99b5f0c502..9ef1707356 100644 --- a/unofficial/c511010096.lua +++ b/unofficial/c511010096.lua @@ -55,5 +55,5 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511010103.lua b/unofficial/c511010103.lua index 6f0970bf55..93a1ad32e0 100644 --- a/unofficial/c511010103.lua +++ b/unofficial/c511010103.lua @@ -47,4 +47,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511010104.lua b/unofficial/c511010104.lua index 20e946ee13..5e65779327 100644 --- a/unofficial/c511010104.lua +++ b/unofficial/c511010104.lua @@ -81,5 +81,5 @@ function s.deckop(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleDeck(p) end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511010105.lua b/unofficial/c511010105.lua index 4334acd693..baee901b48 100644 --- a/unofficial/c511010105.lua +++ b/unofficial/c511010105.lua @@ -53,4 +53,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local e3=e1:Clone() e3:SetCode(EFFECT_REFLECT_BATTLE_DAMAGE) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c511010107.lua b/unofficial/c511010107.lua index 73322dc490..2ff8db24b3 100644 --- a/unofficial/c511010107.lua +++ b/unofficial/c511010107.lua @@ -175,4 +175,4 @@ function s.endbpop(e,tp,eg,ep,ev,re,r,rp) e2:SetOperation(function(e) e:Reset() Duel.SkipPhase(tp,PHASE_BATTLE,RESET_PHASE|PHASE_BATTLE_STEP,1) end) e2:SetReset(RESET_PHASE|PHASE_END|PHASE_BATTLE) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511010132.lua b/unofficial/c511010132.lua index 33bf198d11..20d0035e97 100644 --- a/unofficial/c511010132.lua +++ b/unofficial/c511010132.lua @@ -62,10 +62,10 @@ function s.rfilter(c) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) - and Duel.IsExistingMatchingCard(s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + and Duel.IsExistingMatchingCard(s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) e:SetLabel(g:GetFirst():GetAttack()) end @@ -93,5 +93,5 @@ function s.descon(e) return Duel.GetLP(e:GetHandlerPlayer())>=1000 end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511010139.lua b/unofficial/c511010139.lua index 4778b8aa55..0b65cf3a13 100644 --- a/unofficial/c511010139.lua +++ b/unofficial/c511010139.lua @@ -90,5 +90,5 @@ function s.descon(e) return Duel.GetLP(e:GetHandlerPlayer())>=1000 end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c511010173.lua b/unofficial/c511010173.lua index 4e9b40a6ff..47c23e7b8b 100644 --- a/unofficial/c511010173.lua +++ b/unofficial/c511010173.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) local e6=Effect.CreateEffect(c) e6:SetType(EFFECT_TYPE_SINGLE) e6:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e6:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e6:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e6) end s.xyz_number=73 @@ -46,4 +46,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(bc:GetAttack()) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511010192.lua b/unofficial/c511010192.lua index 826f83a5e8..2d00ffbcc3 100644 --- a/unofficial/c511010192.lua +++ b/unofficial/c511010192.lua @@ -76,7 +76,7 @@ function s.clear(e,tp,eg,ep,ev,re,r,rp) s[1]=0 end function s.reccon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.rectg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return s[1-tp]>0 end @@ -122,4 +122,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511010196.lua b/unofficial/c511010196.lua index a7fe64cad9..fc70c478ed 100644 --- a/unofficial/c511010196.lua +++ b/unofficial/c511010196.lua @@ -124,4 +124,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-ep,ev,false) end end -end +end \ No newline at end of file diff --git a/unofficial/c511010205.lua b/unofficial/c511010205.lua index b02ebcce1f..b81cf386c9 100644 --- a/unofficial/c511010205.lua +++ b/unofficial/c511010205.lua @@ -104,7 +104,7 @@ function s.atkct(e,c) return e:GetHandler():GetFlagEffect(id)-1 end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.IsBattlePhase() and not e:GetHandler():IsStatus(STATUS_CHAINING) + return Duel.IsTurnPlayer(tp) and Duel.IsBattlePhase() and not e:GetHandler():IsStatus(STATUS_CHAINING) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_DECK,1,nil) end @@ -180,14 +180,14 @@ function s.matfilter(c,tc,tid) end function s.mattg(e,tp,eg,ep,ev,re,r,rp,chk) local tid=Duel.GetTurnCount() - if Duel.GetTurnPlayer()==tp then tid=tid-1 end + if Duel.IsTurnPlayer(tp) then tid=tid-1 end if chk==0 then return Duel.IsExistingMatchingCard(s.matfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,e:GetHandler(),tid) end local g=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,e:GetHandler(),tid) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,g,#g,tp,0) end function s.matop(e,tp,eg,ep,ev,re,r,rp) local tid=Duel.GetTurnCount() - if Duel.GetTurnPlayer()==tp then tid=tid-1 end + if Duel.IsTurnPlayer(tp) then tid=tid-1 end local c=e:GetHandler() local g=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil,c,tid) if c:IsRelateToEffect(e) then @@ -205,4 +205,4 @@ function s.ovop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Overlay(c,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511010207.lua b/unofficial/c511010207.lua index 7c682c933c..1694eb0566 100644 --- a/unofficial/c511010207.lua +++ b/unofficial/c511010207.lua @@ -60,16 +60,16 @@ s.xyz_number=107 function s.checkop(e,tp,eg,ep,ev,re,r,rp) local rc=re:GetHandler() if rc then - rc:RegisterFlagEffect(511010207,RESET_PHASE+PHASE_END,0,1) + rc:RegisterFlagEffect(511010207,RESET_PHASE|PHASE_END,0,1) end end function s.startop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0x7f,0x7f,nil) for tc in aux.Next(g) do - tc:RegisterFlagEffect(511010208,RESET_PHASE+PHASE_END,0,1,tc:GetLocation()) - tc:RegisterFlagEffect(511010209,RESET_PHASE+PHASE_END,0,1,tc:GetControler()) - tc:RegisterFlagEffect(511010210,RESET_PHASE+PHASE_END,0,1,tc:GetPosition()) - tc:RegisterFlagEffect(511010211,RESET_PHASE+PHASE_END,0,1,tc:GetSequence()) + tc:RegisterFlagEffect(511010208,RESET_PHASE|PHASE_END,0,1,tc:GetLocation()) + tc:RegisterFlagEffect(511010209,RESET_PHASE|PHASE_END,0,1,tc:GetControler()) + tc:RegisterFlagEffect(511010210,RESET_PHASE|PHASE_END,0,1,tc:GetPosition()) + tc:RegisterFlagEffect(511010211,RESET_PHASE|PHASE_END,0,1,tc:GetSequence()) end end function s.filter(c) @@ -184,4 +184,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511010238.lua b/unofficial/c511010238.lua index 084344edd6..1394cb0b5a 100644 --- a/unofficial/c511010238.lua +++ b/unofficial/c511010238.lua @@ -54,4 +54,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511010239.lua b/unofficial/c511010239.lua index e73686a98e..3ddae69c59 100644 --- a/unofficial/c511010239.lua +++ b/unofficial/c511010239.lua @@ -92,4 +92,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511010500.lua b/unofficial/c511010500.lua index c4d2782fb5..9372ae98ff 100644 --- a/unofficial/c511010500.lua +++ b/unofficial/c511010500.lua @@ -59,4 +59,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511010501.lua b/unofficial/c511010501.lua index 36d51b85e6..4ca113ebb5 100644 --- a/unofficial/c511010501.lua +++ b/unofficial/c511010501.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.tgval(e,c) - return c:IsSetCard(0xe5) + return c:IsSetCard(SET_CIPHER) end function s.sprcon(e,c) if c==nil then return true end @@ -27,4 +27,4 @@ function s.sprcon(e,c) return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 and Duel.IsExistingMatchingCard(aux.FilterEqualFunction(Card.GetSummonLocation,LOCATION_EXTRA),tp,0,LOCATION_MZONE,1,nil) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511010502.lua b/unofficial/c511010502.lua index 208f12d923..b43d9e2d86 100644 --- a/unofficial/c511010502.lua +++ b/unofficial/c511010502.lua @@ -34,7 +34,7 @@ function s.lvcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.lvfilter(c) - return c:IsFaceup() and c:IsSetCard(0xe5) and c:GetLevel()>0 + return c:IsFaceup() and c:IsSetCard(SET_CIPHER) and c:GetLevel()>0 end function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.lvfilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end @@ -51,4 +51,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511010503.lua b/unofficial/c511010503.lua index aee3f7ea5f..30da2876f6 100644 --- a/unofficial/c511010503.lua +++ b/unofficial/c511010503.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE and Duel.GetTurnPlayer()==tp + return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE and Duel.IsTurnPlayer(tp) and not Duel.GetAttacker() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -75,4 +75,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) tc:AddCounter(0x1041,1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511010504.lua b/unofficial/c511010504.lua index afd9599be8..01866c8d0a 100644 --- a/unofficial/c511010504.lua +++ b/unofficial/c511010504.lua @@ -65,4 +65,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e5:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e5) end -end +end \ No newline at end of file diff --git a/unofficial/c511010505.lua b/unofficial/c511010505.lua index 77723b3a1d..0471cf4383 100644 --- a/unofficial/c511010505.lua +++ b/unofficial/c511010505.lua @@ -33,7 +33,7 @@ function s.filter1(c,e,tp) end function s.filter2(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end - return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(0xba) and mc:IsCanBeXyzMaterial(c,tp) + return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(SET_RAIDRAPTOR) and mc:IsCanBeXyzMaterial(c,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end @@ -63,7 +63,7 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(e:GetHandler(),REASON_COST) end function s.thfilter(c) - return c:IsSetCard(0x95) and c:IsAbleToHand() + return c:IsSetCard(SET_RANK_UP_MAGIC) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end @@ -77,4 +77,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511010506.lua b/unofficial/c511010506.lua index 09226381a5..25b57f9fb5 100644 --- a/unofficial/c511010506.lua +++ b/unofficial/c511010506.lua @@ -73,4 +73,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetLabel()) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511010507.lua b/unofficial/c511010507.lua index 81a51bbbf4..d77e05be7d 100644 --- a/unofficial/c511010507.lua +++ b/unofficial/c511010507.lua @@ -26,10 +26,10 @@ function s.initial_effect(c) c:RegisterEffect(e2) end s.listed_names={CARD_ZARC,41209827,82044279,16195942,16178681} -local ZARC_LOC=LOCATION_ONFIELD+LOCATION_GRAVE+LOCATION_EXTRA+LOCATION_DECK +local ZARC_LOC=LOCATION_ONFIELD|LOCATION_GRAVE|LOCATION_EXTRA|LOCATION_DECK function s.spcfilter(c,e,tp) return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD) - and ((c:IsCanBeEffectTarget(e) and (c:IsLocation(LOCATION_SZONE+LOCATION_GRAVE+LOCATION_MZONE) or (c:IsLocation(LOCATION_REMOVED) and c:IsFaceup()))) or (c:IsLocation(LOCATION_HAND+LOCATION_DECK) or (c:IsLocation(LOCATION_EXTRA) and c:IsFaceup()))) + and ((c:IsCanBeEffectTarget(e) and (c:IsLocation(LOCATION_SZONE|LOCATION_GRAVE|LOCATION_MZONE) or (c:IsLocation(LOCATION_REMOVED) and c:IsFaceup()))) or (c:IsLocation(LOCATION_HAND|LOCATION_DECK) or (c:IsLocation(LOCATION_EXTRA) and c:IsFaceup()))) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -43,7 +43,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.spcfilterchk(c,tp) return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD) - and (c:IsLocation(LOCATION_SZONE+LOCATION_GRAVE+LOCATION_MZONE) or (c:IsLocation(LOCATION_REMOVED) and c:IsFaceup())) or (c:IsLocation(LOCATION_HAND+LOCATION_DECK) or (c:IsLocation(LOCATION_EXTRA) and c:IsFaceup())) and not Duel.GetFieldCard(tp,c:GetPreviousLocation(),c:GetPreviousSequence()) + and (c:IsLocation(LOCATION_SZONE|LOCATION_GRAVE|LOCATION_MZONE) or (c:IsLocation(LOCATION_REMOVED) and c:IsFaceup())) or (c:IsLocation(LOCATION_HAND|LOCATION_DECK) or (c:IsLocation(LOCATION_EXTRA) and c:IsFaceup())) and not Duel.GetFieldCard(tp,c:GetPreviousLocation(),c:GetPreviousSequence()) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -138,4 +138,4 @@ function s.zarcop(e,tp,eg,ep,ev,re,r,rp) end end g:DeleteGroup() -end +end \ No newline at end of file diff --git a/unofficial/c511010508.lua b/unofficial/c511010508.lua index 9269659346..1e9040df53 100644 --- a/unofficial/c511010508.lua +++ b/unofficial/c511010508.lua @@ -62,4 +62,4 @@ function s.tg(e,c) end function s.val(e,re,c) return re:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511010511.lua b/unofficial/c511010511.lua index 4c3417693e..164ee51389 100644 --- a/unofficial/c511010511.lua +++ b/unofficial/c511010511.lua @@ -39,4 +39,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511010513.lua b/unofficial/c511010513.lua index ae386f91b1..e309bb7bed 100644 --- a/unofficial/c511010513.lua +++ b/unofficial/c511010513.lua @@ -15,7 +15,7 @@ end s.listed_series={0x48} function s.filter1(c,e,tp) local rk=c:GetRank() - return rk>1 and c:IsFaceup() and c:IsSetCard(0x48) + return rk>1 and c:IsFaceup() and c:IsSetCard(SET_NUMBER) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,rk) end function s.filter2(c,e,tp,mc,rk) @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511010514.lua b/unofficial/c511010514.lua index 926bef9821..84d23ab716 100644 --- a/unofficial/c511010514.lua +++ b/unofficial/c511010514.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) alias=c:GetOriginalCodeRule() --synchro summon c:EnableReviveLimit() - Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0xaf),1,1,Synchro.NonTunerEx(Card.IsSetCard,0xaf),1,99) + Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_DD),1,1,Synchro.NonTunerEx(Card.IsSetCard,SET_DD),1,99) --pendulum summon Pendulum.AddProcedure(c,false) --synchro indes @@ -117,4 +117,4 @@ end function s.discon(e) if e:GetHandler():GetFlagEffect(e:GetLabel())>0 then return true else e:Reset() return false end -end +end \ No newline at end of file diff --git a/unofficial/c511010515.lua b/unofficial/c511010515.lua index 030f0e4532..c97e904b21 100644 --- a/unofficial/c511010515.lua +++ b/unofficial/c511010515.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() Pendulum.AddProcedure(c,false) - Xyz.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,0x10af),8,2) + Xyz.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_DDD),8,2) --xyz indes local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) @@ -71,7 +71,7 @@ function s.valcheck(e,c) end end function s.xyzcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetLabel()==1 + return e:GetHandler():IsXyzSummoned() and e:GetLabel()==1 end function s.xyzfilter(c) return c:IsFaceup() and c:IsCode(47198668) @@ -109,4 +109,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.GetTargetCards(e) Duel.Destroy(dg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511010519.lua b/unofficial/c511010519.lua index ffcf9e47e3..ef23d559d1 100644 --- a/unofficial/c511010519.lua +++ b/unofficial/c511010519.lua @@ -27,4 +27,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) Duel.Damage(p,ct*300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511010525.lua b/unofficial/c511010525.lua index 05884a54f4..c335acb2ae 100644 --- a/unofficial/c511010525.lua +++ b/unofficial/c511010525.lua @@ -13,5 +13,5 @@ function s.fextra(e,tp,mg) end function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE|LOCATION_GRAVE) end \ No newline at end of file diff --git a/unofficial/c511010530.lua b/unofficial/c511010530.lua index 12acc3be34..40d40adb22 100644 --- a/unofficial/c511010530.lua +++ b/unofficial/c511010530.lua @@ -60,4 +60,4 @@ function s.dammul(e,re,val,r,rp,rc) if cc==0 or (r&REASON_EFFECT)==0 then return end local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) return cid==e:GetLabel() and val*2 or val -end +end \ No newline at end of file diff --git a/unofficial/c511010531.lua b/unofficial/c511010531.lua index 7d27713458..c0d74142e3 100644 --- a/unofficial/c511010531.lua +++ b/unofficial/c511010531.lua @@ -22,4 +22,4 @@ function s.condition(e) end function s.target(e,c) return (c:GetSummonType()&SUMMON_TYPE_SPECIAL)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511010532.lua b/unofficial/c511010532.lua index dc79ec3fe6..bb1c9a8a88 100644 --- a/unofficial/c511010532.lua +++ b/unofficial/c511010532.lua @@ -34,4 +34,4 @@ end function s.repop2(e,tp,eg,ep,ev,re,r,rp,chk) e:GetHandler():SetStatus(STATUS_DESTROY_CONFIRMED,false) Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c511010533.lua b/unofficial/c511010533.lua index 47d5933f8f..631d3f66c1 100644 --- a/unofficial/c511010533.lua +++ b/unofficial/c511010533.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) end Duel.ShuffleHand(tp) -end +end \ No newline at end of file diff --git a/unofficial/c511010536.lua b/unofficial/c511010536.lua index f8900621ef..f74bce0a30 100644 --- a/unofficial/c511010536.lua +++ b/unofficial/c511010536.lua @@ -31,4 +31,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511010537.lua b/unofficial/c511010537.lua index ea1ea4cb43..57d28be54e 100644 --- a/unofficial/c511010537.lua +++ b/unofficial/c511010537.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if ct==0 or (ct>1 and Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)) or ct>Duel.GetLocationCount(tp,LOCATION_MZONE) then return end Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511010538.lua b/unofficial/c511010538.lua index 9a220417b4..70550cf33f 100644 --- a/unofficial/c511010538.lua +++ b/unofficial/c511010538.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_series={0x7b} function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x7b) and c:IsType(TYPE_XYZ) + return c:IsFaceup() and c:IsSetCard(SET_GALAXY) and c:IsType(TYPE_XYZ) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -34,4 +34,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511010700.lua b/unofficial/c511010700.lua index 2549d25db2..16971f5c6c 100644 --- a/unofficial/c511010700.lua +++ b/unofficial/c511010700.lua @@ -39,4 +39,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) local fid=eg:GetFirst():GetFieldID() e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetLabelObject():SetLabel(fid) -end +end \ No newline at end of file diff --git a/unofficial/c511010701.lua b/unofficial/c511010701.lua index 509160941f..6bd373edcc 100644 --- a/unofficial/c511010701.lua +++ b/unofficial/c511010701.lua @@ -22,4 +22,4 @@ function s.ind1(e,re,rp,c) end function s.ind2(e,c) return c:IsAttackBelow(1900) -end +end \ No newline at end of file diff --git a/unofficial/c511010702.lua b/unofficial/c511010702.lua index c45b9e45c9..7e2960315c 100644 --- a/unofficial/c511010702.lua +++ b/unofficial/c511010702.lua @@ -83,7 +83,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -94,4 +94,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511010703.lua b/unofficial/c511010703.lua index ac2626dd85..a6c58d34cb 100644 --- a/unofficial/c511010703.lua +++ b/unofficial/c511010703.lua @@ -29,16 +29,16 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if e:GetHandler():GetSequence()<5 then ft=ft+1 end - if chk==0 then return ft>1 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,2,nil,e,tp) + if chk==0 then return ft>1 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,2,nil,e,tp) and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<2 or Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,2,2,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE,0,2,2,nil,e,tp) if #g==2 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511010704.lua b/unofficial/c511010704.lua index 6543298e06..d2472e9e04 100644 --- a/unofficial/c511010704.lua +++ b/unofficial/c511010704.lua @@ -29,4 +29,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511011000.lua b/unofficial/c511011000.lua index 13e6e2a13c..f93f099e52 100644 --- a/unofficial/c511011000.lua +++ b/unofficial/c511011000.lua @@ -66,4 +66,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511011001.lua b/unofficial/c511011001.lua index 5767684142..a93f3685d0 100644 --- a/unofficial/c511011001.lua +++ b/unofficial/c511011001.lua @@ -38,4 +38,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) if a and a:IsRelateToBattle() then a:AddCounter(0x109a,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511011002.lua b/unofficial/c511011002.lua index 65cfc38f43..d9e175ed3a 100644 --- a/unofficial/c511011002.lua +++ b/unofficial/c511011002.lua @@ -76,4 +76,4 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) else Duel.RaiseEvent(g,EVENT_CUSTOM+id,e,r,rp,ep,ev) end -end +end \ No newline at end of file diff --git a/unofficial/c511011003.lua b/unofficial/c511011003.lua index 934be466a5..3b16876653 100644 --- a/unofficial/c511011003.lua +++ b/unofficial/c511011003.lua @@ -31,4 +31,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511011004.lua b/unofficial/c511011004.lua index c558047de0..0966615f44 100644 --- a/unofficial/c511011004.lua +++ b/unofficial/c511011004.lua @@ -60,4 +60,4 @@ function s.coinop(e,tp,eg,ep,ev,re,r,rp) elseif res==COIN_TAILS then register_eff(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511011005.lua b/unofficial/c511011005.lua index f72be8119c..afa29b1b22 100644 --- a/unofficial/c511011005.lua +++ b/unofficial/c511011005.lua @@ -62,4 +62,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511012000.lua b/unofficial/c511012000.lua index 7eed02028e..faaa9869df 100644 --- a/unofficial/c511012000.lua +++ b/unofficial/c511012000.lua @@ -30,4 +30,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511012001.lua b/unofficial/c511012001.lua index 8c5749169d..fd4530de79 100644 --- a/unofficial/c511012001.lua +++ b/unofficial/c511012001.lua @@ -41,4 +41,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,ev*2) -end +end \ No newline at end of file diff --git a/unofficial/c511013000.lua b/unofficial/c511013000.lua index 61c8a13488..e20e642c5c 100644 --- a/unofficial/c511013000.lua +++ b/unofficial/c511013000.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511013001.lua b/unofficial/c511013001.lua index 2432e7b189..8d03a717c9 100644 --- a/unofficial/c511013001.lua +++ b/unofficial/c511013001.lua @@ -6,4 +6,4 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_PIERCE) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511013002.lua b/unofficial/c511013002.lua index 0d1c0f6c7d..ce92450c31 100644 --- a/unofficial/c511013002.lua +++ b/unofficial/c511013002.lua @@ -64,4 +64,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.SelectMatchingCard(tp,Card.IsDestructable,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil) if #g==0 then return end Duel.Destroy(g:GetFirst(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511013003.lua b/unofficial/c511013003.lua index 7e1a2645f4..9e543e2dad 100644 --- a/unofficial/c511013003.lua +++ b/unofficial/c511013003.lua @@ -31,4 +31,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511013004.lua b/unofficial/c511013004.lua index 7d200c413c..7bfb78360e 100644 --- a/unofficial/c511013004.lua +++ b/unofficial/c511013004.lua @@ -36,4 +36,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.val(e,re,ev,r,rp,rc) return (r&REASON_EFFECT)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511013005.lua b/unofficial/c511013005.lua index 54edc10e7e..93065a050d 100644 --- a/unofficial/c511013005.lua +++ b/unofficial/c511013005.lua @@ -32,4 +32,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511013007.lua b/unofficial/c511013007.lua index e2f39a740e..049c52d6e0 100644 --- a/unofficial/c511013007.lua +++ b/unofficial/c511013007.lua @@ -88,4 +88,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(c,0,tp,tp,true,false,POS_FACEUP) c:AddMonsterAttributeComplete() Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511013008.lua b/unofficial/c511013008.lua index 3cb656c105..46c8c43191 100644 --- a/unofficial/c511013008.lua +++ b/unofficial/c511013008.lua @@ -17,4 +17,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.cfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511013009.lua b/unofficial/c511013009.lua index f6649cc048..7a1bcfd010 100644 --- a/unofficial/c511013009.lua +++ b/unofficial/c511013009.lua @@ -66,4 +66,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511013010.lua b/unofficial/c511013010.lua index 993d529dc5..5df96cb242 100644 --- a/unofficial/c511013010.lua +++ b/unofficial/c511013010.lua @@ -29,4 +29,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511013011.lua b/unofficial/c511013011.lua index f5d0d26fa9..8e93efd5a8 100644 --- a/unofficial/c511013011.lua +++ b/unofficial/c511013011.lua @@ -19,4 +19,4 @@ function s.atkval(e,c) end function s.defval(e,c) if c:IsAttackPos() then return 0 else return c:GetAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c511013014.lua b/unofficial/c511013014.lua index 3255bcdc23..d2c20cdb5f 100644 --- a/unofficial/c511013014.lua +++ b/unofficial/c511013014.lua @@ -26,4 +26,4 @@ end function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,ev/2) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511013015.lua b/unofficial/c511013015.lua index 6fd3f6a947..b32a02edd2 100644 --- a/unofficial/c511013015.lua +++ b/unofficial/c511013015.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511013016.lua b/unofficial/c511013016.lua index a7af7db21d..e315bc8162 100644 --- a/unofficial/c511013016.lua +++ b/unofficial/c511013016.lua @@ -31,4 +31,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsSpellTrap,tp,0,LOCATION_ONFIELD,e:GetHandler()) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511013017.lua b/unofficial/c511013017.lua index 04b61ca232..06b230f49e 100644 --- a/unofficial/c511013017.lua +++ b/unofficial/c511013017.lua @@ -29,4 +29,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) g:Merge(eg) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511013018.lua b/unofficial/c511013018.lua index 72e64b7209..9a88cae6d5 100644 --- a/unofficial/c511013018.lua +++ b/unofficial/c511013018.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511013020.lua b/unofficial/c511013020.lua index 3fe2d1f28a..6de985843d 100644 --- a/unofficial/c511013020.lua +++ b/unofficial/c511013020.lua @@ -60,4 +60,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511013021.lua b/unofficial/c511013021.lua index 68cef048b0..b8606795df 100644 --- a/unofficial/c511013021.lua +++ b/unofficial/c511013021.lua @@ -21,5 +21,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,ev*2) -end - +end \ No newline at end of file diff --git a/unofficial/c511013022.lua b/unofficial/c511013022.lua index b0b6b42364..2d034839ad 100644 --- a/unofficial/c511013022.lua +++ b/unofficial/c511013022.lua @@ -30,4 +30,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511013023.lua b/unofficial/c511013023.lua index 14deced7c4..6796336181 100644 --- a/unofficial/c511013023.lua +++ b/unofficial/c511013023.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(eg,REASON_EFFECT) end Duel.Draw(1-tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511013024.lua b/unofficial/c511013024.lua index 82f6b55bbe..d77eb8b00d 100644 --- a/unofficial/c511013024.lua +++ b/unofficial/c511013024.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511013026.lua b/unofficial/c511013026.lua index 7e0b626b4b..ed9c8e1b27 100644 --- a/unofficial/c511013026.lua +++ b/unofficial/c511013026.lua @@ -27,4 +27,4 @@ function s.spcon(e,c) local tp=c:GetControler() return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,CARD_BLUEEYES_W_DRAGON) -end +end \ No newline at end of file diff --git a/unofficial/c511013027.lua b/unofficial/c511013027.lua index d9f0430a73..2e7cac1748 100644 --- a/unofficial/c511013027.lua +++ b/unofficial/c511013027.lua @@ -23,10 +23,10 @@ function s.rfilter(c,tp) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,c,lv) end function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(tp) and s.rfilter(chkc,tp) end - if chk==0 then return Duel.IsExistingTarget(s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,tp) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and chkc:IsControler(tp) and s.rfilter(chkc,tp) end + if chk==0 then return Duel.IsExistingTarget(s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectTarget(tp,s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,tp) + local g=Duel.SelectTarget(tp,s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,tp) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) end function s.lvop(e,tp,eg,ep,ev,re,r,rp) @@ -46,4 +46,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511013028.lua b/unofficial/c511013028.lua index 38e16b3f68..20ab93e9f1 100644 --- a/unofficial/c511013028.lua +++ b/unofficial/c511013028.lua @@ -52,4 +52,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.ChangePosition(c,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511013029.lua b/unofficial/c511013029.lua index 23f8e5b977..7f637d4774 100644 --- a/unofficial/c511013029.lua +++ b/unofficial/c511013029.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511013031.lua b/unofficial/c511013031.lua index 62fab13db2..3ef62813ee 100644 --- a/unofficial/c511013031.lua +++ b/unofficial/c511013031.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetCode(EVENT_BATTLE_START) e1:SetRange(LOCATION_GRAVE) e1:SetHintTiming(TIMING_BATTLE_PHASE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetCondition(s.atkcon) e1:SetTarget(s.atktg) e1:SetOperation(s.atkop) @@ -49,4 +49,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511013032.lua b/unofficial/c511013032.lua index fe7fe3e791..7c4814eba8 100644 --- a/unofficial/c511013032.lua +++ b/unofficial/c511013032.lua @@ -28,4 +28,4 @@ end function s.atcon(e) local c=e:GetHandler() return Duel.IsExistingMatchingCard(s.cfilter,c:GetControler(),LOCATION_MZONE,0,1,c,c:GetCode()) -end +end \ No newline at end of file diff --git a/unofficial/c511013033.lua b/unofficial/c511013033.lua index 5320e47a1d..02baba0a0d 100644 --- a/unofficial/c511013033.lua +++ b/unofficial/c511013033.lua @@ -55,4 +55,4 @@ function s.damval(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid~=e:GetLabel() then return val end return 0 -end +end \ No newline at end of file diff --git a/unofficial/c511013035.lua b/unofficial/c511013035.lua index f7ad9e9e7c..cb1d77e625 100644 --- a/unofficial/c511013035.lua +++ b/unofficial/c511013035.lua @@ -45,5 +45,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end - +end \ No newline at end of file diff --git a/unofficial/c511014001.lua b/unofficial/c511014001.lua index f2d7d14257..5383e3e21f 100644 --- a/unofficial/c511014001.lua +++ b/unofficial/c511014001.lua @@ -27,4 +27,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511015100.lua b/unofficial/c511015100.lua index 123afdac09..3be1e1175b 100644 --- a/unofficial/c511015100.lua +++ b/unofficial/c511015100.lua @@ -64,14 +64,14 @@ end function s.spcheck(sg,tp) if not aux.ReleaseCheckMMZ(sg,tp) then return false end if #sg==1 then - return sg:IsExists(Card.IsSetCard,1,nil,0x99) + return sg:IsExists(Card.IsSetCard,1,nil,SET_ODD_EYES) else return true end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,nil,aux.ReleaseCheckMMZ,nil,0x99) + if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,nil,aux.ReleaseCheckMMZ,nil,SET_ODD_EYES) or Duel.CheckReleaseGroupCost(tp,nil,2,nil,aux.ReleaseCheckMMZ,nil) end local sg=Duel.SelectReleaseGroupCost(tp,nil,1,2,nil,s.spcheck,nil) Duel.Release(sg,REASON_COST) @@ -87,12 +87,12 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.discfilter(c) - return c:IsMonster() and c:IsSetCard(0x99) and c:IsAbleToGraveAsCost() + return c:IsMonster() and c:IsSetCard(SET_ODD_EYES) and c:IsAbleToGraveAsCost() end function s.discost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.discfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.discfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g=Duel.SelectMatchingCard(tp,s.discfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.discfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil) Duel.SendtoGrave(g,REASON_COST) end function s.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -130,7 +130,7 @@ function s.dmcon(e,tp,eg,ep,ev,re,r,rp) return (a:IsControler(tp) or (d and d:IsControler(tp))) and Duel.GetFlagEffect(tp,id)==0 end function s.dmfilter(c) - return c:IsMonster() and c:IsAbleToHandAsCost() and c:IsSetCard(0x99) + return c:IsMonster() and c:IsAbleToHandAsCost() and c:IsSetCard(SET_ODD_EYES) end function s.dmcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.dmfilter,tp,LOCATION_MZONE,0,1,e:GetLabelObject()) end @@ -170,7 +170,7 @@ function s.dm2con(e,tp,eg,ep,ev,re,r,rp) return (a:IsControler(tp) or (d and d:IsControler(tp))) and Duel.GetFlagEffect(tp,id+1)==0 end function s.dm2filter(c) - return c:IsMonster() and c:IsAbleToGraveAsCost() and c:IsSetCard(0x99) + return c:IsMonster() and c:IsAbleToGraveAsCost() and c:IsSetCard(SET_ODD_EYES) end function s.dm2cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.dm2filter,tp,LOCATION_HAND,0,2,nil) end @@ -210,4 +210,4 @@ function s.dmgop(e,tp,eg,ep,ev,re,r,rp) if ep==tp then Duel.Damage(1-tp,ev,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511015101.lua b/unofficial/c511015101.lua index b93f11f181..37c8eb04b8 100644 --- a/unofficial/c511015101.lua +++ b/unofficial/c511015101.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_names={47198668} function s.filter2(c,e,tp,m,f) - return c:IsType(TYPE_FUSION) and c:IsSetCard(0x10af) and (not f or f(c)) + return c:IsType(TYPE_FUSION) and c:IsSetCard(SET_DDD) and (not f or f(c)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,tp) end function s.fcheck(tp,sg,fc,mg) @@ -115,4 +115,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511015103.lua b/unofficial/c511015103.lua index 5996f702a6..21b4c7fc97 100644 --- a/unofficial/c511015103.lua +++ b/unofficial/c511015103.lua @@ -110,4 +110,4 @@ function s.disop(tc,c) local e2=e1:Clone() e2:SetCode(EFFECT_DISABLE_EFFECT) tc:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511015104.lua b/unofficial/c511015104.lua index b72f6dcfae..3a178c76a6 100644 --- a/unofficial/c511015104.lua +++ b/unofficial/c511015104.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_names={16178681,id+1} function s.counterfilter(c) - return not c:IsSummonType(SUMMON_TYPE_PENDULUM) + return not c:IsPendulumSummoned() end function s.splimit(e,c,sump,sumtype,sumpos,targetp,se) return sumtype&SUMMON_TYPE_PENDULUM==SUMMON_TYPE_PENDULUM @@ -134,4 +134,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,g) end end -end +end \ No newline at end of file diff --git a/unofficial/c511015105.lua b/unofficial/c511015105.lua index 80d322084b..2400760ee0 100644 --- a/unofficial/c511015105.lua +++ b/unofficial/c511015105.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_names={16178681,id+1} function s.counterfilter(c) - return not c:IsSummonType(SUMMON_TYPE_PENDULUM) + return not c:IsPendulumSummoned() end function s.splimit(e,c,sump,sumtype,sumpos,targetp,se) return sumtype&SUMMON_TYPE_PENDULUM==SUMMON_TYPE_PENDULUM @@ -153,4 +153,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,g) end end -end +end \ No newline at end of file diff --git a/unofficial/c511015106.lua b/unofficial/c511015106.lua index 7c2351e34e..b4548a25e7 100644 --- a/unofficial/c511015106.lua +++ b/unofficial/c511015106.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_names={16178681} function s.counterfilter(c) - return not c:IsSummonType(SUMMON_TYPE_PENDULUM) + return not c:IsPendulumSummoned() end function s.splimit(e,c,sump,sumtype,sumpos,targetp,se) return sumtype&SUMMON_TYPE_PENDULUM==SUMMON_TYPE_PENDULUM @@ -132,7 +132,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp,tc) end end function s.atkcon(e,tp,eg,ev,ep,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.IsBattlePhase() and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) + return Duel.IsTurnPlayer(tp) and Duel.IsBattlePhase() and (Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()) end function s.costfilter(c,code) return c:IsCode(code) and c:IsAbleToRemoveAsCost() @@ -168,4 +168,4 @@ function s.atkop(e,tp,eg,ev,ep,re,r,rp) e2:SetValue(1) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511015107.lua b/unofficial/c511015107.lua index 798e6e02a5..caad63dcd4 100644 --- a/unofficial/c511015107.lua +++ b/unofficial/c511015107.lua @@ -15,10 +15,10 @@ s.listed_series={0x10af} s.listed_names={47198668} function s.filter(c,e,tp,rel) if not c:IsType(TYPE_SYNCHRO) then return false end - if not c:IsSetCard(0x10af) then + if not c:IsSetCard(SET_DDD) then return c:IsSynchroSummonable(nil) else - local mg=Duel.GetMatchingGroup(Card.IsCanBeSynchroMaterial,tp,LOCATION_MZONE+LOCATION_HAND,0,nil,c) + local mg=Duel.GetMatchingGroup(Card.IsCanBeSynchroMaterial,tp,LOCATION_MZONE|LOCATION_HAND,0,nil,c) if c:IsSynchroSummonable(nil,mg) then return true end local mc=e:GetHandler() if not (e:IsHasType(EFFECT_TYPE_ACTIVATE) and (not rel or mc:IsRelateToEffect(e))) then return false end @@ -52,10 +52,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local tc=g:Select(tp,1,1,nil):GetFirst() - if not tc:IsSetCard(0x10af) then + if not tc:IsSetCard(SET_DDD) then Duel.SynchroSummon(tp,tc,nil) else - local mg=Duel.GetMatchingGroup(Card.IsCanBeSynchroMaterial,tp,LOCATION_MZONE+LOCATION_HAND,0,nil,tc) + local mg=Duel.GetMatchingGroup(Card.IsCanBeSynchroMaterial,tp,LOCATION_MZONE|LOCATION_HAND,0,nil,tc) local c=e:GetHandler() local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -79,4 +79,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511015108.lua b/unofficial/c511015108.lua index 6077f50802..9c775348ce 100644 --- a/unofficial/c511015108.lua +++ b/unofficial/c511015108.lua @@ -29,7 +29,7 @@ function s.defcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) end function s.deffilter(c) - return c:IsFaceup() and c:IsSetCard(0x9a) + return c:IsFaceup() and c:IsSetCard(SET_SUPERHEAVY_SAMURAI) end function s.deftg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.deffilter,tp,LOCATION_MZONE,0,1,nil) end @@ -57,4 +57,4 @@ function s.defop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL) e1:SetValue(c:GetDefense()) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511015109.lua b/unofficial/c511015109.lua index 0f4daea917..21e3ee2fe4 100644 --- a/unofficial/c511015109.lua +++ b/unofficial/c511015109.lua @@ -17,7 +17,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetTurnPlayer()~=tp and Duel.GetCurrentPhase()==PHASE_MAIN1 end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xe5) + return c:IsFaceup() and c:IsSetCard(SET_CIPHER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -65,4 +65,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511015110.lua b/unofficial/c511015110.lua index 2c994e0190..80b219884c 100644 --- a/unofficial/c511015110.lua +++ b/unofficial/c511015110.lua @@ -47,7 +47,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return ep==tp end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x2178) + return c:IsFaceup() and c:IsSetCard(SET_BATTLEGUARD) end function s.descon(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetHandler():GetFirstCardTarget() diff --git a/unofficial/c511015111.lua b/unofficial/c511015111.lua index e94964e09a..01ca2712b1 100644 --- a/unofficial/c511015111.lua +++ b/unofficial/c511015111.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x53) and c:IsType(TYPE_XYZ) + return c:IsFaceup() and c:IsSetCard(SET_CONSTELLAR) and c:IsType(TYPE_XYZ) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,2,nil) @@ -37,8 +37,8 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp) end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return eg:IsExists(Card.IsSetCard,1,nil,0x53) + return eg:IsExists(Card.IsSetCard,1,nil,SET_CONSTELLAR) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511015112.lua b/unofficial/c511015112.lua index 5672172780..a763f37f86 100644 --- a/unofficial/c511015112.lua +++ b/unofficial/c511015112.lua @@ -166,4 +166,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) end function s.dop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511015113.lua b/unofficial/c511015113.lua index 50121c74b7..d8e6940e56 100644 --- a/unofficial/c511015113.lua +++ b/unofficial/c511015113.lua @@ -58,4 +58,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetLabelObject(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511015114.lua b/unofficial/c511015114.lua index 7f59524929..17367ad416 100644 --- a/unofficial/c511015114.lua +++ b/unofficial/c511015114.lua @@ -44,7 +44,7 @@ function s.ntcon(e,c,minc) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end function s.spfilter(c,e,tp) - return c:IsSetCard(0x54) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GAGAGA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -73,14 +73,14 @@ end function s.efop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Hint(HINT_CARD,1,id) - local n = e:GetHandler():GetReasonCard():GetMaterial():FilterCount(Card.IsSetCard,nil,0x54) + local n = e:GetHandler():GetReasonCard():GetMaterial():FilterCount(Card.IsSetCard,nil,SET_GAGAGA) Duel.Draw(rp,n,REASON_EFFECT) end function s.filter(c,xyz,tp) - return c:IsFaceup() and c:IsSetCard(0x54,xyz,SUMMON_TYPE_XYZ) and c:IsCanBeXyzMaterial(xyz,tp) + return c:IsFaceup() and c:IsSetCard(SET_GAGAGA,xyz,SUMMON_TYPE_XYZ) and c:IsCanBeXyzMaterial(xyz,tp) end function s.xyzfilter(c,e,tp) - if not (c:IsType(TYPE_XYZ) and c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,true)) then return false end + if not (c:IsType(TYPE_XYZ) and c:IsSetCard(SET_NUMBER) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,true)) then return false end local mg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil,c,tp) return mg:GetFirst() and Duel.GetMZoneCount(tp,mg)>0 end diff --git a/unofficial/c511015115.lua b/unofficial/c511015115.lua index 77a449cbf9..9a0e9c6be7 100644 --- a/unofficial/c511015115.lua +++ b/unofficial/c511015115.lua @@ -54,7 +54,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Overlay(tc,g) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x36) + return c:IsFaceup() and c:IsSetCard(SET_MACHINA) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -152,4 +152,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511015116.lua b/unofficial/c511015116.lua index a5466e4aeb..3e77e06a18 100644 --- a/unofficial/c511015116.lua +++ b/unofficial/c511015116.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() - Fusion.AddProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x36),2,99) + Fusion.AddProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_MACHINA),2,99) --cannot special summon local e1=Effect.CreateEffect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) @@ -35,14 +35,14 @@ function s.splimit(e,se,sp,st) return se:GetHandler():IsCode(22666164) end function s.atkfilter(c) - return c:IsSetCard(0x36) and c:GetAttack()>=0 + return c:IsSetCard(SET_MACHINA) and c:GetAttack()>=0 end function s.atkval(e,c) local g=e:GetHandler():GetOverlayGroup():Filter(s.atkfilter,nil) return g:GetSum(Card.GetAttack) end function s.deffilter(c) - return c:IsSetCard(0x36) and c:GetDefense()>=0 + return c:IsSetCard(SET_MACHINA) and c:GetDefense()>=0 end function s.defval(e,c) local g=e:GetHandler():GetOverlayGroup():Filter(s.deffilter,nil) diff --git a/unofficial/c511015117.lua b/unofficial/c511015117.lua index fdf37d12d4..053dcf1ee3 100644 --- a/unofficial/c511015117.lua +++ b/unofficial/c511015117.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x16),3) + Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_ROID),3) Fusion.AddContactProc(c,s.contactfilter,s.contactop,true) --damage local e3=Effect.CreateEffect(c) @@ -92,7 +92,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e:Reset() end function s.descon(e,c) - return e:GetHandler():GetEquipGroup():FilterCount(Card.IsSetCard,nil,0x16)==0 + return e:GetHandler():GetEquipGroup():FilterCount(Card.IsSetCard,nil,SET_ROID)==0 end function s.damcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -110,4 +110,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511015118.lua b/unofficial/c511015118.lua index eff67bef20..fc8944d9bd 100644 --- a/unofficial/c511015118.lua +++ b/unofficial/c511015118.lua @@ -159,4 +159,4 @@ function s.leaveop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() c:Recreate(511015118) Duel.AdjustInstantly(c) -end +end \ No newline at end of file diff --git a/unofficial/c511015119.lua b/unofficial/c511015119.lua index 87f7b1c66b..ba56d42fb2 100644 --- a/unofficial/c511015119.lua +++ b/unofficial/c511015119.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) end s.listed_series={0x43} function s.tffilter(c) - return c:IsSetCard(0x43) and c:IsSpellTrap() and c:CheckActivateEffect(false,false,false)~=nil + return c:IsSetCard(SET_JUNK) and c:IsSpellTrap() and c:CheckActivateEffect(false,false,false)~=nil end function s.condition(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler()==Duel.GetAttackTarget() @@ -65,4 +65,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) etc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511015120.lua b/unofficial/c511015120.lua index e81a675642..a4ad9000f3 100644 --- a/unofficial/c511015120.lua +++ b/unofficial/c511015120.lua @@ -38,4 +38,4 @@ function s.synop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sc=Duel.SelectMatchingCard(tp,s.synfilter,tp,LOCATION_EXTRA,0,1,1,nil,mg):GetFirst() if sc then Duel.SynchroSummon(tp,sc,nil,mg) end -end +end \ No newline at end of file diff --git a/unofficial/c511015122.lua b/unofficial/c511015122.lua index 61c948561f..69bf00ba98 100644 --- a/unofficial/c511015122.lua +++ b/unofficial/c511015122.lua @@ -66,4 +66,4 @@ function s.damcon(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cc==0 or r&REASON_EFFECT==0 or cid~=e:GetLabel() then return val end return 0 -end +end \ No newline at end of file diff --git a/unofficial/c511015123.lua b/unofficial/c511015123.lua index fb895c4e98..c1a3659ef8 100644 --- a/unofficial/c511015123.lua +++ b/unofficial/c511015123.lua @@ -2,4 +2,4 @@ local s,id=GetID() function s.initial_effect(c) -end +end \ No newline at end of file diff --git a/unofficial/c511015124.lua b/unofficial/c511015124.lua index 934a16249f..8b53403a94 100644 --- a/unofficial/c511015124.lua +++ b/unofficial/c511015124.lua @@ -53,4 +53,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetTargetCards(e) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511015125.lua b/unofficial/c511015125.lua index 29c8155636..13d3e19bfd 100644 --- a/unofficial/c511015125.lua +++ b/unofficial/c511015125.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) end end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end @@ -37,4 +37,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511015126.lua b/unofficial/c511015126.lua index 626baf2e7d..3bc03004df 100644 --- a/unofficial/c511015126.lua +++ b/unofficial/c511015126.lua @@ -62,4 +62,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e4=e3:Clone() e4:SetCode(EFFECT_CHANGE_RSCALE) tc2:RegisterEffect(e4) -end +end \ No newline at end of file diff --git a/unofficial/c511015127.lua b/unofficial/c511015127.lua index 53de69a57f..0917dfb0b2 100644 --- a/unofficial/c511015127.lua +++ b/unofficial/c511015127.lua @@ -38,7 +38,7 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT+REASON_REPLACE,1-tp) end function s.hdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and not e:GetHandler():IsPreviousControler(tp) + return Duel.IsTurnPlayer(tp) and not e:GetHandler():IsPreviousControler(tp) end function s.hdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -51,4 +51,4 @@ function s.hdop(e,tp,eg,ep,ev,re,r,rp) local sg=g:RandomSelect(tp,1) Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511015128.lua b/unofficial/c511015128.lua index 46d0099aec..50690d4e23 100644 --- a/unofficial/c511015128.lua +++ b/unofficial/c511015128.lua @@ -53,4 +53,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if bc:IsRelateToBattle() then Duel.Destroy(bc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511015129.lua b/unofficial/c511015129.lua index 7e4a045602..a9f602b9ae 100644 --- a/unofficial/c511015129.lua +++ b/unofficial/c511015129.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) c:RegisterEffect(e2,false,REGISTER_FLAG_DETACH_XMAT) end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end function s.filter(c,seq,flag) return c:GetSequence()==4-seq or (flag~=0 and c:IsLocation(LOCATION_MZONE) and (c:GetSequence()==4-seq+1 or c:GetSequence()==4-seq-1)) @@ -40,4 +40,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_ONFIELD,nil,e:GetHandler():GetSequence(),e:GetHandler():GetFlagEffect(id+1)) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511015131.lua b/unofficial/c511015131.lua index d9b568c85d..18bf98b934 100644 --- a/unofficial/c511015131.lua +++ b/unofficial/c511015131.lua @@ -67,4 +67,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if n>ft then n=ft end local tg=Duel.SelectMatchingCard(tp,s.sfilter,tp,LOCATION_DECK,0,n-1,n-1,nil,e,tp,s_g) Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511015132.lua b/unofficial/c511015132.lua index 3be89ba7b8..df057545ed 100644 --- a/unofficial/c511015132.lua +++ b/unofficial/c511015132.lua @@ -101,5 +101,5 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,e:GetHandler():GetAttack(),REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511015133.lua b/unofficial/c511015133.lua index 1e94de6a93..71be11a89f 100644 --- a/unofficial/c511015133.lua +++ b/unofficial/c511015133.lua @@ -101,5 +101,5 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,e:GetHandler():GetAttack(),REASON_EFFECT) end function s.indes(e,c) - return not c:IsSetCard(0x48) + return not c:IsSetCard(SET_NUMBER) end \ No newline at end of file diff --git a/unofficial/c511015134.lua b/unofficial/c511015134.lua index 3dd63d39c6..29f1deba8c 100644 --- a/unofficial/c511015134.lua +++ b/unofficial/c511015134.lua @@ -57,7 +57,7 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end local sg=Group.CreateGroup() - local mg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE+LOCATION_ONFIELD,LOCATION_GRAVE+LOCATION_ONFIELD,nil,e) + local mg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE|LOCATION_ONFIELD,LOCATION_GRAVE|LOCATION_ONFIELD,nil,e) if chk==0 then return mg:IsExists(s.chkfilter,1,nil,mg,sg,e,tp) end local reset={} local tc @@ -148,4 +148,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) eff:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511016000.lua b/unofficial/c511016000.lua index 800b4144dd..024e07d048 100644 --- a/unofficial/c511016000.lua +++ b/unofficial/c511016000.lua @@ -112,4 +112,4 @@ function s.spcop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,c:GetPreviousControler(),1-c:GetPreviousControler(),false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511016001.lua b/unofficial/c511016001.lua index e95f1af3d6..c77eefd4f5 100644 --- a/unofficial/c511016001.lua +++ b/unofficial/c511016001.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) end s.listed_series={0x5} function s.filter(c) - return c:IsSetCard(0x5) and c:GetFlagEffect(CARD_REVERSAL_OF_FATE)>0 + return c:IsSetCard(SET_ARCANA_FORCE) and c:GetFlagEffect(CARD_REVERSAL_OF_FATE)>0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511016002.lua b/unofficial/c511016002.lua index fa08e40654..2d1135ccee 100644 --- a/unofficial/c511016002.lua +++ b/unofficial/c511016002.lua @@ -100,4 +100,4 @@ function s.unval(e,te) else return false end -end +end \ No newline at end of file diff --git a/unofficial/c511016003.lua b/unofficial/c511016003.lua index fe09707927..1ac8574a68 100644 --- a/unofficial/c511016003.lua +++ b/unofficial/c511016003.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.bantg(e,c) return e:GetLabelObject()==c -end +end \ No newline at end of file diff --git a/unofficial/c511016004.lua b/unofficial/c511016004.lua index 88a0833390..363ddb37e0 100644 --- a/unofficial/c511016004.lua +++ b/unofficial/c511016004.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.valcon(e,re,r,rp) return (r&REASON_BATTLE)~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511016005.lua b/unofficial/c511016005.lua index 35a5efd509..873ee05c46 100644 --- a/unofficial/c511016005.lua +++ b/unofficial/c511016005.lua @@ -50,7 +50,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.mspfilter(c,e,tp) - return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED+LOCATION_EXTRA) + return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLocation(LOCATION_GRAVE|LOCATION_REMOVED|LOCATION_EXTRA) end function s.lvfilter(c) return c:GetLevel()~=4 @@ -85,7 +85,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(0) e1:SetReset(RESET_EVENT+RESETS_STANDARD) spgc:RegisterEffect(e1,true) - spgc:RegisterFlagEffect(51116005,RESET_PHASE+PHASE_END,0,1,fid) + spgc:RegisterFlagEffect(51116005,RESET_PHASE|PHASE_END,0,1,fid) spgc=spg:GetNext() end Duel.SpecialSummonComplete() @@ -181,8 +181,8 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) if #sg>0 and (r==REASON_SYNCHRO or r==REASON_XYZ) then local tc=sg:GetFirst() while tc do - tc:RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,0) + tc:RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,0) tc=sg:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511016007.lua b/unofficial/c511016007.lua index de8af5696b..97a14a048a 100644 --- a/unofficial/c511016007.lua +++ b/unofficial/c511016007.lua @@ -54,4 +54,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) tc:ReleaseEffectRelation(re) Duel.SendtoGrave(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511016008.lua b/unofficial/c511016008.lua index 0d7696b8fe..b0f6f358ca 100644 --- a/unofficial/c511016008.lua +++ b/unofficial/c511016008.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) tc2:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511016009.lua b/unofficial/c511016009.lua index 81f411f260..e528e2b208 100644 --- a/unofficial/c511016009.lua +++ b/unofficial/c511016009.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetAttackTarget() - return d and d:IsPosition(POS_FACEUP_ATTACK) and d:IsSetCard(0xba) and d:IsLevelBelow(4) and d:IsControler(tp) + return d and d:IsPosition(POS_FACEUP_ATTACK) and d:IsSetCard(SET_RAIDRAPTOR) and d:IsLevelBelow(4) and d:IsControler(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local a=Duel.GetAttackTarget() @@ -43,4 +43,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511017001.lua b/unofficial/c511017001.lua index de48d5d0be..bc97520b33 100644 --- a/unofficial/c511017001.lua +++ b/unofficial/c511017001.lua @@ -15,4 +15,4 @@ end function s.spcon(e,c) if c==nil then return true end return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0,nil)==0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511017002.lua b/unofficial/c511017002.lua index 038373ea10..a4cfe14c93 100644 --- a/unofficial/c511017002.lua +++ b/unofficial/c511017002.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() --fusion material - Fusion.AddProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x5008),2,3) + Fusion.AddProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_VISION_HERO),2,3) --summon success local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE) @@ -24,4 +24,4 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) e1:SetValue(c:GetBaseAttack()*2) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511017003.lua b/unofficial/c511017003.lua index 53ead278ea..a290b828bf 100644 --- a/unofficial/c511017003.lua +++ b/unofficial/c511017003.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x3b} function s.filter(c,e,tp) - return c:IsSetCard(0x3b) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_RED_EYES) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) and c:IsReason(REASON_DESTROY) and c:GetTurnID()==Duel.GetTurnCount() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511017004.lua b/unofficial/c511017004.lua index afe401c8f5..aa62f85169 100644 --- a/unofficial/c511017004.lua +++ b/unofficial/c511017004.lua @@ -25,4 +25,4 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.Damage(1-tp,800,REASON_EFFECT)>0 then Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511018000.lua b/unofficial/c511018000.lua index b170ed8c4a..20179f2e0e 100644 --- a/unofficial/c511018000.lua +++ b/unofficial/c511018000.lua @@ -58,4 +58,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511018001.lua b/unofficial/c511018001.lua index 00889dc048..1d91b898bd 100644 --- a/unofficial/c511018001.lua +++ b/unofficial/c511018001.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(s.drcon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.drtg) e2:SetOperation(s.drop) c:RegisterEffect(e2) @@ -59,4 +59,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) and a and not a:IsImmuneToEffect(e) and a:IsRelateToBattle() and a:GetAttackableTarget() and a:GetAttackableTarget():IsContains(tc) then Duel.ChangeAttackTarget(tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511018003.lua b/unofficial/c511018003.lua index f44257f3d4..965e1b0dde 100644 --- a/unofficial/c511018003.lua +++ b/unofficial/c511018003.lua @@ -28,4 +28,4 @@ function s.operation(e,tp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511018004.lua b/unofficial/c511018004.lua index 042fac0912..0d6327b317 100644 --- a/unofficial/c511018004.lua +++ b/unofficial/c511018004.lua @@ -83,4 +83,4 @@ end soldier ari 511002428 army ant 22493812 army ant (anime) id+1 ---]] +--]] \ No newline at end of file diff --git a/unofficial/c511018006.lua b/unofficial/c511018006.lua index dd506ccbae..3ab0fdc4e8 100644 --- a/unofficial/c511018006.lua +++ b/unofficial/c511018006.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_FREE_CHAIN) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.target) e2:SetOperation(s.operation) c:RegisterEffect(e2) @@ -56,4 +56,4 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511018007.lua b/unofficial/c511018007.lua index fd35fdf3c4..19c42c20db 100644 --- a/unofficial/c511018007.lua +++ b/unofficial/c511018007.lua @@ -30,13 +30,13 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.cfil(c,label) - return c:IsSetCard(0x10f3) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_PREDAPLANT) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) and (label~=1 or Duel.IsExistingTarget(Card.IsFaceup,0,LOCATION_MZONE,LOCATION_MZONE,1,c)) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfil,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,e:GetLabel()) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfil,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,e:GetLabel()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfil,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,e:GetLabel()) + local g=Duel.SelectMatchingCard(tp,s.cfil,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,e:GetLabel()) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -78,4 +78,4 @@ function s.retop(e,tp,eg,ev,ep,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,Duel.GetBattleDamage(tp)/2) -end +end \ No newline at end of file diff --git a/unofficial/c511018008.lua b/unofficial/c511018008.lua index 1d6ac8f8b6..ba627e5d91 100644 --- a/unofficial/c511018008.lua +++ b/unofficial/c511018008.lua @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if ht2<6 then Duel.Draw(1-tp,6-ht2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511018009.lua b/unofficial/c511018009.lua index 0940ede16f..70bcc04383 100644 --- a/unofficial/c511018009.lua +++ b/unofficial/c511018009.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x54) and c:GetLevel()>=4 + return c:IsFaceup() and c:IsSetCard(SET_GAGAGA) and c:GetLevel()>=4 end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -57,4 +57,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_CANNOT_ATTACK) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) rc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511018010.lua b/unofficial/c511018010.lua index 9f19567104..44deb05511 100644 --- a/unofficial/c511018010.lua +++ b/unofficial/c511018010.lua @@ -12,7 +12,7 @@ function s.con(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local ec=e:GetHandler():GetReasonCard() local ecg=ec:GetMaterial() - return #ecg==2 and ecg:IsExists(Card.IsSetCard,1,c,0x54) and r==REASON_XYZ + return #ecg==2 and ecg:IsExists(Card.IsSetCard,1,c,SET_GAGAGA) and r==REASON_XYZ end function s.filter(c) return c:IsFaceup() and c:IsType(TYPE_XYZ) @@ -34,4 +34,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511018011.lua b/unofficial/c511018011.lua index 1934177112..779da9ac8a 100644 --- a/unofficial/c511018011.lua +++ b/unofficial/c511018011.lua @@ -45,7 +45,7 @@ function s.clearop() s[1]:Clear() end function s.condition(e,tp,eg,ev,ep,re,r,rp) - return Duel.GetCurrentPhase()==PHASE_MAIN2 and Duel.GetTurnPlayer()==tp + return Duel.GetCurrentPhase()==PHASE_MAIN2 and Duel.IsTurnPlayer(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local g=s[tp] @@ -58,4 +58,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511018012.lua b/unofficial/c511018012.lua index 84db3417b3..3e14ee0efc 100644 --- a/unofficial/c511018012.lua +++ b/unofficial/c511018012.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.filter(c) - return c:IsSetCard(0xaf) and c:IsMonster() and c:IsLevelBelow(4) and c:IsAbleToHand() + return c:IsSetCard(SET_DD) and c:IsMonster() and c:IsLevelBelow(4) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -45,7 +45,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) end end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c511018013.lua b/unofficial/c511018013.lua index 8d8174d00d..023046571b 100644 --- a/unofficial/c511018013.lua +++ b/unofficial/c511018013.lua @@ -27,7 +27,7 @@ function s.condition(e,tp,eg,ev,ep,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil end function s.spfilter(c,e,tp) - return c:IsSetCard(0x9f) and c:IsAttackBelow(800) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PERFORMAPAL) and c:IsAttackBelow(800) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ev,ep,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 diff --git a/unofficial/c511018015.lua b/unofficial/c511018015.lua index fb485a3929..c3fef7f49d 100644 --- a/unofficial/c511018015.lua +++ b/unofficial/c511018015.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 end diff --git a/unofficial/c511018016.lua b/unofficial/c511018016.lua index ae5882adfb..9d844c807b 100644 --- a/unofficial/c511018016.lua +++ b/unofficial/c511018016.lua @@ -58,23 +58,23 @@ function s.initial_effect(c) end function s.chk(e,tp,eg,ep,ev,re,r,rp) for tc in aux.Next(eg) do - if tc:IsSetCard(0x12) then tc:RegisterFlagEffect(id,0,0,0) end + if tc:IsSetCard(SET_FROG) then tc:RegisterFlagEffect(id,0,0,0) end end end function s.cfilter(c,tp) - return c:IsSetCard(0x12) and (c:IsControler(tp) or c:IsFaceup()) + return c:IsSetCard(SET_FROG) and (c:IsControler(tp) or c:IsFaceup()) end function s.valcheck(e,c) local g=c:GetMaterial() - e:SetLabel(g:FilterCount(Card.IsSetCard,nil,0x12)) + e:SetLabel(g:FilterCount(Card.IsSetCard,nil,SET_FROG)) end function s.cbacondition(e,tp,eg,ep,ev,re,r,rp) local lo=e:GetLabelObject():GetLabel() - return e:GetHandler():IsSummonType(SUMMON_TYPE_TRIBUTE) and lo>=1 + return e:GetHandler():IsTributeSummoned() and lo>=1 end function s.descon(e,tp,eg,ep,ev,re,r,rp) local lo=e:GetLabelObject():GetLabel() - return e:GetHandler():IsSummonType(SUMMON_TYPE_TRIBUTE) and lo>=2 + return e:GetHandler():IsTributeSummoned() and lo>=2 end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -87,14 +87,14 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) local lo=e:GetLabelObject():GetLabel() - return e:GetHandler():IsSummonType(SUMMON_TYPE_TRIBUTE) and lo>=3 + return e:GetHandler():IsTributeSummoned() and lo>=3 end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) end function s.filter(c,e,tp) - return c:IsSetCard(0x12) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetFlagEffect(id)>0 + return c:IsSetCard(SET_FROG) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetFlagEffect(id)>0 end function s.spop(e,tp,eg,ep,ev,re,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) diff --git a/unofficial/c511018018.lua b/unofficial/c511018018.lua index 01bc09489a..55d09e5bbc 100644 --- a/unofficial/c511018018.lua +++ b/unofficial/c511018018.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ev,ep,re,r,rp) Duel.HintSelection(sg) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511018019.lua b/unofficial/c511018019.lua index bde92b0edf..a51553af3e 100644 --- a/unofficial/c511018019.lua +++ b/unofficial/c511018019.lua @@ -18,4 +18,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511018020.lua b/unofficial/c511018020.lua index 1a5c2ed997..f1ad335258 100644 --- a/unofficial/c511018020.lua +++ b/unofficial/c511018020.lua @@ -37,4 +37,4 @@ function s.cannotdisfilter(e,ct) if not trig_e:IsMonsterEffect() then return false end local trig_c=trig_e:GetHandler() return trig_c:IsControler(e:GetHandlerPlayer()) and trig_c:IsLocation(LOCATION_MZONE) and trig_c:IsRace(RACE_DRAGON) and trig_c:IsFaceup() -end +end \ No newline at end of file diff --git a/unofficial/c511018021.lua b/unofficial/c511018021.lua index 72a18d5146..9730bace3f 100644 --- a/unofficial/c511018021.lua +++ b/unofficial/c511018021.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511018022.lua b/unofficial/c511018022.lua index c62e07b113..52d6db1ab8 100644 --- a/unofficial/c511018022.lua +++ b/unofficial/c511018022.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511018023.lua b/unofficial/c511018023.lua index a9e567c868..e6dce080d2 100644 --- a/unofficial/c511018023.lua +++ b/unofficial/c511018023.lua @@ -36,7 +36,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(tc,REASON_COST) end function s.filter(c) - return c:IsSpellTrap() and c:IsSetCard(0x46) and c:IsAbleToRemove() + return c:IsSpellTrap() and c:IsSetCard(SET_FUSION) and c:IsAbleToRemove() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>0 end @@ -60,7 +60,7 @@ end function s.negcon(e,tp,eg,ep,ev,re,r,rp) if rp==tp then return false end local rc=re:GetHandler() - return rc:IsSetCard(0x46) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) + return rc:IsSetCard(SET_FUSION) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.IsChainNegatable(ev) end function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -75,4 +75,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(1-tp,300,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511018024.lua b/unofficial/c511018024.lua index dcfab58e53..e78b4bc143 100644 --- a/unofficial/c511018024.lua +++ b/unofficial/c511018024.lua @@ -17,10 +17,10 @@ function s.initial_effect(c) end s.listed_series={0xc008} function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,e,tp,tid) - return c:GetReason()&0x21==0x21 and c:GetTurnID()==tid-1 and c:IsSetCard(0xc008) + return c:GetReason()&SET_EARTHBOUND==SET_EARTHBOUND and c:GetTurnID()==tid-1 and c:IsSetCard(SET_DESTINY_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -35,4 +35,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511018028.lua b/unofficial/c511018028.lua index 3d6bfc5398..a75d9afdba 100644 --- a/unofficial/c511018028.lua +++ b/unofficial/c511018028.lua @@ -37,4 +37,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511018029.lua b/unofficial/c511018029.lua index ca7c5b6b8c..5435eecdaf 100644 --- a/unofficial/c511018029.lua +++ b/unofficial/c511018029.lua @@ -6,4 +6,4 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_XMATERIAL) e1:SetCode(EFFECT_PIERCE) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511018030.lua b/unofficial/c511018030.lua index c46b5ac870..d8438effa4 100644 --- a/unofficial/c511018030.lua +++ b/unofficial/c511018030.lua @@ -54,4 +54,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(-500) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511018035.lua b/unofficial/c511018035.lua index bd59bdc46f..b82d04e8c4 100644 --- a/unofficial/c511018035.lua +++ b/unofficial/c511018035.lua @@ -70,4 +70,4 @@ function cid.eacondition(e,tp) end function cid.eatarget(e,c) return e:GetHandler():GetMutualLinkedGroup():IsContains(c) and c:IsAttribute(ATTRIBUTE_EARTH) -end +end \ No newline at end of file diff --git a/unofficial/c511018037.lua b/unofficial/c511018037.lua index e569f67349..cca6894941 100644 --- a/unofficial/c511018037.lua +++ b/unofficial/c511018037.lua @@ -38,4 +38,4 @@ function cid.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511018508.lua b/unofficial/c511018508.lua index 8467e1321e..58a13a2875 100644 --- a/unofficial/c511018508.lua +++ b/unofficial/c511018508.lua @@ -7,7 +7,7 @@ function s.initial_effect(c) e1:SetDescription(aux.Stringid(66457407,0)) e1:SetCategory(CATEGORY_LVCHANGE) e1:SetType(EFFECT_TYPE_IGNITION) - e1:SetRange(LOCATION_MZONE+LOCATION_HAND) + e1:SetRange(LOCATION_MZONE|LOCATION_HAND) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetTarget(s.lvtg) e1:SetOperation(s.lvop) @@ -21,10 +21,10 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.tgval(e,c) - return c:IsSetCard(0xba) + return c:IsSetCard(SET_RAIDRAPTOR) end function s.lvfilter(c,code,lv) - return c:IsFaceup() and c:IsSetCard(0xba) and c:GetLevel()>0 and (c:GetCode()~=code or c:GetLevel()~=lv) + return c:IsFaceup() and c:IsSetCard(SET_RAIDRAPTOR) and c:GetLevel()>0 and (c:GetCode()~=code or c:GetLevel()~=lv) end function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local c=e:GetHandler() @@ -50,4 +50,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(tc:GetCode()) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511018510.lua b/unofficial/c511018510.lua index b75a7549c7..d6b6cef483 100644 --- a/unofficial/c511018510.lua +++ b/unofficial/c511018510.lua @@ -22,12 +22,12 @@ end function s.filter1(c,e,tp) local rk=c:GetRank() local pg=aux.GetMustBeMaterialGroup(tp,Group.FromCards(c),tp,nil,nil,REASON_XYZ) - return #pg<=1 and c:IsFaceup() and c:IsSetCard(0xe5) and (rk>0 or c:IsStatus(STATUS_NO_LEVEL)) + return #pg<=1 and c:IsFaceup() and c:IsSetCard(SET_CIPHER) and (rk>0 or c:IsStatus(STATUS_NO_LEVEL)) and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,rk+1,pg) end function s.filter2(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end - return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(0xe5) and mc:IsCanBeXyzMaterial(c,tp) + return c:IsType(TYPE_XYZ) and mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(SET_CIPHER) and mc:IsCanBeXyzMaterial(c,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and (#pg<=0 or pg:IsContains(mc)) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end @@ -145,4 +145,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511018512.lua b/unofficial/c511018512.lua index fcf9b12df4..a90e2c1a5a 100644 --- a/unofficial/c511018512.lua +++ b/unofficial/c511018512.lua @@ -63,4 +63,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,dam,REASON_EFFECT) Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511020000.lua b/unofficial/c511020000.lua index c7cf248901..21e54b3c77 100644 --- a/unofficial/c511020000.lua +++ b/unofficial/c511020000.lua @@ -62,7 +62,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.adcon(e,tp,eg,ep,ev,re,r,rp) local bc=e:GetHandler():GetBattleTarget() - return bc and bc:IsFaceup() and bc:IsSummonType(SUMMON_TYPE_SPECIAL) + return bc and bc:IsFaceup() and bc:IsSpecialSummoned() end function s.adop(e,tp,eg,ep,ev,re,r,rp) local bc=e:GetHandler():GetBattleTarget() @@ -79,7 +79,7 @@ function s.adop(e,tp,eg,ep,ev,re,r,rp) end end function s.matfilter(c,sc) - return c:IsSetCard(0xba) and c:IsType(TYPE_XYZ,sc,SUMMON_TYPE_XYZ) and c:IsRankBelow(5) + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsType(TYPE_XYZ,sc,SUMMON_TYPE_XYZ) and c:IsRankBelow(5) end function s.valcheck(e,c) local g=c:GetMaterial() @@ -90,10 +90,10 @@ function s.valcheck(e,c) end end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetLabel()==1 + return e:GetHandler():IsXyzSummoned() and e:GetLabel()==1 end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsSummonType(SUMMON_TYPE_SPECIAL) end + if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsSpecialSummoned() end if chk==0 then return Duel.IsExistingTarget(Card.IsSummonType,tp,0,LOCATION_MZONE,1,nil,SUMMON_TYPE_SPECIAL) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectTarget(tp,Card.IsSummonType,tp,0,LOCATION_MZONE,1,1,nil,SUMMON_TYPE_SPECIAL) @@ -109,4 +109,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,dam,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511020002.lua b/unofficial/c511020002.lua index 240162bfdb..f8dd68850e 100644 --- a/unofficial/c511020002.lua +++ b/unofficial/c511020002.lua @@ -33,4 +33,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511020003.lua b/unofficial/c511020003.lua index 1d92d2fb0f..b21d28a1df 100644 --- a/unofficial/c511020003.lua +++ b/unofficial/c511020003.lua @@ -26,4 +26,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local sg=g:Filter(Card.IsRelateToEffect,nil,e) Duel.SendtoHand(sg,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511020004.lua b/unofficial/c511020004.lua index abe7601ff5..1ea9533f12 100644 --- a/unofficial/c511020004.lua +++ b/unofficial/c511020004.lua @@ -20,13 +20,13 @@ function s.initial_effect(c) e2:SetCategory(CATEGORY_ATKCHANGE) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetOperation(s.operation) c:RegisterEffect(e2) end s.listed_series={0x54} function s.spfilter(c,e,tp) - return c:IsSetCard(0x54) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GAGAGA) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -53,7 +53,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetAttacker() - if tc and tc:IsSetCard(0x54) and tc:IsControler(tp) and Duel.GetAttackTarget() and not Duel.GetAttackTarget():IsControler(tp) + if tc and tc:IsSetCard(SET_GAGAGA) and tc:IsControler(tp) and Duel.GetAttackTarget() and not Duel.GetAttackTarget():IsControler(tp) and Duel.SelectEffectYesNo(tp,e:GetHandler()) then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_SINGLE) @@ -68,4 +68,4 @@ end function s.atkcon(e) return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and Duel.GetAttackTarget() and not Duel.GetAttackTarget():IsControler(e:GetHandlerPlayer()) -end +end \ No newline at end of file diff --git a/unofficial/c511020005.lua b/unofficial/c511020005.lua index 12bde34518..d238d6998c 100644 --- a/unofficial/c511020005.lua +++ b/unofficial/c511020005.lua @@ -17,7 +17,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(tp)<=2000 end function s.filter(c,e,tp) - return c:IsSetCard(0x1083) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GIMMICK_PUPPET) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511020007.lua b/unofficial/c511020007.lua index 497147317f..6148bccb60 100644 --- a/unofficial/c511020007.lua +++ b/unofficial/c511020007.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tg then Duel.SpecialSummon(tg,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511020008.lua b/unofficial/c511020008.lua index bf7b8a4331..01df068f49 100644 --- a/unofficial/c511020008.lua +++ b/unofficial/c511020008.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511020010.lua b/unofficial/c511020010.lua index 3c1cf3bf39..d1444321dc 100644 --- a/unofficial/c511020010.lua +++ b/unofficial/c511020010.lua @@ -80,5 +80,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(LOCATION_REMOVED) c:RegisterEffect(e1,true) end -end - +end \ No newline at end of file diff --git a/unofficial/c511020011.lua b/unofficial/c511020011.lua index ba55a68bce..c3f4cf14f1 100644 --- a/unofficial/c511020011.lua +++ b/unofficial/c511020011.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) --Change this card to Defense Position Duel.ChangePosition(c,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511021000.lua b/unofficial/c511021000.lua index 7c14e75cfe..6fbdedcba7 100644 --- a/unofficial/c511021000.lua +++ b/unofficial/c511021000.lua @@ -72,4 +72,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511021002.lua b/unofficial/c511021002.lua index e1bf71619f..7100bf952a 100644 --- a/unofficial/c511021002.lua +++ b/unofficial/c511021002.lua @@ -44,4 +44,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511021003.lua b/unofficial/c511021003.lua index bf3fb93ec3..57ad0335be 100644 --- a/unofficial/c511021003.lua +++ b/unofficial/c511021003.lua @@ -31,4 +31,4 @@ function s.atklimit(e,c) end function s.valcon(e,re,r,rp) return r&REASON_BATTLE~=0 -end +end \ No newline at end of file diff --git a/unofficial/c511021004.lua b/unofficial/c511021004.lua index 5c33a38cd4..d9d3000a24 100644 --- a/unofficial/c511021004.lua +++ b/unofficial/c511021004.lua @@ -22,4 +22,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local dam=Duel.GetFieldGroupCount(p,LOCATION_MZONE,0)*500 Duel.Damage(p,dam,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511021005.lua b/unofficial/c511021005.lua index a6ef475c3d..08f459f61b 100644 --- a/unofficial/c511021005.lua +++ b/unofficial/c511021005.lua @@ -32,4 +32,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511021006.lua b/unofficial/c511021006.lua index 8fe5297f33..34ca2d5570 100644 --- a/unofficial/c511021006.lua +++ b/unofficial/c511021006.lua @@ -65,4 +65,4 @@ function s.adval(e,c) if not bc then return 0 end local tc=not bc:IsControler(e:GetOwnerPlayer()) and bc or e:GetHandler() return tc:GetAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511021007.lua b/unofficial/c511021007.lua index 5ad9c11377..8b7af61149 100644 --- a/unofficial/c511021007.lua +++ b/unofficial/c511021007.lua @@ -135,4 +135,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511021008.lua b/unofficial/c511021008.lua index d5d8bec313..5d7a0eaf56 100644 --- a/unofficial/c511021008.lua +++ b/unofficial/c511021008.lua @@ -20,4 +20,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511021009.lua b/unofficial/c511021009.lua index 75ff0b67d8..2b81529ef3 100644 --- a/unofficial/c511021009.lua +++ b/unofficial/c511021009.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511021010.lua b/unofficial/c511021010.lua index f55ed5e09e..34e20a40f3 100644 --- a/unofficial/c511021010.lua +++ b/unofficial/c511021010.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.atktg) e2:SetOperation(s.atkop) c:RegisterEffect(e2) @@ -49,4 +49,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetOverlayCount()*500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511022001.lua b/unofficial/c511022001.lua index 9ef7128c45..c6aa28e39c 100644 --- a/unofficial/c511022001.lua +++ b/unofficial/c511022001.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x11a} function s.filter(c) - return c:IsFaceup() and c:IsLinkMonster() and c:IsSetCard(0x11a) + return c:IsFaceup() and c:IsLinkMonster() and c:IsSetCard(SET_DINOWRESTLER) end function s.condition(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) @@ -70,7 +70,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SSet(tp,sg:GetFirst()) end end - if Duel.GetTurnPlayer()==1-tp and Duel.IsAbleToEnterBP() then + if Duel.IsTurnPlayer(1-tp) and Duel.IsAbleToEnterBP() then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CANNOT_EP) @@ -83,4 +83,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.bpcondition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511023002.lua b/unofficial/c511023002.lua index 2bdb0bab83..6559b5d75b 100644 --- a/unofficial/c511023002.lua +++ b/unofficial/c511023002.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_FREE_CHAIN) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsAttackPos() then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEDOWN_DEFENSE,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511023004.lua b/unofficial/c511023004.lua index 9ce0e6f9d1..1dcb8888b0 100644 --- a/unofficial/c511023004.lua +++ b/unofficial/c511023004.lua @@ -26,4 +26,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511023005.lua b/unofficial/c511023005.lua index 361ef7cc8e..74edf5672c 100644 --- a/unofficial/c511023005.lua +++ b/unofficial/c511023005.lua @@ -57,4 +57,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511023006.lua b/unofficial/c511023006.lua index 40ce05439f..db22bfdff5 100644 --- a/unofficial/c511023006.lua +++ b/unofficial/c511023006.lua @@ -41,4 +41,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) end function s.atkval(e,c) return Duel.GetFieldGroupCount(0,LOCATION_ONFIELD,LOCATION_ONFIELD)*400 -end +end \ No newline at end of file diff --git a/unofficial/c511023008.lua b/unofficial/c511023008.lua index bbf49a13af..ba28134683 100644 --- a/unofficial/c511023008.lua +++ b/unofficial/c511023008.lua @@ -36,4 +36,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,TYPE_SPELL+TYPE_TRAP) local ct=Duel.Destroy(g,REASON_EFFECT) Duel.Damage(1-tp,ct*500,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511023011.lua b/unofficial/c511023011.lua index c58f718bb6..210bf798ee 100644 --- a/unofficial/c511023011.lua +++ b/unofficial/c511023011.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x8),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_WATER)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_HERO),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_WATER)) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) diff --git a/unofficial/c511023012.lua b/unofficial/c511023012.lua index ce9b78ec93..b3af88c3f6 100644 --- a/unofficial/c511023012.lua +++ b/unofficial/c511023012.lua @@ -36,4 +36,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511023013.lua b/unofficial/c511023013.lua index a47244220b..9fc7ecaf6d 100644 --- a/unofficial/c511023013.lua +++ b/unofficial/c511023013.lua @@ -25,7 +25,7 @@ s.listed_series={0x3008} s.listed_names={74711057} s.material_setcode={0x8,0x3008} function s.cfilter(c,tp) - return c:IsSetCard(0x3008) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,c) + return c:IsSetCard(SET_ELEMENTAL_HERO) and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,c) end function s.filter(c) return c:IsFaceup() and c:IsCode(74711057) @@ -54,4 +54,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511023014.lua b/unofficial/c511023014.lua index b96d4d3438..385cb07646 100644 --- a/unofficial/c511023014.lua +++ b/unofficial/c511023014.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_series={0x3008} function s.filter(c,ec) - if not c:IsSetCard(0x3008) or not c:IsSummonableCard() then return false end + if not c:IsSetCard(SET_ELEMENTAL_HERO) or not c:IsSummonableCard() then return false end local e1=Effect.CreateEffect(ec) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetType(EFFECT_TYPE_SINGLE) @@ -50,4 +50,4 @@ end function s.ntcon(e,c,minc) if c==nil then return true end return minc==0 and c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511023015.lua b/unofficial/c511023015.lua index 9685c3fb9c..b6d39da7a9 100644 --- a/unofficial/c511023015.lua +++ b/unofficial/c511023015.lua @@ -75,5 +75,5 @@ function s.indesval(e,re) return re:IsActiveType(TYPE_SPELL) end function s.damcon2(e,tp,eg,ep,ev,re,r,rp) - return s.damcon(e,tp,eg,ep,ev,re,r,rp) and Duel.GetTurnPlayer()==tp -end + return s.damcon(e,tp,eg,ep,ev,re,r,rp) and Duel.IsTurnPlayer(tp) +end \ No newline at end of file diff --git a/unofficial/c511024000.lua b/unofficial/c511024000.lua index ed23cfb1fa..60503c47a9 100644 --- a/unofficial/c511024000.lua +++ b/unofficial/c511024000.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511024001.lua b/unofficial/c511024001.lua index 5e4555263f..8f18cd4741 100644 --- a/unofficial/c511024001.lua +++ b/unofficial/c511024001.lua @@ -21,7 +21,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) end function s.filter1(c) - return c:IsSetCard(0x3008) and c:IsAbleToHand() + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:IsAbleToHand() end function s.filter2(c) return c:IsCode(CARD_POLYMERIZATION) and c:IsAbleToHand() @@ -47,4 +47,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c511024005.lua b/unofficial/c511024005.lua index a300e08182..6c9f9cf3db 100644 --- a/unofficial/c511024005.lua +++ b/unofficial/c511024005.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511024006.lua b/unofficial/c511024006.lua index 4e6b4493de..a859ead250 100644 --- a/unofficial/c511024006.lua +++ b/unofficial/c511024006.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(sc,c) end end -end +end \ No newline at end of file diff --git a/unofficial/c511024007.lua b/unofficial/c511024007.lua index 87bf3216b3..485fd85392 100644 --- a/unofficial/c511024007.lua +++ b/unofficial/c511024007.lua @@ -31,4 +31,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SSet(tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511024008.lua b/unofficial/c511024008.lua index 75d7c6b240..8b37e34b24 100644 --- a/unofficial/c511024008.lua +++ b/unofficial/c511024008.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x48) and c:GetOverlayCount()==0 + return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(SET_NUMBER) and c:GetOverlayCount()==0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(tc,og) end end -end +end \ No newline at end of file diff --git a/unofficial/c511024009.lua b/unofficial/c511024009.lua index 607a95fd6f..f1843ea338 100644 --- a/unofficial/c511024009.lua +++ b/unofficial/c511024009.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x7) + return c:IsFaceup() and c:IsSetCard(SET_ANCIENT_GEAR) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then Duel.Damage(1-tp,tc:GetBaseAttack()/2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511024011.lua b/unofficial/c511024011.lua index 340bd788e6..ca713851ed 100644 --- a/unofficial/c511024011.lua +++ b/unofficial/c511024011.lua @@ -37,4 +37,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END+RESET_OPPO_TURN) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511025000.lua b/unofficial/c511025000.lua index 71dd9f191d..165bffe294 100644 --- a/unofficial/c511025000.lua +++ b/unofficial/c511025000.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() - Link.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x10b),3,3) + Link.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,SET_TINDANGLE),3,3) --atk local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -39,7 +39,7 @@ function s.atkval1(e,c) return Duel.GetMatchingGroupCount(Card.IsCode,c:GetControler(),LOCATION_GRAVE,0,nil,31759689,68860936)*1500 end function s.atkfilter(c) - return c:IsFaceup() and c:IsSetCard(0x10b) + return c:IsFaceup() and c:IsSetCard(SET_TINDANGLE) end function s.atkval2(e,c) return c:GetLinkedGroup():FilterCount(s.atkfilter,nil)*500 @@ -59,4 +59,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,75119041) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511025001.lua b/unofficial/c511025001.lua index 75008eff22..da459f66f3 100644 --- a/unofficial/c511025001.lua +++ b/unofficial/c511025001.lua @@ -114,4 +114,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511025002.lua b/unofficial/c511025002.lua index 19a311d8ac..4b3d816579 100644 --- a/unofficial/c511025002.lua +++ b/unofficial/c511025002.lua @@ -33,5 +33,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end - +end \ No newline at end of file diff --git a/unofficial/c511027000.lua b/unofficial/c511027000.lua index 78162604cd..6b937069cf 100644 --- a/unofficial/c511027000.lua +++ b/unofficial/c511027000.lua @@ -28,7 +28,7 @@ function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0xc008) + return c:IsFaceup() and c:IsSetCard(SET_DESTINY_HERO) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end @@ -45,4 +45,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(800) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511027001.lua b/unofficial/c511027001.lua index f1205476fa..4232a1533d 100644 --- a/unofficial/c511027001.lua +++ b/unofficial/c511027001.lua @@ -96,4 +96,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local dam=Duel.GetMatchingGroupCount(s.damfilter,tp,LOCATION_GRAVE,0,nil)*300 Duel.Damage(1-tp,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027002.lua b/unofficial/c511027002.lua index 4e4bd142dc..0a3a2044ff 100644 --- a/unofficial/c511027002.lua +++ b/unofficial/c511027002.lua @@ -50,10 +50,10 @@ function s.matcheck(g,lc,sumtype,tp) end function s.matcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetTurnID()==Duel.GetTurnCount() + return c:IsLinkSummoned() and c:GetTurnID()==Duel.GetTurnCount() end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.sfilter(c,e,tp,zone) return c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,tp,zone&0x1f) @@ -76,13 +76,13 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.atcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.atfilter(c,lg) - return c:IsSetCard(0x2157) and c:IsLinkMonster() and lg and lg:IsContains(c) + return c:IsSetCard(SET_SUNVINE) and c:IsLinkMonster() and lg and lg:IsContains(c) end function s.valfilter(c) - return c:IsSetCard(0x1157) and c:IsLinkMonster() + return c:IsSetCard(SET_SUNAVALON) and c:IsLinkMonster() end function s.attg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.atfilter(chkc,e:GetHandler():GetLinkedGroup()) end @@ -113,4 +113,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511027004.lua b/unofficial/c511027004.lua index 7e624e984d..9f04c62322 100644 --- a/unofficial/c511027004.lua +++ b/unofficial/c511027004.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,{id,1}) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.spextg) e2:SetOperation(s.spexop) c:RegisterEffect(e2) @@ -60,4 +60,4 @@ function s.spexop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP,Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_MZONE,LOCATION_MZONE,nil,TYPE_LINK):GetToBeLinkedZone(sc,tp,true)) end end -end +end \ No newline at end of file diff --git a/unofficial/c511027006.lua b/unofficial/c511027006.lua index b3f67dbeab..4994c0c517 100644 --- a/unofficial/c511027006.lua +++ b/unofficial/c511027006.lua @@ -66,4 +66,4 @@ end function s.damval(e,re,val,r,rp,rc) if r&(REASON_BATTLE|REASON_EFFECT)~=0 then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511027007.lua b/unofficial/c511027007.lua index d660a43839..dc3f9f1c78 100644 --- a/unofficial/c511027007.lua +++ b/unofficial/c511027007.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) end s.listed_series={0x10f} function s.filter(c,tp) - return c:IsSetCard(0x10f) and c:IsType(TYPE_LINK) + return c:IsSetCard(SET_BORREL) and c:IsType(TYPE_LINK) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.CheckReleaseGroupCost(tp,s.filter,1,false,nil,nil,tp) end @@ -73,4 +73,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(c:GetCounter(COUNTER_BR)*-100) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) d:RegisterEffect(e2) -end +end \ No newline at end of file diff --git a/unofficial/c511027009.lua b/unofficial/c511027009.lua index e2f1f41fb7..876b2b743f 100644 --- a/unofficial/c511027009.lua +++ b/unofficial/c511027009.lua @@ -31,7 +31,7 @@ function s.lnklimit(e,c) return c:IsLink(1) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.spfilter(c,e,tp,zone,link) return c:IsSetCard(0x577) and c:IsType(TYPE_LINK) and c:GetLink()0 and Duel.SpecialSummon(g,0,tp,tp,true,true,POS_FACEUP)>0 then g:GetFirst():CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511027012.lua b/unofficial/c511027012.lua index 6fd8d55b74..370f2532f4 100644 --- a/unofficial/c511027012.lua +++ b/unofficial/c511027012.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) end s.listed_series={0x1157} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x1157) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) @@ -77,4 +77,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511027013.lua b/unofficial/c511027013.lua index ff401cd390..c51f3f747c 100644 --- a/unofficial/c511027013.lua +++ b/unofficial/c511027013.lua @@ -108,7 +108,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.cfilter(c) - return c:IsSetCard(0x1157) and c:IsMonster() and c:IsFaceup() + return c:IsSetCard(SET_SUNAVALON) and c:IsMonster() and c:IsFaceup() end function s.tgocon(e) return Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) @@ -149,4 +149,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511027014.lua b/unofficial/c511027014.lua index 3a66d77cd7..e8310fba71 100644 --- a/unofficial/c511027014.lua +++ b/unofficial/c511027014.lua @@ -70,4 +70,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511027015.lua b/unofficial/c511027015.lua index 55b91d4c6e..ae4093ab80 100644 --- a/unofficial/c511027015.lua +++ b/unofficial/c511027015.lua @@ -44,7 +44,7 @@ function s.initial_effect(c) end s.listed_series={0x10f} function s.filter(c) - return c:IsSetCard(0x10f) and c:IsType(TYPE_LINK) + return c:IsSetCard(SET_BORREL) and c:IsType(TYPE_LINK) end function s.costfilter(c,tp) return c:IsType(TYPE_LINK) and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,0,1,c) @@ -84,7 +84,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.eqlimit(e,c) - return c:IsControler(e:GetOwnerPlayer()) and c:IsSetCard(0x10f) and c:IsType(TYPE_LINK) + return c:IsControler(e:GetOwnerPlayer()) and c:IsSetCard(SET_BORREL) and c:IsType(TYPE_LINK) end function s.efilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() and re:IsActivated() @@ -138,4 +138,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,Duel.GetBattleDamage(tp)/2) -end +end \ No newline at end of file diff --git a/unofficial/c511027016.lua b/unofficial/c511027016.lua index 119483dcd7..32110ac1ad 100644 --- a/unofficial/c511027016.lua +++ b/unofficial/c511027016.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(s.discon2) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.distg2) e2:SetOperation(s.disop2) c:RegisterEffect(e2) @@ -51,7 +51,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2) end - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end function s.discon2(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFlagEffect(tp,id)==0 and not Duel.GetAttacker():IsControler(tp) @@ -87,4 +87,4 @@ function s.disop2(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511027017.lua b/unofficial/c511027017.lua index c8805f2262..dde2bcd5fd 100644 --- a/unofficial/c511027017.lua +++ b/unofficial/c511027017.lua @@ -28,10 +28,10 @@ function s.initial_effect(c) end s.listed_series={0x10f,0x102} function s.tgfilter(c,e,tp) - return c:IsSetCard(0x10f) and c:IsType(TYPE_LINK)and Duel.IsExistingMatchingCard(s.exfilter,tp,LOCATION_EXTRA,0,1,nil,c,e,tp) + return c:IsSetCard(SET_BORREL) and c:IsType(TYPE_LINK)and Duel.IsExistingMatchingCard(s.exfilter,tp,LOCATION_EXTRA,0,1,nil,c,e,tp) end function s.exfilter(c,rel,e,tp) - return c:IsSetCard(0x10f) and c:IsType(TYPE_LINK) and c:GetLink()==rel:GetLink() + return c:IsSetCard(SET_BORREL) and c:IsType(TYPE_LINK) and c:GetLink()==rel:GetLink() and c:GetCode()~=rel:GetCode() and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 end @@ -91,7 +91,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(tc,REASON_EFFECT) end function s.cfilter(c) - return c:IsMonster() and c:IsSetCard(0x102) and c:IsAbleToRemoveAsCost() + return c:IsMonster() and c:IsSetCard(SET_ROKKET) and c:IsAbleToRemoveAsCost() end function s.gycost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() @@ -102,7 +102,7 @@ function s.gycost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.borfilter(c) - return c:IsSetCard(0x10f) and c:IsType(TYPE_LINK) + return c:IsSetCard(SET_BORREL) and c:IsType(TYPE_LINK) end function s.spzone(g,p) local zone=0 @@ -128,4 +128,4 @@ function s.gyop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,SUMMON_TYPE_LINK,tp,tp,false,false,POS_FACEUP,zone) tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511027018.lua b/unofficial/c511027018.lua index 673e944125..ab8ec2656f 100644 --- a/unofficial/c511027018.lua +++ b/unofficial/c511027018.lua @@ -61,4 +61,4 @@ end function s.distg(e,c) return c:Is_V_() -end +end \ No newline at end of file diff --git a/unofficial/c511027019.lua b/unofficial/c511027019.lua index 2e7dbddd92..9e2e078f66 100644 --- a/unofficial/c511027019.lua +++ b/unofficial/c511027019.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) e1:SetCode(EVENT_CHAINING) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.discon) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.distg) e1:SetOperation(s.disop) c:RegisterEffect(e1) @@ -103,4 +103,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511027020.lua b/unofficial/c511027020.lua index 39666c3de6..d545a000e0 100644 --- a/unofficial/c511027020.lua +++ b/unofficial/c511027020.lua @@ -95,4 +95,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) c:SetStatus(STATUS_SET_TURN,true) Duel.RaiseEvent(c,EVENT_SSET,e,REASON_EFFECT,tp,tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511027021.lua b/unofficial/c511027021.lua index 472dc6db66..7372fcda2d 100644 --- a/unofficial/c511027021.lua +++ b/unofficial/c511027021.lua @@ -121,4 +121,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511027023.lua b/unofficial/c511027023.lua index 4afe47eaff..aa400244e1 100644 --- a/unofficial/c511027023.lua +++ b/unofficial/c511027023.lua @@ -122,4 +122,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=e:GetLabelObject() local tg=g:Filter(s.desfilter,nil,e:GetLabel()) Duel.Destroy(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511027024.lua b/unofficial/c511027024.lua index 286edd7bcd..8ac67d9fce 100644 --- a/unofficial/c511027024.lua +++ b/unofficial/c511027024.lua @@ -61,4 +61,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511027025.lua b/unofficial/c511027025.lua index 9d27fea939..34e8fcc465 100644 --- a/unofficial/c511027025.lua +++ b/unofficial/c511027025.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511027027.lua b/unofficial/c511027027.lua index 2df3033873..a93f5c50df 100644 --- a/unofficial/c511027027.lua +++ b/unofficial/c511027027.lua @@ -25,12 +25,12 @@ function s.tfilter(c,lc,stype,tp) return c:IsSummonCode(lc,stype,tp,63977008) or c:IsHasEffect(20932152) end function s.cfilter(c) - return c:IsSetCard(0x43) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_JUNK) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) e:SetLabel(g:GetFirst():GetAttack()) Duel.Remove(g,POS_FACEUP,REASON_COST) end @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511027028.lua b/unofficial/c511027028.lua index 52c44c66a7..b64d0b9cb7 100644 --- a/unofficial/c511027028.lua +++ b/unofficial/c511027028.lua @@ -63,7 +63,7 @@ function s.initial_effect(c) c:RegisterEffect(e8) end function s.tgcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL) + return e:GetHandler():IsSpecialSummoned() end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -145,4 +145,4 @@ function s.adop(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UPDATE_DEFENSE) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511027029.lua b/unofficial/c511027029.lua index 3227ec0c7c..f7d8fe3cc5 100644 --- a/unofficial/c511027029.lua +++ b/unofficial/c511027029.lua @@ -51,7 +51,7 @@ function s.initial_effect(c) c:RegisterEffect(e8) end function s.tgcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL) + return e:GetHandler():IsSpecialSummoned() end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -77,4 +77,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsDefenseBelow(2000) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027031.lua b/unofficial/c511027031.lua index cd4f2d3b60..cc9f9288ef 100644 --- a/unofficial/c511027031.lua +++ b/unofficial/c511027031.lua @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.GetFieldGroupCount(tp,LOCATION_MZONE,LOCATION_MZONE) Duel.DiscardDeck(tp,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511027033.lua b/unofficial/c511027033.lua index 0735fdc730..4dc468dd35 100644 --- a/unofficial/c511027033.lua +++ b/unofficial/c511027033.lua @@ -55,4 +55,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511027034.lua b/unofficial/c511027034.lua index dee02c3c38..cf865f7113 100644 --- a/unofficial/c511027034.lua +++ b/unofficial/c511027034.lua @@ -58,4 +58,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) else c:CancelToGrave(false) end -end +end \ No newline at end of file diff --git a/unofficial/c511027035.lua b/unofficial/c511027035.lua index 9d83b4533e..d780cdda1a 100644 --- a/unofficial/c511027035.lua +++ b/unofficial/c511027035.lua @@ -71,4 +71,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511027036.lua b/unofficial/c511027036.lua index 4b964dc381..04ecc19a41 100644 --- a/unofficial/c511027036.lua +++ b/unofficial/c511027036.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.GetMatchingGroup(Card.IsOriginalCodeRule,tc:GetControler(),LOCATION_DECK,0,nil,tc:GetOriginalCodeRule()) Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027037.lua b/unofficial/c511027037.lua index 8936ba983c..5572c1fd0c 100644 --- a/unofficial/c511027037.lua +++ b/unofficial/c511027037.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511027044.lua b/unofficial/c511027044.lua index 3bdc248b3e..276f37ad79 100644 --- a/unofficial/c511027044.lua +++ b/unofficial/c511027044.lua @@ -35,4 +35,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027048.lua b/unofficial/c511027048.lua index 98bf9b5f5d..399be6bf8e 100644 --- a/unofficial/c511027048.lua +++ b/unofficial/c511027048.lua @@ -60,4 +60,4 @@ end function s.battg(e,c) local bc=e:GetHandler():GetBattleTarget() return bc and bc==c -end +end \ No newline at end of file diff --git a/unofficial/c511027049.lua b/unofficial/c511027049.lua index 28daaeb7c8..4dfda42087 100644 --- a/unofficial/c511027049.lua +++ b/unofficial/c511027049.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 and Duel.Destroy(g,REASON_EFFECT)>0 then Duel.Draw(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027050.lua b/unofficial/c511027050.lua index dba772b779..ccfd3c636f 100644 --- a/unofficial/c511027050.lua +++ b/unofficial/c511027050.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:GetSummonLocation()==LOCATION_EXTRA and c:IsSummonType(SUMMON_TYPE_SPECIAL) + return c:GetSummonLocation()==LOCATION_EXTRA and c:IsSpecialSummoned() end function s.drcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(tp)0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511027094.lua b/unofficial/c511027094.lua index aad1a881db..466b20c74e 100644 --- a/unofficial/c511027094.lua +++ b/unofficial/c511027094.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ct) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511027099.lua b/unofficial/c511027099.lua index 42d7103ee6..3a23c71171 100644 --- a/unofficial/c511027099.lua +++ b/unofficial/c511027099.lua @@ -51,4 +51,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) Duel.ChangeBattleDamage(1-tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511027100.lua b/unofficial/c511027100.lua index d0884b3a31..8314b9f3e9 100644 --- a/unofficial/c511027100.lua +++ b/unofficial/c511027100.lua @@ -62,4 +62,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511027101.lua b/unofficial/c511027101.lua index 2d6da243ce..7e09afa295 100644 --- a/unofficial/c511027101.lua +++ b/unofficial/c511027101.lua @@ -89,4 +89,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return c==e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c511027102.lua b/unofficial/c511027102.lua index cec491ca00..02f2d882c2 100644 --- a/unofficial/c511027102.lua +++ b/unofficial/c511027102.lua @@ -104,4 +104,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027103.lua b/unofficial/c511027103.lua index dd44a38143..2495d1a778 100644 --- a/unofficial/c511027103.lua +++ b/unofficial/c511027103.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_EQUIP) - e1:SetRange(LOCATION_HAND+LOCATION_MZONE) + e1:SetRange(LOCATION_HAND|LOCATION_MZONE) e1:SetTarget(s.eqtg) e1:SetOperation(s.eqop) c:RegisterEffect(e1) @@ -91,4 +91,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) end function s.repfilter(c,e) return c==e:GetHandler():GetEquipTarget() and not c:IsReason(REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c511027104.lua b/unofficial/c511027104.lua index e7c1838c25..f9dce7fbea 100644 --- a/unofficial/c511027104.lua +++ b/unofficial/c511027104.lua @@ -55,4 +55,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return c==e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c511027106.lua b/unofficial/c511027106.lua index 920f0036c3..098be29c6a 100644 --- a/unofficial/c511027106.lua +++ b/unofficial/c511027106.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCategory(CATEGORY_EQUIP) - e1:SetRange(LOCATION_HAND+LOCATION_MZONE) + e1:SetRange(LOCATION_HAND|LOCATION_MZONE) e1:SetTarget(s.eqtg) e1:SetOperation(s.eqop) c:RegisterEffect(e1) @@ -86,4 +86,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) end function s.repfilter(c,e) return c==e:GetHandler():GetEquipTarget() and not c:IsReason(REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c511027107.lua b/unofficial/c511027107.lua index f5b4400cfb..888db283ab 100644 --- a/unofficial/c511027107.lua +++ b/unofficial/c511027107.lua @@ -120,4 +120,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511027108.lua b/unofficial/c511027108.lua index 94b3c8b8b7..fdff71fdf7 100644 --- a/unofficial/c511027108.lua +++ b/unofficial/c511027108.lua @@ -79,4 +79,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:SetReason(REASON_MATERIAL+REASON_SYNCHRO,true) end end -end +end \ No newline at end of file diff --git a/unofficial/c511027109.lua b/unofficial/c511027109.lua index b7efd6d1d8..c31ccf7288 100644 --- a/unofficial/c511027109.lua +++ b/unofficial/c511027109.lua @@ -64,4 +64,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.repval(e,c) return e:GetLabelObject():IsContains(c) -end +end \ No newline at end of file diff --git a/unofficial/c511027110.lua b/unofficial/c511027110.lua index fc8862423e..36d926cef1 100644 --- a/unofficial/c511027110.lua +++ b/unofficial/c511027110.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 and Duel.SendtoGrave(g,REASON_EFFECT)>0 and g:GetFirst():IsLocation(LOCATION_GRAVE) and c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511027111.lua b/unofficial/c511027111.lua index e65232ff10..b1b940a1a7 100644 --- a/unofficial/c511027111.lua +++ b/unofficial/c511027111.lua @@ -48,4 +48,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:IsActiveType(TYPE_SPELL) or re:IsActiveType(TYPE_TRAP) -end +end \ No newline at end of file diff --git a/unofficial/c511027112.lua b/unofficial/c511027112.lua index adc79454d7..85e7ad46bc 100644 --- a/unofficial/c511027112.lua +++ b/unofficial/c511027112.lua @@ -132,4 +132,4 @@ function s.op3(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end c:SetFlagEffectLabel(id,0) -end +end \ No newline at end of file diff --git a/unofficial/c511027117.lua b/unofficial/c511027117.lua index 9b36fe872b..83c8e803da 100644 --- a/unofficial/c511027117.lua +++ b/unofficial/c511027117.lua @@ -57,4 +57,4 @@ function s.diszaop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511027118.lua b/unofficial/c511027118.lua index 79004b9caf..d001aaaf93 100644 --- a/unofficial/c511027118.lua +++ b/unofficial/c511027118.lua @@ -62,4 +62,4 @@ function s.aclimit(e,re) if re==te then return true end end return false -end +end \ No newline at end of file diff --git a/unofficial/c511027120.lua b/unofficial/c511027120.lua index 233011c09f..b3767c141d 100644 --- a/unofficial/c511027120.lua +++ b/unofficial/c511027120.lua @@ -59,7 +59,7 @@ function s.sumlimit(e,c,sump,sumtype,sumpos,targetp) return (sumpos&POS_FACEDOWN)~=0 end function s.mtcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.mtop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAbleToGraveAsCost,tp,LOCATION_HAND,0,nil) @@ -84,4 +84,4 @@ function s.spcop(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE|PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511027121.lua b/unofficial/c511027121.lua index d8a65de545..8ecf12cde5 100644 --- a/unofficial/c511027121.lua +++ b/unofficial/c511027121.lua @@ -27,4 +27,4 @@ function s.ntop(e,tp,eg,ep,ev,re,r,rp,c) e1:SetCode(EFFECT_SET_BASE_ATTACK) e1:SetValue(0) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511027135.lua b/unofficial/c511027135.lua index 0b8153b0ea..dceee94632 100644 --- a/unofficial/c511027135.lua +++ b/unofficial/c511027135.lua @@ -26,7 +26,7 @@ function s.discon(e,tp,eg,ep,ev,re,r,rp) return tp==Duel.GetTurnPlayer() and Duel.GetActivityCount(tp,ACTIVITY_ATTACK)==0 end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x25) and c:HasLevel() + return c:IsFaceup() and c:IsSetCard(SET_IRON_CHAIN) and c:HasLevel() end function s.distg(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) @@ -41,4 +41,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if lv>0 then Duel.DiscardDeck(1-tp,lv,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027294.lua b/unofficial/c511027294.lua index f61b8cf994..fecaef7bae 100644 --- a/unofficial/c511027294.lua +++ b/unofficial/c511027294.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511027455.lua b/unofficial/c511027455.lua index 8c94b81b75..21f85843f5 100644 --- a/unofficial/c511027455.lua +++ b/unofficial/c511027455.lua @@ -8,8 +8,8 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_ADD_SETCODE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) - e1:SetRange(LOCATION_MZONE+LOCATION_GRAVE) + e1:SetRange(LOCATION_MZONE|LOCATION_GRAVE) e1:SetValue(0xad) c:RegisterEffect(e1) end -s.listed_series={0xad} +s.listed_series={0xad} \ No newline at end of file diff --git a/unofficial/c511027541.lua b/unofficial/c511027541.lua index 17337b308d..cb7b5ff444 100644 --- a/unofficial/c511027541.lua +++ b/unofficial/c511027541.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetRange(LOCATION_GRAVE) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCondition(s.negcon) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetOperation(s.negop) c:RegisterEffect(e1) end @@ -20,4 +20,4 @@ function s.negcon(e,tp,eg,ep,ev,re,r,rp) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511027556.lua b/unofficial/c511027556.lua index 1850c49852..f39858c2f5 100644 --- a/unofficial/c511027556.lua +++ b/unofficial/c511027556.lua @@ -35,4 +35,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511027633.lua b/unofficial/c511027633.lua index 2b95a106a7..1cdd893abb 100644 --- a/unofficial/c511027633.lua +++ b/unofficial/c511027633.lua @@ -23,4 +23,4 @@ end function s.damval(e,re,val,r,rp,rc) if rp~=e:GetHandlerPlayer() and (r&REASON_EFFECT)~=0 then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511027651.lua b/unofficial/c511027651.lua index 25f43e0555..4bc44436eb 100644 --- a/unofficial/c511027651.lua +++ b/unofficial/c511027651.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,g) Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027654.lua b/unofficial/c511027654.lua index f91ee85f11..13d40f2cd3 100644 --- a/unofficial/c511027654.lua +++ b/unofficial/c511027654.lua @@ -68,4 +68,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511027670.lua b/unofficial/c511027670.lua index 7598175a71..7e337912bf 100644 --- a/unofficial/c511027670.lua +++ b/unofficial/c511027670.lua @@ -5,4 +5,4 @@ local s,id=GetID() function s.initial_effect(c) --pendulum summon Pendulum.AddProcedure(c) -end +end \ No newline at end of file diff --git a/unofficial/c511027673.lua b/unofficial/c511027673.lua index 2fbb5e3261..0c7062dc6d 100644 --- a/unofficial/c511027673.lua +++ b/unofficial/c511027673.lua @@ -35,4 +35,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.tdfilter,tp,LOCATION_EXTRA,0,nil) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511027675.lua b/unofficial/c511027675.lua index 0a5ac2eaf1..4a707e770d 100644 --- a/unofficial/c511027675.lua +++ b/unofficial/c511027675.lua @@ -52,4 +52,4 @@ function s.damval(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid==e:GetLabel() then return Duel.GetLP(e:GetHandlerPlayer())-100 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511027676.lua b/unofficial/c511027676.lua index a7ff941544..c4dbd39fdb 100644 --- a/unofficial/c511027676.lua +++ b/unofficial/c511027676.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetValue(atk) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511027677.lua b/unofficial/c511027677.lua index 251dca8847..ded22e1db1 100644 --- a/unofficial/c511027677.lua +++ b/unofficial/c511027677.lua @@ -33,4 +33,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511027680.lua b/unofficial/c511027680.lua index 45d3b6a805..1e43b90cef 100644 --- a/unofficial/c511027680.lua +++ b/unofficial/c511027680.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.changecon(e) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_DD),e:GetHandlerPlayer(),LOCATION_ONFIELD,0,5,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511027692.lua b/unofficial/c511027692.lua index 1a81cf0ec6..a6ff2c1ea5 100644 --- a/unofficial/c511027692.lua +++ b/unofficial/c511027692.lua @@ -41,4 +41,4 @@ end function s.damval(e,re,val,r,rp,rc) if r&(REASON_BATTLE|REASON_EFFECT)>0 then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511027765.lua b/unofficial/c511027765.lua index 28d9f6c561..ffe3b61a67 100644 --- a/unofficial/c511027765.lua +++ b/unofficial/c511027765.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511027782.lua b/unofficial/c511027782.lua index 260a1fff25..7bbccca8c4 100644 --- a/unofficial/c511027782.lua +++ b/unofficial/c511027782.lua @@ -27,4 +27,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,1-tp,id) Duel.Damage(1-tp,400,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511027787.lua b/unofficial/c511027787.lua index 02f1a2a76d..f04fd7d3cc 100644 --- a/unofficial/c511027787.lua +++ b/unofficial/c511027787.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetCode(EVENT_CHAINING) e3:SetRange(LOCATION_GRAVE) - e3:SetCost(aux.bfgcost) + e3:SetCost(Cost.SelfBanish) e3:SetCondition(aux.damcon1) e3:SetTarget(s.damtg) e3:SetOperation(s.damop) @@ -91,4 +91,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) e2:SetReset(RESET_PHASE|PHASE_END) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511030002.lua b/unofficial/c511030002.lua index ad97e2c70c..60f71d0c71 100644 --- a/unofficial/c511030002.lua +++ b/unofficial/c511030002.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetRange(LOCATION_GRAVE) e2:SetHintTiming(0,TIMING_END_PHASE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.sttg) e2:SetOperation(s.stop) c:RegisterEffect(e2) @@ -33,7 +33,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.tgfilter,tp,0,LOCATION_ONFIELD,1,e:GetHandler()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEDOWN) local g=Duel.SelectTarget(tp,s.tgfilter,tp,0,LOCATION_ONFIELD,1,1,e:GetHandler()) - Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE) end function s.thfilter(c,code) return c:GetCode()==code and c:IsAbleToHand() @@ -43,10 +43,10 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:IsFacedown() then Duel.ConfirmCards(tp,tc) local code=tc:GetCode() - if Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,code) + if Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil,code) and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then Duel.BreakEffect() - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,code) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.thfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,code) if #g>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) @@ -78,4 +78,4 @@ function s.stop(e,tp,eg,ep,ev,re,r,rp) e1:SetDescription(aux.Stringid(id,1)) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511030003.lua b/unofficial/c511030003.lua index 581ec08b22..061d7a4b96 100644 --- a/unofficial/c511030003.lua +++ b/unofficial/c511030003.lua @@ -62,7 +62,7 @@ function s.dmgop(e,tp,eg,ep,ev,re,r,rp) end end function s.cfilter(c,tp) - return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(0x102) + return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(SET_ROKKET) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) diff --git a/unofficial/c511030004.lua b/unofficial/c511030004.lua index 65e7a2a0a9..a34e867607 100644 --- a/unofficial/c511030004.lua +++ b/unofficial/c511030004.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE) - e1:SetRange(LOCATION_HAND+LOCATION_MZONE) + e1:SetRange(LOCATION_HAND|LOCATION_MZONE) e1:SetCondition(s.condition) e1:SetCost(s.cost) e1:SetOperation(s.operation) @@ -23,7 +23,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) if a and b then local dif=b:GetAttack()-a:GetAttack() return a:GetControler()~=b:GetControler() and a~=e:GetHandler() - and a:IsSetCard(0x11a) and a:IsRelateToBattle() + and a:IsSetCard(SET_DINOWRESTLER) and a:IsRelateToBattle() and Duel.GetAttackTarget()~=nil and dif>=0 else return false end end diff --git a/unofficial/c511030005.lua b/unofficial/c511030005.lua index 05ac6fd5b3..c894f6111e 100644 --- a/unofficial/c511030005.lua +++ b/unofficial/c511030005.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,76990617,aux.FilterBoolFunctionEx(Card.IsSetCard,0x9b)) + Fusion.AddProcMix(c,true,true,76990617,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_MELODIOUS)) --Banish and gain ATK local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) @@ -69,4 +69,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ct*200) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511030008.lua b/unofficial/c511030008.lua index 1ad57afa37..b2276800f3 100644 --- a/unofficial/c511030008.lua +++ b/unofficial/c511030008.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) end s.listed_series={0x11a} function s.ntfilter(c) - return c:IsFaceup() and c:IsSetCard(0x11a) + return c:IsFaceup() and c:IsSetCard(SET_DINOWRESTLER) end function s.ntcon(e,c,minc) if c==nil then return true end @@ -37,14 +37,14 @@ function s.ntcon(e,c,minc) and Duel.IsExistingMatchingCard(s.ntfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return rp==1-tp and Duel.GetTurnPlayer()==tp + return rp==1-tp and Duel.IsTurnPlayer(tp) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToHandAsCost() end Duel.SendtoHand(e:GetHandler(),tp,REASON_COST) end function s.filter(c,e,tp) - return c:IsSetCard(0x11a) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_DINOWRESTLER) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -59,4 +59,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511030009.lua b/unofficial/c511030009.lua index 4557c5bbab..10e344542d 100644 --- a/unofficial/c511030009.lua +++ b/unofficial/c511030009.lua @@ -59,4 +59,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511030010.lua b/unofficial/c511030010.lua index 3d2c67da34..739550aaff 100644 --- a/unofficial/c511030010.lua +++ b/unofficial/c511030010.lua @@ -50,4 +50,4 @@ function s.atkcon(e) end function s.atklimit(e,c) return not s.atkfilter(c,e) -end +end \ No newline at end of file diff --git a/unofficial/c511030011.lua b/unofficial/c511030011.lua index 6613327b8c..ff2162460d 100644 --- a/unofficial/c511030011.lua +++ b/unofficial/c511030011.lua @@ -79,4 +79,4 @@ function s.immop(e,tp,eg,ep,ev,re,r,rp) end function s.immfilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511030013.lua b/unofficial/c511030013.lua index d47b1c2345..b424c83ad9 100644 --- a/unofficial/c511030013.lua +++ b/unofficial/c511030013.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) if r&REASON_BATTLE~=0 then - Duel.RegisterFlagEffect(ep,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ep,id,RESET_PHASE|PHASE_END,0,1) end end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -51,4 +51,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511030014.lua b/unofficial/c511030014.lua index 868fc89e1f..893f046a47 100644 --- a/unofficial/c511030014.lua +++ b/unofficial/c511030014.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x33} function s.cfilter(c) - return c:IsSetCard(0x33) and c:IsMonster() + return c:IsSetCard(SET_BLACKWING) and c:IsMonster() end function s.condition(e,tp,eg,ep,ev,re,r,rp) return tp~=Duel.GetTurnPlayer() and Duel.GetAttackTarget()==nil diff --git a/unofficial/c511030015.lua b/unofficial/c511030015.lua index fcfcc8d73e..c936bec90e 100644 --- a/unofficial/c511030015.lua +++ b/unofficial/c511030015.lua @@ -27,7 +27,7 @@ function s.matfilter(c,lc,sumtype,tp) return c:IsLevelBelow(4) and c:IsSetCard(0x578,lc,sumtype,tp) end function s.sumcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.sumsuc(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(e:GetHandler()) @@ -52,4 +52,4 @@ function s.repval(e,c) end function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c511030018.lua b/unofficial/c511030018.lua index c5edd7c0e8..867977137d 100644 --- a/unofficial/c511030018.lua +++ b/unofficial/c511030018.lua @@ -65,4 +65,4 @@ end function s.atktg(e,c) return c:IsLinkMonster() and c:IsSetCard(0x578) and (e:GetHandler():GetLinkedGroup():IsContains(c) or c:GetLinkedGroup():IsContains(e:GetHandler())) -end +end \ No newline at end of file diff --git a/unofficial/c511030019.lua b/unofficial/c511030019.lua index 69da2ad7c0..12d0a2c45c 100644 --- a/unofficial/c511030019.lua +++ b/unofficial/c511030019.lua @@ -21,7 +21,7 @@ function s.filter1(c,e,tp) return lv>0 and c:IsFaceup() and Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_HAND,0,1,nil,lv,rc,e,tp) end function s.filter2(c,lv,rc,e,tp) - return c:IsLevel(lv) and c:IsSetCard(0x11a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) + return c:IsLevel(lv) and c:IsSetCard(SET_DINOWRESTLER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) and (c:GetRace()~=rc or Duel.IsExistingMatchingCard(s.filter3,tp,LOCATION_MZONE,0,1,nil,rc)) end function s.filter3(c,rc) @@ -68,7 +68,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EVENT_DESTROYED) e2:SetRange(LOCATION_GRAVE) e2:SetLabelObject(tc) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetCondition(s.drcon) e2:SetTarget(s.drtg) e2:SetOperation(s.drop) diff --git a/unofficial/c511030020.lua b/unofficial/c511030020.lua index 5cea223b2a..9f49b78594 100644 --- a/unofficial/c511030020.lua +++ b/unofficial/c511030020.lua @@ -50,4 +50,4 @@ function s.actcon(e) local a=Duel.GetAttacker() return a and a:IsLinkMonster() and a:IsSetCard(0x578) and a:IsFaceup() and a:IsControler(tp) and (e:GetHandler():GetLinkedGroup():IsContains(a) or a:GetLinkedGroup():IsContains(e:GetHandler())) -end +end \ No newline at end of file diff --git a/unofficial/c511030021.lua b/unofficial/c511030021.lua index 2bf58496d6..25e7cac93c 100644 --- a/unofficial/c511030021.lua +++ b/unofficial/c511030021.lua @@ -92,4 +92,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.Draw(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511030023.lua b/unofficial/c511030023.lua index 0e7d70a34c..7afb15bb27 100644 --- a/unofficial/c511030023.lua +++ b/unofficial/c511030023.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,{alias,1}) e2:SetCondition(s.atkcon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.atktg) e2:SetOperation(s.atkop) c:RegisterEffect(e2) @@ -84,4 +84,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511030024.lua b/unofficial/c511030024.lua index 7e003e0e6c..345e1973da 100644 --- a/unofficial/c511030024.lua +++ b/unofficial/c511030024.lua @@ -26,4 +26,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToBattle() and tc:IsControler(1-tp) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511030025.lua b/unofficial/c511030025.lua index 42dff0e372..4e6f143743 100644 --- a/unofficial/c511030025.lua +++ b/unofficial/c511030025.lua @@ -122,4 +122,4 @@ if not table.includes then end return false end -end +end \ No newline at end of file diff --git a/unofficial/c511030026.lua b/unofficial/c511030026.lua index 55ab994d33..20fad33405 100644 --- a/unofficial/c511030026.lua +++ b/unofficial/c511030026.lua @@ -34,7 +34,7 @@ function s.lcheck(g,lc,sumtype,tp) return g:IsExists(Card.IsType,1,nil,TYPE_LINK,lc,sumtype,tp) end function s.remcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.cfilter(c) return c:GetMutualLinkedGroupCount()>0 @@ -73,7 +73,7 @@ function s.remop(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.thfilter(c,fid) return c:GetFlagEffectLabel(id)==fid @@ -104,4 +104,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and zone~=0 then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP,zone) end -end +end \ No newline at end of file diff --git a/unofficial/c511030027.lua b/unofficial/c511030027.lua index 8e59ba2f3d..9886900cb5 100644 --- a/unofficial/c511030027.lua +++ b/unofficial/c511030027.lua @@ -62,4 +62,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) dam=dam-(ct*1000) if dam<0 then dam=0 end Duel.ChangeBattleDamage(tp,dam) -end +end \ No newline at end of file diff --git a/unofficial/c511030028.lua b/unofficial/c511030028.lua index ca564c20b1..e1a42ba7b4 100644 --- a/unofficial/c511030028.lua +++ b/unofficial/c511030028.lua @@ -37,10 +37,10 @@ s.listed_series={0x578} function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local c=e:GetHandler() local ct=c:GetMutualLinkedGroup():FilterCount(Card.IsLinkMonster,nil) - if chkc then return chkc:IsLocation(LOCATION_ONFIELD+LOCATION_GRAVE) and chkc:IsAbleToHand() end - if chk==0 then return ct>0 and Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) end + if chkc then return chkc:IsLocation(LOCATION_ONFIELD|LOCATION_GRAVE) and chkc:IsAbleToHand() end + if chk==0 then return ct>0 and Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD|LOCATION_GRAVE,LOCATION_ONFIELD|LOCATION_GRAVE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) - local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,ct,nil) + local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD|LOCATION_GRAVE,LOCATION_ONFIELD|LOCATION_GRAVE,1,ct,nil) Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,#g,0,0) c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(5043010,2)) end @@ -63,4 +63,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511030030.lua b/unofficial/c511030030.lua index 6f24fe84e1..a80e402e01 100644 --- a/unofficial/c511030030.lua +++ b/unofficial/c511030030.lua @@ -73,4 +73,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) end tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511030031.lua b/unofficial/c511030031.lua index 4ab6cbb640..d9a58d04e9 100755 --- a/unofficial/c511030031.lua +++ b/unofficial/c511030031.lua @@ -54,4 +54,4 @@ function s.ndamop(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,c) return c:GetFlagEffect(id)>0 -end +end \ No newline at end of file diff --git a/unofficial/c511030032.lua b/unofficial/c511030032.lua index 83036c98b9..4cd1afd463 100644 --- a/unofficial/c511030032.lua +++ b/unofficial/c511030032.lua @@ -48,7 +48,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local g=Duel.SelectTarget(tp,s.cfilter,tp,0,LOCATION_MZONE,1,1,nil,e,tp) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,1-tp,LOCATION_MZONE) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_REMOVED+LOCATION_EXTRA) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_REMOVED|LOCATION_EXTRA) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() @@ -65,4 +65,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511030033.lua b/unofficial/c511030033.lua index a5b380398f..0bed23e8b4 100644 --- a/unofficial/c511030033.lua +++ b/unofficial/c511030033.lua @@ -20,7 +20,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetLP(tp)0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511030040.lua b/unofficial/c511030040.lua index 0b02e85ad8..8f08964055 100644 --- a/unofficial/c511030040.lua +++ b/unofficial/c511030040.lua @@ -44,11 +44,11 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.matfilter(c,lc,sumtype,tp) - return c:IsSetCard(0x14a,fc,sumtype,tp) and c:IsLevel(1) + return c:IsSetCard(SET_APPLIANCER,fc,sumtype,tp) and c:IsLevel(1) end function s.lkcon(e) local c=e:GetHandler() - return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsLinkSummoned() end function s.dacon(e) return not e:GetHandler():IsLinked() diff --git a/unofficial/c511030042.lua b/unofficial/c511030042.lua index ffa18cdf34..02353e26e9 100644 --- a/unofficial/c511030042.lua +++ b/unofficial/c511030042.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_series={0x14a} function s.spfilter(c,e,tp) - return c:IsSetCard(0x14a) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_APPLIANCER) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end diff --git a/unofficial/c511030043.lua b/unofficial/c511030043.lua index a32a02cccc..bc95cfa91d 100644 --- a/unofficial/c511030043.lua +++ b/unofficial/c511030043.lua @@ -35,11 +35,11 @@ function s.initial_effect(c) end s.listed_series={0x14a} function s.matfilter(c,lc,sumtype,tp) - return c:IsSetCard(0x14a,fc,sumtype,tp) and c:IsLink(1) + return c:IsSetCard(SET_APPLIANCER,fc,sumtype,tp) and c:IsLink(1) end function s.lkcon(e) local c=e:GetHandler() - return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsLinkSummoned() end function s.rmcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/unofficial/c511030044.lua b/unofficial/c511030044.lua index 3a10337701..20a63b5a6d 100644 --- a/unofficial/c511030044.lua +++ b/unofficial/c511030044.lua @@ -52,13 +52,13 @@ function s.initial_effect(c) end s.listed_series={0x14a} function s.matfilter(c,lc,sumtype,tp) - return c:IsLevel(1) and c:IsSetCard(0x14a,lc,sumtype,tp) + return c:IsLevel(1) and c:IsSetCard(SET_APPLIANCER,lc,sumtype,tp) end function s.imcon(e) return e:GetHandler():IsLinked() end function s.cfilter(c) - return c:IsFacedown() or not c:IsSetCard(0x14a) + return c:IsFacedown() or not c:IsSetCard(SET_APPLIANCER) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) local a=Duel.GetAttacker() @@ -94,7 +94,7 @@ end function s.checkfilter(c,e,tp) local mg=c:GetMutualLinkedGroup() local octg=e:GetHandler():GetMutualLinkedGroup() - return c:IsSetCard(0x14a) and c:IsControler(tp) and c:IsReason(REASON_DESTROY) + return c:IsSetCard(SET_APPLIANCER) and c:IsControler(tp) and c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and not (mg:IsContains(e:GetHandler()) and octg:IsContains(c)) end @@ -116,4 +116,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511030045.lua b/unofficial/c511030045.lua index 9762295510..ee05868450 100644 --- a/unofficial/c511030045.lua +++ b/unofficial/c511030045.lua @@ -16,12 +16,12 @@ function s.initial_effect(c) end s.listed_series={0x14a} function s.filter(c,e,tp) - return c:GetSequence()>4 and c:IsSetCard(0x14a) and c:IsLinkMonster() + return c:GetSequence()>4 and c:IsSetCard(SET_APPLIANCER) and c:IsLinkMonster() and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_GRAVE,0,1,nil,e,tp,c) end function s.spfilter(c,e,tp,fc) local zone=fc:GetToBeLinkedZone(c,tp,true) - return c:IsSetCard(0x14a) and c:IsLinkMonster() and c:IsLink(1) + return c:IsSetCard(SET_APPLIANCER) and c:IsLinkMonster() and c:IsLink(1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) diff --git a/unofficial/c511030046.lua b/unofficial/c511030046.lua index 066179804e..2487b0ad11 100644 --- a/unofficial/c511030046.lua +++ b/unofficial/c511030046.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) end s.listed_series={0x14a} function s.filter(c) - return c:IsType(TYPE_LINK) and c:IsLink(1) and c:IsSetCard(0x14a) + return c:IsType(TYPE_LINK) and c:IsLink(1) and c:IsSetCard(SET_APPLIANCER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local g1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil):Filter(Card.IsAbleToRemove,nil):Filter(Card.IsSequence,nil,0,1,2,3,4) @@ -54,7 +54,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.cfilter(c,tp) - return c:IsSetCard(0x14a) and c:IsAbleToRemoveAsCost() and c:IsSpellTrap() + return c:IsSetCard(SET_APPLIANCER) and c:IsAbleToRemoveAsCost() and c:IsSpellTrap() end function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler(),tp) end @@ -72,4 +72,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511030047.lua b/unofficial/c511030047.lua index b33fcaa7e3..819aa35e68 100644 --- a/unofficial/c511030047.lua +++ b/unofficial/c511030047.lua @@ -69,4 +69,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and tc:CanAttack() and not tc:IsStatus(STATUS_ATTACK_CANCELED) and Duel.NegateAttack() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511030049.lua b/unofficial/c511030049.lua index 1d988a63ed..badbd9d1f6 100644 --- a/unofficial/c511030049.lua +++ b/unofficial/c511030049.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_series={0x57b} function s.filter(c) - return c:IsSetCard(0x57b) and c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsStatus(STATUS_SPSUMMON_TURN) + return c:IsSetCard(0x57b) and c:IsSpecialSummoned() and c:IsStatus(STATUS_SPSUMMON_TURN) end function s.spcon(e,c) if c==nil then return true end diff --git a/unofficial/c511030050.lua b/unofficial/c511030050.lua index 266eb0f118..929dec9a99 100644 --- a/unofficial/c511030050.lua +++ b/unofficial/c511030050.lua @@ -18,7 +18,7 @@ function s.cfilter(c) return c:IsSetCard(0x57b) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) - local rg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2 and #rg>1 and aux.SelectUnselectGroup(rg,e,tp,2,2,aux.ChkfMMZ(1),0) end local g=aux.SelectUnselectGroup(rg,e,tp,2,2,aux.ChkfMMZ(1),1,tp,HINTMSG_REMOVE) Duel.Remove(g,POS_FACEUP,REASON_COST) diff --git a/unofficial/c511030051.lua b/unofficial/c511030051.lua index a8ea297c47..f1441e6d09 100644 --- a/unofficial/c511030051.lua +++ b/unofficial/c511030051.lua @@ -36,4 +36,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local zones=aux.GetMMZonesPointedTo(tp,nil,LOCATION_MZONE,0) if not c:IsRelateToEffect(e) or zones==0 then return end Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP,zones) -end +end \ No newline at end of file diff --git a/unofficial/c511030052.lua b/unofficial/c511030052.lua index e3a17e9aa8..59ec635429 100644 --- a/unofficial/c511030052.lua +++ b/unofficial/c511030052.lua @@ -82,4 +82,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c511030054.lua b/unofficial/c511030054.lua index d98fabdcf3..3f8e383fe3 100644 --- a/unofficial/c511030054.lua +++ b/unofficial/c511030054.lua @@ -37,7 +37,7 @@ end s.listed_series={0x14a} s.listed_names={3875465} function s.thfilter(c) - return c:IsSpell() and c:IsSetCard(0x14a) and c:IsAbleToHand() and not c:IsCode(3875465) + return c:IsSpell() and c:IsSetCard(SET_APPLIANCER) and c:IsAbleToHand() and not c:IsCode(3875465) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end @@ -50,13 +50,13 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.confilter(c,tp) - return c:IsSetCard(0x14a) and c:IsType(TYPE_LINK) and c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_LINK) and c:IsControler(tp) + return c:IsSetCard(SET_APPLIANCER) and c:IsType(TYPE_LINK) and c:IsFaceup() and c:IsLinkSummoned() and c:IsControler(tp) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.confilter,1,nil,tp) end function s.thfilter2(c) - return c:IsSetCard(0x14a) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_APPLIANCER) and c:IsMonster() and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.thfilter2(chkc) end @@ -73,10 +73,10 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) end end function s.mvcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==1-tp + return Duel.IsTurnPlayer(1-tp) end function s.mvfilter(c) - return c:GetSequence()<5 and c:IsSetCard(0x14a) and c:IsType(TYPE_LINK) and c:IsLink(1) + return c:GetSequence()<5 and c:IsSetCard(SET_APPLIANCER) and c:IsType(TYPE_LINK) and c:IsLink(1) end function s.mvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return c:IsLocation(LOCATION_MZONE) and c:IsControler(tp) and s.mvfilter(chkc) end @@ -91,4 +91,4 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp) if not tc:IsRelateToEffect(e) or tc:IsControler(1-tp) or tc:IsImmuneToEffect(e) or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE) Duel.MoveSequence(tc,math.log(Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,0),2)) -end +end \ No newline at end of file diff --git a/unofficial/c511030055.lua b/unofficial/c511030055.lua index 23714a96e9..0ec2f05ece 100644 --- a/unofficial/c511030055.lua +++ b/unofficial/c511030055.lua @@ -17,7 +17,7 @@ end s.listed_series={0x14a} s.listed_names={41830887} function s.filter(c,oc) - return not c:IsCode(41830887) and c:IsFaceup() and c:IsSetCard(0x14a) + return not c:IsCode(41830887) and c:IsFaceup() and c:IsSetCard(SET_APPLIANCER) and not (c:IsCode(41830887) and c:IsRace(oc:GetRace()) and c:IsAttribute(oc:GetAttribute())) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -55,4 +55,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e3,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511030056.lua b/unofficial/c511030056.lua index 066aa90e10..c47de62cfd 100644 --- a/unofficial/c511030056.lua +++ b/unofficial/c511030056.lua @@ -36,11 +36,11 @@ function s.initial_effect(c) end s.listed_series={0x14a} function s.matfilter(c,lc,sumtype,tp) - return c:IsSetCard(0x14a,fc,sumtype,tp) and c:IsLevel(1) + return c:IsSetCard(SET_APPLIANCER,fc,sumtype,tp) and c:IsLevel(1) end function s.lkcon(e) local c=e:GetHandler() - return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsLinkSummoned() end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetMutualLinkedGroupCount()>0 @@ -50,7 +50,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.spfilter(c,e,tp,colinked) - return c:IsSetCard(0x14a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) + return c:IsSetCard(SET_APPLIANCER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) and ((c:IsType(TYPE_LINK) and colinked) or (c:IsLevelBelow(4) and not colinked)) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) diff --git a/unofficial/c511030057.lua b/unofficial/c511030057.lua index fb8df404ed..151058ceac 100644 --- a/unofficial/c511030057.lua +++ b/unofficial/c511030057.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) end s.listed_series={0x14a} function s.cfilter(c,tp) - return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsSetCard(0x14a) + return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup() and c:IsSetCard(SET_APPLIANCER) end function s.discon(e,tp,eg,ep,ev,re,r,rp) if not (rp==1-tp and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and re:GetHandler():IsMonster()) then return false end @@ -62,12 +62,12 @@ end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingTarget(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,eg) - and Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil) + and Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,nil) and e:GetHandler():IsAbleToRemove() end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local spg=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp,eg) + local spg=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE|LOCATION_REMOVED,0,1,1,nil,e,tp,eg) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local rmg=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,1,nil) + local rmg=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,1,nil) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,spg,1,tp,spg:GetFirst():GetLocation()) Duel.SetOperationInfo(0,CATEGORY_REMOVE,rmg+e:GetHandler(),2,PLAYER_ALL,rmg:GetFirst():GetLocation()+e:GetHandler():GetLocation()) end diff --git a/unofficial/c511030058.lua b/unofficial/c511030058.lua index 21925d2d1d..e5b48659d1 100644 --- a/unofficial/c511030058.lua +++ b/unofficial/c511030058.lua @@ -20,13 +20,13 @@ function s.initial_effect(c) e2:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(s.dmgcon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetOperation(s.dmgop) c:RegisterEffect(e2) end s.listed_series={0x14a} function s.confilter(c) - return c:IsSetCard(0x14a) and c:IsType(TYPE_LINK) and c:IsFaceup() + return c:IsSetCard(SET_APPLIANCER) and c:IsType(TYPE_LINK) and c:IsFaceup() end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.confilter,tp,LOCATION_MZONE,0,1,nil) @@ -69,4 +69,4 @@ function s.dmgop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(HALF_DAMAGE) e1:SetReset(RESET_PHASE+PHASE_DAMAGE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511030059.lua b/unofficial/c511030059.lua index 177e8c3741..a073e3cc4f 100644 --- a/unofficial/c511030059.lua +++ b/unofficial/c511030059.lua @@ -27,7 +27,7 @@ function s.rmfilter(c,e,tp,fp) and (not fp or Duel.IsExistingMatchingCard(s.spfilter1,tp,LOCATION_GRAVE,0,1,c,e,tp)) end function s.spfilter1(c,e,tp) - return c:IsSetCard(0x14a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) + return c:IsSetCard(SET_APPLIANCER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) end function s.spfilter2(c,e,tp) return c:IsType(TYPE_LINK) and c:IsCanBeSpecialSummoned(e,0,1-tp,false,false,POS_FACEUP) @@ -35,18 +35,18 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local fp=0 if chkc then return false end - if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,e,tp,fp) - and Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil,e,tp) + if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,e,tp,fp) + and Duel.IsExistingTarget(s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,nil,e,tp) and Duel.IsExistingMatchingCard(s.spfilter2,tp,0,LOCATION_REMOVED,1,nil,e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g1=Duel.SelectTarget(tp,s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,e,tp,fp) + local g1=Duel.SelectTarget(tp,s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,e,tp,fp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g2=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,1,nil,e,tp) + local g2=Duel.SelectTarget(tp,s.rmfilter,tp,0,LOCATION_MZONE|LOCATION_GRAVE,1,1,nil,e,tp) g1:Merge(g2) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g1,2,0,LOCATION_GRAVE) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,PLAYER_ALL,LOCATION_GRAVE+LOCATION_REMOVED) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,PLAYER_ALL,LOCATION_GRAVE|LOCATION_REMOVED) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local ex,g=Duel.GetOperationInfo(0,CATEGORY_REMOVE) diff --git a/unofficial/c511030061.lua b/unofficial/c511030061.lua index d9a929cce2..ce911d327a 100644 --- a/unofficial/c511030061.lua +++ b/unofficial/c511030061.lua @@ -50,7 +50,7 @@ function s.matfilter(c,lc,sumtype,tp) end function s.lkcon(e) local c=e:GetHandler() - return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsLinkSummoned() end function s.colinkcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetMutualLinkedGroupCount()>0 diff --git a/unofficial/c511030065.lua b/unofficial/c511030065.lua index 0df1080839..c7cc0339cd 100644 --- a/unofficial/c511030065.lua +++ b/unofficial/c511030065.lua @@ -59,7 +59,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) end function s.spcfilter(c) - return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSummonType(SUMMON_TYPE_XYZ) + return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsXyzSummoned() end function s.costfilter(c,ft,tp) return c:IsFaceup() and c:IsRace(RACE_PLANT) @@ -85,4 +85,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511030066.lua b/unofficial/c511030066.lua index 2b6e4e58d5..83adca69f0 100644 --- a/unofficial/c511030066.lua +++ b/unofficial/c511030066.lua @@ -104,4 +104,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511030068.lua b/unofficial/c511030068.lua index c13e34771c..bb4214052b 100644 --- a/unofficial/c511030068.lua +++ b/unofficial/c511030068.lua @@ -47,7 +47,7 @@ function s.initial_effect(c) end s.listed_series={0x102} function s.actfilter(c) - return c:IsSetCard(0x102) and c:IsMonster() and c:IsAbleToGrave() + return c:IsSetCard(SET_ROKKET) and c:IsMonster() and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local c=e:GetHandler() @@ -90,14 +90,14 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():AddCounter(0x580,1) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_MAIN2 + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_MAIN2 end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x580,1,REASON_EFFECT) end e:GetHandler():RemoveCounter(tp,0x580,1,REASON_EFFECT) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x102) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) + return c:IsSetCard(SET_ROKKET) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end diff --git a/unofficial/c511030070.lua b/unofficial/c511030070.lua index e6c180afe2..2d02827f6e 100644 --- a/unofficial/c511030070.lua +++ b/unofficial/c511030070.lua @@ -30,10 +30,10 @@ end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsController(tp) and s.tgfilter(chkc,e,tp) end if chk==0 then return Duel.IsExistingTarget(s.tgfilter,tp,LOCATION_SZONE,0,1,nil,e,tp) - and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSequence,0,1,2,3,4),tp,0,LOCATION_MZONE+LOCATION_SZONE,1,nil) end + and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSequence,0,1,2,3,4),tp,0,LOCATION_MZONE|LOCATION_SZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local g=Duel.SelectTarget(tp,s.tgfilter,tp,LOCATION_SZONE,0,1,1,nil,e,tp) - local desg=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSequence,0,1,2,3,4),tp,0,LOCATION_MZONE+LOCATION_SZONE,nil) + local desg=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSequence,0,1,2,3,4),tp,0,LOCATION_MZONE|LOCATION_SZONE,nil) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,g,1,0,LOCATION_SZONE) Duel.SetOperationInfo(0,CATEGORY_DESTROY,desg,#desg,0,0) end @@ -50,7 +50,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) aux.RegisterClientHint(e:GetHandler(),0,tp,1,0,aux.Stringid(id,0),nil) local tc=Duel.GetFirstTarget() if tc:IsRelateToEffect(e) and Duel.SendtoGrave(tc,REASON_EFFECT)>0 and Duel.GetOperatedGroup():GetFirst():IsLocation(LOCATION_GRAVE) then - local desg=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSequence,0,1,2,3,4),tp,0,LOCATION_MZONE+LOCATION_SZONE,nil) + local desg=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSequence,0,1,2,3,4),tp,0,LOCATION_MZONE|LOCATION_SZONE,nil) Duel.Destroy(desg,REASON_EFFECT) end end \ No newline at end of file diff --git a/unofficial/c511030072.lua b/unofficial/c511030072.lua index 4727a42d53..60983f6948 100644 --- a/unofficial/c511030072.lua +++ b/unofficial/c511030072.lua @@ -62,15 +62,15 @@ function s.thfilter(c) return c:IsCode(511009503) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end - Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,e:GetHandler(),1,tp,0) end function s.thop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) - local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil) if #g>0 then local tc=g:GetFirst() Duel.SendtoHand(tc,nil,REASON_EFFECT) @@ -126,4 +126,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) Duel.SpecialSummon(sc,0,tp,tp,false,false,POS_FACEUP,e:GetHandler():GetLinkedZone()) end end -end +end \ No newline at end of file diff --git a/unofficial/c511030073.lua b/unofficial/c511030073.lua index 417cb6af74..accfce70a3 100644 --- a/unofficial/c511030073.lua +++ b/unofficial/c511030073.lua @@ -80,4 +80,4 @@ function s.dmgop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT,true) Duel.RDComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511030075.lua b/unofficial/c511030075.lua index f58a0f5b03..847a253b3e 100644 --- a/unofficial/c511030075.lua +++ b/unofficial/c511030075.lua @@ -39,7 +39,7 @@ function s.initial_effect(c) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F) e4:SetCode(EVENT_PHASE+PHASE_END) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) - e4:SetRange(LOCATION_EXTRA+LOCATION_GRAVE+LOCATION_REMOVED) + e4:SetRange(LOCATION_EXTRA|LOCATION_GRAVE|LOCATION_REMOVED) e4:SetCountLimit(1) e4:SetCondition(s.drcon) e4:SetTarget(s.drtg) @@ -67,7 +67,7 @@ end function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x9f),c:GetControler(),LOCATION_MZONE,0,1,nil) + and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_PERFORMAPAL),c:GetControler(),LOCATION_MZONE,0,1,nil) end function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) diff --git a/unofficial/c511050001.lua b/unofficial/c511050001.lua index 740ea941c4..c98033209b 100644 --- a/unofficial/c511050001.lua +++ b/unofficial/c511050001.lua @@ -19,7 +19,7 @@ function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Release(e:GetHandler(),REASON_COST) end function s.thfilter(c) - return c:IsSetCard(0x46) and c:IsAbleToHand() + return c:IsSetCard(SET_FUSION) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end @@ -33,4 +33,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511050002.lua b/unofficial/c511050002.lua index e296fd07fc..933b2eb54d 100644 --- a/unofficial/c511050002.lua +++ b/unofficial/c511050002.lua @@ -19,4 +19,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511050003.lua b/unofficial/c511050003.lua index 6470abb36a..0aa6d6e97c 100644 --- a/unofficial/c511050003.lua +++ b/unofficial/c511050003.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0xa9,0xc3} function s.filter(c) - return (c:IsSetCard(0xa9) or c:IsSetCard(0xc3)) and c:IsAbleToHand() + return (c:IsSetCard(SET_FLUFFAL) or c:IsSetCard(SET_EDGE_IMP)) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -28,4 +28,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511050004.lua b/unofficial/c511050004.lua index c998bf3c63..8bccbd950b 100644 --- a/unofficial/c511050004.lua +++ b/unofficial/c511050004.lua @@ -35,4 +35,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c511050010.lua b/unofficial/c511050010.lua index 7dd5fd752a..eb792c87e9 100644 --- a/unofficial/c511050010.lua +++ b/unofficial/c511050010.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) end s.listed_series={0xa9,0xc3} function s.filter(c,e,tp) - return (c:IsSetCard(0xa9) or c:IsSetCard(0xc3)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return (c:IsSetCard(SET_FLUFFAL) or c:IsSetCard(SET_EDGE_IMP)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc,e,tp) end diff --git a/unofficial/c511050013.lua b/unofficial/c511050013.lua index ad0f2c3124..221a2835ad 100644 --- a/unofficial/c511050013.lua +++ b/unofficial/c511050013.lua @@ -38,7 +38,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetCondition(s.con) e1:SetOperation(s.op) e1:SetOwnerPlayer(tp) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_DRAW then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_DRAW then e1:SetLabel(Duel.GetTurnCount()) e1:SetReset(RESET_PHASE+PHASE_DRAW+RESET_SELF_TURN+RESET_EVENT+RESETS_STANDARD-RESET_TOHAND,2) else @@ -59,4 +59,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,4000,REASON_EFFECT) Duel.ShuffleHand(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511106002.lua b/unofficial/c511106002.lua index af1abd7e0e..7119f12f6d 100644 --- a/unofficial/c511106002.lua +++ b/unofficial/c511106002.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511106003.lua b/unofficial/c511106003.lua index 21c17d0253..394b14b687 100644 --- a/unofficial/c511106003.lua +++ b/unofficial/c511106003.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511106005.lua b/unofficial/c511106005.lua index ed88926e51..0fd77478b9 100644 --- a/unofficial/c511106005.lua +++ b/unofficial/c511106005.lua @@ -19,7 +19,7 @@ function s.ddcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local rc=c:GetReasonCard() return c:IsLocation(LOCATION_GRAVE) and r & REASON_LINK == REASON_LINK - and rc:IsSetCard(0x11a) and rc:IsLinkMonster() + and rc:IsSetCard(SET_DINOWRESTLER) and rc:IsLinkMonster() end function s.ddtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -28,7 +28,7 @@ end function s.ddop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local sync=c:GetReasonCard() - if sync:IsRelateToEffect(e) and sync:IsFaceup() and sync:IsSetCard(0x11a) and sync:IsLinkMonster() then + if sync:IsRelateToEffect(e) and sync:IsFaceup() and sync:IsSetCard(SET_DINOWRESTLER) and sync:IsLinkMonster() then local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) @@ -47,4 +47,4 @@ function s.ddop(e,tp,eg,ep,ev,re,r,rp) end function s.target(e,c) return c~=e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c511106006.lua b/unofficial/c511106006.lua index 1c3d73fbbf..8085b1124f 100644 --- a/unofficial/c511106006.lua +++ b/unofficial/c511106006.lua @@ -143,4 +143,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,511009659) Duel.SpecialSummon(token,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511106007.lua b/unofficial/c511106007.lua index 9f1ca23803..b9ae930ba4 100644 --- a/unofficial/c511106007.lua +++ b/unofficial/c511106007.lua @@ -112,4 +112,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) token:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511106008.lua b/unofficial/c511106008.lua index ab7fb865f3..3f579ffee7 100644 --- a/unofficial/c511106008.lua +++ b/unofficial/c511106008.lua @@ -6,7 +6,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,81846636,aux.FilterBoolFunctionEx(Card.IsSetCard,0x1047)) + Fusion.AddProcMix(c,true,true,81846636,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_GEM_KNIGHT)) --damage local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_DAMAGE) @@ -25,7 +25,7 @@ function s.filter(c,e) return c:IsCode(name) and c:IsAbleToGraveAsCost() end function s.ctfilter(c) - return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsSummonLocation(LOCATION_EXTRA) + return c:IsSpecialSummoned() and c:IsSummonLocation(LOCATION_EXTRA) end function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_EXTRA,0,1,nil,e) end @@ -46,4 +46,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511106009.lua b/unofficial/c511106009.lua index 671e854e4f..40a005f46c 100644 --- a/unofficial/c511106009.lua +++ b/unofficial/c511106009.lua @@ -3,7 +3,7 @@ --original script by Hatter, rescripted by Naim local s,id=GetID() function s.initial_effect(c) - local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,0xc008),Fusion.OnFieldMat,nil,nil,nil,s.stage2) + local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,SET_DESTINY_HERO),Fusion.OnFieldMat,nil,nil,nil,s.stage2) e1:SetCondition(s.condition) c:RegisterEffect(e1) end @@ -23,4 +23,4 @@ function s.stage2(e,tc,tp,sg,chk) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511106010.lua b/unofficial/c511106010.lua index e30545bee7..a7d371f71c 100644 --- a/unofficial/c511106010.lua +++ b/unofficial/c511106010.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c511106011.lua b/unofficial/c511106011.lua index 957eb485b4..f6fe6980c4 100644 --- a/unofficial/c511106011.lua +++ b/unofficial/c511106011.lua @@ -67,4 +67,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(des,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511106012.lua b/unofficial/c511106012.lua index 4515d19d98..e854bd5555 100644 --- a/unofficial/c511106012.lua +++ b/unofficial/c511106012.lua @@ -46,4 +46,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511106013.lua b/unofficial/c511106013.lua index 0c9306560f..26144e1c03 100644 --- a/unofficial/c511106013.lua +++ b/unofficial/c511106013.lua @@ -51,7 +51,7 @@ function s.spcheck(g,lc,sumtype,tp) return g:CheckSameProperty(Card.GetAttribute,lc,sumtype,tp) end function s.attcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.atttg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -95,4 +95,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511106014.lua b/unofficial/c511106014.lua index 5805610017..19425522d5 100644 --- a/unofficial/c511106014.lua +++ b/unofficial/c511106014.lua @@ -105,7 +105,7 @@ function s.distarget(e,c) return c:IsAttribute(e:GetHandler():GetAttribute()) and c:IsType(TYPE_EFFECT) end function s.gycon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_BATTLE_STEP + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_BATTLE_STEP and e:GetHandler():GetBattledGroupCount()>0 and s.checkCannotAttackEffect(e) end function s.gyfilter(c,ec) @@ -160,4 +160,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.rmop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511130000.lua b/unofficial/c511130000.lua index 4f984ab525..623dac919b 100644 --- a/unofficial/c511130000.lua +++ b/unofficial/c511130000.lua @@ -60,4 +60,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511130001.lua b/unofficial/c511130001.lua index 403390f36e..03bcc606ad 100644 --- a/unofficial/c511130001.lua +++ b/unofficial/c511130001.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,500,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511130002.lua b/unofficial/c511130002.lua index f97601e864..625ce83e5f 100644 --- a/unofficial/c511130002.lua +++ b/unofficial/c511130002.lua @@ -26,4 +26,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511231002.lua b/unofficial/c511231002.lua index cbf57c7675..e01060de5c 100644 --- a/unofficial/c511231002.lua +++ b/unofficial/c511231002.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511247000.lua b/unofficial/c511247000.lua index 8d771d5aa0..e9045b9169 100644 --- a/unofficial/c511247000.lua +++ b/unofficial/c511247000.lua @@ -41,7 +41,7 @@ function s.initial_effect(c) e5:SetCode(EVENT_PHASE+PHASE_STANDBY) e5:SetRange(LOCATION_SZONE) e5:SetCountLimit(1) - e5:SetCondition(function(e,tp) return Duel.GetTurnPlayer()==tp end) + e5:SetCondition(function(e,tp) return Duel.IsTurnPlayer(tp) end) e5:SetTarget(s.damtg) e5:SetOperation(s.damop) c:RegisterEffect(e5) @@ -68,4 +68,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511247001.lua b/unofficial/c511247001.lua index f41b500c2e..e61d39b88a 100644 --- a/unofficial/c511247001.lua +++ b/unofficial/c511247001.lua @@ -35,7 +35,7 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) end end function s.sccon(e,tp,eg,ep,ev,re,r,rp) - return s[tp] and Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) + return s[tp] and Duel.IsTurnPlayer(tp) and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) end function s.sctg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSynchroSummonable,tp,LOCATION_EXTRA,0,1,nil,e:GetHandler()) end @@ -50,4 +50,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,1,1,nil) Duel.SynchroSummon(tp,sg:GetFirst(),c) end -end +end \ No newline at end of file diff --git a/unofficial/c511247003.lua b/unofficial/c511247003.lua index 27d9756ca5..67036d5422 100644 --- a/unofficial/c511247003.lua +++ b/unofficial/c511247003.lua @@ -70,4 +70,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local ct=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil) Duel.Draw(p,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511247004.lua b/unofficial/c511247004.lua index e12a6eadc1..746211f7dd 100644 --- a/unofficial/c511247004.lua +++ b/unofficial/c511247004.lua @@ -42,7 +42,7 @@ function s.initial_effect(c) c:RegisterEffect(e6) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x107b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_GALAXY_EYES) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.spfilter(chkc,e,tp) end @@ -106,4 +106,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.desrepop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c511247005.lua b/unofficial/c511247005.lua index 88965d577c..49fdb79179 100644 --- a/unofficial/c511247005.lua +++ b/unofficial/c511247005.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c511247006.lua b/unofficial/c511247006.lua index 5ac86be2e0..cca39d5299 100644 --- a/unofficial/c511247006.lua +++ b/unofficial/c511247006.lua @@ -58,4 +58,4 @@ function s.recop(e,tp,eg,ep,ev,re,r,rp) if tc and s.filter(tc,nil,e,tp) then Duel.Recover(1-tp,tc:GetAttack()/2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511247007.lua b/unofficial/c511247007.lua index 4b9585f18a..ce73734c87 100644 --- a/unofficial/c511247007.lua +++ b/unofficial/c511247007.lua @@ -54,4 +54,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511247008.lua b/unofficial/c511247008.lua index 832422182f..aca4040c25 100644 --- a/unofficial/c511247008.lua +++ b/unofficial/c511247008.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) and Duel.Destroy(tc,REASON_EFFECT)>0 then Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511247010.lua b/unofficial/c511247010.lua index 24b0392269..3f14eed647 100644 --- a/unofficial/c511247010.lua +++ b/unofficial/c511247010.lua @@ -89,4 +89,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511247011.lua b/unofficial/c511247011.lua index f93026f437..2e6857ccf1 100644 --- a/unofficial/c511247011.lua +++ b/unofficial/c511247011.lua @@ -35,4 +35,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.climit(e,lp,tp) return lp==tp or not e:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c511247012.lua b/unofficial/c511247012.lua index 91cfe2c9e4..236cd9f76a 100644 --- a/unofficial/c511247012.lua +++ b/unofficial/c511247012.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:SetStatus(STATUS_SPSUMMON_STEP,false) tc:SetStatus(STATUS_SPSUMMON_TURN,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511247013.lua b/unofficial/c511247013.lua index cb0b7d0040..5936b0a897 100644 --- a/unofficial/c511247013.lua +++ b/unofficial/c511247013.lua @@ -29,9 +29,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) sg=sg:Select(tp,1,1,nil) end - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then Duel.GetControl(sg:GetFirst(),tp,PHASE_STANDBY) else Duel.GetControl(sg:GetFirst(),tp,PHASE_STANDBY,2) end -end +end \ No newline at end of file diff --git a/unofficial/c511247015.lua b/unofficial/c511247015.lua index 4a54b67779..d92c3bf4f9 100644 --- a/unofficial/c511247015.lua +++ b/unofficial/c511247015.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511247018.lua b/unofficial/c511247018.lua index fcc4636cbe..9bccc913d1 100644 --- a/unofficial/c511247018.lua +++ b/unofficial/c511247018.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0x9b) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_MELODIOUS) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -28,4 +28,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511247019.lua b/unofficial/c511247019.lua index a6c4226ce0..34f59f833e 100644 --- a/unofficial/c511247019.lua +++ b/unofficial/c511247019.lua @@ -85,4 +85,4 @@ function s.controlxyzdamop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,0,id) Duel.Damage(p,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511247020.lua b/unofficial/c511247020.lua index c9a07fddad..cb6e99b582 100644 --- a/unofficial/c511247020.lua +++ b/unofficial/c511247020.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511310000.lua b/unofficial/c511310000.lua index 549888f2c2..a29c25a6af 100644 --- a/unofficial/c511310000.lua +++ b/unofficial/c511310000.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc:IsCode(ac) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511310001.lua b/unofficial/c511310001.lua index f8e3c5c9bd..28b6167495 100644 --- a/unofficial/c511310001.lua +++ b/unofficial/c511310001.lua @@ -41,4 +41,4 @@ function s.efilter(e,te) end function s.econ(e) return Duel.GetAttacker()==e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c511310002.lua b/unofficial/c511310002.lua index 8789278b48..5bbd4b892d 100644 --- a/unofficial/c511310002.lua +++ b/unofficial/c511310002.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511310003.lua b/unofficial/c511310003.lua index 8684a5f42d..e0b0625301 100644 --- a/unofficial/c511310003.lua +++ b/unofficial/c511310003.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x3008),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_DARK)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_ELEMENTAL_HERO),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_DARK)) --atkup local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) @@ -16,5 +16,5 @@ function s.initial_effect(c) end s.material_setcode={0x8,0x3008} function s.atkup(e,c) - return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,0x3008)*100 -end + return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,SET_ELEMENTAL_HERO)*100 +end \ No newline at end of file diff --git a/unofficial/c511310005.lua b/unofficial/c511310005.lua index abf2f5084d..12af79e8a5 100644 --- a/unofficial/c511310005.lua +++ b/unofficial/c511310005.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511310006.lua b/unofficial/c511310006.lua index 0581960590..802f5fa107 100644 --- a/unofficial/c511310006.lua +++ b/unofficial/c511310006.lua @@ -17,4 +17,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0,nil)==0 -end +end \ No newline at end of file diff --git a/unofficial/c511310007.lua b/unofficial/c511310007.lua index f48eca4f71..63012ca06f 100644 --- a/unofficial/c511310007.lua +++ b/unofficial/c511310007.lua @@ -30,4 +30,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511310008.lua b/unofficial/c511310008.lua index 09ef2009af..f3bf25e830 100644 --- a/unofficial/c511310008.lua +++ b/unofficial/c511310008.lua @@ -5,7 +5,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x3008),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_WIND)) + Fusion.AddProcMix(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_ELEMENTAL_HERO),aux.FilterBoolFunctionEx(Card.IsAttribute,ATTRIBUTE_WIND)) --atk up local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(3642509,0)) @@ -41,4 +41,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=tg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511310009.lua b/unofficial/c511310009.lua index d3c4dc5ad2..e4572424fd 100644 --- a/unofficial/c511310009.lua +++ b/unofficial/c511310009.lua @@ -40,4 +40,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=mg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511310010.lua b/unofficial/c511310010.lua index d1e3909ed6..68bf2847fc 100644 --- a/unofficial/c511310010.lua +++ b/unofficial/c511310010.lua @@ -31,4 +31,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511310011.lua b/unofficial/c511310011.lua index de748e4c77..c08485a1ac 100644 --- a/unofficial/c511310011.lua +++ b/unofficial/c511310011.lua @@ -50,4 +50,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.sdcon(e) return e:GetHandler():IsAttackBelow(0) -end +end \ No newline at end of file diff --git a/unofficial/c511310012.lua b/unofficial/c511310012.lua index 880c19b655..15404db048 100644 --- a/unofficial/c511310012.lua +++ b/unofficial/c511310012.lua @@ -51,4 +51,4 @@ function s.repval2(e,c) end function s.repop2(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c511310013.lua b/unofficial/c511310013.lua index f601ac959f..95e185b0bb 100644 --- a/unofficial/c511310013.lua +++ b/unofficial/c511310013.lua @@ -66,7 +66,7 @@ function s.hspcon(e,c) and Duel.IsExistingMatchingCard(Card.IsSummonType,tp,0,LOCATION_MZONE,1,nil,SUMMON_TYPE_SPECIAL) end function s.atkcon2(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL) + return e:GetHandler():IsSpecialSummoned() end function s.atkfilter(c) return c:IsFaceup() and c:IsAttackAbove(2500) @@ -101,4 +101,4 @@ function s.atkop2(e,tp,eg,ep,ev,re,r,rp) tc2:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511310014.lua b/unofficial/c511310014.lua index 4b889e0420..8acbe18206 100644 --- a/unofficial/c511310014.lua +++ b/unofficial/c511310014.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) end s.listed_series={0x9f,0xc6} function s.eftg(e,c) - return (c:IsSetCard(0x9f) or c:IsSetCard(0xc6)) and c:IsAttackBelow(1500) + return (c:IsSetCard(SET_PERFORMAPAL) or c:IsSetCard(SET_PERFORMAGE)) and c:IsAttackBelow(1500) end function s.negop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -34,4 +34,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() c:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511310015.lua b/unofficial/c511310015.lua index 375b1af948..84d0079b23 100644 --- a/unofficial/c511310015.lua +++ b/unofficial/c511310015.lua @@ -94,7 +94,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -119,4 +119,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511310016.lua b/unofficial/c511310016.lua index f7e2ad3c7c..a28de4d78a 100644 --- a/unofficial/c511310016.lua +++ b/unofficial/c511310016.lua @@ -19,7 +19,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.cfilter(c,tp) local lv=c:GetLevel() - return lv>0 and c:IsSetCard(0x2016) and c:IsMonster() and c:IsAbleToRemoveAsCost() + return lv>0 and c:IsSetCard(SET_SPEEDROID) and c:IsMonster() and c:IsAbleToRemoveAsCost() and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,lv) end function s.filter(c,lv) @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=sg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c511310017.lua b/unofficial/c511310017.lua index 4e72e9bfe0..a1856fe155 100644 --- a/unofficial/c511310017.lua +++ b/unofficial/c511310017.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.CalculateDamage(a,at) end end -end +end \ No newline at end of file diff --git a/unofficial/c511310019.lua b/unofficial/c511310019.lua index 0a30e5e8e0..db21d514cb 100644 --- a/unofficial/c511310019.lua +++ b/unofficial/c511310019.lua @@ -37,4 +37,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511310020.lua b/unofficial/c511310020.lua index 0a3d4f45f9..06b3694a62 100644 --- a/unofficial/c511310020.lua +++ b/unofficial/c511310020.lua @@ -21,4 +21,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0) < 2 then return end IcePillarZone[tp+1] = IcePillarZone[tp+1] + Duel.SelectDisableField(tp,2,LOCATION_MZONE,0,IcePillarZone[tp+1]) -end +end \ No newline at end of file diff --git a/unofficial/c511310021.lua b/unofficial/c511310021.lua index ecdb873b7b..17ddda0a27 100644 --- a/unofficial/c511310021.lua +++ b/unofficial/c511310021.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) token:RegisterEffect(e1) Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511310023.lua b/unofficial/c511310023.lua index 583cb8cb7b..a5ce4ddc28 100644 --- a/unofficial/c511310023.lua +++ b/unofficial/c511310023.lua @@ -81,4 +81,4 @@ function card.thop(e, tp, eg, ep, ev, re, r, rp) Duel.SendtoHand(g, nil, REASON_EFFECT) Duel.ConfirmCards(1 - tp, g) end -end +end \ No newline at end of file diff --git a/unofficial/c511310024.lua b/unofficial/c511310024.lua index 9d27c0f559..80fa36146d 100644 --- a/unofficial/c511310024.lua +++ b/unofficial/c511310024.lua @@ -1,10 +1,10 @@ --屍狼の包囲網 --Surrounded by Fallen Wolves --Scripted by AlphaKretin -local s, id = GetID() +local s,id=GetID() function s.initial_effect(c) --Activate - local e1 = Effect.CreateEffect(c) + local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_ACTIVATE) @@ -14,70 +14,60 @@ function s.initial_effect(c) e1:SetOperation(s.spop) c:RegisterEffect(e1) end - -function s.spcon(e, tp, eg, ep, ev, re, r, rp) - return Duel.GetCurrentPhase() <= PHASE_MAIN1 or Duel.GetCurrentPhase() >= PHASE_MAIN2 +function s.spcon(e,tp,eg,ep,ev,re,r,rp) + return not Duel.IsBattlePhase() end - -function s.spfilter(c, e, tp, tid) - return c:IsRace(RACE_ZOMBIE) and c:IsAttackBelow(1000) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false) and - c:IsCanBeEffectTarget(e) and - (c:GetReason() & 0x41) == 0x41 and - c:GetTurnID() == tid +function s.spfilter(c,e,tp,tid) + return c:IsRace(RACE_ZOMBIE) and c:IsAttackBelow(1000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and + c:IsCanBeEffectTarget(e) and (c:GetReason()&0x41)==0x41 and c:GetTurnID()==tid end - -function s.rescon(sg, e, tp, mg) - return aux.ChkfMMZ(#sg)(sg, e, tp, mg) and sg:GetClassCount(Card.GetCode) == 1 +function s.rescon(sg,e,tp,mg) + return aux.ChkfMMZ(#sg)(sg,e,tp,mg) and sg:GetClassCount(Card.GetCode)==1 end - -function s.sptg(e, tp, eg, ep, ev, re, r, rp, chk, chkc) - local tid = Duel.GetTurnCount() - local g = Duel.GetMatchingGroup(s.spfilter, tp, LOCATION_GRAVE, 0, nil, e, tp, tid) - if chkc then - return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and s.spfilter(c, e, tp, tid) +function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) + local tid=Duel.GetTurnCount() + local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_GRAVE,0,nil,e,tp,tid) + if chkc then return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) and s.spfilter(c,e,tp,tid) end + if chk==0 then return aux.SelectUnselectGroup(g,e,tp,2,3,s.rescon,chk) and + not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) end - if chk == 0 then - return aux.SelectUnselectGroup(g, e, tp, 2, 3, s.rescon, chk) and - not Duel.IsPlayerAffectedByEffect(tp, CARD_BLUEEYES_SPIRIT) - end - local tg = aux.SelectUnselectGroup(g, e, tp, 2, 3, s.rescon, 1, tp, HINTMSG_SPSUMMON) + local tg=aux.SelectUnselectGroup(g,e,tp,2,3,s.rescon,1,tp,HINTMSG_SPSUMMON) Duel.SetTargetCard(tg) - Duel.SetOperationInfo(0, CATEGORY_SPECIAL_SUMMON, tg, #tg, 0, 0) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,tg,#tg,0,0) end - -function s.spop(e, tp, eg, ep, ev, re, r, rp) - local c = e:GetHandler() - local ft = Duel.GetLocationCount(tp, LOCATION_MZONE) +function s.spop(e,tp,eg,ep,ev,re,r,rp) + local c=e:GetHandler() + local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft <= 0 then return end - local g = Duel.GetChainInfo(0, CHAININFO_TARGET_CARDS) - local sg = g:Filter(Card.IsRelateToEffect, nil, e) - if #sg > 1 and Duel.IsPlayerAffectedByEffect(tp, CARD_BLUEEYES_SPIRIT) then + local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) + local sg=g:Filter(Card.IsRelateToEffect,nil,e) + if #sg>1 and Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end - if #sg > ft then - Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_SPSUMMON) - sg = sg:Select(tp, ft, ft, nil) + if #sg>ft then + Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) + sg=sg:Select(tp,ft,ft,nil) end - if #sg > 0 then + if #sg>0 then for sc in aux.Next(sg) do - Duel.SpecialSummonStep(sc, 0, tp, tp, false, false, POS_FACEUP_DEFENSE) - local e1 = Effect.CreateEffect(c) + Duel.SpecialSummonStep(sc,0,tp,tp,false,false,POS_FACEUP_DEFENSE) + local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_DISABLE) e1:SetReset(RESET_EVENT + RESETS_STANDARD) - sc:RegisterEffect(e1, true) - local e2 = Effect.CreateEffect(c) + sc:RegisterEffect(e1,true) + local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetReset(RESET_EVENT + RESETS_STANDARD) - sc:RegisterEffect(e2, true) + sc:RegisterEffect(e2,true) end - local ct = Duel.SpecialSummonComplete() - if ct ~= 0 then + local ct=Duel.SpecialSummonComplete() + if ct~=0 then Duel.BreakEffect() - Duel.Draw(tp, ct, REASON_EFFECT) + Duel.Draw(tp,ct,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511310025.lua b/unofficial/c511310025.lua index 676c3c32b5..dd7db7c8dc 100644 --- a/unofficial/c511310025.lua +++ b/unofficial/c511310025.lua @@ -56,4 +56,4 @@ function card.spop(e, tp, eg, ep, ev, re, r, rp) Duel.ConfirmCards(1 - tp, tg) end end -end +end \ No newline at end of file diff --git a/unofficial/c511310026.lua b/unofficial/c511310026.lua index 634ecd241c..04858c335d 100644 --- a/unofficial/c511310026.lua +++ b/unofficial/c511310026.lua @@ -39,4 +39,4 @@ function card.spop(e, tp, eg, ep, ev, re, r, rp) if #g > 0 then Duel.SpecialSummon(g, 0, tp, tp, false, false, POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511310027.lua b/unofficial/c511310027.lua index cdc2876b97..7f6a719d2a 100644 --- a/unofficial/c511310027.lua +++ b/unofficial/c511310027.lua @@ -49,4 +49,4 @@ function card.raop(e, tp, eg, ep, ev, re, r, rp) e1:SetReset(RESET_PHASE + PHASE_END) e1:SetValue(1) Duel.RegisterEffect(e1, tp) -end +end \ No newline at end of file diff --git a/unofficial/c511310029.lua b/unofficial/c511310029.lua index 83f0bc0483..1644701faf 100644 --- a/unofficial/c511310029.lua +++ b/unofficial/c511310029.lua @@ -82,4 +82,4 @@ end function card.tdop(e, tp, eg, ep, ev, re, r, rp) Duel.SendtoDeck(e:GetHandler(), nil, 2, REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511310032.lua b/unofficial/c511310032.lua index 0ded9ec61c..933b24ef6f 100644 --- a/unofficial/c511310032.lua +++ b/unofficial/c511310032.lua @@ -15,7 +15,7 @@ function card.initial_effect(c) c:RegisterEffect(e1) end function card.linkcheck(c) - return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_LINK) and c:IsStatus(STATUS_SPSUMMON_TURN) and + return c:IsFaceup() and c:IsLinkSummoned() and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsLinkMonster() end function card.descon(e, tp, eg, ep, ev, re, r, rp) diff --git a/unofficial/c511310034.lua b/unofficial/c511310034.lua index f0eefed835..c01e64b2ec 100644 --- a/unofficial/c511310034.lua +++ b/unofficial/c511310034.lua @@ -66,4 +66,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511310035.lua b/unofficial/c511310035.lua index 38841b70e7..d419207909 100644 --- a/unofficial/c511310035.lua +++ b/unofficial/c511310035.lua @@ -33,14 +33,14 @@ end s.listed_series={0x14} s.listed_names={511310036} function s.atkcon(e) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.atkval(e,c) - local g=e:GetHandler():GetLinkedGroup():Filter(aux.FaceupFilter(Card.IsSetCard,0x14),nil) + local g=e:GetHandler():GetLinkedGroup():Filter(aux.FaceupFilter(Card.IsSetCard,SET_ALLURE_QUEEN),nil) return g:GetSum(Card.GetAttack) end function s.tgfilter(c,tp) - return c:IsOnField() and c:IsControler(tp) and c:IsFaceup() and c:IsSetCard(0x14) + return c:IsOnField() and c:IsControler(tp) and c:IsFaceup() and c:IsSetCard(SET_ALLURE_QUEEN) end function s.indcon(e,tp,eg,ep,ev,re,r,rp) local tg=eg:Filter(s.tgfilter,nil,tp) @@ -77,4 +77,4 @@ function s.indop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(dg,REASON_EFFECT) end tg:DeleteGroup() -end +end \ No newline at end of file diff --git a/unofficial/c511310036.lua b/unofficial/c511310036.lua index fd38232930..e2ccacf5e5 100644 --- a/unofficial/c511310036.lua +++ b/unofficial/c511310036.lua @@ -58,7 +58,7 @@ s.listed_series={0x14} function s.regop(e) if s.global_check then return end s.global_check = true - local g=Duel.GetMatchingGroup(Card.IsOriginalSetCard,0,0xff,0xff,nil,0x14) + local g=Duel.GetMatchingGroup(Card.IsOriginalSetCard,0,SET_CLEAR_WING,SET_CLEAR_WING,nil,SET_ALLURE_QUEEN) for tc in aux.Next(g) do local effs={tc:GetCardEffect(511310036)} for _,teh in ipairs(effs) do @@ -108,4 +108,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,1-tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511310038.lua b/unofficial/c511310038.lua index 3ddd26c585..70ee4159ad 100644 --- a/unofficial/c511310038.lua +++ b/unofficial/c511310038.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) end s.listed_series={0x10b} function s.cfilter(c,tp) - return c:IsSetCard(0x10b) and c:IsDiscardable(REASON_EFFECT) and not s.name_list[tp][c:GetCode()] + return c:IsSetCard(SET_TINDANGLE) and c:IsDiscardable(REASON_EFFECT) and not s.name_list[tp][c:GetCode()] end function s.posfilter(c) return c:IsCanChangePosition() and (c:IsPosition(POS_FACEUP_ATTACK) or c:IsPosition(POS_FACEDOWN_DEFENSE)) @@ -53,4 +53,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE,0,0,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511310100.lua b/unofficial/c511310100.lua index 254688e71e..e2fba860d7 100644 --- a/unofficial/c511310100.lua +++ b/unofficial/c511310100.lua @@ -43,7 +43,7 @@ function s.filter(c) return c:IsCode(511310101,511310102,511310103,511310104,511310105) and c:IsSSetable(true) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil):GetClassCount(Card.GetCode)==5 end + if chk==0 then return Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil):GetClassCount(Card.GetCode)==5 end local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_SZONE,0,e:GetHandler()) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,0,0) end @@ -57,7 +57,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(g,REASON_EFFECT) if Duel.GetLocationCount(tp,LOCATION_SZONE)<5 then return end Duel.BreakEffect() - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil) + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil) if not s.rescon(sg) then return end local setg=aux.SelectUnselectGroup(sg,e,tp,5,5,s.rescon,1,tp,HINTMSG_SET) if #sg>0 then diff --git a/unofficial/c511310101.lua b/unofficial/c511310101.lua index 75c2666735..56679cda12 100644 --- a/unofficial/c511310101.lua +++ b/unofficial/c511310101.lua @@ -49,4 +49,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) else Duel.RegisterFlagEffect(tp,id,RESET_CHAIN,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511310102.lua b/unofficial/c511310102.lua index 943c48764b..b00efb8c23 100644 --- a/unofficial/c511310102.lua +++ b/unofficial/c511310102.lua @@ -38,4 +38,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) else Duel.RegisterFlagEffect(tp,id,RESET_CHAIN,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511310103.lua b/unofficial/c511310103.lua index 9ab9b22ffb..e2929a4121 100644 --- a/unofficial/c511310103.lua +++ b/unofficial/c511310103.lua @@ -42,4 +42,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) else Duel.RegisterFlagEffect(tp,id,RESET_CHAIN,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511310104.lua b/unofficial/c511310104.lua index 6b4841d924..0afffaed13 100644 --- a/unofficial/c511310104.lua +++ b/unofficial/c511310104.lua @@ -139,4 +139,4 @@ function s.infop(e,tp,eg,ep,ev,re,r,rp) Duel.RaiseSingleEvent(ac,EVENT_CUSTOM+id,e,0,tp,tp,0) end end -end +end \ No newline at end of file diff --git a/unofficial/c511310105.lua b/unofficial/c511310105.lua index 34b9bccbf4..348ec31118 100644 --- a/unofficial/c511310105.lua +++ b/unofficial/c511310105.lua @@ -139,4 +139,4 @@ function s.infop(e,tp,eg,ep,ev,re,r,rp) Duel.RaiseSingleEvent(ac,EVENT_CUSTOM+511310104,e,0,tp,tp,0) end end -end +end \ No newline at end of file diff --git a/unofficial/c511310106.lua b/unofficial/c511310106.lua index 5f22daae04..e67072a3d7 100644 --- a/unofficial/c511310106.lua +++ b/unofficial/c511310106.lua @@ -44,7 +44,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EVENT_PHASE+PHASE_STANDBY) e1:SetCondition(s.spcon) e1:SetOperation(s.spop) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY then e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,3) e1:SetLabel(-1) else @@ -56,7 +56,7 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) end end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -81,4 +81,4 @@ end function s.lpop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.SetLP(p,4000) -end +end \ No newline at end of file diff --git a/unofficial/c511310107.lua b/unofficial/c511310107.lua index 3d0c1b27e3..6d2f0a329f 100644 --- a/unofficial/c511310107.lua +++ b/unofficial/c511310107.lua @@ -44,4 +44,4 @@ end function s.lpop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.SetLP(p,4000) -end +end \ No newline at end of file diff --git a/unofficial/c511310108.lua b/unofficial/c511310108.lua index d5c151a2f7..8c117b6972 100644 --- a/unofficial/c511310108.lua +++ b/unofficial/c511310108.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511310109.lua b/unofficial/c511310109.lua index 183ddaf173..0480c2729f 100644 --- a/unofficial/c511310109.lua +++ b/unofficial/c511310109.lua @@ -32,7 +32,7 @@ function s.rvop(e,tp,eg,ep,ev,re,r,rp) Duel.SelectMatchingCard(tp,Card.IsFacedown,tp,LOCATION_SZONE,0,1,1,nil) end function s.regcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsAttackPos() and Duel.GetTurnPlayer()==tp + return e:GetHandler():IsAttackPos() and Duel.IsTurnPlayer(tp) end function s.regop(e,tp,eg,ep,ev,re,r,rp) --Decrease Tribute @@ -53,4 +53,4 @@ function s.ntcon(e,c,minc) end function s.nttg(e,c) return c:IsLevelAbove(5) -end +end \ No newline at end of file diff --git a/unofficial/c511310110.lua b/unofficial/c511310110.lua index ed522c593a..45ef2b6796 100644 --- a/unofficial/c511310110.lua +++ b/unofficial/c511310110.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SendtoDeck(c,1-tp,2,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511310111.lua b/unofficial/c511310111.lua index ce1803ebce..448e1069ed 100644 --- a/unofficial/c511310111.lua +++ b/unofficial/c511310111.lua @@ -59,4 +59,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511310112.lua b/unofficial/c511310112.lua index b617413c0d..d1405e3c39 100644 --- a/unofficial/c511310112.lua +++ b/unofficial/c511310112.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511310113.lua b/unofficial/c511310113.lua index 015321090f..2dae4e0be2 100644 --- a/unofficial/c511310113.lua +++ b/unofficial/c511310113.lua @@ -121,4 +121,4 @@ end function s.lpop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.SetLP(p,4000) -end +end \ No newline at end of file diff --git a/unofficial/c511369001.lua b/unofficial/c511369001.lua index cd45e67901..eecc4ad581 100644 --- a/unofficial/c511369001.lua +++ b/unofficial/c511369001.lua @@ -71,4 +71,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) end end Duel.ShuffleHand(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511369002.lua b/unofficial/c511369002.lua index d336dc2bf7..b8c3e27d87 100644 --- a/unofficial/c511369002.lua +++ b/unofficial/c511369002.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,id) e2:SetCondition(s.actcon2) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.acttg2) e2:SetOperation(s.actop2) c:RegisterEffect(e2) @@ -43,11 +43,11 @@ function s.actfilter(c,tp) return c:IsCode(511600232) and c:GetActivateEffect():IsActivatable(tp,true,true) end function s.acttg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.actfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,tp) end + if chk==0 then return Duel.IsExistingMatchingCard(aux.NecroValleyFilter(s.actfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil,tp) end end function s.actop(e,tp,eg,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(48934760,0)) - local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.actfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.actfilter),tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil,tp):GetFirst() Duel.ActivateFieldSpell(tc,e,tp,eg,ep,ev,re,r,rp) end function s.cfilter(c) diff --git a/unofficial/c511369003.lua b/unofficial/c511369003.lua index 22547a3d3f..e03020dc86 100644 --- a/unofficial/c511369003.lua +++ b/unofficial/c511369003.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1) e2:SetCondition(s.spcon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.sptg) e2:SetOperation(s.spop) c:RegisterEffect(e2) @@ -84,7 +84,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e1,tp) Duel.BreakEffect() - c:RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,1) + c:RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,1) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) --start of main2 event trigger local m2=Effect.CreateEffect(c) @@ -143,4 +143,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511369004.lua b/unofficial/c511369004.lua index 55bd534feb..47b2c3dde5 100644 --- a/unofficial/c511369004.lua +++ b/unofficial/c511369004.lua @@ -69,4 +69,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(p,d,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511369005.lua b/unofficial/c511369005.lua index a8235433f3..2a8368c67b 100644 --- a/unofficial/c511369005.lua +++ b/unofficial/c511369005.lua @@ -71,4 +71,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if c:IsFaceup() and c:IsRelateToEffect(e) then Duel.SendtoHand(c,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511369006.lua b/unofficial/c511369006.lua index 194c0373d7..171afb3e6b 100644 --- a/unofficial/c511369006.lua +++ b/unofficial/c511369006.lua @@ -93,4 +93,4 @@ function s.atval(e,c) local g=Duel.GetMatchingGroup(s.atfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil) if #g>1 then return false end return g:IsContains(c) -end +end \ No newline at end of file diff --git a/unofficial/c511445000.lua b/unofficial/c511445000.lua index 27944b736d..8890b7e0f1 100644 --- a/unofficial/c511445000.lua +++ b/unofficial/c511445000.lua @@ -61,4 +61,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0 then Duel.Damage(1-tp,500,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511445002.lua b/unofficial/c511445002.lua index 7de319888f..d67d2d2d60 100644 --- a/unofficial/c511445002.lua +++ b/unofficial/c511445002.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.ChangePosition(c,POS_FACEUP_DEFENSE)>0 and Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511445004.lua b/unofficial/c511445004.lua index ec87c4ba5e..6163ba251f 100644 --- a/unofficial/c511445004.lua +++ b/unofficial/c511445004.lua @@ -46,4 +46,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600000.lua b/unofficial/c511600000.lua index c449c34bd2..53e5ec75df 100644 --- a/unofficial/c511600000.lua +++ b/unofficial/c511600000.lua @@ -96,4 +96,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511600001.lua b/unofficial/c511600001.lua index 8ea7df8793..2e63914320 100644 --- a/unofficial/c511600001.lua +++ b/unofficial/c511600001.lua @@ -59,4 +59,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UPDATE_RSCALE) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511600002.lua b/unofficial/c511600002.lua index aa59ac12e5..78de32518f 100644 --- a/unofficial/c511600002.lua +++ b/unofficial/c511600002.lua @@ -166,4 +166,4 @@ end --no battle damaged function s.bcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttackTarget()~=nil -end +end \ No newline at end of file diff --git a/unofficial/c511600003.lua b/unofficial/c511600003.lua index 6a3944a623..c5b8f8056d 100644 --- a/unofficial/c511600003.lua +++ b/unofficial/c511600003.lua @@ -52,12 +52,12 @@ function s.filter(c) return c:IsMonster() and c:IsAbleToRemove() and aux.SpElimFilter(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,1,nil) end - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,1,nil) end + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,nil) if g:FilterCount(Card.IsControler,nil,1-tp)==0 then - Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,tp,LOCATION_MZONE+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,tp,LOCATION_MZONE|LOCATION_GRAVE) elseif g:FilterCount(Card.IsControler,nil,tp)==0 then - Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,1-tp,LOCATION_MZONE+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,1-tp,LOCATION_MZONE|LOCATION_GRAVE) else Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,#g,PLAYER_ALL,LOCATION_GRAVE) end @@ -67,7 +67,7 @@ function s.spfilter(c,e,tp) and c:IsLocation(LOCATION_REMOVED) and c:GetLevel()>0 end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,nil) + local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,nil) if Duel.Remove(g,POS_FACEUP,REASON_EFFECT)>0 then local og=Duel.GetOperatedGroup():Filter(s.spfilter,nil,e,tp) if #og>0 and Duel.SelectYesNo(tp,aux.Stringid(511500003,0)) then @@ -80,4 +80,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600004.lua b/unofficial/c511600004.lua index 5edcd2f635..9d742b2fe5 100644 --- a/unofficial/c511600004.lua +++ b/unofficial/c511600004.lua @@ -62,4 +62,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(e:GetHandler(),nil,REASON_EFFECT) if re then re:Reset() end end -end +end \ No newline at end of file diff --git a/unofficial/c511600005.lua b/unofficial/c511600005.lua index 3fa02e53dd..cc49797246 100644 --- a/unofficial/c511600005.lua +++ b/unofficial/c511600005.lua @@ -78,4 +78,4 @@ function s.reset(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():CancelCardTarget(tc) end e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511600007.lua b/unofficial/c511600007.lua index 20bcdcd59f..24453948b2 100644 --- a/unofficial/c511600007.lua +++ b/unofficial/c511600007.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ec:GetOriginalLevel()+ec:GetOriginalRank(),ec:GetOriginalRace(),ec:GetOriginalAttribute()) then return end local tc=Duel.CreateToken(tp,ec:GetOriginalCode()) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511600008.lua b/unofficial/c511600008.lua index a50b3a7719..56d48f28a1 100644 --- a/unofficial/c511600008.lua +++ b/unofficial/c511600008.lua @@ -33,4 +33,4 @@ end function s.damval(e,re,val,r,rp,rc) if (r&REASON_EFFECT)~=0 then return 0 end return val -end +end \ No newline at end of file diff --git a/unofficial/c511600009.lua b/unofficial/c511600009.lua index ce1b648692..18195c0d9b 100644 --- a/unofficial/c511600009.lua +++ b/unofficial/c511600009.lua @@ -38,4 +38,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,ct*tc:GetLevel()*100,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600013.lua b/unofficial/c511600013.lua index ffb9fe65b7..830482e8cd 100644 --- a/unofficial/c511600013.lua +++ b/unofficial/c511600013.lua @@ -31,4 +31,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600018.lua b/unofficial/c511600018.lua index c2e94159f7..902d74ac1f 100644 --- a/unofficial/c511600018.lua +++ b/unofficial/c511600018.lua @@ -29,4 +29,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600020.lua b/unofficial/c511600020.lua index 220d027250..0016c60176 100644 --- a/unofficial/c511600020.lua +++ b/unofficial/c511600020.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) e2:SetRange(LOCATION_GRAVE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) e2:SetCode(EVENT_FREE_CHAIN) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.sptg) e2:SetOperation(s.spop) c:RegisterEffect(e2) diff --git a/unofficial/c511600021.lua b/unofficial/c511600021.lua index b72283a4e1..ec943e6bcb 100644 --- a/unofficial/c511600021.lua +++ b/unofficial/c511600021.lua @@ -76,7 +76,7 @@ function s.sumlimit(e,c) return c:IsLinkMonster() and c:GetLink()>e:GetHandler():GetCounter(0x48) end function s.dfilter(c,tp,ct) - return c:IsFaceup() and c:IsSummonPlayer(tp) and c:IsRace(RACE_DRAGON) and c:IsSummonType(SUMMON_TYPE_LINK) and c:GetLink()0 end function s.cfilter(c) @@ -103,7 +103,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end end function s.rccon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.rcop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -114,4 +114,4 @@ function s.rcop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(c:GetEquipTarget(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600025.lua b/unofficial/c511600025.lua index dd5ff853d0..6c50deeaca 100644 --- a/unofficial/c511600025.lua +++ b/unofficial/c511600025.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetDescription(aux.Stringid(7445307,0)) e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetType(EFFECT_TYPE_IGNITION) - e1:SetRange(LOCATION_GRAVE+LOCATION_HAND) + e1:SetRange(LOCATION_GRAVE|LOCATION_HAND) e1:SetCountLimit(1,id) e1:SetCost(s.spcost) e1:SetTarget(s.sptg) @@ -31,14 +31,14 @@ function s.cfilter(c) return c:IsRace(RACE_CYBERSE) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) - local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,e:GetHandler()) + local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,e:GetHandler()) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-2 and #g>1 and aux.SelectUnselectGroup(g,e,tp,2,2,aux.ChkfMMZ(1),0) end local sg=aux.SelectUnselectGroup(g,e,tp,2,2,aux.ChkfMMZ(1),1,tp,HINTMSG_REMOVE) Duel.Remove(sg,POS_FACEUP,REASON_COST) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,tp,LOCATION_GRAVE+LOCATION_HAND) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,tp,LOCATION_GRAVE|LOCATION_HAND) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -75,4 +75,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) Duel.HintSelection(g) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600026.lua b/unofficial/c511600026.lua index 30983bab7e..9c22872e00 100644 --- a/unofficial/c511600026.lua +++ b/unofficial/c511600026.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_CHAINING) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(s.discon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetOperation(s.disop) c:RegisterEffect(e2) end diff --git a/unofficial/c511600027.lua b/unofficial/c511600027.lua index a90ef2e6b4..a99eadeda0 100644 --- a/unofficial/c511600027.lua +++ b/unofficial/c511600027.lua @@ -76,4 +76,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ft=math.min(ft,2) local sg=aux.SelectUnselectGroup(g,e,tp,1,ft,aux.dncheck,1,tp,HINTMSG_SPSUMMON) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_DEFENSE) -end +end \ No newline at end of file diff --git a/unofficial/c511600029.lua b/unofficial/c511600029.lua index 99b23831e4..744485161e 100644 --- a/unofficial/c511600029.lua +++ b/unofficial/c511600029.lua @@ -77,4 +77,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600032.lua b/unofficial/c511600032.lua index b3d005a6bf..97e093e0b1 100644 --- a/unofficial/c511600032.lua +++ b/unofficial/c511600032.lua @@ -41,7 +41,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(g,REASON_EFFECT) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.filter(c,e,tp,zone) return c:IsSetCard(0x570) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) @@ -60,4 +60,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP,zone) end -end +end \ No newline at end of file diff --git a/unofficial/c511600033.lua b/unofficial/c511600033.lua index aa28bcb808..e68d514c30 100644 --- a/unofficial/c511600033.lua +++ b/unofficial/c511600033.lua @@ -47,4 +47,4 @@ end function s.tdop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.tdfilter,tp,LOCATION_MZONE,LOCATION_MZONE,e:GetHandler()) Duel.SendtoGrave(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600035.lua b/unofficial/c511600035.lua index fde22cd1d5..3e1cebed15 100644 --- a/unofficial/c511600035.lua +++ b/unofficial/c511600035.lua @@ -68,4 +68,4 @@ function s.edcon(e,tp,eg,ep,ev,re,r,rp) end function s.edop(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(Duel.GetTurnPlayer(),PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE,1) -end +end \ No newline at end of file diff --git a/unofficial/c511600036.lua b/unofficial/c511600036.lua index 920fb06834..e25d286325 100644 --- a/unofficial/c511600036.lua +++ b/unofficial/c511600036.lua @@ -86,4 +86,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsLocation(LOCATION_MZONE) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600038.lua b/unofficial/c511600038.lua index af6d349ffb..4d731b6a2d 100644 --- a/unofficial/c511600038.lua +++ b/unofficial/c511600038.lua @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) aux.DelayedOperation(tc,PHASE_END,id,e,tp,function(ag) Duel.Destroy(ag,REASON_EFFECT) end,nil,0) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600039.lua b/unofficial/c511600039.lua index 4ac3bf8598..fe0773763a 100644 --- a/unofficial/c511600039.lua +++ b/unofficial/c511600039.lua @@ -59,7 +59,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return #dg>0 end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x99) + return c:IsFaceup() and c:IsSetCard(SET_ODD_EYES) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -100,4 +100,4 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.value(e,c) return s.desfilter(c,e:GetLabelObject()) -end +end \ No newline at end of file diff --git a/unofficial/c511600044.lua b/unofficial/c511600044.lua index dbae6035f4..050be38f31 100644 --- a/unofficial/c511600044.lua +++ b/unofficial/c511600044.lua @@ -16,11 +16,11 @@ end s.listed_series={0xfb} function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(Card.IsSummonType,1,nil,SUMMON_TYPE_LINK) and ep==tp - and (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) + and Duel.IsMainPhase() and Duel.GetFlagEffect(tp,id)==0 end function s.filter(c) - return c:IsMonster() and c:IsAbleToHandAsCost() and c:IsSetCard(0xfb) + return c:IsMonster() and c:IsAbleToHandAsCost() and c:IsSetCard(SET_TRICKSTAR) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil) end @@ -35,9 +35,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_EXTRA_SUMMON_COUNT) - e1:SetTargetRange(LOCATION_HAND+LOCATION_MZONE,0) - e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xfb)) + e1:SetTargetRange(LOCATION_HAND|LOCATION_MZONE,0) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_TRICKSTAR)) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end \ No newline at end of file diff --git a/unofficial/c511600045.lua b/unofficial/c511600045.lua index cf4deea226..1643407830 100644 --- a/unofficial/c511600045.lua +++ b/unofficial/c511600045.lua @@ -92,7 +92,7 @@ function s.setcon(e,tp,eg,ep,ev,re,r,rp) return not Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) end function s.cfilter(c,tp) - return c:IsTrap() and c:IsSetCard(0xfb) and not c:IsPublic() and c:IsSSetable() + return c:IsTrap() and c:IsSetCard(SET_TRICKSTAR) and not c:IsPublic() and c:IsSSetable() and c:GetFlagEffect(511600044)==0 end function s.setcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -148,4 +148,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600048.lua b/unofficial/c511600048.lua index e19f5df240..1f127a989c 100644 --- a/unofficial/c511600048.lua +++ b/unofficial/c511600048.lua @@ -90,4 +90,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) at:RegisterEffect(e3) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600049.lua b/unofficial/c511600049.lua index 6f59a41405..9fb7decd02 100644 --- a/unofficial/c511600049.lua +++ b/unofficial/c511600049.lua @@ -90,4 +90,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) at:RegisterEffect(e3) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600050.lua b/unofficial/c511600050.lua index cfd0b2794b..a0ca738a8d 100644 --- a/unofficial/c511600050.lua +++ b/unofficial/c511600050.lua @@ -55,7 +55,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.hvcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.hvop(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,math.ceil(Duel.GetLP(tp)/2)) diff --git a/unofficial/c511600055.lua b/unofficial/c511600055.lua index 99a6b553e9..0943a69b2e 100644 --- a/unofficial/c511600055.lua +++ b/unofficial/c511600055.lua @@ -69,4 +69,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(e:GetLabel()) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600056.lua b/unofficial/c511600056.lua index 17a3fbcc0e..ed55334b6b 100644 --- a/unofficial/c511600056.lua +++ b/unofficial/c511600056.lua @@ -35,7 +35,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.spfilter(c,e,tp,zone) if not zone then zone=0xff end - return c:IsSetCard(0x101) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) + return c:IsSetCard(SET_CODE_TALKER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local zone=e:GetHandler():GetFreeLinkedZone()&0x1f diff --git a/unofficial/c511600057.lua b/unofficial/c511600057.lua index 6d687241c9..b7ae1946a2 100644 --- a/unofficial/c511600057.lua +++ b/unofficial/c511600057.lua @@ -83,4 +83,4 @@ function s.descon2(e,tp,eg,ep,ev,re,r,rp) end function s.desop2(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600058.lua b/unofficial/c511600058.lua index 8934945941..436c87f770 100644 --- a/unofficial/c511600058.lua +++ b/unofficial/c511600058.lua @@ -72,4 +72,4 @@ function s.atktg(e,c) end function s.atkval(e,c) return Duel.GetMatchingGroupCount(Card.IsType,0,LOCATION_GRAVE,LOCATION_GRAVE,nil,TYPE_LINK)*-400 -end +end \ No newline at end of file diff --git a/unofficial/c511600059.lua b/unofficial/c511600059.lua index 8ce773473b..df25ee9f3b 100644 --- a/unofficial/c511600059.lua +++ b/unofficial/c511600059.lua @@ -27,9 +27,9 @@ function s.cfilter(c) return c:IsSpellTrap() and c:IsAbleToRemoveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE+LOCATION_ONFIELD,0,2,e:GetLabelObject()) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE|LOCATION_ONFIELD,0,2,e:GetLabelObject()) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE+LOCATION_ONFIELD,0,2,2,e:GetLabelObject()) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE|LOCATION_ONFIELD,0,2,2,e:GetLabelObject()) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.activate(e,tp,eg,ep,ev,re,r,rp) @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE_CAL) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600060.lua b/unofficial/c511600060.lua index 3ac4e6da58..d8ee1f11f8 100644 --- a/unofficial/c511600060.lua +++ b/unofficial/c511600060.lua @@ -90,7 +90,7 @@ function s.edop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetOwnerPlayer(tp) e1:SetCondition(s.atkcon) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.atktg) e1:SetOperation(s.atkop) c:RegisterEffect(e1) @@ -111,4 +111,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e1) end) -end +end \ No newline at end of file diff --git a/unofficial/c511600061.lua b/unofficial/c511600061.lua index d6d53f33c0..8a5d27fce8 100644 --- a/unofficial/c511600061.lua +++ b/unofficial/c511600061.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) g:GetFirst():RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600064.lua b/unofficial/c511600064.lua index e136c6b170..e5222b1b6e 100644 --- a/unofficial/c511600064.lua +++ b/unofficial/c511600064.lua @@ -99,4 +99,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600065.lua b/unofficial/c511600065.lua index 4b11884b90..293bc9469b 100644 --- a/unofficial/c511600065.lua +++ b/unofficial/c511600065.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) end s.listed_series={0xad} function s.spfilter(c,e,tp,sc) - return c:IsSetCard(0xad) and c:IsLevelBelow(sc) + return c:IsSetCard(SET_FRIGHTFUR) and c:IsLevelBelow(sc) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end function s.penfilter(c,e,tp) diff --git a/unofficial/c511600066.lua b/unofficial/c511600066.lua index 85f2be836f..714621de24 100644 --- a/unofficial/c511600066.lua +++ b/unofficial/c511600066.lua @@ -116,4 +116,4 @@ function s.atkcon(e) local link=e:GetLabel()&0xf local p=e:GetLabel()>>4 return Duel.GetMatchingGroupCount(s.filter,p,0,LOCATION_MZONE,nil)=5 + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetEquipTarget() and e:GetHandler():GetTurnCounter()>=5 end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler():GetEquipTarget(),REASON_EFFECT) @@ -138,4 +138,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,0,tp,tp,true,true,POS_FACEUP) sc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c511600070.lua b/unofficial/c511600070.lua index c28222afff..3d79a9409d 100644 --- a/unofficial/c511600070.lua +++ b/unofficial/c511600070.lua @@ -84,4 +84,4 @@ function s.splimit(target) end function s.xyzfilter(c,xyz,sumtype,tp) return c:IsType(TYPE_XYZ,xyz,sumtype,tp) and c:IsSetCard(SET_NUMBER_S,xyz,sumtype,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600071.lua b/unofficial/c511600071.lua index e82692b860..04a6132e31 100644 --- a/unofficial/c511600071.lua +++ b/unofficial/c511600071.lua @@ -77,4 +77,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else notSg:ForEach(function(_c) _c:ResetEffect(id,RESET_CARD) end) end -end +end \ No newline at end of file diff --git a/unofficial/c511600073.lua b/unofficial/c511600073.lua index a629afc427..afa40139e0 100644 --- a/unofficial/c511600073.lua +++ b/unofficial/c511600073.lua @@ -47,7 +47,7 @@ s.listed_series={0xfb} function s.reccon(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetAttacker() if tc:IsControler(1-tp) then tc=Duel.GetAttackTarget() end - return tc and tc:IsControler(tp) and tc:IsSetCard(0xfb) and tc:IsLinkMonster() and Duel.GetBattleDamage(tp)>0 + return tc and tc:IsControler(tp) and tc:IsSetCard(SET_TRICKSTAR) and tc:IsLinkMonster() and Duel.GetBattleDamage(tp)>0 end function s.rectg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -74,10 +74,10 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) local ec=eg:GetFirst() - return ec:IsSetCard(0xfb) and ec:IsSummonType(SUMMON_TYPE_LINK) and ec:IsSummonPlayer(tp) + return ec:IsSetCard(SET_TRICKSTAR) and ec:IsLinkSummoned() and ec:IsSummonPlayer(tp) end function s.spfilter(c,e,tp) - return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:IsSetCard(0xfb) + return c:IsLocation(LOCATION_GRAVE) and c:IsControler(tp) and c:IsSetCard(SET_TRICKSTAR) and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) diff --git a/unofficial/c511600076.lua b/unofficial/c511600076.lua index 9efa90684f..807affbcac 100644 --- a/unofficial/c511600076.lua +++ b/unofficial/c511600076.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) @@ -49,4 +49,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if dg then Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600077.lua b/unofficial/c511600077.lua index eccc89e3b6..d321f57920 100644 --- a/unofficial/c511600077.lua +++ b/unofficial/c511600077.lua @@ -47,4 +47,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) token:RegisterEffect(e1,true) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511600079.lua b/unofficial/c511600079.lua index b72d8a5881..df56cb8020 100644 --- a/unofficial/c511600079.lua +++ b/unofficial/c511600079.lua @@ -49,4 +49,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local sg=g:Select(tp,1,1,nil) Duel.LinkSummon(tp,sg:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c511600080.lua b/unofficial/c511600080.lua index 7b343ee295..ccdd4dbf92 100644 --- a/unofficial/c511600080.lua +++ b/unofficial/c511600080.lua @@ -42,7 +42,7 @@ function s.atktg(e,c) return c==e:GetHandler() or g:IsContains(c) end function s.filter(c,e,tp,zone) - return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) and c:IsSetCard(0x101) + return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) and c:IsSetCard(SET_CODE_TALKER) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local zone=e:GetHandler():GetLinkedZone(tp)&0x1f diff --git a/unofficial/c511600082.lua b/unofficial/c511600082.lua index 6c9431230d..0b85df20d6 100644 --- a/unofficial/c511600082.lua +++ b/unofficial/c511600082.lua @@ -47,11 +47,11 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.cfilter(c,e) - return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:GetTurnID()==Duel.GetTurnCount() + return c:IsFaceup() and c:IsPendulumSummoned() and c:GetTurnID()==Duel.GetTurnCount() and (not e or c:IsCanBeEffectTarget(e)) end function s.cfilter2(c,tc) - return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:GetTurnID()==Duel.GetTurnCount() + return c:IsFaceup() and c:IsPendulumSummoned() and c:GetTurnID()==Duel.GetTurnCount() and tc and c:IsLevel(tc:GetLevel()+1) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) @@ -124,7 +124,7 @@ function s.sfilter(c,tp,sc) and rg:IsExists(s.filterchk,1,nil,rg,Group.CreateGroup(),tp,c,sc) end function s.pfilter(c) - return c:IsLevelBelow(2147483647) and c:IsType(TYPE_PENDULUM) and c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:IsReleasable() + return c:IsLevelBelow(2147483647) and c:IsType(TYPE_PENDULUM) and c:IsPendulumSummoned() and c:IsReleasable() end function s.filterchk(c,g,sg,tp,sync,sc) sg:AddCard(c) @@ -183,4 +183,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.MoveToField(c,tp,tp,LOCATION_PZONE,POS_FACEUP,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511600083.lua b/unofficial/c511600083.lua index e1a47c7932..c8d13b43b8 100644 --- a/unofficial/c511600083.lua +++ b/unofficial/c511600083.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x9f} function s.filter(c) - return c:IsSetCard(0x9f) and c:IsMonster() and c:IsAbleToDeck() and not c:IsPublic() + return c:IsSetCard(SET_PERFORMAPAL) and c:IsMonster() and c:IsAbleToDeck() and not c:IsPublic() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp) diff --git a/unofficial/c511600085.lua b/unofficial/c511600085.lua index 4c5fad04f9..80bdcf3222 100644 --- a/unofficial/c511600085.lua +++ b/unofficial/c511600085.lua @@ -58,7 +58,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else Duel.SortDecktop(tp,tp,ct) end end function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetTurnPlayer()==tp + if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsTurnPlayer(tp) and e:GetLabelObject():IsCanBeSpecialSummoned(e,0,tp,false,false) end end function s.sumop(e,tp,eg,ep,ev,re,r,rp) diff --git a/unofficial/c511600088.lua b/unofficial/c511600088.lua index 38ad05205a..0ed0140f14 100644 --- a/unofficial/c511600088.lua +++ b/unofficial/c511600088.lua @@ -82,4 +82,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if not aux.SelectUnselectGroup(sg,e,tp,ct,ct,s.rescon2(cg),0) then return end local spg=aux.SelectUnselectGroup(sg,e,tp,ct,ct,s.rescon2(cg),1,tp,HINTMSG_SPSUMMON) Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511600089.lua b/unofficial/c511600089.lua index ca22e915a4..ee19e253fd 100644 --- a/unofficial/c511600089.lua +++ b/unofficial/c511600089.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) end s.listed_series={0xfb} function s.filter(c,ec) - return c:IsLinkMonster() and c:IsFaceup() and c:IsSetCard(0xfb) + return c:IsLinkMonster() and c:IsFaceup() and c:IsSetCard(SET_TRICKSTAR) and (c:GetLinkedGroup():IsExists(Card.IsAbleToGraveAsCost,1,nil) or ec:IsAbleToGraveAsCost()) end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -52,4 +52,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600090.lua b/unofficial/c511600090.lua index 876e001347..2fdc2374af 100644 --- a/unofficial/c511600090.lua +++ b/unofficial/c511600090.lua @@ -103,4 +103,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600091.lua b/unofficial/c511600091.lua index b78dd5c56a..ce415c518c 100644 --- a/unofficial/c511600091.lua +++ b/unofficial/c511600091.lua @@ -77,4 +77,4 @@ function s.regcon(e,tp,eg,ep,ev,re,r,rp) end function s.regop(e,tp,eg,ep,ev,re,r,rp) e:GetHandler():RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) -end +end \ No newline at end of file diff --git a/unofficial/c511600094.lua b/unofficial/c511600094.lua index 6186349e20..de7cb5c7b5 100644 --- a/unofficial/c511600094.lua +++ b/unofficial/c511600094.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) Duel.AddCustomActivityCounter(id,ACTIVITY_SPSUMMON,s.counterfilter) end function s.counterfilter(c) - return not c:IsSummonType(SUMMON_TYPE_PENDULUM) + return not c:IsPendulumSummoned() end function s.scfilter(c,pc) return c:IsType(TYPE_PENDULUM) and not c:IsForbidden() and c:IsLevelAbove(1) @@ -75,4 +75,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetReset(RESET_EVENT|RESETS_STANDARD_EXC_GRAVE) bc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511600095.lua b/unofficial/c511600095.lua index 8af9e5a76b..5319da279b 100644 --- a/unofficial/c511600095.lua +++ b/unofficial/c511600095.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.ChangeTargetCard(ev,Group.FromCards(tc)) end -end +end \ No newline at end of file diff --git a/unofficial/c511600097.lua b/unofficial/c511600097.lua index a3825ac11a..e0052df3f9 100644 --- a/unofficial/c511600097.lua +++ b/unofficial/c511600097.lua @@ -69,4 +69,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600099.lua b/unofficial/c511600099.lua index 95928ed8f0..c50bc14cfb 100644 --- a/unofficial/c511600099.lua +++ b/unofficial/c511600099.lua @@ -117,4 +117,4 @@ function s.tkop2(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600100.lua b/unofficial/c511600100.lua index ff005d8a4f..2131d3ce80 100644 --- a/unofficial/c511600100.lua +++ b/unofficial/c511600100.lua @@ -15,4 +15,4 @@ end s.listed_names={CARD_DARK_MAGICIAN} function s.val(e,c) return Duel.GetMatchingGroupCount(Card.IsCode,c:GetControler(),LOCATION_GRAVE,LOCATION_GRAVE,nil,CARD_DARK_MAGICIAN)*500 -end +end \ No newline at end of file diff --git a/unofficial/c511600102.lua b/unofficial/c511600102.lua index 87e2a5968f..7a6f710291 100644 --- a/unofficial/c511600102.lua +++ b/unofficial/c511600102.lua @@ -35,7 +35,7 @@ function s.eqlimit(e,c) end function s.drcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_HAND+LOCATION_DECK+LOCATION_ONFIELD) + return c:IsReason(REASON_EFFECT) and c:IsPreviousLocation(LOCATION_HAND|LOCATION_DECK|LOCATION_ONFIELD) end function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end @@ -57,4 +57,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511600103.lua b/unofficial/c511600103.lua index ae978c2903..27c2c96dcc 100644 --- a/unofficial/c511600103.lua +++ b/unofficial/c511600103.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end Duel.ShuffleHand(1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600104.lua b/unofficial/c511600104.lua index 77ad49fdce..f5b1c8dfb6 100644 --- a/unofficial/c511600104.lua +++ b/unofficial/c511600104.lua @@ -54,7 +54,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) token:RegisterEffect(e3,true) end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) if Duel.CheckLPCost(tp,1000) and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then diff --git a/unofficial/c511600106.lua b/unofficial/c511600106.lua index 8612fc870e..61613acb23 100644 --- a/unofficial/c511600106.lua +++ b/unofficial/c511600106.lua @@ -33,7 +33,7 @@ function s.atkval(e,c) return c:GetLinkedGroup():FilterCount(Card.IsMonster,nil)*300 end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.spfilter(c,e,tp) return c:IsLevelBelow(4) and c:IsRace(RACE_CYBERSE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -51,4 +51,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600108.lua b/unofficial/c511600108.lua index c1c768f18c..13e9c2b260 100644 --- a/unofficial/c511600108.lua +++ b/unofficial/c511600108.lua @@ -18,7 +18,7 @@ function s.filter(c,e,tp,eg,ep,ev,re,r,rp,b) local te=c:CheckActivateEffect(false,false,false) if ((b and ft>1) or (not b and ft>0)) and c:IsSpell() and not c:IsType(TYPE_FIELD) and te then - if c:IsSetCard(0x95) then + if c:IsSetCard(SET_RANK_UP_MAGIC) then local tg=te:GetTarget() return not tg or tg(e,tp,eg,ep,ev,re,r,rp,0) else @@ -55,7 +55,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:CreateEffectRelation(te) if co then co(te,tp,eg,ep,ev,re,r,rp,1) end if tg then - if tc:IsSetCard(0x95) then + if tc:IsSetCard(SET_RANK_UP_MAGIC) then tg(e,tp,eg,ep,ev,re,r,rp,1) else tg(te,tp,eg,ep,ev,re,r,rp,1) @@ -69,7 +69,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end if op then - if tc:IsSetCard(0x95) then + if tc:IsSetCard(SET_RANK_UP_MAGIC) then op(e,tp,eg,ep,ev,re,r,rp) else op(te,tp,eg,ep,ev,re,r,rp) @@ -102,4 +102,4 @@ function s.rtop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(tc,nil,-2,REASON_EFFECT) end Duel.SendtoGrave(tc,REASON_EFFECT,1-tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600110.lua b/unofficial/c511600110.lua index 18ac9e7f1f..04a929b853 100644 --- a/unofficial/c511600110.lua +++ b/unofficial/c511600110.lua @@ -38,7 +38,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetLinkedGroupCount()>0 end @@ -88,4 +88,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp,chk) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600112.lua b/unofficial/c511600112.lua index 7e11b5023d..b3ec2ef254 100644 --- a/unofficial/c511600112.lua +++ b/unofficial/c511600112.lua @@ -57,4 +57,4 @@ function s.operation2(e,tp,eg,ep,ev,re,r,rp) local nseq=math.log(Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,~zone),2) Duel.MoveSequence(c,nseq) end -end +end \ No newline at end of file diff --git a/unofficial/c511600113.lua b/unofficial/c511600113.lua index f42e1fd06a..d8aca0ba56 100644 --- a/unofficial/c511600113.lua +++ b/unofficial/c511600113.lua @@ -112,4 +112,4 @@ function s.mvchk(e,tp,eg,ep,ev,re,r,rp) e:SetLabel(c:GetSequence()) Duel.RaiseSingleEvent(c,id+1000,e,0,0,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c511600115.lua b/unofficial/c511600115.lua index 70426bd0a3..611842a94e 100644 --- a/unofficial/c511600115.lua +++ b/unofficial/c511600115.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) end s.listed_series={0x9f} function s.thfilter(c) - return c:IsLevelBelow(4) and c:IsSetCard(0x9f) and c:IsAbleToHand() + return c:IsLevelBelow(4) and c:IsSetCard(SET_PERFORMAPAL) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end @@ -43,7 +43,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(c) - return c:IsSetCard(0x9f) and c:IsMonster() and c:IsLevelBelow(2147483647) + return c:IsSetCard(SET_PERFORMAPAL) and c:IsMonster() and c:IsLevelBelow(2147483647) end function s.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND,0,1,nil) end diff --git a/unofficial/c511600116.lua b/unofficial/c511600116.lua index 817b713e18..40ec16d2cc 100644 --- a/unofficial/c511600116.lua +++ b/unofficial/c511600116.lua @@ -55,4 +55,4 @@ function s.desrepop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local tg=g:FilterSelect(tp,s.repfilter,1,1,nil) Duel.SendtoGrave(tg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600118.lua b/unofficial/c511600118.lua index 162ef88785..21b3616ed0 100644 --- a/unofficial/c511600118.lua +++ b/unofficial/c511600118.lua @@ -26,9 +26,9 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) for ec in aux.Next(eg) do if ec:IsPreviousLocation(LOCATION_MZONE) then if ec:IsPreviousControler(0) then - Duel.RegisterFlagEffect(0,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(0,id,RESET_PHASE|PHASE_END,0,1) else - Duel.RegisterFlagEffect(1,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(1,id,RESET_PHASE|PHASE_END,0,1) end end end @@ -45,7 +45,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local ct=Duel.GetFlagEffect(tp,id) Duel.ConfirmDecktop(tp,ct) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end - local g=Duel.GetDecktopGroup(tp,ct):Filter(Card.IsSetCard,nil,0x9f) + local g=Duel.GetDecktopGroup(tp,ct):Filter(Card.IsSetCard,nil,SET_PERFORMAPAL) local mg,lv=g:GetMaxGroup(Card.GetLevel) if not mg then return end local tg=mg:Filter(Card.IsCanBeSpecialSummoned,nil,e,0,tp,false,false) diff --git a/unofficial/c511600122.lua b/unofficial/c511600122.lua index 35265694dd..c2e740c6d3 100644 --- a/unofficial/c511600122.lua +++ b/unofficial/c511600122.lua @@ -32,7 +32,7 @@ function s.initial_effect(c) c:RegisterEffect(e3) end function s.cfilter(c,tp) - return c:IsSummonPlayer(tp) and c:IsSummonType(SUMMON_TYPE_PENDULUM) + return c:IsSummonPlayer(tp) and c:IsPendulumSummoned() end function s.thcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) diff --git a/unofficial/c511600124.lua b/unofficial/c511600124.lua index 0ad5c451ee..599fcd7810 100644 --- a/unofficial/c511600124.lua +++ b/unofficial/c511600124.lua @@ -22,11 +22,11 @@ function s.initial_effect(c) end s.listed_series={0x119} function s.spfilter(c,e,tp,sc) - return c:IsSetCard(0x119) and c:IsSummonType(SUMMON_TYPE_LINK) and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsLinkMonster() + return c:IsSetCard(SET_SALAMANGREAT) and c:IsLinkSummoned() and c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsLinkMonster() and sc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,c:GetFreeLinkedZone()&0x1f) end function s.rfilter(c) - return c:IsSetCard(0x119) and c:IsAbleToDeck() and c:IsMonster() + return c:IsSetCard(SET_SALAMANGREAT) and c:IsAbleToDeck() and c:IsMonster() end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end @@ -53,4 +53,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP,zone) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600126.lua b/unofficial/c511600126.lua index 71d1f67729..5252206399 100644 --- a/unofficial/c511600126.lua +++ b/unofficial/c511600126.lua @@ -36,7 +36,7 @@ function s.initial_effect(c) end s.listed_series={0x9f} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x9f) + return c:IsFaceup() and c:IsSetCard(SET_PERFORMAPAL) end function s.val(e,c) return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_MZONE,0,nil)*300 @@ -59,4 +59,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600127.lua b/unofficial/c511600127.lua index dc0e20310c..0c104047ea 100644 --- a/unofficial/c511600127.lua +++ b/unofficial/c511600127.lua @@ -39,5 +39,5 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,tp) end function s.rtg(e,c) - return c:IsReason(REASON_BATTLE+REASON_DESTROY) and c:IsSetCard(0x9f) + return c:IsReason(REASON_BATTLE+REASON_DESTROY) and c:IsSetCard(SET_PERFORMAPAL) end \ No newline at end of file diff --git a/unofficial/c511600128.lua b/unofficial/c511600128.lua index 944b33c243..1709e583f1 100644 --- a/unofficial/c511600128.lua +++ b/unofficial/c511600128.lua @@ -19,7 +19,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil end function s.filter(c,def) - return c:IsSetCard(0x9f) and c:IsDefenseBelow(def) and c:IsAbleToHand() + return c:IsSetCard(SET_PERFORMAPAL) and c:IsDefenseBelow(def) and c:IsAbleToHand() end function s.rescon(atk) return function(sg,e,tp,mg) @@ -66,4 +66,4 @@ function s.sumsuc(e,tp,eg,ep,ev,re,r,rp) e1:SetTarget(aux.TargetBoolFunction(Card.IsLocation,LOCATION_EXTRA)) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600129.lua b/unofficial/c511600129.lua index 609d018153..e536c94f9c 100644 --- a/unofficial/c511600129.lua +++ b/unofficial/c511600129.lua @@ -22,7 +22,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) and #eg==1 end function s.filter(c,e,tp) - return c:IsSetCard(0x9f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_PERFORMAPAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 diff --git a/unofficial/c511600130.lua b/unofficial/c511600130.lua index afe3322886..6a2b6a164a 100644 --- a/unofficial/c511600130.lua +++ b/unofficial/c511600130.lua @@ -64,4 +64,4 @@ function s.caop(e,tp,eg,ep,ev,re,r,rp) else e:Reset() end -end +end \ No newline at end of file diff --git a/unofficial/c511600133.lua b/unofficial/c511600133.lua index faa3a77019..fc557e8b8a 100644 --- a/unofficial/c511600133.lua +++ b/unofficial/c511600133.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x2093,0x93} function s.filter(c,e,tp,m1,m2,ft) - if not c:IsSetCard(0x2093) or (c:GetType()&0x81)~=0x81 + if not c:IsSetCard(SET_CYBER_ANGEL) or (c:GetType()&SET_FIRE_KING)~=SET_FIRE_KING or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end local mg=m1:Filter(Card.IsCanBeRitualMaterial,c,c) mg:Merge(m2) @@ -31,7 +31,7 @@ function s.mfilterf(c,tp,mg,rc) else return false end end function s.mfilter(c) - return c:GetLevel()>0 and c:IsSetCard(0x93) and c:IsAbleToDeck() + return c:GetLevel()>0 and c:IsSetCard(SET_CYBER) and c:IsAbleToDeck() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then diff --git a/unofficial/c511600138.lua b/unofficial/c511600138.lua index 86d21c3cec..a4d75451fd 100644 --- a/unofficial/c511600138.lua +++ b/unofficial/c511600138.lua @@ -50,4 +50,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600139.lua b/unofficial/c511600139.lua index 0915e9282e..d7b62d4b20 100644 --- a/unofficial/c511600139.lua +++ b/unofficial/c511600139.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(tp) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600140.lua b/unofficial/c511600140.lua index 327b8e5614..3bc1361efa 100644 --- a/unofficial/c511600140.lua +++ b/unofficial/c511600140.lua @@ -52,12 +52,12 @@ function s.initial_effect(c) end s.listed_series={0x1034} function s.spfilter(c) - return c:IsSetCard(0x1034) and (not c:IsOnField() or c:IsFaceup()) + return c:IsSetCard(SET_CRYSTAL_BEAST) and (not c:IsOnField() or c:IsFaceup()) end function s.spcon(e,c) if c==nil then return true end if Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)<=0 then return false end - local g=Duel.GetMatchingGroup(s.spfilter,c:GetControler(),LOCATION_ONFIELD+LOCATION_GRAVE,0,nil) + local g=Duel.GetMatchingGroup(s.spfilter,c:GetControler(),LOCATION_ONFIELD|LOCATION_GRAVE,0,nil) local ct=g:GetClassCount(Card.GetCode) return ct>6 end @@ -70,7 +70,7 @@ function s.atcon(e,tp,eg,ep,ev,re,r,rp) return phase~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.afilter(c) - return c:IsFaceup() and c:IsSetCard(0x1034) and c:IsAbleToGraveAsCost() + return c:IsFaceup() and c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsAbleToGraveAsCost() end function s.atcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.afilter,tp,LOCATION_ONFIELD,0,1,nil) end @@ -93,11 +93,11 @@ function s.tdcon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetFlagEffect(id)==0 end function s.cfilter(c) - return c:IsSetCard(0x1034) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_CRYSTAL_BEAST) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.tdcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end - local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end + local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) diff --git a/unofficial/c511600141.lua b/unofficial/c511600141.lua index ad7183e6c6..e9b760d0de 100644 --- a/unofficial/c511600141.lua +++ b/unofficial/c511600141.lua @@ -19,14 +19,14 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local p=Duel.GetTurnPlayer() - Duel.SkipPhase(p,PHASE_DRAW,RESET_PHASE+PHASE_END,4) - Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE+PHASE_END,4) - Duel.SkipPhase(p,PHASE_BATTLE,RESET_PHASE+PHASE_END,2,2) - Duel.SkipPhase(p,PHASE_MAIN2,RESET_PHASE+PHASE_END,2) - Duel.SkipPhase(1-p,PHASE_DRAW,RESET_PHASE+PHASE_END,3) - Duel.SkipPhase(1-p,PHASE_MAIN1,RESET_PHASE+PHASE_END,3) - Duel.SkipPhase(1-p,PHASE_BATTLE,RESET_PHASE+PHASE_END,3,3) - Duel.SkipPhase(1-p,PHASE_MAIN2,RESET_PHASE+PHASE_END,3) + Duel.SkipPhase(p,PHASE_DRAW,RESET_PHASE|PHASE_END,4) + Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE|PHASE_END,4) + Duel.SkipPhase(p,PHASE_BATTLE,RESET_PHASE|PHASE_END,2,2) + Duel.SkipPhase(p,PHASE_MAIN2,RESET_PHASE|PHASE_END,2) + Duel.SkipPhase(1-p,PHASE_DRAW,RESET_PHASE|PHASE_END,3) + Duel.SkipPhase(1-p,PHASE_MAIN1,RESET_PHASE|PHASE_END,3) + Duel.SkipPhase(1-p,PHASE_BATTLE,RESET_PHASE|PHASE_END,3,3) + Duel.SkipPhase(1-p,PHASE_MAIN2,RESET_PHASE|PHASE_END,3) local e1=Effect.GlobalEffect() e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD) diff --git a/unofficial/c511600142.lua b/unofficial/c511600142.lua index 98bed6173a..d59e085511 100644 --- a/unofficial/c511600142.lua +++ b/unofficial/c511600142.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetCondition(s.atkcon) e1:SetTarget(s.atktg) e1:SetOperation(s.atkop) diff --git a/unofficial/c511600147.lua b/unofficial/c511600147.lua index ab1d9a1532..dab60114e2 100644 --- a/unofficial/c511600147.lua +++ b/unofficial/c511600147.lua @@ -52,7 +52,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.spcfilter(c,tp) - return c:IsFaceup() and c:IsLinkMonster() and c:IsSummonType(SUMMON_TYPE_LINK) and c:IsControler(tp) + return c:IsFaceup() and c:IsLinkMonster() and c:IsLinkSummoned() and c:IsControler(tp) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.spcfilter,1,nil,tp) diff --git a/unofficial/c511600148.lua b/unofficial/c511600148.lua index 9f1b3fcd86..b8bb365416 100644 --- a/unofficial/c511600148.lua +++ b/unofficial/c511600148.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511600170.lua b/unofficial/c511600170.lua index 55c417c6ac..6a8082cbde 100644 --- a/unofficial/c511600170.lua +++ b/unofficial/c511600170.lua @@ -27,4 +27,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600171.lua b/unofficial/c511600171.lua index b3d3b1376e..b8cedb8c94 100644 --- a/unofficial/c511600171.lua +++ b/unofficial/c511600171.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600173.lua b/unofficial/c511600173.lua index 3faf8dc6da..2f31f7a608 100644 --- a/unofficial/c511600173.lua +++ b/unofficial/c511600173.lua @@ -49,7 +49,7 @@ function s.dop(e,tp,eg,ep,ev,re,r,rp) end end function s.eqfilter(c) - return c:IsFaceup() and c:IsLinkMonster() and c:IsSetCard(0xfb) + return c:IsFaceup() and c:IsLinkMonster() and c:IsSetCard(SET_TRICKSTAR) end function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.eqfilter(chkc) end @@ -117,7 +117,7 @@ function s.eqlimit(e,c) return c==e:GetLabelObject() end function s.cfilter(c,tp) - return c:IsFaceup() and c:IsSetCard(0xfb) and c:IsControler(tp) + return c:IsFaceup() and c:IsSetCard(SET_TRICKSTAR) and c:IsControler(tp) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) @@ -134,4 +134,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.eftg(e,c) return c==e:GetHandler():GetEquipTarget() -end +end \ No newline at end of file diff --git a/unofficial/c511600174.lua b/unofficial/c511600174.lua index b2754dc3c4..768fe28ebb 100644 --- a/unofficial/c511600174.lua +++ b/unofficial/c511600174.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate - c:RegisterEffect(Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,0xfb))) + c:RegisterEffect(Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,SET_TRICKSTAR))) --Return local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) @@ -12,14 +12,14 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetType(EFFECT_TYPE_IGNITION) e1:SetRange(LOCATION_GRAVE) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.thtg) e1:SetOperation(s.thop) c:RegisterEffect(e1) end s.listed_series={0xfb} function s.thfilter(c) - return c:IsMonster() and c:IsSetCard(0xfb) and c:IsAbleToHand() + return c:IsMonster() and c:IsSetCard(SET_TRICKSTAR) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end @@ -42,4 +42,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_UNSUMMONABLE_CARD) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511600176.lua b/unofficial/c511600176.lua index 73a5a0f618..7bc3581b22 100644 --- a/unofficial/c511600176.lua +++ b/unofficial/c511600176.lua @@ -35,13 +35,13 @@ function s.initial_effect(c) end s.listed_series={0xfb} function s.thfilter(c) - return c:IsMonster() and c:IsSetCard(0xfb) and c:IsAbleToHand() + return c:IsMonster() and c:IsSetCard(SET_TRICKSTAR) and c:IsAbleToHand() end function s.activate(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) or Duel.GetFlagEffect(tp,id)>0 then return end local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.thfilter),tp,LOCATION_GRAVE,0,nil) if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(35371948,0)) then - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) local sg=g:Select(tp,1,1,nil) Duel.SendtoHand(sg,nil,REASON_EFFECT) @@ -49,7 +49,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(c,e,tp) - return c:IsFaceup() and c:IsLinkMonster() and c:IsSetCard(0xfb) + return c:IsFaceup() and c:IsLinkMonster() and c:IsSetCard(SET_TRICKSTAR) and Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,c:GetLinkedZone()&0x1f)>0 end function s.tktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -88,4 +88,4 @@ function s.tkop2(e,tp,eg,ep,ev,re,r,rp) or not Duel.IsPlayerCanSpecialSummonMonster(tp,51208047,0xfb,TYPES_TOKEN,0,0,1,RACE_FAIRY,ATTRIBUTE_LIGHT,POS_FACEUP_DEFENSE) then return end local token=Duel.CreateToken(tp,51208047) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) -end +end \ No newline at end of file diff --git a/unofficial/c511600179.lua b/unofficial/c511600179.lua index 8b6f8b5edc..a284a4c925 100644 --- a/unofficial/c511600179.lua +++ b/unofficial/c511600179.lua @@ -49,4 +49,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.damval(e,re,val,r,rp,rc) if val<=300 and r&REASON_EFFECT==REASON_EFFECT then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511600181.lua b/unofficial/c511600181.lua index 665c9e9716..0891a20a17 100644 --- a/unofficial/c511600181.lua +++ b/unofficial/c511600181.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate - c:RegisterEffect(Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,0x119),nil,s.fextra)) + c:RegisterEffect(Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,SET_SALAMANGREAT),nil,s.fextra)) end s.listed_series={0x119} function s.fextra(e,tp,mg) diff --git a/unofficial/c511600182.lua b/unofficial/c511600182.lua index ec9ea7feb3..e5871da7a8 100644 --- a/unofficial/c511600182.lua +++ b/unofficial/c511600182.lua @@ -51,10 +51,10 @@ function s.initial_effect(c) end s.material_setcode={0x119} function s.ffilter(c,fc,sumtype,tp) - return c:IsType(TYPE_LINK,fc,sumtype,tp) or c:IsSetCard(0x119,fc,sumtype,tp) + return c:IsType(TYPE_LINK,fc,sumtype,tp) or c:IsSetCard(SET_SALAMANGREAT,fc,sumtype,tp) end function s.sumcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) + return e:GetHandler():IsFusionSummoned() end function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -107,4 +107,4 @@ function s.atkcon2(e,tp,eg,ep,ev,re,r,rp) end function s.atktg2(e,c) return c==e:GetHandler():GetBattleTarget() -end +end \ No newline at end of file diff --git a/unofficial/c511600186.lua b/unofficial/c511600186.lua index d8faa87891..55e381f2f0 100644 --- a/unofficial/c511600186.lua +++ b/unofficial/c511600186.lua @@ -48,4 +48,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,511600188) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511600191.lua b/unofficial/c511600191.lua index a36e0d91d2..f3f07b04fe 100644 --- a/unofficial/c511600191.lua +++ b/unofficial/c511600191.lua @@ -150,4 +150,4 @@ function s.val(e,re,dam,r,rp,rc) if (r&REASON_BATTLE)~=0 then return math.floor(dam/2) else return dam end -end +end \ No newline at end of file diff --git a/unofficial/c511600192.lua b/unofficial/c511600192.lua index dbb631a18a..6e85966f36 100644 --- a/unofficial/c511600192.lua +++ b/unofficial/c511600192.lua @@ -62,4 +62,4 @@ function s.fcheck(tp,sg,fc,mg) end function s.fextra(e,tp,mg) return nil,s.fcheck -end +end \ No newline at end of file diff --git a/unofficial/c511600194.lua b/unofficial/c511600194.lua index 8d0fb494d9..ea98cdb2d1 100644 --- a/unofficial/c511600194.lua +++ b/unofficial/c511600194.lua @@ -75,4 +75,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600195.lua b/unofficial/c511600195.lua index a29fda6445..bdd0cef690 100644 --- a/unofficial/c511600195.lua +++ b/unofficial/c511600195.lua @@ -112,7 +112,7 @@ function s.rettg(e,tp,eg,ep,ev,re,r,rp,chk) if chk then return tc and tc:IsAbleToHand() and Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil,tc:GetCode()) end local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_DECK,0,nil,tc:GetCode()) - Duel.SetOperationInfo(0,CATEGORY_TOHAND,g+tc,2,0,tc:GetLocation()+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_TOHAND,g+tc,2,0,tc:GetLocation()|LOCATION_DECK) end function s.retop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetHandler():GetPreviousEquipTarget() @@ -122,4 +122,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511600196.lua b/unofficial/c511600196.lua index fbdd34ec4f..1a88ef030f 100644 --- a/unofficial/c511600196.lua +++ b/unofficial/c511600196.lua @@ -32,7 +32,7 @@ function s.initial_effect(c) e4:SetRange(LOCATION_SZONE) e4:SetCountLimit(1,id) e4:SetCondition(s.condition) - e4:SetCost(aux.bfgcost) + e4:SetCost(Cost.SelfBanish) e4:SetTarget(s.target) e4:SetOperation(s.operation) c:RegisterEffect(e4) @@ -69,4 +69,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetDescription(aux.Stringid(id,0)) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600197.lua b/unofficial/c511600197.lua index 768abbe917..4fcfb7dc99 100644 --- a/unofficial/c511600197.lua +++ b/unofficial/c511600197.lua @@ -26,7 +26,7 @@ function s.initial_effect(c) end s.listed_series={0x119} function s.filter(c,atk) - return c:IsSetCard(0x119) and c:GetAttack()~=atk + return c:IsSetCard(SET_SALAMANGREAT) and c:GetAttack()~=atk end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttacker():IsControler(1-tp) and Duel.GetLP(tp)<=1000 diff --git a/unofficial/c511600201.lua b/unofficial/c511600201.lua index 4285d1769a..44051fc680 100644 --- a/unofficial/c511600201.lua +++ b/unofficial/c511600201.lua @@ -84,8 +84,8 @@ function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingTarget(s.filter,tp,0,LOCATION_MZONE,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectTarget(tp,s.filter,tp,0,LOCATION_MZONE,1,1,nil) - local tg=Duel.GetMatchingGroup(s.cfilter,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil,g:GetFirst():GetCode()) - Duel.SetOperationInfo(0,CATEGORY_REMOVE,g+tg,#(g+tg),1-tp,LOCATION_ONFIELD+LOCATION_GRAVE) + local tg=Duel.GetMatchingGroup(s.cfilter,tp,0,LOCATION_ONFIELD|LOCATION_GRAVE,nil,g:GetFirst():GetCode()) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,g+tg,#(g+tg),1-tp,LOCATION_ONFIELD|LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,0) end function s.rmop(e,tp,eg,ep,ev,re,r,rp) @@ -93,7 +93,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then local tg=Group.FromCards(tc) if tc:IsFaceup() then - tg=tg+Duel.GetMatchingGroup(s.cfilter,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,nil,tc:GetCode()) + tg=tg+Duel.GetMatchingGroup(s.cfilter,tp,0,LOCATION_ONFIELD|LOCATION_GRAVE,nil,tc:GetCode()) end Duel.Remove(tg,POS_FACEUP,REASON_EFFECT) local og=Duel.GetOperatedGroup() @@ -103,4 +103,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,oc:GetTextAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600202.lua b/unofficial/c511600202.lua index e76f46e70e..2bff8ce170 100644 --- a/unofficial/c511600202.lua +++ b/unofficial/c511600202.lua @@ -59,4 +59,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_CANNOT_SUMMON) Duel.RegisterEffect(e2,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c511600203.lua b/unofficial/c511600203.lua index 81e7cd0691..0b34751537 100644 --- a/unofficial/c511600203.lua +++ b/unofficial/c511600203.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) end s.listed_series={0x119} function s.cfilter(c) - return c:IsLinkMonster() and c:IsSetCard(0x119) + return c:IsLinkMonster() and c:IsSetCard(SET_SALAMANGREAT) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,3,nil) diff --git a/unofficial/c511600204.lua b/unofficial/c511600204.lua index e899a98b38..f147fc8a57 100644 --- a/unofficial/c511600204.lua +++ b/unofficial/c511600204.lua @@ -83,4 +83,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END+RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600205.lua b/unofficial/c511600205.lua index fde51518d3..d1235c81f7 100644 --- a/unofficial/c511600205.lua +++ b/unofficial/c511600205.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.DiscardDeck(tp,ct,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600206.lua b/unofficial/c511600206.lua index ecba2084eb..dbc13f2b1a 100644 --- a/unofficial/c511600206.lua +++ b/unofficial/c511600206.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600207.lua b/unofficial/c511600207.lua index df237a4da7..8bb4890fe0 100644 --- a/unofficial/c511600207.lua +++ b/unofficial/c511600207.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.destg) e2:SetOperation(s.desop) c:RegisterEffect(e2) @@ -49,7 +49,7 @@ function s.regop2(e,tp,eg,ep,ev,re,r,rp) re:GetHandler():ResetFlagEffect(id) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x1157) + return c:IsFaceup() and c:IsSetCard(SET_SUNAVALON) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -96,4 +96,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,og:FilterCount(Card.IsControler,nil,p)*300,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600208.lua b/unofficial/c511600208.lua index 1c91549969..4699bdf2fb 100644 --- a/unofficial/c511600208.lua +++ b/unofficial/c511600208.lua @@ -24,8 +24,8 @@ end s.listed_series={0x10b} function s.dmcon(e,tp,eg,ep,ev,re,r,rp) local a,d=Duel.GetAttacker(),Duel.GetAttackTarget() - return a:IsControler(tp) and a:GetSequence()<5 and a:IsFaceup() and a:IsSetCard(0x10b) - or d and d:IsControler(tp) and d:GetSequence()<5 and d:IsFaceup() and d:IsSetCard(0x10b) + return a:IsControler(tp) and a:GetSequence()<5 and a:IsFaceup() and a:IsSetCard(SET_TINDANGLE) + or d and d:IsControler(tp) and d:GetSequence()<5 and d:IsFaceup() and d:IsSetCard(SET_TINDANGLE) end function s.dmop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end @@ -37,4 +37,4 @@ function s.dmop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600209.lua b/unofficial/c511600209.lua index f94a5a5e77..be4adffbdb 100644 --- a/unofficial/c511600209.lua +++ b/unofficial/c511600209.lua @@ -31,11 +31,11 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) local dg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_PZONE,0,nil,id) if Duel.Destroy(#dg==2 and dg or dg:Select(tp,2,2,nil),REASON_EFFECT)==2 and Duel.NegateActivation(ev) then local turnp=Duel.GetTurnPlayer() - Duel.SkipPhase(turnp,PHASE_DRAW,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(turnp,PHASE_STANDBY,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(turnp,PHASE_MAIN1,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(turnp,PHASE_BATTLE,RESET_PHASE+PHASE_END,1,1) - Duel.SkipPhase(turnp,PHASE_MAIN2,RESET_PHASE+PHASE_END,1) + Duel.SkipPhase(turnp,PHASE_DRAW,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(turnp,PHASE_STANDBY,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(turnp,PHASE_MAIN1,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(turnp,PHASE_BATTLE,RESET_PHASE|PHASE_END,1,1) + Duel.SkipPhase(turnp,PHASE_MAIN2,RESET_PHASE|PHASE_END,1) local e1=Effect.CreateEffect(e:GetHandler()) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetType(EFFECT_TYPE_FIELD) diff --git a/unofficial/c511600213.lua b/unofficial/c511600213.lua index 66ca919358..696d1a77bd 100644 --- a/unofficial/c511600213.lua +++ b/unofficial/c511600213.lua @@ -92,4 +92,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600214.lua b/unofficial/c511600214.lua index c8a242b9f8..d37f6d379d 100644 --- a/unofficial/c511600214.lua +++ b/unofficial/c511600214.lua @@ -101,4 +101,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN) ec:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600215.lua b/unofficial/c511600215.lua index 98efd48bb1..cf780d7947 100644 --- a/unofficial/c511600215.lua +++ b/unofficial/c511600215.lua @@ -45,7 +45,7 @@ function s.initial_effect(c) end function s.indcon(e) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsLinkSummoned() end function s.indtg(e,c) return c:IsFaceup() and c:IsRace(RACE_CYBERSE) and e:GetHandler():GetLinkedGroup():IsContains(c) @@ -80,4 +80,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511600216.lua b/unofficial/c511600216.lua index ec41d2ce17..ac4378e925 100644 --- a/unofficial/c511600216.lua +++ b/unofficial/c511600216.lua @@ -112,4 +112,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600217.lua b/unofficial/c511600217.lua index 9c57e355e2..94b707cf6f 100644 --- a/unofficial/c511600217.lua +++ b/unofficial/c511600217.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) e2:SetProperty(EFFECT_FLAG_CARD_TARGET) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.thtg) e2:SetOperation(s.thop) c:RegisterEffect(e2) @@ -37,7 +37,7 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) if ec:IsPreviousSetCard(0x577) and ec:IsPreviousPosition(POS_FACEUP) and ec:GetPreviousTypeOnField()&TYPE_LINK==TYPE_LINK and ec:IsPreviousLocation(LOCATION_MZONE) and ec:IsReason(REASON_EFFECT) then - Duel.RegisterFlagEffect(ec:GetPreviousControler(),id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ec:GetPreviousControler(),id,RESET_PHASE|PHASE_END,0,1) end end end @@ -73,4 +73,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600218.lua b/unofficial/c511600218.lua index b4a9b56b14..d41c560e89 100644 --- a/unofficial/c511600218.lua +++ b/unofficial/c511600218.lua @@ -94,4 +94,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600219.lua b/unofficial/c511600219.lua index dcdb9bff8d..55a56f7bc0 100644 --- a/unofficial/c511600219.lua +++ b/unofficial/c511600219.lua @@ -17,7 +17,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(s.condition) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetOperation(s.operation) c:RegisterEffect(e2) end diff --git a/unofficial/c511600221.lua b/unofficial/c511600221.lua index c502737d61..3463714c71 100644 --- a/unofficial/c511600221.lua +++ b/unofficial/c511600221.lua @@ -86,4 +86,4 @@ function s.effcon(e,tp,eg,ep,ev,re,r,rp) end function s.val(e,c) return -Duel.GetMatchingGroup(s.cfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil):GetSum(Card.GetDefense) -end +end \ No newline at end of file diff --git a/unofficial/c511600223.lua b/unofficial/c511600223.lua index 200e332e70..3f9184b8ae 100644 --- a/unofficial/c511600223.lua +++ b/unofficial/c511600223.lua @@ -58,4 +58,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) or not Duel.IsPlayerCanSpecialSummonMonster(tp,511009710,0x577,TYPES_TOKEN,0,0,1,RACE_CYBERSE,ATTRIBUTE_EARTH,POS_FACEUP_DEFENSE) then return end local token=Duel.CreateToken(tp,511009710) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_DEFENSE) -end +end \ No newline at end of file diff --git a/unofficial/c511600225.lua b/unofficial/c511600225.lua index 78fe521032..16ad573e13 100644 --- a/unofficial/c511600225.lua +++ b/unofficial/c511600225.lua @@ -88,4 +88,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600226.lua b/unofficial/c511600226.lua index b4045001f4..b15784b308 100644 --- a/unofficial/c511600226.lua +++ b/unofficial/c511600226.lua @@ -70,4 +70,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) else c:CancelToGrave(false) end -end +end \ No newline at end of file diff --git a/unofficial/c511600228.lua b/unofficial/c511600228.lua index 96ff1931c1..4b1180be7a 100644 --- a/unofficial/c511600228.lua +++ b/unofficial/c511600228.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511600229.lua b/unofficial/c511600229.lua index 269854650d..dfc505eafa 100644 --- a/unofficial/c511600229.lua +++ b/unofficial/c511600229.lua @@ -56,4 +56,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(tg,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600231.lua b/unofficial/c511600231.lua index 31d94a24c3..71fdccbb14 100644 --- a/unofficial/c511600231.lua +++ b/unofficial/c511600231.lua @@ -76,7 +76,7 @@ function s.actlimit(e,te,tp) end function s.filter(c,tp) return c:IsFaceup() and c:IsType(TYPE_LINK) and c:GetLink()>2 - and c:IsSummonType(SUMMON_TYPE_LINK) and c:IsControler(1-tp) + and c:IsLinkSummoned() and c:IsControler(1-tp) end function s.setcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.filter,1,nil,tp) @@ -104,4 +104,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) e1:SetDescription(aux.Stringid(id,0)) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600232.lua b/unofficial/c511600232.lua index 38fd41a1da..6a9946ac5d 100644 --- a/unofficial/c511600232.lua +++ b/unofficial/c511600232.lua @@ -90,4 +90,4 @@ function s.atval(e,c) local g=Duel.GetMatchingGroup(s.atfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,nil) if #g>1 then return false end return g:IsContains(c) -end +end \ No newline at end of file diff --git a/unofficial/c511600235.lua b/unofficial/c511600235.lua index 747b949534..4658cd9904 100644 --- a/unofficial/c511600235.lua +++ b/unofficial/c511600235.lua @@ -35,7 +35,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return not Duel.GetAttacker():IsControler(tp) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x103) and c:IsMonster() and c:IsAbleToHandAsCost() + return c:IsFaceup() and c:IsSetCard(SET_ALTERGEIST) and c:IsMonster() and c:IsAbleToHandAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD,0,1,nil) end @@ -58,4 +58,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if not c:IsRelateToEffect(e) then return end Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511600236.lua b/unofficial/c511600236.lua index 6559bbead2..615e3591ee 100644 --- a/unofficial/c511600236.lua +++ b/unofficial/c511600236.lua @@ -64,4 +64,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetValue(1) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e:GetHandler():RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c511600237.lua b/unofficial/c511600237.lua index 2412ad4352..79d0e73d1f 100644 --- a/unofficial/c511600237.lua +++ b/unofficial/c511600237.lua @@ -54,4 +54,4 @@ function s.scop(e,tp,eg,ep,ev,re,r,rp) e2:SetCode(EFFECT_CANNOT_DISEFFECT) sc:RegisterEffect(e2,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511600238.lua b/unofficial/c511600238.lua index 24e38ce379..ab3a4b4014 100644 --- a/unofficial/c511600238.lua +++ b/unofficial/c511600238.lua @@ -88,4 +88,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)>0 then Duel.Damage(1-tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600241.lua b/unofficial/c511600241.lua index 9aa4de93ce..17804ee823 100644 --- a/unofficial/c511600241.lua +++ b/unofficial/c511600241.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c,e,tp) return c:IsCode(alias) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511600242.lua b/unofficial/c511600242.lua index 16815342f9..f6e5703c26 100644 --- a/unofficial/c511600242.lua +++ b/unofficial/c511600242.lua @@ -14,9 +14,9 @@ function s.initial_effect(c) end s.listed_series={0x2016} function s.spfilter(c) - return c:IsFaceup() and c:IsSetCard(0x2016) + return c:IsFaceup() and c:IsSetCard(SET_SPEEDROID) end function s.spcon(e,c) if c==nil then return true end return Duel.IsExistingMatchingCard(s.spfilter,c:GetControler(),LOCATION_MZONE,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511600243.lua b/unofficial/c511600243.lua index b8a23b2bd0..a56ad1fb80 100644 --- a/unofficial/c511600243.lua +++ b/unofficial/c511600243.lua @@ -34,4 +34,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600244.lua b/unofficial/c511600244.lua index 70b5947b16..ce7532f675 100644 --- a/unofficial/c511600244.lua +++ b/unofficial/c511600244.lua @@ -54,4 +54,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600246.lua b/unofficial/c511600246.lua index 23efc7edeb..284487a814 100644 --- a/unofficial/c511600246.lua +++ b/unofficial/c511600246.lua @@ -56,4 +56,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.disable(e,c) return e:GetHandler():GetFlagEffect(id)>0 and c:IsCode(e:GetHandler():GetFlagEffectLabel(id)) -end +end \ No newline at end of file diff --git a/unofficial/c511600247.lua b/unofficial/c511600247.lua index 5fae40c266..ce41d58d9a 100644 --- a/unofficial/c511600247.lua +++ b/unofficial/c511600247.lua @@ -67,4 +67,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL+RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600249.lua b/unofficial/c511600249.lua index 7b3f0cd04b..17475e15f5 100644 --- a/unofficial/c511600249.lua +++ b/unofficial/c511600249.lua @@ -37,4 +37,4 @@ function s.stage2(e,tc,tp,sg,chk) tc:RegisterEffect(e2,true) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600250.lua b/unofficial/c511600250.lua index 293db68786..c1cd888ff1 100644 --- a/unofficial/c511600250.lua +++ b/unofficial/c511600250.lua @@ -37,7 +37,7 @@ function s.initial_effect(c) end s.material_setcode={0x581} function s.ctcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) + return e:GetHandler():IsFusionSummoned() end function s.ctop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -79,4 +79,4 @@ function s.atkfilter(c) end function s.atkval(e,c) return Duel.GetMatchingGroupCount(s.atkfilter,c:GetControler(),LOCATION_MZONE,0,c)*1000 -end +end \ No newline at end of file diff --git a/unofficial/c511600251.lua b/unofficial/c511600251.lua index 683d04f399..ad51e50c3b 100644 --- a/unofficial/c511600251.lua +++ b/unofficial/c511600251.lua @@ -20,7 +20,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(e:GetHandler(),REASON_COST) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x12b) + return c:IsFaceup() and c:IsSetCard(SET_MARINCESS) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(800) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600252.lua b/unofficial/c511600252.lua index 237d269775..9d07df58d9 100644 --- a/unofficial/c511600252.lua +++ b/unofficial/c511600252.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) end) end function s.spfilter(c) - return c:IsCode(alias) and c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsCode(alias) and c:IsLinkSummoned() end function s.sumcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.spfilter,1,nil) @@ -52,13 +52,13 @@ function s.splimit(e,c,sump,sumtype,sumpos,targetp,se) return c:IsCode(alias) and sumtype&SUMMON_TYPE_LINK==SUMMON_TYPE_LINK end function s.matfilter(c,lc,sumtype,tp) - return c:IsLevelBelow(4) and c:IsSetCard(0x12b,lc,sumtype,tp) + return c:IsLevelBelow(4) and c:IsSetCard(SET_MARINCESS,lc,sumtype,tp) end function s.thcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.thfilter(c) - return c:IsSetCard(0x12b) and c:IsMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_MARINCESS) and c:IsMonster() and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end @@ -72,4 +72,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600253.lua b/unofficial/c511600253.lua index b90f5fa6d6..a2b05db364 100644 --- a/unofficial/c511600253.lua +++ b/unofficial/c511600253.lua @@ -50,7 +50,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.thfilter(c) - return c:IsSetCard(0x12b) and c:IsAbleToHand() + return c:IsSetCard(SET_MARINCESS) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end diff --git a/unofficial/c511600254.lua b/unofficial/c511600254.lua index 01d3d27c57..4fa9d78323 100644 --- a/unofficial/c511600254.lua +++ b/unofficial/c511600254.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) end s.listed_series={0x12b} function s.thfilter(c) - return c:IsSetCard(0x12b) and c:IsAbleToHand() + return c:IsSetCard(SET_MARINCESS) and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end @@ -50,7 +50,7 @@ function s.negcon(e,tp,eg,ep,ev,re,r,rp) return not Duel.GetAttacker():IsControler(tp) end function s.cfilter(c) - return c:IsSetCard(0x12b) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_MARINCESS) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.negcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end @@ -74,8 +74,8 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e2,tp) end function s.tgtg(e,c) - return c:IsFaceup() and c:IsSetCard(0x12b) and c:IsMonster() + return c:IsFaceup() and c:IsSetCard(SET_MARINCESS) and c:IsMonster() end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511600260.lua b/unofficial/c511600260.lua index db3046ce36..4fa718eea5 100644 --- a/unofficial/c511600260.lua +++ b/unofficial/c511600260.lua @@ -49,10 +49,10 @@ function s.negcon(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() e:SetLabelObject(tc) return tc:IsFaceup() and tc:IsLocation(LOCATION_MZONE) - and (tc==e:GetHandler() or tc:IsSetCard(0x12b) and tc:IsType(TYPE_LINK) and e:GetHandler():GetLinkedGroup():IsContains(tc)) + and (tc==e:GetHandler() or tc:IsSetCard(SET_MARINCESS) and tc:IsType(TYPE_LINK) and e:GetHandler():GetLinkedGroup():IsContains(tc)) end function s.cfilter(c) - return c:IsSetCard(0x12b) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_MARINCESS) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.negcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end @@ -100,4 +100,4 @@ function s.btop(e,tp,eg,ep,ev,re,r,rp) end function s.tefilter(e,re) return e:GetHandler()~=re:GetOwner() -end +end \ No newline at end of file diff --git a/unofficial/c511600262.lua b/unofficial/c511600262.lua index 4ab25a902e..0f2f4322f3 100644 --- a/unofficial/c511600262.lua +++ b/unofficial/c511600262.lua @@ -18,17 +18,17 @@ function s.initial_effect(c) end s.listed_series={0x12b} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x12b) and c:IsType(TYPE_LINK) and c:IsMonster() + return c:IsFaceup() and c:IsSetCard(SET_MARINCESS) and c:IsType(TYPE_LINK) and c:IsMonster() end function s.condition(e,c) if c==nil then return true end local tp=e:GetHandlerPlayer() local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) - local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,0x12b) + local zone=aux.GetMMZonesPointedTo(tp,Card.IsSetCard,LOCATION_MZONE,0,nil,SET_MARINCESS) return #g>1 and zone>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function s.spval(e,c) - return 0,aux.GetMMZonesPointedTo(e:GetHandlerPlayer(),Card.IsSetCard,LOCATION_MZONE,0,nil,0x12b) + return 0,aux.GetMMZonesPointedTo(e:GetHandlerPlayer(),Card.IsSetCard,LOCATION_MZONE,0,nil,SET_MARINCESS) end function s.operation(e,tp,eg,ep,ev,re,r,rp,c) local e1=Effect.CreateEffect(c) diff --git a/unofficial/c511600263.lua b/unofficial/c511600263.lua index 44d9ef3f4b..302c98efae 100644 --- a/unofficial/c511600263.lua +++ b/unofficial/c511600263.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) e2:SetDescription(aux.Stringid(id,1)) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetOperation(s.operation) c:RegisterEffect(e2) end @@ -89,4 +89,4 @@ function s.damval(e,re,val,r,rp,rc) end local dam=g2:GetSum(Card.GetLink)*1000 if val<=dam then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c511600265.lua b/unofficial/c511600265.lua index 237df15921..84e54f6d1e 100644 --- a/unofficial/c511600265.lua +++ b/unofficial/c511600265.lua @@ -30,7 +30,7 @@ function s.descon(e) return Duel.GetLP(1-e:GetHandlerPlayer())<=Duel.GetLP(e:GetHandlerPlayer()) or Duel.GetCurrentPhase()==PHASE_END end function s.filter(c) - return c:IsSetCard(0x12b) and c:IsLinkMonster() and c:IsLinkBelow(2) + return c:IsSetCard(SET_MARINCESS) and c:IsLinkMonster() and c:IsLinkBelow(2) end function s.cfilter(c) return c:IsFaceup() and c:IsLinkMonster() and c:IsLinkAbove(3) @@ -49,7 +49,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.RegisterEffect(e1,tp) end function s.sfilter(c,g) - return c:IsFaceup() and c:IsSetCard(0x12b) and g:IsContains(c) + return c:IsFaceup() and c:IsSetCard(SET_MARINCESS) and g:IsContains(c) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -73,4 +73,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600266.lua b/unofficial/c511600266.lua index 74481b7972..7850797b6f 100644 --- a/unofficial/c511600266.lua +++ b/unofficial/c511600266.lua @@ -25,14 +25,14 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c511600267.lua b/unofficial/c511600267.lua index 4563a368bc..fa0b2e518a 100644 --- a/unofficial/c511600267.lua +++ b/unofficial/c511600267.lua @@ -72,7 +72,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.filter(c,e,tp) return c:GetOriginalType()&(TYPE_LINK+TYPE_MONSTER)==(TYPE_LINK+TYPE_MONSTER) - and c:IsSetCard(0x12b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + and c:IsSetCard(SET_MARINCESS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:GetEquipTarget()==e:GetHandler() and s.filter(chkc) end @@ -138,10 +138,10 @@ function s.speqop(e,tp,eg,ep,ev,re,r,rp) end end function s.eqval(ec,c,tp) - return ec:IsSetCard(0x12b) and ec:IsType(TYPE_LINK) + return ec:IsSetCard(SET_MARINCESS) and ec:IsType(TYPE_LINK) end function s.eqfilter(c,fid) - return c:GetFlagEffectLabel(id)==fid and c:IsFaceup() and c:IsType(TYPE_LINK) and c:IsSetCard(0x12b) and not c:IsForbidden() + return c:GetFlagEffectLabel(id)==fid and c:IsFaceup() and c:IsType(TYPE_LINK) and c:IsSetCard(SET_MARINCESS) and not c:IsForbidden() end function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.eqfilter(chkc,e:GetHandler():GetFieldID()) end @@ -181,7 +181,7 @@ end function s.cbcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local bt=eg:GetFirst() - return r~=REASON_REPLACE and c~=bt and bt:IsFaceup() and bt:GetControler()==c:GetControler() and bt:IsSetCard(0x12b) + return r~=REASON_REPLACE and c~=bt and bt:IsFaceup() and bt:GetControler()==c:GetControler() and bt:IsSetCard(SET_MARINCESS) end function s.cbtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetAttacker():GetAttackableTarget():IsContains(e:GetHandler()) end @@ -204,4 +204,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,tp):GetFirst() if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600268.lua b/unofficial/c511600268.lua index 5bb379d3f9..35769843f6 100644 --- a/unofficial/c511600268.lua +++ b/unofficial/c511600268.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetRange(LOCATION_FZONE) e2:SetTargetRange(LOCATION_MZONE,0) - e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x12b)) + e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_MARINCESS)) e2:SetValue(200) c:RegisterEffect(e2) --atk2 @@ -70,7 +70,7 @@ function s.matchk(e,c) end end function s.atkfilter(c) - return c:GetOriginalType()&(TYPE_LINK+TYPE_MONSTER)==(TYPE_LINK+TYPE_MONSTER) and c:IsSetCard(0x12b) + return c:GetOriginalType()&(TYPE_LINK+TYPE_MONSTER)==(TYPE_LINK+TYPE_MONSTER) and c:IsSetCard(SET_MARINCESS) end function s.atktg(e,c) return c:GetEquipGroup():IsExists(s.atkfilter,1,nil) @@ -79,19 +79,19 @@ function s.atkval(e,c) return c:GetEquipGroup():Filter(s.atkfilter,nil):GetSum(Card.GetLink)*300 end function s.etarget(e,c) - return c:IsFaceup() and c:GetFlagEffect(id)~=0 and c:IsSetCard(0x12b) and c:IsLinkMonster() and c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsFaceup() and c:GetFlagEffect(id)~=0 and c:IsSetCard(SET_MARINCESS) and c:IsLinkMonster() and c:IsLinkSummoned() end function s.efilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x12b) and c:IsLinkMonster() and c:GetSequence()>4 + return c:IsFaceup() and c:IsSetCard(SET_MARINCESS) and c:IsLinkMonster() and c:GetSequence()>4 end function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil) end function s.eqfilter(c) - return c:IsSetCard(0x12b) and c:IsLinkMonster() and not c:IsForbidden() + return c:IsSetCard(SET_MARINCESS) and c:IsLinkMonster() and not c:IsForbidden() end function s.eqcon(sg,e,tp,mg) return sg:GetClassCount(Card.GetLink)==#sg @@ -127,4 +127,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return c==e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c511600269.lua b/unofficial/c511600269.lua index 00f0c33fa1..2328faad5a 100644 --- a/unofficial/c511600269.lua +++ b/unofficial/c511600269.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) end s.listed_series={0x12b} function s.cfilter(c) - return c:IsFaceup() and c:IsLinkMonster() and c:IsSetCard(0x12b) + return c:IsFaceup() and c:IsLinkMonster() and c:IsSetCard(SET_MARINCESS) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_MZONE,0,nil) @@ -41,13 +41,13 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetCountLimit(1) e1:SetCondition(s.retcon) e1:SetOperation(s.retop) - if Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_STANDBY then e1:SetReset(RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,2) + if Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_STANDBY then e1:SetReset(RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,2) else e1:SetReset(RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN) end Duel.RegisterEffect(e1,tp) end end function s.retcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetTurnCount()~=e:GetLabel() + return Duel.IsTurnPlayer(tp) and Duel.GetTurnCount()~=e:GetLabel() end function s.retop(e,tp,eg,ep,ev,re,r,rp) for c in aux.Next(e:GetLabelObject()) do @@ -75,4 +75,4 @@ function s.filter(c) end function s.handcon(e) return Duel.IsExistingMatchingCard(s.filter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511600271.lua b/unofficial/c511600271.lua index fde2339e92..34ca2980ad 100644 --- a/unofficial/c511600271.lua +++ b/unofficial/c511600271.lua @@ -75,4 +75,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600272.lua b/unofficial/c511600272.lua index 7b7069594d..83dc9711f4 100644 --- a/unofficial/c511600272.lua +++ b/unofficial/c511600272.lua @@ -5,7 +5,7 @@ local s,id,alias=GetID() function s.initial_effect(c) alias=c:GetOriginalCodeRule() c:EnableReviveLimit() - Link.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x13c),2,2) + Link.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,SET_CODEBREAKER),2,2) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(168917,0)) @@ -43,12 +43,12 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetMutualLinkedGroupCount()>0 end function s.spfilter(c,e,tp,zones) - return c:IsLevelBelow(4) and c:IsSetCard(0x13c) + return c:IsLevelBelow(4) and c:IsSetCard(SET_CODEBREAKER) and (zones[0]>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,0,zones[0]) or zones[1]>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,1,zones[1])) end function s.spfilter2(c,e,tp,sump,zone) - return c:IsLevelBelow(4) and c:IsSetCard(0x13c) + return c:IsLevelBelow(4) and c:IsSetCard(SET_CODEBREAKER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,sump,zone) end function s.filter(c,e,tp) @@ -56,14 +56,14 @@ function s.filter(c,e,tp) local zones={} zones[0]=c:GetLinkedZone(0)&0x1f zones[1]=c:GetLinkedZone(1)&0x1f - return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp,zones) + return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil,e,tp,zones) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc,e,tp) end if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,e,tp) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_GRAVE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() @@ -81,7 +81,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) sump=tp end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter2),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,e,tp,sump,zones[sump]) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter2),tp,LOCATION_HAND|LOCATION_GRAVE,0,1,1,nil,e,tp,sump,zones[sump]) if #g>0 then Duel.SpecialSummon(g,0,tp,sump,false,false,POS_FACEUP_DEFENSE,zones[sump]) end @@ -90,7 +90,7 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttackTarget()~=nil end function s.damfilter(c,e,tp) - return c:IsFaceup() and c:IsSetCard(0x13c) + return c:IsFaceup() and c:IsSetCard(SET_CODEBREAKER) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end @@ -149,4 +149,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(LOCATION_REMOVED) c:RegisterEffect(e1,true) end -end +end \ No newline at end of file diff --git a/unofficial/c511600273.lua b/unofficial/c511600273.lua index ae83e24394..c89f1c1e57 100644 --- a/unofficial/c511600273.lua +++ b/unofficial/c511600273.lua @@ -70,10 +70,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end end function s.etarget(e,c) - return c:IsFaceup() and c:IsSetCard(0x13c) + return c:IsFaceup() and c:IsSetCard(SET_CODEBREAKER) end function s.tgfilter(c,p) - return c:IsFaceup() and c:IsSetCard(0x13c) and c:GetOwner()==p and not c:IsControler(p) + return c:IsFaceup() and c:IsSetCard(SET_CODEBREAKER) and c:GetOwner()==p and not c:IsControler(p) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.tgfilter,1,nil,tp) @@ -88,4 +88,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600274.lua b/unofficial/c511600274.lua index b841cc939a..7a5059d9a7 100644 --- a/unofficial/c511600274.lua +++ b/unofficial/c511600274.lua @@ -38,7 +38,7 @@ function s.initial_effect(c) end s.listed_series={0x13c} function s.lfilter(c,lc,sumtype,tp) - return c:IsType(TYPE_LINK,lc,sumtype,tp) and c:IsSetCard(0x13c,lc,sumtype,tp) + return c:IsType(TYPE_LINK,lc,sumtype,tp) and c:IsSetCard(SET_CODEBREAKER,lc,sumtype,tp) end function s.lcheck(g,lc,sumtype,tp) return g:IsExists(s.lfilter,1,nil,lc,sumtype,tp) @@ -47,18 +47,18 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():GetMutualLinkedGroupCount()>0 end function s.spfilter(c,e,tp,zones) - return c:IsLevelBelow(4) and c:IsSetCard(0x13c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,1-tp,zones) + return c:IsLevelBelow(4) and c:IsSetCard(SET_CODEBREAKER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,1-tp,zones) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local zones=aux.GetMMZonesPointedTo(1-tp) - if chk==0 then return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp,zones) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) + if chk==0 then return Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_GRAVE,0,1,nil,e,tp,zones) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_GRAVE) end function s.operation(e,tp,eg,ep,ev,re,r,rp) local zones=aux.GetMMZonesPointedTo(1-tp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE,1-tp,LOCATION_REASON_TOFIELD,zones) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,math.min(ft,2),nil,e,tp,zones) + local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.spfilter),tp,LOCATION_HAND|LOCATION_GRAVE,0,1,math.min(ft,2),nil,e,tp,zones) if #g>0 then Duel.SpecialSummon(g,0,tp,1-tp,false,false,POS_FACEUP_DEFENSE,zones) end @@ -67,7 +67,7 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttackTarget()~=nil end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x13c) + return c:IsFaceup() and c:IsSetCard(SET_CODEBREAKER) end function s.desfilter(c) return c:IsFaceup() and c:IsSpellTrap() diff --git a/unofficial/c511600275.lua b/unofficial/c511600275.lua index 9b29d36b6a..a2c4faf7e1 100644 --- a/unofficial/c511600275.lua +++ b/unofficial/c511600275.lua @@ -41,17 +41,17 @@ function s.initial_effect(c) end s.listed_series={0x13c} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x13c) + return c:IsFaceup() and c:IsSetCard(SET_CODEBREAKER) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x13c) and c:IsLinkMonster() + return c:IsFaceup() and c:IsSetCard(SET_CODEBREAKER) and c:IsLinkMonster() end function s.actcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end function s.descon(e) local tp=e:GetHandlerPlayer() - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_END + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_END and not Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end function s.atg(e,c) @@ -99,4 +99,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(1-tp,eg:GetFirst():GetBaseAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600276.lua b/unofficial/c511600276.lua index 2310491989..8a7216b7ce 100644 --- a/unofficial/c511600276.lua +++ b/unofficial/c511600276.lua @@ -58,4 +58,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600277.lua b/unofficial/c511600277.lua index ce1dd679a1..20b9ad5106 100644 --- a/unofficial/c511600277.lua +++ b/unofficial/c511600277.lua @@ -42,4 +42,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511600278.lua b/unofficial/c511600278.lua index decd247f7f..f5d5b0bf0f 100644 --- a/unofficial/c511600278.lua +++ b/unofficial/c511600278.lua @@ -64,7 +64,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end function s.con(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.op(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -72,4 +72,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if c:GetCounter(SATELLITE_COUNTER)==0 then Duel.Destroy(c,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600279.lua b/unofficial/c511600279.lua index d5c4547f6c..9cf3133876 100644 --- a/unofficial/c511600279.lua +++ b/unofficial/c511600279.lua @@ -36,4 +36,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if not c:IsRelateToEffect(e) then return end Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c511600280.lua b/unofficial/c511600280.lua index 4b9903e49f..0c0efee59c 100644 --- a/unofficial/c511600280.lua +++ b/unofficial/c511600280.lua @@ -100,4 +100,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600282.lua b/unofficial/c511600282.lua index 23c16dcbe8..bd972af470 100644 --- a/unofficial/c511600282.lua +++ b/unofficial/c511600282.lua @@ -32,7 +32,7 @@ function s.initial_effect(c) e4:SetCode(EFFECT_IMMUNE_EFFECT) e4:SetRange(LOCATION_FZONE) e4:SetTargetRange(LOCATION_MZONE,0) - e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x119)) + e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_SALAMANGREAT)) e4:SetValue(s.efilter) c:RegisterEffect(e4) --activate limit @@ -83,10 +83,10 @@ function s.linkop(e,tp,eg,ep,ev,re,r,rp,c) local mg=e:GetLabelObject() c:SetMaterial(mg) Duel.SendtoGrave(mg,REASON_MATERIAL+REASON_LINK) - Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id,RESET_PHASE|PHASE_END,0,1) end function s.mattg(e,c) - return c:IsSetCard(0x119) and c:IsLinkMonster() + return c:IsSetCard(SET_SALAMANGREAT) and c:IsLinkMonster() end function s.efilter(e,re) return e:GetHandlerPlayer()~=re:GetOwnerPlayer() and re:IsActiveType(TYPE_MONSTER) @@ -116,4 +116,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleDeck(p) Duel.BreakEffect() Duel.Draw(p,#g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600284.lua b/unofficial/c511600284.lua index f84a4fbb58..8918801d84 100644 --- a/unofficial/c511600284.lua +++ b/unofficial/c511600284.lua @@ -48,4 +48,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600285.lua b/unofficial/c511600285.lua index 34467805b1..e5b72a4a06 100644 --- a/unofficial/c511600285.lua +++ b/unofficial/c511600285.lua @@ -45,4 +45,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) Duel.Draw(tp,1,REASON_EFFECT) e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c511600287.lua b/unofficial/c511600287.lua index 27b339ae4e..c9cd43e1a1 100644 --- a/unofficial/c511600287.lua +++ b/unofficial/c511600287.lua @@ -15,13 +15,13 @@ function s.initial_effect(c) end s.listed_series={0x70} function s.filter(c) - return c:IsSetCard(0x70) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_CHRONOMALY) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end - if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) and Duel.IsPlayerCanDraw(tp,2) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end + if chk==0 then return Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) and Duel.IsPlayerCanDraw(tp,2) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.SetTargetPlayer(tp) Duel.SetTargetParam(2) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ShuffleHand(p) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600290.lua b/unofficial/c511600290.lua index 6158e4e336..f776f46a9a 100644 --- a/unofficial/c511600290.lua +++ b/unofficial/c511600290.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SpecialSummonComplete() end -end +end \ No newline at end of file diff --git a/unofficial/c511600291.lua b/unofficial/c511600291.lua index 8e18f09696..8baa8cef77 100644 --- a/unofficial/c511600291.lua +++ b/unofficial/c511600291.lua @@ -32,4 +32,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(-1) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600293.lua b/unofficial/c511600293.lua index 691129e578..94637163a7 100644 --- a/unofficial/c511600293.lua +++ b/unofficial/c511600293.lua @@ -31,4 +31,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600294.lua b/unofficial/c511600294.lua index 7c7fb015c8..7086e476ba 100644 --- a/unofficial/c511600294.lua +++ b/unofficial/c511600294.lua @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600295.lua b/unofficial/c511600295.lua index 3aa3d89274..3a791dd15b 100644 --- a/unofficial/c511600295.lua +++ b/unofficial/c511600295.lua @@ -38,7 +38,7 @@ function s.spcon(e,tp,eg,ep,ev,re,r,rp) return not Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x135) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_IGNISTER) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -78,4 +78,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600296.lua b/unofficial/c511600296.lua index 148b87d771..33bbfc55f1 100644 --- a/unofficial/c511600296.lua +++ b/unofficial/c511600296.lua @@ -33,4 +33,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c511600298.lua b/unofficial/c511600298.lua index 2293cd729f..666f5cbd6a 100644 --- a/unofficial/c511600298.lua +++ b/unofficial/c511600298.lua @@ -46,7 +46,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x135) + return c:IsFaceup() and c:IsSetCard(SET_IGNISTER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end @@ -61,10 +61,10 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) local tc=eg:GetFirst() - return ep~=tp and tc:IsControler(tp) and tc:IsSetCard(0x135) and tc~=e:GetHandler() + return ep~=tp and tc:IsControler(tp) and tc:IsSetCard(SET_IGNISTER) and tc~=e:GetHandler() end function s.spfilter(c,e,tp) - return c:IsLinkMonster() and c:IsSetCard(0x135) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsLinkMonster() and c:IsSetCard(SET_IGNISTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc,e,tp) end @@ -79,4 +79,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600299.lua b/unofficial/c511600299.lua index d5d8107a52..386a206940 100644 --- a/unofficial/c511600299.lua +++ b/unofficial/c511600299.lua @@ -46,7 +46,7 @@ function s.indes(e,c) return c:GetAttack()==e:GetHandler():GetAttack() end function s.filter(c,e,tp,zone) - return c:IsSetCard(0x135) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) + return c:IsSetCard(SET_IGNISTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function s.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) local zone=e:GetHandler():GetLinkedZone(tp) @@ -87,7 +87,7 @@ function s.spcheck(sg,e,tp,mg) return sg:GetClassCount(Card.GetCode)==#sg end function s.spfilter(c,e,tp,zone) - return c:IsLevelBelow(4) and c:IsSetCard(0x135) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) + return c:IsLevelBelow(4) and c:IsSetCard(SET_IGNISTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone) end function s.ltgfilter(c,e,tp) return c:IsLinkMonster() and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,c:GetLinkedZone(tp)) @@ -127,4 +127,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonComplete() end end -end +end \ No newline at end of file diff --git a/unofficial/c511600300.lua b/unofficial/c511600300.lua index 93b41c0ec3..220c5ee0d6 100644 --- a/unofficial/c511600300.lua +++ b/unofficial/c511600300.lua @@ -73,7 +73,7 @@ function s.lcheck(g,lc,sumtype,tp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - if not c:IsSummonType(SUMMON_TYPE_LINK) then return end + if not c:IsLinkSummoned() then return end local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_BASE_ATTACK) @@ -153,4 +153,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,alias+1) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP,e:GetHandler():GetLinkedZone()&0x1f) end -end +end \ No newline at end of file diff --git a/unofficial/c511600301.lua b/unofficial/c511600301.lua index f88bbfdc8e..a83e282de8 100644 --- a/unofficial/c511600301.lua +++ b/unofficial/c511600301.lua @@ -100,4 +100,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600302.lua b/unofficial/c511600302.lua index 12e562bf94..430a982ce6 100644 --- a/unofficial/c511600302.lua +++ b/unofficial/c511600302.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetCode(EVENT_BATTLED) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetTarget(s.target) e1:SetOperation(s.operation) c:RegisterEffect(e1) @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsControler(tp) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600303.lua b/unofficial/c511600303.lua index 2d74b8bfb3..6e6a64c4f0 100644 --- a/unofficial/c511600303.lua +++ b/unofficial/c511600303.lua @@ -85,7 +85,7 @@ function s.indval(e,re,tp) return tp~=e:GetHandlerPlayer() end function s.acfilter(c,p) - return c:IsSummonType(SUMMON_TYPE_LINK) and c:GetSummonPlayer()==p + return c:IsLinkSummoned() and c:GetSummonPlayer()==p end function s.accon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.acfilter,1,nil,1-tp) and s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -101,4 +101,4 @@ function s.rcop(e,tp,eg,ep,ev,re,r,rp) if c:IsFaceup() and c:IsRelateToEffect(e) then c:RemoveCounter(tp,0x584,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600304.lua b/unofficial/c511600304.lua index 445d06ff11..c7a20afbb5 100644 --- a/unofficial/c511600304.lua +++ b/unofficial/c511600304.lua @@ -30,7 +30,7 @@ end s.listed_series={0x135} s.listed_names={59332125} function s.filter(c) - return c:IsSetCard(0x135) and c:IsFaceup() and c:GetSequence()<5 + return c:IsSetCard(SET_IGNISTER) and c:IsFaceup() and c:GetSequence()<5 end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) @@ -45,7 +45,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end function s.tdfilter(c) - return c:IsSetCard(0x135) and c:IsLinkMonster() and c:IsAbleToExtra() + return c:IsSetCard(SET_IGNISTER) and c:IsLinkMonster() and c:IsAbleToExtra() end function s.thfilter(c) return c:IsCode(59332125) and c:IsAbleToHand() @@ -68,4 +68,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,sg) end -end +end \ No newline at end of file diff --git a/unofficial/c511600305.lua b/unofficial/c511600305.lua index 332317d6d5..b7966438be 100644 --- a/unofficial/c511600305.lua +++ b/unofficial/c511600305.lua @@ -26,11 +26,11 @@ end s.material_setcode={0x135} s.listed_series={0x135} function s.matfilter(c,fcard,sumtype,tp) - return c:IsSetCard(0x135,fc,sumtype,tp) and c:IsAttribute(ATTRIBUTE_EARTH,fcard,sumtype,tp) + return c:IsSetCard(SET_IGNISTER,fc,sumtype,tp) and c:IsAttribute(ATTRIBUTE_EARTH,fcard,sumtype,tp) end function s.sumsuc(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - if not c:IsSummonType(SUMMON_TYPE_FUSION) then return end + if not c:IsFusionSummoned() then return end local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_CHANGE_DAMAGE) @@ -57,4 +57,4 @@ function s.atkcon(e) end function s.atkval(e,c) return c:GetBaseAttack()*2 -end +end \ No newline at end of file diff --git a/unofficial/c511600306.lua b/unofficial/c511600306.lua index d99ede754c..31bc8941bd 100644 --- a/unofficial/c511600306.lua +++ b/unofficial/c511600306.lua @@ -3,7 +3,7 @@ --Scripted by Larry126 local s,id=GetID() function s.initial_effect(c) - local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,0x135),nil,s.fextra) + local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,SET_IGNISTER),nil,s.fextra) c:RegisterEffect(e1) end s.listed_series={0x135} diff --git a/unofficial/c511600308.lua b/unofficial/c511600308.lua index 6a53575441..f88ead2a0e 100644 --- a/unofficial/c511600308.lua +++ b/unofficial/c511600308.lua @@ -31,7 +31,7 @@ end s.listed_series={0x135,0x136} s.listed_names={id} function s.filter(c,e,tp) - return c:IsSetCard(0x135) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_IGNISTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -51,10 +51,10 @@ function s.thcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetAttackTarget() end function s.cfilter(c) - return c:IsSetCard(0x136) and c:IsAbleToRemoveAsCost() + return c:IsSetCard(SET_AI) and c:IsAbleToRemoveAsCost() end function s.thfilter(c) - return c:IsSetCard(0x136) and c:IsSpellTrap() and c:IsAbleToHand() and not c:IsCode(id) + return c:IsSetCard(SET_AI) and c:IsSpellTrap() and c:IsAbleToHand() and not c:IsCode(id) end function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -76,4 +76,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600309.lua b/unofficial/c511600309.lua index 2eeb62cf02..06dd127f3b 100644 --- a/unofficial/c511600309.lua +++ b/unofficial/c511600309.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_FREE_CHAIN) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetRange(LOCATION_GRAVE) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.rectg) e2:SetOperation(s.recop) c:RegisterEffect(e2) @@ -31,7 +31,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end end function s.cfilter(c,tp) - return c:IsLinkMonster() and c:IsSetCard(0x135) + return c:IsLinkMonster() and c:IsSetCard(SET_IGNISTER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then @@ -51,13 +51,13 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(p,d,REASON_EFFECT) end function s.rectg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x135) end + if chk==0 then return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,SET_IGNISTER) end Duel.SetTargetPlayer(tp) - Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,0x135)*200) + Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,SET_IGNISTER)*200) end function s.recop(e,tp,eg,ep,ev,re,r,rp) - local ct=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,0x135) + local ct=Duel.GetMatchingGroupCount(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,SET_IGNISTER) if ct>0 then Duel.Recover(Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER),ct*200,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600310.lua b/unofficial/c511600310.lua index 28065716af..6acba45004 100644 --- a/unofficial/c511600310.lua +++ b/unofficial/c511600310.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600311.lua b/unofficial/c511600311.lua index 06112d58cc..bc8bc98b3e 100644 --- a/unofficial/c511600311.lua +++ b/unofficial/c511600311.lua @@ -46,8 +46,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP,zones) end function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,e:GetHandler(),0x135) end - local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,e:GetHandler(),0x135) + if chk==0 then return Duel.CheckReleaseGroupCost(tp,Card.IsSetCard,1,false,nil,e:GetHandler(),SET_IGNISTER) end + local g=Duel.SelectReleaseGroupCost(tp,Card.IsSetCard,1,1,false,nil,e:GetHandler(),SET_IGNISTER) Duel.Release(g,REASON_COST) e:SetLabelObject(g:GetFirst()) end @@ -55,7 +55,7 @@ function s.thfilter(c) return c:IsCode(85327820) and c:IsAbleToHand() end function s.thfilter2(c) - return c:IsSetCard(0x135) and c:IsRitualMonster() and c:IsAbleToHand() + return c:IsSetCard(SET_IGNISTER) and c:IsRitualMonster() and c:IsAbleToHand() end function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil) end diff --git a/unofficial/c511600313.lua b/unofficial/c511600313.lua index 6e85f0df05..2a810c2687 100644 --- a/unofficial/c511600313.lua +++ b/unofficial/c511600313.lua @@ -39,7 +39,7 @@ function s.initial_effect(c) end s.listed_names={101011054} function s.thcon(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) + return e:GetHandler():IsRitualSummoned() end function s.thfilter(c) return c:IsFaceup() and c:GetBaseAttack()<=2300 and c:IsAbleToHand() @@ -84,4 +84,4 @@ function s.target(e,c) end function s.value(e,c) return c:GetAttack()/2 -end +end \ No newline at end of file diff --git a/unofficial/c511600314.lua b/unofficial/c511600314.lua index 0b906383a6..783dee4c03 100644 --- a/unofficial/c511600314.lua +++ b/unofficial/c511600314.lua @@ -35,7 +35,7 @@ function s.initial_effect(c) end s.listed_series={0x135} function s.tgfilter(c,tp) - return c:IsControler(tp) and c:IsSetCard(0x135) and c:IsFaceup(0x135) + return c:IsControler(tp) and c:IsSetCard(SET_IGNISTER) and c:IsFaceup(SET_IGNISTER) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end @@ -52,7 +52,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(800) tc:RegisterEffect(e1) end - if Duel.GetTurnPlayer()==1-tp then + if Duel.IsTurnPlayer(1-tp) then local e1=Effect.CreateEffect(e:GetHandler()) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_MUST_ATTACK) @@ -73,7 +73,7 @@ function s.atklimit(e,c) return c:IsRelateToEffect(e) end function s.check(c,tp) - return c and c:IsControler(tp) and c:IsSetCard(0x135) + return c and c:IsControler(tp) and c:IsSetCard(SET_IGNISTER) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetAttackTarget()~=nil @@ -106,4 +106,4 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) if Duel.Draw(p,d,REASON_EFFECT)>0 then Duel.BreakEffect() end -end +end \ No newline at end of file diff --git a/unofficial/c511600315.lua b/unofficial/c511600315.lua index cc0dd4504e..6b85321e36 100644 --- a/unofficial/c511600315.lua +++ b/unofficial/c511600315.lua @@ -22,7 +22,7 @@ function s.initial_effect(c) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e2:SetCountLimit(1,{alias,1}) e2:SetCondition(s.damcon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.damtg) e2:SetOperation(s.damop) c:RegisterEffect(e2) @@ -30,7 +30,7 @@ end s.listed_series={0x135} function s.condition(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetAttackTarget() - return tc and tc:IsControler(tp) and tc:IsSetCard(0x135) and Duel.GetBattleDamage(tp)>0 + return tc and tc:IsControler(tp) and tc:IsSetCard(SET_IGNISTER) and Duel.GetBattleDamage(tp)>0 end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsDiscardable() end @@ -48,7 +48,7 @@ function s.bdop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x135) + return c:IsFaceup() and c:IsSetCard(SET_IGNISTER) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) if not Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) then return false end @@ -110,4 +110,4 @@ function s.damval2(e,re,val,r,rp,rc) local cid=Duel.GetChainInfo(0,CHAININFO_CHAIN_ID) if cid~=e:GetLabel() then return val end return val*2 -end +end \ No newline at end of file diff --git a/unofficial/c511600316.lua b/unofficial/c511600316.lua index 802c54e938..d1afcb372a 100644 --- a/unofficial/c511600316.lua +++ b/unofficial/c511600316.lua @@ -20,7 +20,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) e2:SetCondition(s.bpcon) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetOperation(s.bpop) c:RegisterEffect(e2) aux.GlobalCheck(s,function() @@ -44,7 +44,7 @@ function s.condition() return Duel.IsBattlePhase() end function s.filter1(c) - return c:IsSetCard(0x135) and c:IsFaceup() and c:GetSequence()>4 + return c:IsSetCard(SET_IGNISTER) and c:IsFaceup() and c:GetSequence()>4 end function s.filter2(c) return c:IsType(TYPE_LINK) and c:GetSequence()<5 @@ -111,8 +111,8 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) e:Reset() end function s.bpcon(e,tp,eg,ep,ev,re,r,rp) - return s.condition() and Duel.GetTurnPlayer()==1-tp and Duel.GetFlagEffect(0,id+1)>0 + return s.condition() and Duel.IsTurnPlayer(1-tp) and Duel.GetFlagEffect(0,id+1)>0 end function s.bpop(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) -end +end \ No newline at end of file diff --git a/unofficial/c511600317.lua b/unofficial/c511600317.lua index f07cb25469..089f2cb4cb 100644 --- a/unofficial/c511600317.lua +++ b/unofficial/c511600317.lua @@ -22,11 +22,11 @@ function s.initial_effect(c) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) if r&REASON_EFFECT~=0 then - Duel.RegisterFlagEffect(ep,id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ep,id,RESET_PHASE|PHASE_END,0,1) end end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetAttackTarget() and Duel.GetTurnPlayer()==1-tp and Duel.GetFlagEffect(tp,id)>0 + return Duel.GetAttackTarget() and Duel.IsTurnPlayer(1-tp) and Duel.GetFlagEffect(tp,id)>0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetAttackTarget():GetAttack()~=Duel.GetAttacker():GetAttack() end @@ -44,4 +44,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Destroy(ac,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600318.lua b/unofficial/c511600318.lua index 66facb21b0..9c928de602 100644 --- a/unofficial/c511600318.lua +++ b/unofficial/c511600318.lua @@ -73,4 +73,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600320.lua b/unofficial/c511600320.lua index 0dea6fc92c..050f79b563 100644 --- a/unofficial/c511600320.lua +++ b/unofficial/c511600320.lua @@ -58,7 +58,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end function s.costfilter(c) - return c:IsSetCard(0x12b) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_MARINCESS) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_HAND,0,1,nil) end @@ -67,7 +67,7 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.filter(c,e,tp) - return c:IsSetCard(0x12b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_MARINCESS) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_REMOVED) and s.filter(chkc,e,tp) end @@ -82,4 +82,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,chk) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600321.lua b/unofficial/c511600321.lua index ede6496e58..e62e4084c5 100644 --- a/unofficial/c511600321.lua +++ b/unofficial/c511600321.lua @@ -24,7 +24,7 @@ function s.initial_effect(c) end s.listed_series={0x12b} function s.filter(c) - return c:IsType(TYPE_LINK) and c:IsSetCard(0x12b) + return c:IsType(TYPE_LINK) and c:IsSetCard(SET_MARINCESS) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE,0,1,nil) end @@ -35,12 +35,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,Duel.GetMatchingGroup(s.filter,tp,LOCATION_GRAVE,0,nil):GetSum(Card.GetLink)*100,REASON_EFFECT) end function s.cfilter(c) - return c:IsLevelAbove(5) and c:IsSetCard(0x12b) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsLevelAbove(5) and c:IsSetCard(SET_MARINCESS) and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil,tp) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil,tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local rg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil,tp) + local rg=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil,tp) Duel.Remove(rg,POS_FACEUP,REASON_COST) end function s.damtg(e,tp,eg,ep,ev,re,r,rp,chk) @@ -54,4 +54,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600322.lua b/unofficial/c511600322.lua index 569a0c43bf..53c7faf19d 100644 --- a/unofficial/c511600322.lua +++ b/unofficial/c511600322.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,0,LOCATION_MZONE,nil) Duel.ChangePosition(g,POS_FACEUP_DEFENSE) Duel.DiscardHand(1-tp,nil,1,1,REASON_EFFECT+REASON_DISCARD) -end +end \ No newline at end of file diff --git a/unofficial/c511600333.lua b/unofficial/c511600333.lua index 25567fb402..8d68495543 100644 --- a/unofficial/c511600333.lua +++ b/unofficial/c511600333.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) c:SetUniqueOnField(1,0,id) - aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,0x119)) + aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsSetCard,SET_SALAMANGREAT)) aux.EnableCheckReincarnation(c) --atk local e1=Effect.CreateEffect(c) @@ -50,7 +50,7 @@ function s.indesval(e,re) end function s.damcon(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler():GetEquipTarget() - return eg:GetFirst()==c and Duel.GetAttacker()==c and c:IsSetCard(0x119) + return eg:GetFirst()==c and Duel.GetAttacker()==c and c:IsSetCard(SET_SALAMANGREAT) and c:IsType(TYPE_LINK) and c:IsReincarnationSummoned() and not c:GetBattleTarget():IsControler(tp) end @@ -71,4 +71,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if dam<0 then dam=0 end Duel.Damage(p,dam,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600334.lua b/unofficial/c511600334.lua index 1830217eb3..ade8cb0b0e 100644 --- a/unofficial/c511600334.lua +++ b/unofficial/c511600334.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) end s.listed_series={0x119} function s.cfilter(c,tp) - return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(0x119) and c:GetPreviousControler()==tp + return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(SET_SALAMANGREAT) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) @@ -42,7 +42,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(e:GetHandler(),REASON_COST) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x119) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_SALAMANGREAT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -82,4 +82,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,1-tp,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600335.lua b/unofficial/c511600335.lua index 60a767d308..648c694d2c 100644 --- a/unofficial/c511600335.lua +++ b/unofficial/c511600335.lua @@ -38,7 +38,7 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) if ec:GetPreviousTypeOnField()&TYPE_LINK>0 and ec:IsPreviousSetCard(SET_SALAMANGREAT) and REASON_EFFECT&ec:GetReason()>0 and ec:GetPreviousControler()~=ec:GetReasonEffect():GetHandlerPlayer() then - Duel.RegisterFlagEffect(ec:GetPreviousControler(),id,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(ec:GetPreviousControler(),id,RESET_PHASE|PHASE_END,0,1) end end end @@ -118,4 +118,4 @@ function s.efop(e,tp,eg,ep,ev,re,r,rp) end function s.atkval(e,c) return c:GetOverlayCount()*300 -end +end \ No newline at end of file diff --git a/unofficial/c511600336.lua b/unofficial/c511600336.lua index dbf20cb31b..11a5a13f10 100644 --- a/unofficial/c511600336.lua +++ b/unofficial/c511600336.lua @@ -20,7 +20,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.filter(c) - return c:HasNonZeroDefense() and c:IsSetCard(0x119) + return c:HasNonZeroDefense() and c:IsSetCard(SET_SALAMANGREAT) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) and chkc:IsControler(tp) end @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Recover(tp,tc:GetDefense(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600337.lua b/unofficial/c511600337.lua index a15d372516..2cb7446a72 100644 --- a/unofficial/c511600337.lua +++ b/unofficial/c511600337.lua @@ -33,7 +33,7 @@ function s.initial_effect(c) e4:SetCode(EFFECT_UPDATE_ATTACK) e4:SetRange(LOCATION_SZONE) e4:SetTargetRange(LOCATION_MZONE,0) - e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x119)) + e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_SALAMANGREAT)) e4:SetValue(500) c:RegisterEffect(e4) --set @@ -54,7 +54,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE end function s.filter(c) - return c:IsSpellTrap() and c:IsSetCard(0x119) and c:IsAbleToGraveAsCost() + return c:IsSpellTrap() and c:IsSetCard(SET_SALAMANGREAT) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND,0,1,nil) end @@ -66,7 +66,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end function s.immtg(e,c) - return c:IsSetCard(0x119) and c:IsFaceup() + return c:IsSetCard(SET_SALAMANGREAT) and c:IsFaceup() end function s.immval(e,te) return te:IsActiveType(TYPE_MONSTER) and e:GetHandlerPlayer()~=te:GetHandlerPlayer() and te:IsActivated() @@ -89,4 +89,4 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and c:IsSSetable() then Duel.SSet(tp,c) end -end +end \ No newline at end of file diff --git a/unofficial/c511600338.lua b/unofficial/c511600338.lua index 0869f22330..928bd0106a 100644 --- a/unofficial/c511600338.lua +++ b/unofficial/c511600338.lua @@ -16,7 +16,7 @@ function s.initial_effect(c) end s.listed_series={0x119} function s.filter(c) - return c:IsType(TYPE_LINK) and c:IsSetCard(0x119) and c:IsAbleToExtra() + return c:IsType(TYPE_LINK) and c:IsSetCard(SET_SALAMANGREAT) and c:IsAbleToExtra() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return false end diff --git a/unofficial/c511600339.lua b/unofficial/c511600339.lua index 5e0bb52339..bd47a1d71f 100644 --- a/unofficial/c511600339.lua +++ b/unofficial/c511600339.lua @@ -53,7 +53,7 @@ function s.initial_effect(c) end s.listed_series={0x119} function s.eqfilter(c) - return c:IsSetCard(0x119) and c:GetSequence()>4 + return c:IsSetCard(SET_SALAMANGREAT) and c:GetSequence()>4 end function s.immval(e,te) return te:IsActiveType(TYPE_MONSTER) and not te:GetHandler():IsType(TYPE_LINK) @@ -66,7 +66,7 @@ function s.atktg(e,c) return Duel.GetAttackTarget()==c end function s.desrepfilter(c) - return c:IsType(TYPE_LINK) and c:GetLink()>1 and c:IsSetCard(0x119) and c:IsAbleToExtra() + return c:IsType(TYPE_LINK) and c:GetLink()>1 and c:IsSetCard(SET_SALAMANGREAT) and c:IsAbleToExtra() end function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -94,4 +94,4 @@ function s.desrepop(e,tp,eg,ep,ev,re,r,rp) end function s.repval(e,c) return c==e:GetHandler():GetEquipTarget() -end +end \ No newline at end of file diff --git a/unofficial/c511600340.lua b/unofficial/c511600340.lua index f213f7ad5b..3a4f06e9ee 100644 --- a/unofficial/c511600340.lua +++ b/unofficial/c511600340.lua @@ -66,4 +66,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Draw(p,tc:GetLink(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600341.lua b/unofficial/c511600341.lua index f511be1a07..eaf890e663 100644 --- a/unofficial/c511600341.lua +++ b/unofficial/c511600341.lua @@ -23,7 +23,7 @@ function s.initial_effect(c) e2:SetCode(EVENT_FREE_CHAIN) e2:SetRange(LOCATION_GRAVE) e2:SetCountLimit(1,{id,1}) - e2:SetCost(aux.bfgcost) + e2:SetCost(Cost.SelfBanish) e2:SetTarget(s.sptg) e2:SetOperation(s.spop) c:RegisterEffect(e2) @@ -37,7 +37,7 @@ function s.initial_effect(c) end s.listed_series={0x119} function s.spfilter(c,e,tp,lk) - return c:IsSetCard(0x119) and c:IsType(TYPE_LINK) and c:GetLink()0 and ec:IsSummonType(SUMMON_TYPE_LINK) + if ec:GetPreviousTypeOnField()&TYPE_LINK>0 and ec:IsLinkSummoned() and ec:IsPreviousSetCard(0x119) and REASON_EFFECT&ec:GetReason()>0 and ec:GetReasonEffect():GetHandlerPlayer()~=tp then local lk=ec:GetLink() @@ -113,7 +113,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) c:RegisterFlagEffect(id,RESET_CHAIN,0,1) end function s.filter(c,e,tp,lk) - return c:IsSetCard(0x119) and c:IsLevelBelow(lk) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_SALAMANGREAT) and c:IsLevelBelow(lk) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local lk=Duel.GetFieldGroup(tp,LOCATION_MZONE,LOCATION_MZONE):GetSum(Card.GetLink) @@ -128,4 +128,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600342.lua b/unofficial/c511600342.lua index 2ddfe59261..98a9a93344 100644 --- a/unofficial/c511600342.lua +++ b/unofficial/c511600342.lua @@ -78,4 +78,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600344.lua b/unofficial/c511600344.lua index d71ce11fba..6cfa6883ef 100644 --- a/unofficial/c511600344.lua +++ b/unofficial/c511600344.lua @@ -38,7 +38,7 @@ function s.initial_effect(c) e4:SetRange(LOCATION_GRAVE) e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e4:SetCondition(s.negcon) - e4:SetCost(aux.bfgcost) + e4:SetCost(Cost.SelfBanish) e4:SetTarget(s.negtg) e4:SetOperation(s.negop) c:RegisterEffect(e4) @@ -108,4 +108,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600345.lua b/unofficial/c511600345.lua index 6e3cc5e982..abb16588fd 100644 --- a/unofficial/c511600345.lua +++ b/unofficial/c511600345.lua @@ -48,4 +48,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600346.lua b/unofficial/c511600346.lua index 8daae9c721..c36106c93f 100644 --- a/unofficial/c511600346.lua +++ b/unofficial/c511600346.lua @@ -25,7 +25,7 @@ function s.initial_effect(c) end s.listed_series={0x135} function s.filter(c,e,tp) - return c:IsSetCard(0x135) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_IGNISTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return not chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and s.filter(chkc,e,tp) end @@ -53,7 +53,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.repfilter(c,tp) return c:IsFaceup() and c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) - and c:IsSetCard(0x135) and c:IsType(TYPE_LINK) and not c:IsReason(REASON_REPLACE) and c:IsReason(REASON_EFFECT) + and c:IsSetCard(SET_IGNISTER) and c:IsType(TYPE_LINK) and not c:IsReason(REASON_REPLACE) and c:IsReason(REASON_EFFECT) end function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(s.repfilter,1,nil,tp) end @@ -63,7 +63,7 @@ function s.repval(e,c) return s.repfilter(c,e:GetHandlerPlayer()) end function s.cfilter(c) - return c:IsSetCard(0x135) and c:IsType(TYPE_LINK) + return c:IsSetCard(SET_IGNISTER) and c:IsType(TYPE_LINK) end function s.repop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -83,4 +83,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600348.lua b/unofficial/c511600348.lua index 71571f2473..dc9a499556 100644 --- a/unofficial/c511600348.lua +++ b/unofficial/c511600348.lua @@ -18,7 +18,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,0)==0 end function s.filter(c) - return c:IsSetCard(0x1f) and c:IsAbleToGrave() + return c:IsSetCard(SET_NEO_SPACIAN) and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) local ct=Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE) @@ -51,4 +51,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c511600351.lua b/unofficial/c511600351.lua index d1a0c69a76..767f65268d 100644 --- a/unofficial/c511600351.lua +++ b/unofficial/c511600351.lua @@ -36,7 +36,7 @@ function s.initial_effect(c) e3:SetCode(EVENT_PRE_DAMAGE_CALCULATE) e3:SetRange(LOCATION_GRAVE) e3:SetCountLimit(1,{alias,200}) - e3:SetCost(aux.bfgcost) + e3:SetCost(Cost.SelfBanish) e3:SetTarget(s.bttg) e3:SetOperation(s.btop) c:RegisterEffect(e3) @@ -86,7 +86,7 @@ function s.bttg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if not at then return false end if not a:IsControler(tp) then a,at=at,a end - return a:IsLinkMonster() and a:IsSetCard(0x135) + return a:IsLinkMonster() and a:IsSetCard(SET_IGNISTER) and a:IsControler(tp) and not a:IsAttack(3000) and not at:IsControler(tp) and not at:IsAttack(3000) end @@ -118,7 +118,7 @@ function s.btop(e,tp,eg,ep,ev,re,r,rp) end end function s.spfilter(c,e,tp,lk) - return c:IsLinkMonster() and c:IsSetCard(0x135) and c:GetLink()0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600352.lua b/unofficial/c511600352.lua index ab3e0e420a..4c59b18b07 100644 --- a/unofficial/c511600352.lua +++ b/unofficial/c511600352.lua @@ -55,7 +55,7 @@ function s.aefilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() and re:IsActivated() end function s.indtg(e,c) - return c:IsSetCard(0x135) + return c:IsSetCard(SET_IGNISTER) end function s.indct(e,re,r,rp) if r&REASON_EFFECT==REASON_EFFECT then @@ -104,4 +104,4 @@ function s.immop(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511600353.lua b/unofficial/c511600353.lua index a29e1761b2..6bbb9aba3c 100644 --- a/unofficial/c511600353.lua +++ b/unofficial/c511600353.lua @@ -56,7 +56,7 @@ function s.splimit(e,c,sump,sumtype,sumpos,targetp) return sumtype&SUMMON_TYPE_LINK==SUMMON_TYPE_LINK end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.desfilter(c) return c:IsReleasableByEffect() and c:IsType(TYPE_LINK) @@ -68,4 +68,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.SelectReleaseGroup(tp,s.desfilter,1,1,nil) Duel.Release(g,REASON_COST) else Duel.Destroy(c,REASON_COST) end -end +end \ No newline at end of file diff --git a/unofficial/c511600355.lua b/unofficial/c511600355.lua index 77cf129efe..58b7fc4cf2 100644 --- a/unofficial/c511600355.lua +++ b/unofficial/c511600355.lua @@ -47,4 +47,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.splimit(e,c,sump,sumtype,sumpos,targetp,se) return not c:IsRace(RACE_CYBERSE) -end +end \ No newline at end of file diff --git a/unofficial/c511600356.lua b/unofficial/c511600356.lua index 8463c09d7e..35b7eac92f 100644 --- a/unofficial/c511600356.lua +++ b/unofficial/c511600356.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(att) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511600357.lua b/unofficial/c511600357.lua index ecddf15c3c..fcf043a204 100644 --- a/unofficial/c511600357.lua +++ b/unofficial/c511600357.lua @@ -30,7 +30,7 @@ function s.matfilter(c,lc,sumtype,tp) return c:IsLinkAbove(2) and c:IsType(TYPE_LINK,lc,sumtype,tp) end function s.condition(e,tp,eg,ep,ev,re,r,rp) - return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) + return e:GetHandler():IsLinkSummoned() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -67,4 +67,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.valcheck(e,c) e:GetLabelObject():SetLabel(c:GetMaterial():GetFirst():GetLink()) -end +end \ No newline at end of file diff --git a/unofficial/c511600358.lua b/unofficial/c511600358.lua index 482af52bd4..a10c374783 100644 --- a/unofficial/c511600358.lua +++ b/unofficial/c511600358.lua @@ -31,7 +31,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local tc=Duel.SelectTarget(tp,s.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,tc,1,tp,LOCATION_GRAVE+LOCATION_EXTRA) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,tc,1,tp,LOCATION_GRAVE|LOCATION_EXTRA) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end @@ -84,4 +84,4 @@ function s.tg(e,c) end function s.efilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c511600359.lua b/unofficial/c511600359.lua index ce47088e71..8c9c0d77f0 100644 --- a/unofficial/c511600359.lua +++ b/unofficial/c511600359.lua @@ -31,4 +31,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600361.lua b/unofficial/c511600361.lua index 8afee5a099..be05b3a2c9 100644 --- a/unofficial/c511600361.lua +++ b/unofficial/c511600361.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) end s.listed_series={0x11a} function s.filter(c) - return c:IsType(TYPE_LINK) and c:IsSetCard(0x11a) + return c:IsType(TYPE_LINK) and c:IsSetCard(SET_DINOWRESTLER) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -40,4 +40,4 @@ end function s.efilter(e,re) return e:GetOwnerPlayer()~=re:GetOwnerPlayer() and re:IsActiveType(TYPE_MONSTER) and re:IsActivated() and re:GetOwner():IsLinkBelow(8) and re:GetOwner():GetLink()<=e:GetHandler():GetLink() -end +end \ No newline at end of file diff --git a/unofficial/c511600362.lua b/unofficial/c511600362.lua index 4976e00c38..aaf1a9c607 100644 --- a/unofficial/c511600362.lua +++ b/unofficial/c511600362.lua @@ -20,7 +20,7 @@ end s.listed_series={0x119} function s.lpcon(e,tp,eg,ep,ev,re,r,rp) local d=Duel.GetAttackTarget() - return d and d:IsControler(tp) and d:IsFaceup() and d:IsSetCard(0x119) + return d and d:IsControler(tp) and d:IsFaceup() and d:IsSetCard(SET_SALAMANGREAT) end function s.lpcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end @@ -63,4 +63,4 @@ function s.lpop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(1) e2:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e2,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600363.lua b/unofficial/c511600363.lua index 1014e1414c..744a194fa8 100644 --- a/unofficial/c511600363.lua +++ b/unofficial/c511600363.lua @@ -9,7 +9,7 @@ function s.initial_effect(c) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) - e1:SetRange(LOCATION_HAND+LOCATION_MZONE) + e1:SetRange(LOCATION_HAND|LOCATION_MZONE) e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCondition(s.eqcon) e1:SetTarget(s.eqtg) @@ -118,4 +118,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600364.lua b/unofficial/c511600364.lua index e1eba4a473..6c04f487a4 100644 --- a/unofficial/c511600364.lua +++ b/unofficial/c511600364.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) end s.listed_series={0x103} function s.cfilter(c,tp) - return c:IsControler(tp) and c:IsSetCard(0x103) and c:IsType(TYPE_LINK) and c:IsSummonType(SUMMON_TYPE_LINK) + return c:IsControler(tp) and c:IsSetCard(SET_ALTERGEIST) and c:IsType(TYPE_LINK) and c:IsLinkSummoned() end function s.spcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) @@ -55,7 +55,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.filter2(c) - return c:IsType(TYPE_LINK) and not c:IsSetCard(0x103) + return c:IsType(TYPE_LINK) and not c:IsSetCard(SET_ALTERGEIST) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter2(chkc) end @@ -82,4 +82,4 @@ end function s.con(e) if e:GetOwner():IsRelateToEffect(e) then return true else e:Reset() return false end -end +end \ No newline at end of file diff --git a/unofficial/c511600365.lua b/unofficial/c511600365.lua index d8719f5aa0..b98eb8a132 100644 --- a/unofficial/c511600365.lua +++ b/unofficial/c511600365.lua @@ -29,4 +29,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and c:IsFaceup() then c:AddCounter(0x577,1) end -end +end \ No newline at end of file diff --git a/unofficial/c511600366.lua b/unofficial/c511600366.lua index 3a2bcc6d9d..618c6b80d8 100644 --- a/unofficial/c511600366.lua +++ b/unofficial/c511600366.lua @@ -96,4 +96,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511600367.lua b/unofficial/c511600367.lua index 3ce39a1f74..8752502f13 100644 --- a/unofficial/c511600367.lua +++ b/unofficial/c511600367.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600369.lua b/unofficial/c511600369.lua index f5693c5dbc..a164b0e9de 100644 --- a/unofficial/c511600369.lua +++ b/unofficial/c511600369.lua @@ -36,7 +36,7 @@ function s.atcost(e,tp,eg,ep,ev,re,r,rp,chk) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x54) and c:GetEffectCount(EFFECT_EXTRA_ATTACK)==0 + return c:IsFaceup() and c:IsSetCard(SET_GAGAGA) and c:GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end function s.attg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end @@ -57,7 +57,7 @@ end function s.cbcon(e,tp,eg,ep,ev,re,r,rp) local bt=eg:GetFirst() return r~=REASON_REPLACE and bt~=e:GetHandler() and bt:IsControler(tp) - and bt:IsFaceup() and bt:IsSetCard(0x54) and e:GetHandler():IsPosition(POS_ATTACK) + and bt:IsFaceup() and bt:IsSetCard(SET_GAGAGA) and e:GetHandler():IsPosition(POS_ATTACK) end function s.cbop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -67,4 +67,4 @@ function s.cbop(e,tp,eg,ep,ev,re,r,rp) Duel.CalculateDamage(at,c) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600370.lua b/unofficial/c511600370.lua index bfa4b9c5ae..f5e3670a95 100644 --- a/unofficial/c511600370.lua +++ b/unofficial/c511600370.lua @@ -106,4 +106,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,1-tp,id) local dg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,0,nil) Duel.Destroy(dg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600371.lua b/unofficial/c511600371.lua index aa039dd0df..64a421c578 100644 --- a/unofficial/c511600371.lua +++ b/unofficial/c511600371.lua @@ -54,4 +54,4 @@ function s.ctxop(e,tp,eg,ep,ev,re,r,rp) if ep==1-tp then return end local ct=math.floor(ev/1000) c:RemoveCounter(tp,0x91,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600372.lua b/unofficial/c511600372.lua index 03dfab0672..42a00c7038 100644 --- a/unofficial/c511600372.lua +++ b/unofficial/c511600372.lua @@ -116,4 +116,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600373.lua b/unofficial/c511600373.lua index 9b19c82658..c530a1cc8e 100644 --- a/unofficial/c511600373.lua +++ b/unofficial/c511600373.lua @@ -69,4 +69,4 @@ function s.ctxop(e,tp,eg,ep,ev,re,r,rp) if ep==1-tp then return end local ct=math.floor(ev/1000) c:RemoveCounter(tp,0x91,ct,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600374.lua b/unofficial/c511600374.lua index b1cdd7d2be..6393cff54e 100644 --- a/unofficial/c511600374.lua +++ b/unofficial/c511600374.lua @@ -127,4 +127,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600375.lua b/unofficial/c511600375.lua index 9d561cd596..c55f1a853b 100644 --- a/unofficial/c511600375.lua +++ b/unofficial/c511600375.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,tc:GetAttack(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600376.lua b/unofficial/c511600376.lua index 1b41307ef0..5618e74818 100644 --- a/unofficial/c511600376.lua +++ b/unofficial/c511600376.lua @@ -28,4 +28,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511600377.lua b/unofficial/c511600377.lua index cda35bf1da..cd9af484ea 100644 --- a/unofficial/c511600377.lua +++ b/unofficial/c511600377.lua @@ -20,7 +20,7 @@ function s.filter1(c,e,tp) end function s.filter2(c,e,tp,mc,rk,pg) if c.rum_limit and not c.rum_limit(mc,e) then return false end - return mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(0x1048) and mc:IsCanBeXyzMaterial(c,tp) + return mc:IsType(TYPE_XYZ,c,SUMMON_TYPE_XYZ,tp) and c:IsRank(rk) and c:IsSetCard(SET_NUMBER_C) and mc:IsCanBeXyzMaterial(c,tp) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) @@ -43,5 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP) sc:CompleteProcedure() end -end - +end \ No newline at end of file diff --git a/unofficial/c511600378.lua b/unofficial/c511600378.lua index 73d5f9a2a8..3b70e824fe 100644 --- a/unofficial/c511600378.lua +++ b/unofficial/c511600378.lua @@ -14,18 +14,18 @@ function s.initial_effect(c) end s.listed_series={0x1034} function s.condition(e,tp,eg,ep,ev,re,r,rp) - return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0x1034),tp,LOCATION_SZONE,0,2,nil) + return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_CRYSTAL_BEAST),tp,LOCATION_SZONE,0,2,nil) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local sg=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,0x1034),tp,LOCATION_SZONE,0,nil):RandomSelect(tp,1,nil) + local sg=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_CRYSTAL_BEAST),tp,LOCATION_SZONE,0,nil):RandomSelect(tp,1,nil) if #sg>0 then Duel.SendtoGrave(sg,REASON_EFFECT) if sg:GetFirst():IsLocation(LOCATION_GRAVE) then Duel.Draw(tp,2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600379.lua b/unofficial/c511600379.lua index c4cf2cfaff..655b6749c1 100644 --- a/unofficial/c511600379.lua +++ b/unofficial/c511600379.lua @@ -13,4 +13,4 @@ function s.initial_effect(c) end function s.atkup(e,c) return Duel.GetMatchingGroupCount(aux.FaceupFilter(Card.IsAttribute,ATTRIBUTE_WATER),c:GetControler(),LOCATION_MZONE,0,c)*300 -end +end \ No newline at end of file diff --git a/unofficial/c511600380.lua b/unofficial/c511600380.lua index 88e767796c..6a659c67dc 100644 --- a/unofficial/c511600380.lua +++ b/unofficial/c511600380.lua @@ -10,12 +10,12 @@ end s.listed_series={0x3008} s.listed_names={CARD_NEOS} function s.spfilter(c) - return c:IsSetCard(0x3008) and c:ListsCodeAsMaterial(CARD_NEOS) + return c:IsSetCard(SET_ELEMENTAL_HERO) and c:ListsCodeAsMaterial(CARD_NEOS) end function s.fextra(e,tp,mg) return Duel.GetMatchingGroup(aux.NecroValleyFilter(Fusion.IsMonsterFilter(Card.IsAbleToDeck)),tp,LOCATION_GRAVE,0,nil) end function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_ONFIELD+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_ONFIELD|LOCATION_GRAVE) end \ No newline at end of file diff --git a/unofficial/c511600381.lua b/unofficial/c511600381.lua index f282ccc118..3f3af42a89 100644 --- a/unofficial/c511600381.lua +++ b/unofficial/c511600381.lua @@ -57,4 +57,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(tc,REASON_EFFECT+REASON_DISCARD) end Duel.ShuffleHand(tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600382.lua b/unofficial/c511600382.lua index aa2166bd2c..bdc7403ce4 100644 --- a/unofficial/c511600382.lua +++ b/unofficial/c511600382.lua @@ -23,7 +23,7 @@ function s.spfilter(c,e,tp,id) return c:IsCode(id) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,0x1e),tp,LOCATION_MZONE,LOCATION_MZONE,nil) + local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_CHRYSALIS),tp,LOCATION_MZONE,LOCATION_MZONE,nil) if chk==0 then if not (#g>0 and g:FilterCount(Card.IsAbleToGrave,nil)==#g) then return false end local tok=e:GetLabelObject() @@ -33,7 +33,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) for _,v in ipairs(c.listed_names) do tok:Recreate(v) if tok:IsMonster() then - local tempg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,v) + local tempg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,v) if #tempg==0 then return false end tg:Merge(tempg) end @@ -41,10 +41,10 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end return Duel.GetMZoneCount(tp,g)>=tg:GetClassCount(Card.GetCode) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,0x1e),tp,LOCATION_MZONE,LOCATION_MZONE,nil) + local g=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_CHRYSALIS),tp,LOCATION_MZONE,LOCATION_MZONE,nil) if Duel.SendtoGrave(g,REASON_EFFECT)>0 then local sg=g:Filter(Card.IsLocation,nil,LOCATION_GRAVE) if #sg==0 then return end @@ -55,7 +55,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) for _,v in ipairs(c.listed_names) do tok:Recreate(v) if tok:IsMonster() then - local tempg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,nil,e,tp,v) + local tempg=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,nil,e,tp,v) if #tempg==0 then return end tg:Merge(tempg) end @@ -70,4 +70,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.rescon(sg,e,tp,mg) return #sg==#sg:GetClassCount(Card.GetCode) -end +end \ No newline at end of file diff --git a/unofficial/c511600383.lua b/unofficial/c511600383.lua index b7057a2933..48eade2f40 100644 --- a/unofficial/c511600383.lua +++ b/unofficial/c511600383.lua @@ -32,15 +32,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e0,tp) --skip phases until Battle Phase local p=Duel.GetTurnPlayer() - Duel.SkipPhase(p,PHASE_DRAW,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(p,PHASE_STANDBY,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(p,PHASE_BATTLE,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(p,PHASE_MAIN2,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(p,PHASE_END,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(tp,PHASE_DRAW,RESET_PHASE+PHASE_END,p==tp and 2 or 1) - Duel.SkipPhase(tp,PHASE_STANDBY,RESET_PHASE+PHASE_END,p==tp and 2 or 1) - Duel.SkipPhase(tp,PHASE_MAIN1,RESET_PHASE+PHASE_END,p==tp and 2 or 1) + Duel.SkipPhase(p,PHASE_DRAW,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(p,PHASE_STANDBY,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(p,PHASE_MAIN1,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(p,PHASE_BATTLE,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(p,PHASE_MAIN2,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(p,PHASE_END,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(tp,PHASE_DRAW,RESET_PHASE|PHASE_END,p==tp and 2 or 1) + Duel.SkipPhase(tp,PHASE_STANDBY,RESET_PHASE|PHASE_END,p==tp and 2 or 1) + Duel.SkipPhase(tp,PHASE_MAIN1,RESET_PHASE|PHASE_END,p==tp and 2 or 1) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) @@ -62,4 +62,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetTargetRange(0,1) e3:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e3,tp) -end +end \ No newline at end of file diff --git a/unofficial/c511600384.lua b/unofficial/c511600384.lua index e027ee32ca..05606cc311 100644 --- a/unofficial/c511600384.lua +++ b/unofficial/c511600384.lua @@ -36,4 +36,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600385.lua b/unofficial/c511600385.lua index 70b78f6da1..1fe4d963e8 100644 --- a/unofficial/c511600385.lua +++ b/unofficial/c511600385.lua @@ -23,14 +23,14 @@ function s.filter(c,e,tp) return c:IsCode(CARD_GALAXYEYES_P_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + if chk==0 then return Duel.GetMZoneCount(tp,e:GetHandler())>0 and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600387.lua b/unofficial/c511600387.lua index defe314fce..89516e7591 100644 --- a/unofficial/c511600387.lua +++ b/unofficial/c511600387.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x87) and c:GetAttack()==0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_UMBRAL_HORROR) and c:GetAttack()==0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():GetAttack()>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -35,4 +35,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511600388.lua b/unofficial/c511600388.lua index 79f6a6a754..57b6406ea1 100644 --- a/unofficial/c511600388.lua +++ b/unofficial/c511600388.lua @@ -33,4 +33,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) else Duel.Destroy(tg,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c511600394.lua b/unofficial/c511600394.lua index bbe65dcd7d..f7228b8f70 100644 --- a/unofficial/c511600394.lua +++ b/unofficial/c511600394.lua @@ -2,7 +2,7 @@ --Zero Protection --Scripted by Larry126 local s,id=GetID() -local LOCATION_DESTROY=LOCATION_ONFIELD+LOCATION_HAND+LOCATION_DECK+LOCATION_EXTRA +local LOCATION_DESTROY=LOCATION_ONFIELD|LOCATION_HAND|LOCATION_DECK|LOCATION_EXTRA function s.initial_effect(c) --Activation local e1=Effect.CreateEffect(c) @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te==e:GetLabelObject() -end +end \ No newline at end of file diff --git a/unofficial/c511600395.lua b/unofficial/c511600395.lua index 1f14f740a3..417c9d883e 100644 --- a/unofficial/c511600395.lua +++ b/unofficial/c511600395.lua @@ -34,8 +34,8 @@ function s.pencon(e,c,og) local rscale=rpz:GetRightScale() if lscale>rscale then lscale,rscale=rscale,lscale end local loc=0 - if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then loc=loc+LOCATION_HAND end - if Duel.GetLocationCountFromEx(tp)>0 then loc=loc+LOCATION_EXTRA end + if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then loc=loc|LOCATION_HAND end + if Duel.GetLocationCountFromEx(tp)>0 then loc=loc|LOCATION_EXTRA end if loc==0 then return false end local g=nil if og then @@ -57,8 +57,8 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp,c,sg,inchain) if ft2>0 then ft2=1 end if ft>0 then ft=1 end local loc=0 - if ft1>0 then loc=loc+LOCATION_HAND end - if ft2>0 then loc=loc+LOCATION_EXTRA end + if ft1>0 then loc=loc|LOCATION_HAND end + if ft2>0 then loc=loc|LOCATION_EXTRA end local tg=nil if og then tg=og:Filter(Card.IsLocation,nil,loc):Filter(s.penfilter,nil,e,tp,lscale,rscale) @@ -75,8 +75,8 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp,c,sg,inchain) if ct1>ft1 then ct=math.min(ct,ft1) end if ct2>ft2 then ct=math.min(ct,ft2) end local loc=0 - if ft1>0 then loc=loc+LOCATION_HAND end - if ft2>0 then loc=loc+LOCATION_EXTRA end + if ft1>0 then loc=loc|LOCATION_HAND end + if ft2>0 then loc=loc|LOCATION_EXTRA end local g=tg:Filter(Card.IsLocation,sg,loc) if #g==0 or ft==0 then break end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) @@ -106,4 +106,4 @@ function s.penop(e,tp,eg,ep,ev,re,r,rp,c,sg,inchain) Duel.HintSelection(Group.FromCards(c)) Duel.HintSelection(Group.FromCards(rpz)) end -end +end \ No newline at end of file diff --git a/unofficial/c511600398.lua b/unofficial/c511600398.lua index f62d8a7b27..d32be79fb8 100644 --- a/unofficial/c511600398.lua +++ b/unofficial/c511600398.lua @@ -270,4 +270,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,Duel.GetLP(ep)*100) -end +end \ No newline at end of file diff --git a/unofficial/c511600399.lua b/unofficial/c511600399.lua index 3e6e2f8fcb..9206506289 100644 --- a/unofficial/c511600399.lua +++ b/unofficial/c511600399.lua @@ -194,4 +194,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) if #dg==0 then return end Duel.BreakEffect() Duel.Destroy(dg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600400.lua b/unofficial/c511600400.lua index cd76bd08bf..76fa4bfe2a 100644 --- a/unofficial/c511600400.lua +++ b/unofficial/c511600400.lua @@ -58,7 +58,7 @@ function s.initial_effect(c) e9:SetCode(EFFECT_UNSTOPPABLE_ATTACK) e9:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e9:SetRange(LOCATION_MZONE) - e9:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL) end) + e9:SetCondition(function(e) return e:GetHandler():IsSpecialSummoned() end) c:RegisterEffect(e9) --Point-to-Point Transfer local e10=Effect.CreateEffect(c) @@ -447,4 +447,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SendtoGrave(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600401.lua b/unofficial/c511600401.lua index d580417c27..99bf62512b 100644 --- a/unofficial/c511600401.lua +++ b/unofficial/c511600401.lua @@ -85,4 +85,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then s.equipop(c,e,tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511600409.lua b/unofficial/c511600409.lua index 8c4cb4b5ae..a4737f453c 100644 --- a/unofficial/c511600409.lua +++ b/unofficial/c511600409.lua @@ -85,4 +85,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then s.equipop(c,e,tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511600414.lua b/unofficial/c511600414.lua index 5889fcbc14..f41f9be161 100644 --- a/unofficial/c511600414.lua +++ b/unofficial/c511600414.lua @@ -82,4 +82,4 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c511600417.lua b/unofficial/c511600417.lua index 805477374c..50dac26f18 100644 --- a/unofficial/c511600417.lua +++ b/unofficial/c511600417.lua @@ -92,4 +92,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600418.lua b/unofficial/c511600418.lua index 9ae89cba0d..5617b9190d 100644 --- a/unofficial/c511600418.lua +++ b/unofficial/c511600418.lua @@ -48,7 +48,7 @@ s.listed_series={0x3013} s.listed_names={100000067} function s.con(e) local c=e:GetHandler() - return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:GetReasonEffect() and c:GetReasonEffect():GetHandler():IsCode(100000067) + return c:IsSpecialSummoned() and c:GetReasonEffect() and c:GetReasonEffect():GetHandler():IsCode(100000067) end function s.val(e,c) return Duel.GetLP(c:GetControler())/2 @@ -94,4 +94,4 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then s.equipop(c,e,tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c511600423.lua b/unofficial/c511600423.lua index a6af3eb2b4..b069188990 100644 --- a/unofficial/c511600423.lua +++ b/unofficial/c511600423.lua @@ -26,4 +26,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600424.lua b/unofficial/c511600424.lua index 2a2bd2ece8..91cf52cb95 100644 --- a/unofficial/c511600424.lua +++ b/unofficial/c511600424.lua @@ -50,4 +50,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToBattle() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511600432.lua b/unofficial/c511600432.lua index 0021c297e3..c0e53335cf 100644 --- a/unofficial/c511600432.lua +++ b/unofficial/c511600432.lua @@ -54,4 +54,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600433.lua b/unofficial/c511600433.lua index 7e7bdb2e1a..834f789cd3 100644 --- a/unofficial/c511600433.lua +++ b/unofficial/c511600433.lua @@ -56,4 +56,4 @@ function s.tkop(e,tp,eg,ep,ev,re,r,rp) local token=Duel.CreateToken(tp,53855410) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c511600434.lua b/unofficial/c511600434.lua index 0c468d55ec..bb7b6212bf 100644 --- a/unofficial/c511600434.lua +++ b/unofficial/c511600434.lua @@ -71,4 +71,4 @@ function s.batval(e,re,c) and (not re:IsHasType(EFFECT_TYPE_FIELD) or re:GetActivateLocation()>0) and not re:GetHandler():IsHasEffect(EFFECT_CANNOT_DISABLE) and not re:IsHasProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE) -end +end \ No newline at end of file diff --git a/unofficial/c511600435.lua b/unofficial/c511600435.lua index bf051f5e68..a7feb39d08 100644 --- a/unofficial/c511600435.lua +++ b/unofficial/c511600435.lua @@ -77,4 +77,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511600437.lua b/unofficial/c511600437.lua index adf92a9e96..417f5d2590 100644 --- a/unofficial/c511600437.lua +++ b/unofficial/c511600437.lua @@ -42,4 +42,4 @@ function s.econ(e) end function s.sdcon(e) return Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsCode,CARD_RED_DRAGON_ARCHFIEND),e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511600438.lua b/unofficial/c511600438.lua index 0ba7d8bf7f..6ec15e9794 100644 --- a/unofficial/c511600438.lua +++ b/unofficial/c511600438.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_END) tc:RegisterEffect(e1) Duel.ChainAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511600439.lua b/unofficial/c511600439.lua index 4f74574688..bd7daee85f 100644 --- a/unofficial/c511600439.lua +++ b/unofficial/c511600439.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end if tc:IsHasEffect(EFFECT_REVERSE_UPDATE) then break end end -end +end \ No newline at end of file diff --git a/unofficial/c511600440.lua b/unofficial/c511600440.lua index 1dd8005fb9..e8dcdf8744 100644 --- a/unofficial/c511600440.lua +++ b/unofficial/c511600440.lua @@ -7,4 +7,4 @@ function s.initial_effect(c) end function s.fextra(e,tp,mg) return Duel.GetMatchingGroup(Fusion.IsMonsterFilter(Card.IsFaceup,Card.IsAbleToDeck),tp,LOCATION_REMOVED,0,nil) -end +end \ No newline at end of file diff --git a/unofficial/c511600441.lua b/unofficial/c511600441.lua index 3111b3e4c5..9eef779d5c 100644 --- a/unofficial/c511600441.lua +++ b/unofficial/c511600441.lua @@ -38,4 +38,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Recover(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c511756000.lua b/unofficial/c511756000.lua index 0e879d6469..870e8fbbf4 100644 --- a/unofficial/c511756000.lua +++ b/unofficial/c511756000.lua @@ -82,4 +82,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511756001.lua b/unofficial/c511756001.lua index 16c30502ec..8d39ba321a 100644 --- a/unofficial/c511756001.lua +++ b/unofficial/c511756001.lua @@ -40,4 +40,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:GetHandler():IsCode(50045299) -end +end \ No newline at end of file diff --git a/unofficial/c511756002.lua b/unofficial/c511756002.lua index 464a18c698..0a25a33b89 100644 --- a/unofficial/c511756002.lua +++ b/unofficial/c511756002.lua @@ -30,4 +30,4 @@ function s.sumcon(e,c,minc) end function s.sumop(e,tp,eg,ep,ev,re,r,rp,c) Duel.PayLPCost(c:GetControler(),e:GetLabel()*500) -end +end \ No newline at end of file diff --git a/unofficial/c511756003.lua b/unofficial/c511756003.lua index 781b9d1165..05008ab2b1 100644 --- a/unofficial/c511756003.lua +++ b/unofficial/c511756003.lua @@ -16,7 +16,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Draw(1-tp,2,REASON_COST) end function s.filter(c,e,tp) - return c:IsSetCard(0x41) and c:IsCanBeSpecialSummoned(e,0,tp,true,true) + return c:IsSetCard(SET_LV) and c:IsCanBeSpecialSummoned(e,0,tp,true,true) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e3:SetCode(EFFECT_CANNOT_TRIGGER) e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e3,true) -end +end \ No newline at end of file diff --git a/unofficial/c511756004.lua b/unofficial/c511756004.lua index da78e07b79..a8d3a380b4 100644 --- a/unofficial/c511756004.lua +++ b/unofficial/c511756004.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c511756005.lua b/unofficial/c511756005.lua index 0fddde01e7..ec8dd1ffda 100644 --- a/unofficial/c511756005.lua +++ b/unofficial/c511756005.lua @@ -15,4 +15,4 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c511756006.lua b/unofficial/c511756006.lua index 4f72bdff63..deffb6a4c4 100644 --- a/unofficial/c511756006.lua +++ b/unofficial/c511756006.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511756007.lua b/unofficial/c511756007.lua index 25a95d42be..a2e6579405 100644 --- a/unofficial/c511756007.lua +++ b/unofficial/c511756007.lua @@ -29,4 +29,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.NegateEffect(ev) then Duel.Damage(1-tp,800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511756008.lua b/unofficial/c511756008.lua index 60b574a5e5..76355e0d09 100644 --- a/unofficial/c511756008.lua +++ b/unofficial/c511756008.lua @@ -13,4 +13,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return not e:GetHandler():IsReason(REASON_BATTLE) end Duel.Hint(HINT_CARD,0,id) return true -end +end \ No newline at end of file diff --git a/unofficial/c511756009.lua b/unofficial/c511756009.lua index f7956b892b..d2c7fa3096 100644 --- a/unofficial/c511756009.lua +++ b/unofficial/c511756009.lua @@ -35,4 +35,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()/2) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511777000.lua b/unofficial/c511777000.lua index 931b6b9f76..7d23051db0 100644 --- a/unofficial/c511777000.lua +++ b/unofficial/c511777000.lua @@ -38,4 +38,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetLabel()==0 then Duel.Recover(p,d,REASON_EFFECT) else Duel.Damage(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511777001.lua b/unofficial/c511777001.lua index 74017bcbce..fb88a7c1aa 100644 --- a/unofficial/c511777001.lua +++ b/unofficial/c511777001.lua @@ -41,7 +41,7 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) end end function s.ccon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.ctop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -71,5 +71,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end -end - +end \ No newline at end of file diff --git a/unofficial/c511777004.lua b/unofficial/c511777004.lua index 73e64727f7..74e56b2201 100644 --- a/unofficial/c511777004.lua +++ b/unofficial/c511777004.lua @@ -16,7 +16,7 @@ end s.listed_series={0x7} s.listed_names={83104731} function s.cfilter(c) - return c:IsSetCard(0x7) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_ANCIENT_GEAR) and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) e:SetLabel(1) @@ -32,9 +32,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) @@ -57,4 +57,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c511777005.lua b/unofficial/c511777005.lua index f2e0230484..d44a5289f5 100644 --- a/unofficial/c511777005.lua +++ b/unofficial/c511777005.lua @@ -73,7 +73,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.macon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) + return Duel.IsTurnPlayer(tp) and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) end function s.macost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -91,4 +91,4 @@ function s.maop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c511777006.lua b/unofficial/c511777006.lua index 75e7eca10e..236dc3c510 100644 --- a/unofficial/c511777006.lua +++ b/unofficial/c511777006.lua @@ -37,4 +37,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c511777007.lua b/unofficial/c511777007.lua index f06d3457c3..c7210bb7c3 100644 --- a/unofficial/c511777007.lua +++ b/unofficial/c511777007.lua @@ -45,4 +45,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Damage(1-tp,ct*200,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511777008.lua b/unofficial/c511777008.lua index a56dc4df76..83491d78c6 100644 --- a/unofficial/c511777008.lua +++ b/unofficial/c511777008.lua @@ -40,4 +40,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.rdop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,math.max(0,Duel.GetBattleDamage(tp)-e:GetLabel())) -end +end \ No newline at end of file diff --git a/unofficial/c511777009.lua b/unofficial/c511777009.lua index 7a69a68d3e..40358e8329 100644 --- a/unofficial/c511777009.lua +++ b/unofficial/c511777009.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) c:SetStatus(STATUS_FORM_CHANGED,true) --Send this card to Graveyard during End Phase aux.DelayedOperation(c,PHASE_END,id,e,tp,function(ag) Duel.SendtoGrave(ag,REASON_EFFECT) end,nil,0) -end +end \ No newline at end of file diff --git a/unofficial/c511777010.lua b/unofficial/c511777010.lua index 0c8848d844..e62913025d 100644 --- a/unofficial/c511777010.lua +++ b/unofficial/c511777010.lua @@ -40,7 +40,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e1) end function s.tgcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tgop(e,tp,eg,ep,ev,re,r,rp) local ct=e:GetLabel() @@ -49,4 +49,4 @@ function s.tgop(e,tp,eg,ep,ev,re,r,rp) if ct==0 then Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511806000.lua b/unofficial/c511806000.lua index 094eb3bf20..a1999a6f7b 100644 --- a/unofficial/c511806000.lua +++ b/unofficial/c511806000.lua @@ -67,4 +67,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SendtoHand(c,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c511806001.lua b/unofficial/c511806001.lua index 461a45d03d..d5ba049ed4 100644 --- a/unofficial/c511806001.lua +++ b/unofficial/c511806001.lua @@ -43,7 +43,7 @@ function s.initial_effect(c) end s.listed_series={0xc008} function s.desfilter(c) - return c:IsFacedown() or not c:IsSetCard(0xc008) + return c:IsFacedown() or not c:IsSetCard(SET_DESTINY_HERO) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -51,7 +51,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,0,0) end function s.spfilter(c,e,tp) - return c:IsSetCard(0xc008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_DESTINY_HERO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.desfilter,tp,LOCATION_MZONE,0,nil) @@ -69,7 +69,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(e,c) - return c:IsFaceup() and c:IsSetCard(0xc008) + return c:IsFaceup() and c:IsSetCard(SET_DESTINY_HERO) end function s.indop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -77,7 +77,7 @@ function s.indop(e,tp,eg,ep,ev,re,r,rp) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetTargetRange(LOCATION_MZONE,0) - e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xc008)) + e1:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_DESTINY_HERO)) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) @@ -91,9 +91,9 @@ function s.indop(e,tp,eg,ep,ev,re,r,rp) end end function s.atfilter(c) - return c:IsFaceup() and c:IsSetCard(0xc008) + return c:IsFaceup() and c:IsSetCard(SET_DESTINY_HERO) end function s.val(e,c) local g=Duel.GetMatchingGroup(s.atfilter,c:GetControler(),LOCATION_MZONE,0,c) return g:GetSum(Card.GetAttack) -end +end \ No newline at end of file diff --git a/unofficial/c513000001.lua b/unofficial/c513000001.lua index 05b31b8316..39250e0ed6 100644 --- a/unofficial/c513000001.lua +++ b/unofficial/c513000001.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RDComplete() Duel.Destroy(dg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000002.lua b/unofficial/c513000002.lua index 72dda55dbe..107ef3d130 100644 --- a/unofficial/c513000002.lua +++ b/unofficial/c513000002.lua @@ -55,4 +55,4 @@ function s.atktg(e,c) end function s.atkval(e,c) return c:GetAttack()/2 -end +end \ No newline at end of file diff --git a/unofficial/c513000003.lua b/unofficial/c513000003.lua index b10019ec04..27e703149b 100644 --- a/unofficial/c513000003.lua +++ b/unofficial/c513000003.lua @@ -101,7 +101,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -134,4 +134,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000004.lua b/unofficial/c513000004.lua index 666eebc35a..b07db629a6 100644 --- a/unofficial/c513000004.lua +++ b/unofficial/c513000004.lua @@ -83,4 +83,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SendtoHand(g,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000005.lua b/unofficial/c513000005.lua index 66ed209c60..b5e07bb4f0 100644 --- a/unofficial/c513000005.lua +++ b/unofficial/c513000005.lua @@ -30,4 +30,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000006.lua b/unofficial/c513000006.lua index 4067042914..f1409937fc 100644 --- a/unofficial/c513000006.lua +++ b/unofficial/c513000006.lua @@ -30,4 +30,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c513000007.lua b/unofficial/c513000007.lua index f52c0cfc9d..49336a0139 100644 --- a/unofficial/c513000007.lua +++ b/unofficial/c513000007.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x2b) + return c:IsFaceup() and c:IsSetCard(SET_NINJA) end function s.tgfilter(c,e,tp) return c:IsFaceup() and c:IsControler(1-tp) and (not e or c:IsRelateToEffect(e)) @@ -46,4 +46,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg=g:Select(tp,ct,ct,nil) Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c513000008.lua b/unofficial/c513000008.lua index 8b54f4f242..a96f38489b 100644 --- a/unofficial/c513000008.lua +++ b/unofficial/c513000008.lua @@ -66,4 +66,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sc:CompleteProcedure() end end -end +end \ No newline at end of file diff --git a/unofficial/c513000009.lua b/unofficial/c513000009.lua index e9f342f65b..61669f25ec 100644 --- a/unofficial/c513000009.lua +++ b/unofficial/c513000009.lua @@ -54,7 +54,7 @@ function s.desfilter(c) return c:IsMonster() and c:IsAttackAbove(1500) end function s.desop(e,tp,eg,ep,ev,re,r,rp) - local conf=Duel.GetFieldGroup(tp,0,LOCATION_MZONE+LOCATION_HAND+LOCATION_DECK) + local conf=Duel.GetFieldGroup(tp,0,LOCATION_MZONE|LOCATION_HAND|LOCATION_DECK) if #conf>0 then Duel.ConfirmCards(tp,conf) local dg=conf:Filter(s.desfilter,nil) @@ -63,4 +63,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end e:SetLabel(0) e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c513000011.lua b/unofficial/c513000011.lua index 7cb35f0cc5..364035f716 100644 --- a/unofficial/c513000011.lua +++ b/unofficial/c513000011.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c513000012.lua b/unofficial/c513000012.lua index 48adca003d..e9e4ae5526 100644 --- a/unofficial/c513000012.lua +++ b/unofficial/c513000012.lua @@ -166,4 +166,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c513000013.lua b/unofficial/c513000013.lua index e21a30eba5..49171961f2 100644 --- a/unofficial/c513000013.lua +++ b/unofficial/c513000013.lua @@ -98,4 +98,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.ReturnToField(c) end -end +end \ No newline at end of file diff --git a/unofficial/c513000014.lua b/unofficial/c513000014.lua index a8fbf762e9..05b6c6e50b 100644 --- a/unofficial/c513000014.lua +++ b/unofficial/c513000014.lua @@ -51,7 +51,7 @@ end s.listed_names={51447164} function s.discost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() - if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and c:GetMaterialCount()>0 and c:GetFlagEffect(id)0 and c:GetFlagEffect(id)0 + if chk==0 then return c:IsSynchroSummoned() and ct>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>=ct and mg:FilterCount(s.spfilter,nil,e,tp,c)==ct and not Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) end diff --git a/unofficial/c513000016.lua b/unofficial/c513000016.lua index 2c73230a17..dcd96b5585 100644 --- a/unofficial/c513000016.lua +++ b/unofficial/c513000016.lua @@ -104,4 +104,4 @@ function s.econ(e) end function s.elimit(e,te,tp) return te:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c513000017.lua b/unofficial/c513000017.lua index 8585f8ffb7..21d04952de 100644 --- a/unofficial/c513000017.lua +++ b/unofficial/c513000017.lua @@ -29,7 +29,7 @@ function s.initial_effect(c) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e3) end s.xyz_number=101 diff --git a/unofficial/c513000018.lua b/unofficial/c513000018.lua index 4e53c57273..c1f3da3c37 100644 --- a/unofficial/c513000018.lua +++ b/unofficial/c513000018.lua @@ -19,7 +19,7 @@ function s.initial_effect(c) local e2=Effect.CreateEffect(c) e2:SetType(EFFECT_TYPE_SINGLE) e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e2:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e2) end s.listed_series={0x48} @@ -82,4 +82,4 @@ function s.disoperation(e,tp,eg,ep,ev,re,r,rp) if re:IsActiveType(type) and re:GetHandler():IsControler(1-tp) then Duel.NegateEffect(ev) end -end +end \ No newline at end of file diff --git a/unofficial/c513000019.lua b/unofficial/c513000019.lua index 31c7b52f0f..2feb7fa2d4 100644 --- a/unofficial/c513000019.lua +++ b/unofficial/c513000019.lua @@ -40,4 +40,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c513000020.lua b/unofficial/c513000020.lua index e6512f0afc..7b62b36411 100644 --- a/unofficial/c513000020.lua +++ b/unofficial/c513000020.lua @@ -29,4 +29,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*3) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c513000022.lua b/unofficial/c513000022.lua index f15458c60b..e4620d1993 100644 --- a/unofficial/c513000022.lua +++ b/unofficial/c513000022.lua @@ -35,4 +35,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000024.lua b/unofficial/c513000024.lua index 2ffb7bc2fe..6ade60b391 100644 --- a/unofficial/c513000024.lua +++ b/unofficial/c513000024.lua @@ -3,7 +3,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,0x3008),3,true) + Fusion.AddProcFunRep(c,aux.FilterBoolFunction(Card.IsSetCard,SET_ELEMENTAL_HERO),3,true) --atkup local e2=Effect.CreateEffect(c) e2:SetDescription(aux.Stringid(95486586,0)) @@ -78,4 +78,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000025.lua b/unofficial/c513000025.lua index 95cff22ea7..e00948a7d2 100644 --- a/unofficial/c513000025.lua +++ b/unofficial/c513000025.lua @@ -24,4 +24,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000026.lua b/unofficial/c513000026.lua index d3f651ed9f..61a61dd11f 100644 --- a/unofficial/c513000026.lua +++ b/unofficial/c513000026.lua @@ -17,4 +17,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local ct=eg:FilterCount(Card.IsControler,nil,1-tp) Duel.Damage(1-tp,ct*700,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000028.lua b/unofficial/c513000028.lua index 99215bf791..3d5e9370d8 100644 --- a/unofficial/c513000028.lua +++ b/unofficial/c513000028.lua @@ -69,4 +69,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000029.lua b/unofficial/c513000029.lua index 292ddd17d2..205ff8c8d3 100644 --- a/unofficial/c513000029.lua +++ b/unofficial/c513000029.lua @@ -63,4 +63,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e2:SetReset(RESET_EVENT+0x57a0000) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c513000030.lua b/unofficial/c513000030.lua index b425e2a6ae..a5d2429d61 100644 --- a/unofficial/c513000030.lua +++ b/unofficial/c513000030.lua @@ -6,7 +6,7 @@ function s.initial_effect(c) e2:SetDescription(aux.Stringid(87997872,0)) e2:SetCategory(CATEGORY_SPECIAL_SUMMON) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) - e2:SetRange(LOCATION_HAND+LOCATION_DECK) + e2:SetRange(LOCATION_HAND|LOCATION_DECK) e2:SetCode(EVENT_LEAVE_FIELD) e2:SetCondition(s.spcon) e2:SetCost(s.cost) @@ -64,11 +64,11 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetValue(atk) - if Duel.GetTurnPlayer()==tp then + if Duel.IsTurnPlayer(tp) then e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END+RESET_SELF_TURN,2) else e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE+RESET_PHASE+PHASE_END+RESET_SELF_TURN) end c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c513000031.lua b/unofficial/c513000031.lua index 51a7b82eb1..074d4da94c 100644 --- a/unofficial/c513000031.lua +++ b/unofficial/c513000031.lua @@ -123,4 +123,4 @@ function s.battg(e,c) end function s.batval(e,re) return re:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c513000034.lua b/unofficial/c513000034.lua index afb0c3622f..de9ba98747 100644 --- a/unofficial/c513000034.lua +++ b/unofficial/c513000034.lua @@ -31,4 +31,4 @@ function s.repop(p,op) local sg=Duel.GetMatchingGroup(Card.IsDestructable,p,LOCATION_ONFIELD,0,nil) Duel.Destroy(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000035.lua b/unofficial/c513000035.lua index da91b6d2c3..5c62a864e3 100644 --- a/unofficial/c513000035.lua +++ b/unofficial/c513000035.lua @@ -57,7 +57,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.sfilter(c) - return c:IsSetCard(0x27) and c:IsAbleToHand() + return c:IsSetCard(SET_TG) and c:IsAbleToHand() end function s.stg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.sfilter,tp,LOCATION_DECK,0,1,nil) end @@ -107,4 +107,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(c:GetBaseDefense()/2) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c513000036.lua b/unofficial/c513000036.lua index bd3ac7f6eb..38265f366b 100644 --- a/unofficial/c513000036.lua +++ b/unofficial/c513000036.lua @@ -54,7 +54,7 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.sfilter(c) - return c:IsSetCard(0x27) and c:IsAbleToHand() + return c:IsSetCard(SET_TG) and c:IsAbleToHand() end function s.stg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.sfilter,tp,LOCATION_DECK,0,1,nil) end @@ -104,4 +104,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(c:GetBaseDefense()/2) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c513000037.lua b/unofficial/c513000037.lua index 5e68c10944..1ce5b5925f 100644 --- a/unofficial/c513000037.lua +++ b/unofficial/c513000037.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #hg<5 then Duel.Draw(tp,5-#hg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000038.lua b/unofficial/c513000038.lua index ad3b3120c5..1dfd148111 100644 --- a/unofficial/c513000038.lua +++ b/unofficial/c513000038.lua @@ -59,4 +59,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp,chk) end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) return c:IsLocation(LOCATION_DECK) -end +end \ No newline at end of file diff --git a/unofficial/c513000039.lua b/unofficial/c513000039.lua index d702c8d6ec..ae4857e1b7 100644 --- a/unofficial/c513000039.lua +++ b/unofficial/c513000039.lua @@ -85,11 +85,11 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if #g==0 then return end Duel.SendtoHand(g,nil,REASON_EFFECT) local og=Duel.GetOperatedGroup() - local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_HAND+LOCATION_EXTRA) + local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_HAND|LOCATION_EXTRA) Duel.Damage(1-tp,ct*300,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -104,4 +104,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000040.lua b/unofficial/c513000040.lua index 7180034f47..7a24ef8f94 100644 --- a/unofficial/c513000040.lua +++ b/unofficial/c513000040.lua @@ -80,7 +80,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,ct*500,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -95,4 +95,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000041.lua b/unofficial/c513000041.lua index b3838d5c88..2e342a1663 100644 --- a/unofficial/c513000041.lua +++ b/unofficial/c513000041.lua @@ -82,15 +82,15 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.tg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - local sg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil) + local sg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_MZONE|LOCATION_GRAVE,nil) Duel.SetOperationInfo(0,CATEGORY_TODECK,sg,#sg,0,0) end function s.op(e,tp,eg,ep,ev,re,r,rp) - local sg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil) + local sg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_MZONE|LOCATION_GRAVE,nil) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -118,4 +118,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000042.lua b/unofficial/c513000042.lua index c6c4946816..223d4cb4bf 100644 --- a/unofficial/c513000042.lua +++ b/unofficial/c513000042.lua @@ -84,7 +84,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,dam,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -99,4 +99,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000043.lua b/unofficial/c513000043.lua index 599a187d91..0a9a948af3 100644 --- a/unofficial/c513000043.lua +++ b/unofficial/c513000043.lua @@ -78,7 +78,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -93,4 +93,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000044.lua b/unofficial/c513000044.lua index 20c247143b..4ef2b2b1ba 100644 --- a/unofficial/c513000044.lua +++ b/unofficial/c513000044.lua @@ -74,7 +74,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SetLP(tp,4000,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -89,4 +89,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000045.lua b/unofficial/c513000045.lua index 294151c1d7..2a4b7f7830 100644 --- a/unofficial/c513000045.lua +++ b/unofficial/c513000045.lua @@ -79,7 +79,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,Duel.GetLP(p)/2,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -94,4 +94,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000046.lua b/unofficial/c513000046.lua index 6e835c0932..feffbc352c 100644 --- a/unofficial/c513000046.lua +++ b/unofficial/c513000046.lua @@ -36,4 +36,4 @@ function s.con(e) end function s.filter(e,c) return c:GetLevel()==10 -end +end \ No newline at end of file diff --git a/unofficial/c513000047.lua b/unofficial/c513000047.lua index 5803c3d002..6541fd216f 100644 --- a/unofficial/c513000047.lua +++ b/unofficial/c513000047.lua @@ -35,7 +35,7 @@ function s.initial_effect(c) e4:SetRange(LOCATION_SZONE) e4:SetCode(id) e4:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) - e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x4a)) + e4:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,SET_TIMELORD)) c:RegisterEffect(e4) end s.listed_names={9409625} @@ -71,4 +71,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000048.lua b/unofficial/c513000048.lua index e3e4cc4523..1639090ba5 100644 --- a/unofficial/c513000048.lua +++ b/unofficial/c513000048.lua @@ -24,4 +24,4 @@ function s.spcon(e,c) if c==nil then return true end local tp=c:GetControler() return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 -end +end \ No newline at end of file diff --git a/unofficial/c513000049.lua b/unofficial/c513000049.lua index c91ebf2c71..8fd86be25c 100644 --- a/unofficial/c513000049.lua +++ b/unofficial/c513000049.lua @@ -80,7 +80,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(p,d,REASON_EFFECT) end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -95,4 +95,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000050.lua b/unofficial/c513000050.lua index 963a6e5aee..a81c9b0497 100644 --- a/unofficial/c513000050.lua +++ b/unofficial/c513000050.lua @@ -83,7 +83,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) end end function s.tdcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -98,4 +98,4 @@ end function s.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) local c=e:GetHandler() return not c:IsHasEffect(513000047) or c:IsHasEffect(EFFECT_CANNOT_DISABLE) -end +end \ No newline at end of file diff --git a/unofficial/c513000051.lua b/unofficial/c513000051.lua index e3bd4f40be..fa8044063c 100644 --- a/unofficial/c513000051.lua +++ b/unofficial/c513000051.lua @@ -188,4 +188,4 @@ function s.sephop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000052.lua b/unofficial/c513000052.lua index 25f5f89094..c0ad8d9b50 100644 --- a/unofficial/c513000052.lua +++ b/unofficial/c513000052.lua @@ -142,4 +142,4 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE) local g=Duel.SelectMatchingCard(tp,s.repfilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler()) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000053.lua b/unofficial/c513000053.lua index fd5523d335..0aa817b82d 100644 --- a/unofficial/c513000053.lua +++ b/unofficial/c513000053.lua @@ -77,4 +77,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(rc,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c513000054.lua b/unofficial/c513000054.lua index 0ceff34fad..9f9a957591 100644 --- a/unofficial/c513000054.lua +++ b/unofficial/c513000054.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.RegisterEffect(e1,p) end end -end +end \ No newline at end of file diff --git a/unofficial/c513000055.lua b/unofficial/c513000055.lua index d407d9a165..1a0a84e831 100644 --- a/unofficial/c513000055.lua +++ b/unofficial/c513000055.lua @@ -168,4 +168,4 @@ function s.place_and_activate(sc,e,tp,eg,ep,ev,re,r,rp) tc:ReleaseEffectRelation(te) end end -end +end \ No newline at end of file diff --git a/unofficial/c513000056.lua b/unofficial/c513000056.lua index 3d2dec3728..4379eda7c1 100644 --- a/unofficial/c513000056.lua +++ b/unofficial/c513000056.lua @@ -197,4 +197,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) local tc=c:GetFirstCardTarget() if not c:IsRelateToEffect(e) then return end Duel.Remove(Group.FromCards(c,tc),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000057.lua b/unofficial/c513000057.lua index 0ff2f1c314..6215c5009b 100644 --- a/unofficial/c513000057.lua +++ b/unofficial/c513000057.lua @@ -54,7 +54,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then if ct<3 then e:SetDescription(aux.Stringid(id,0)) - return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) + return Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,nil) else e:SetDescription(aux.Stringid(id,4)) return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) @@ -63,7 +63,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if ct<3 then e:SetCategory(CATEGORY_TOHAND+CATEGORY_SEARCH) e:SetProperty(0) - Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK|LOCATION_GRAVE) else e:SetCategory(CATEGORY_ATKCHANGE) e:SetProperty(EFFECT_FLAG_CARD_TARGET) @@ -82,7 +82,7 @@ function s.activate1(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() if not c:IsRelateToEffect(e) then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) - local tc=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil):GetFirst() + local tc=Duel.SelectMatchingCard(tp,Card.IsAbleToHand,tp,LOCATION_DECK|LOCATION_GRAVE,0,1,1,nil):GetFirst() if tc then Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) @@ -133,4 +133,4 @@ function s.activate2(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*ct) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c513000059.lua b/unofficial/c513000059.lua index bd1c22968d..8e75ea6979 100644 --- a/unofficial/c513000059.lua +++ b/unofficial/c513000059.lua @@ -101,7 +101,7 @@ function s.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) or e:GetHandler():GetOverlayGroup():IsExists(s.spfilter,1,nil,e,tp)) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE+LOCATION_OVERLAY) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE|LOCATION_OVERLAY) end function s.spop2(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end @@ -110,4 +110,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000060.lua b/unofficial/c513000060.lua index f6e48ac9ea..aa739c769b 100644 --- a/unofficial/c513000060.lua +++ b/unofficial/c513000060.lua @@ -96,4 +96,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Recover(tp,g2:GetFirst():GetAttack()/2,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c513000061.lua b/unofficial/c513000061.lua index b01762234f..0d10b1e550 100644 --- a/unofficial/c513000061.lua +++ b/unofficial/c513000061.lua @@ -33,13 +33,13 @@ function s.initial_effect(c) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e3) end s.listed_series={0x48} s.xyz_number=99 function s.filter(c,e,tp) - return c:IsSetCard(0x48) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_NUMBER) and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -101,4 +101,4 @@ function s.negop(e,tp,eg,ep,ev,re,r,rp) local sum=dg:GetSum(Card.GetAttack) Duel.Damage(1-tp,sum,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000062.lua b/unofficial/c513000062.lua index e5d8e48023..051bb50b76 100644 --- a/unofficial/c513000062.lua +++ b/unofficial/c513000062.lua @@ -32,7 +32,7 @@ function s.initial_effect(c) local e3=Effect.CreateEffect(c) e3:SetType(EFFECT_TYPE_SINGLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,0x48))) + e3:SetValue(aux.NOT(aux.TargetBoolFunction(Card.IsSetCard,SET_NUMBER))) c:RegisterEffect(e3) end s.listed_series={0x48} @@ -207,4 +207,4 @@ end function s.spop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c513000063.lua b/unofficial/c513000063.lua index bc13d6398c..8c1254c2e1 100644 --- a/unofficial/c513000063.lua +++ b/unofficial/c513000063.lua @@ -205,4 +205,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) local op=Duel.SelectEffect(tp,{b1,1002},{b2,1003}) local bg=sg:Filter(Card.IsLocation,nil,op==1 and LOCATION_MZONE or LOCATION_STZONE) Duel.Remove(bg,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000065.lua b/unofficial/c513000065.lua index d5a1f6be7e..7650878dd3 100644 --- a/unofficial/c513000065.lua +++ b/unofficial/c513000065.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end tc:RegisterFlagEffect(id+1000,RESET_EVENT|RESETS_STANDARD,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c513000066.lua b/unofficial/c513000066.lua index e234ba3521..aefcf03c38 100644 --- a/unofficial/c513000066.lua +++ b/unofficial/c513000066.lua @@ -63,4 +63,4 @@ function s.winop(e,tp,eg,ep,ev,re,r,rp) if c:GetFlagEffectLabel(id)==5 then Duel.Win(tp,0x15) end -end +end \ No newline at end of file diff --git a/unofficial/c513000067.lua b/unofficial/c513000067.lua index caa53e2653..88204ada56 100644 --- a/unofficial/c513000067.lua +++ b/unofficial/c513000067.lua @@ -107,4 +107,4 @@ function s.atkeop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(#dg*500) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c513000068.lua b/unofficial/c513000068.lua index 9909f4e35c..54362fed4d 100644 --- a/unofficial/c513000068.lua +++ b/unofficial/c513000068.lua @@ -42,4 +42,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) end function s.descon(e) return not Duel.IsEnvironment(27564031) -end +end \ No newline at end of file diff --git a/unofficial/c513000070.lua b/unofficial/c513000070.lua index ac87ae8fb8..aeb3d6bfcd 100644 --- a/unofficial/c513000070.lua +++ b/unofficial/c513000070.lua @@ -49,4 +49,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) end function s.descon(e) return not Duel.IsEnvironment(27564031) -end +end \ No newline at end of file diff --git a/unofficial/c513000071.lua b/unofficial/c513000071.lua index 810b3ccca0..6b5a3705a0 100644 --- a/unofficial/c513000071.lua +++ b/unofficial/c513000071.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsSetCard(0x23) and c:IsMonster() and c:IsAbleToRemoveAsCost() + return c:IsSetCard(SET_MALEFIC) and c:IsMonster() and c:IsAbleToRemoveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,2,nil) end @@ -20,7 +20,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.filter(c) - return c:IsSetCard(0x23) and c:IsAbleToHand() + return c:IsSetCard(SET_MALEFIC) and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,2,nil) end @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tg,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tg) end -end +end \ No newline at end of file diff --git a/unofficial/c513000072.lua b/unofficial/c513000072.lua index d5580ea1d7..a1664a120a 100644 --- a/unofficial/c513000072.lua +++ b/unofficial/c513000072.lua @@ -13,5 +13,4 @@ end s.listed_names={27564031} function s.descon(e) return not Duel.IsEnvironment(27564031) -end - +end \ No newline at end of file diff --git a/unofficial/c513000073.lua b/unofficial/c513000073.lua index 24986860ee..91624dddd1 100644 --- a/unofficial/c513000073.lua +++ b/unofficial/c513000073.lua @@ -85,13 +85,13 @@ function s.atcon(e,tp,eg,ep,ev,re,r,rp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() end function s.afilter(c) - return c:IsSetCard(0x23) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_MALEFIC) and c:IsAbleToGraveAsCost() end function s.atcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.afilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end local g=Duel.GetMatchingGroup(Card.IsAbleToGraveAsCost,tp,LOCATION_MZONE,0,e:GetHandler()) Duel.SendtoGrave(g,REASON_COST) - local ct=g:FilterCount(Card.IsSetCard,nil,0x23) + local ct=g:FilterCount(Card.IsSetCard,nil,SET_MALEFIC) e:SetLabel(ct) end function s.atop(e,tp,eg,ep,ev,re,r,rp) @@ -106,7 +106,7 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) end end function s.cfilter(c) - return c:IsMonster() and c:IsSetCard(0x23) and c:IsAbleToRemoveAsCost() + return c:IsMonster() and c:IsSetCard(SET_MALEFIC) and c:IsAbleToRemoveAsCost() end function s.tdcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil) end @@ -121,4 +121,4 @@ end function s.tdop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000074.lua b/unofficial/c513000074.lua index 769c58765a..2f4aff19ad 100644 --- a/unofficial/c513000074.lua +++ b/unofficial/c513000074.lua @@ -2,7 +2,7 @@ local s,id=GetID() function s.initial_effect(c) --synchro summon - Synchro.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,0x23),1,1,Synchro.NonTuner(Card.IsSetCard,0x23),1,99) + Synchro.AddProcedure(c,aux.FilterBoolFunction(Card.IsSetCard,SET_MALEFIC),1,1,Synchro.NonTuner(Card.IsSetCard,SET_MALEFIC),1,99) c:EnableReviveLimit() --special summon local e1=Effect.CreateEffect(c) @@ -69,4 +69,4 @@ function s.atkval(e,c) tc=g:GetNext() end return -tatk -end +end \ No newline at end of file diff --git a/unofficial/c513000075.lua b/unofficial/c513000075.lua index 9c01118c4a..9ba9275506 100644 --- a/unofficial/c513000075.lua +++ b/unofficial/c513000075.lua @@ -113,4 +113,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000076.lua b/unofficial/c513000076.lua index 98f652013a..f0821a058d 100644 --- a/unofficial/c513000076.lua +++ b/unofficial/c513000076.lua @@ -73,4 +73,4 @@ function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Remove(g,POS_FACEUP,REASON_COST) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c513000078.lua b/unofficial/c513000078.lua index a11d2c4ccd..e11fe3d9c6 100644 --- a/unofficial/c513000078.lua +++ b/unofficial/c513000078.lua @@ -141,4 +141,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,e:GetHandler():GetAttack(),REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c513000080.lua b/unofficial/c513000080.lua index b7e4ef808b..ad6a81e0d1 100644 --- a/unofficial/c513000080.lua +++ b/unofficial/c513000080.lua @@ -67,4 +67,4 @@ function s.tdop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SendtoDeck(c,tp,SEQ_DECKSHUFFLE,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000082.lua b/unofficial/c513000082.lua index 7a8b714608..78356b2d0c 100644 --- a/unofficial/c513000082.lua +++ b/unofficial/c513000082.lua @@ -39,4 +39,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,800,REASON_EFFECT) Duel.Damage(tp,800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000083.lua b/unofficial/c513000083.lua index 6d01c566f9..5075e079f7 100644 --- a/unofficial/c513000083.lua +++ b/unofficial/c513000083.lua @@ -8,7 +8,7 @@ function s.initial_effect(c) e1:SetDescription(aux.Stringid(6330307,0)) e1:SetCategory(CATEGORY_EQUIP) e1:SetType(EFFECT_TYPE_IGNITION) - e1:SetRange(LOCATION_HAND+LOCATION_MZONE) + e1:SetRange(LOCATION_HAND|LOCATION_MZONE) e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetCost(s.eqcost) e1:SetTarget(s.eqtg) @@ -44,7 +44,7 @@ function s.filter(c) local class=c:GetMetatable(true) if class==nil then return false end local no=class.xyz_number - return c:IsFaceup() and c:IsSetCard(0x107f) and c:IsSetCard(0x1048) and no and no==39 + return c:IsFaceup() and c:IsSetCard(SET_UTOPIA) and c:IsSetCard(SET_NUMBER_C) and no and no==39 end function s.desfilter(c) return c:IsDestructable() and c:IsSpellTrap() @@ -99,7 +99,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(ec:GetAttack()*2) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) - if not c:IsImmuneToEffect(e1) and Duel.GetTurnPlayer()==tp then + if not c:IsImmuneToEffect(e1) and Duel.IsTurnPlayer(tp) then Duel.ChainAttack() end -end +end \ No newline at end of file diff --git a/unofficial/c513000084.lua b/unofficial/c513000084.lua index 84d6811a03..d7c429e1e3 100644 --- a/unofficial/c513000084.lua +++ b/unofficial/c513000084.lua @@ -112,4 +112,4 @@ function s.desop2(e,tp,eg,ep,ev,re,r,rp) tc=eg:GetNext() end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c513000086.lua b/unofficial/c513000086.lua index 4eeb354671..4a9c85ed1a 100644 --- a/unofficial/c513000086.lua +++ b/unofficial/c513000086.lua @@ -42,4 +42,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) c:RegisterEffect(e2) end end -end +end \ No newline at end of file diff --git a/unofficial/c513000087.lua b/unofficial/c513000087.lua index 9f6d5f700e..40617cbc44 100644 --- a/unofficial/c513000087.lua +++ b/unofficial/c513000087.lua @@ -30,4 +30,4 @@ function s.defcon(e) end function s.defval(e,c) return Duel.GetMatchingGroup(Card.IsFaceup,c:GetControler(),LOCATION_MZONE,0,c):GetSum(Card.GetDefense) -end +end \ No newline at end of file diff --git a/unofficial/c513000088.lua b/unofficial/c513000088.lua index f6a04c9720..85692b376e 100644 --- a/unofficial/c513000088.lua +++ b/unofficial/c513000088.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(0,1) e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,1) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c513000089.lua b/unofficial/c513000089.lua index 95a6a1d08d..672ce8d48b 100644 --- a/unofficial/c513000089.lua +++ b/unofficial/c513000089.lua @@ -1,5 +1,6 @@ --White Veil - local s,id=GetID() function s.initial_effect(c) + local s,id=GetID() +function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) e1:SetCategory(CATEGORY_EQUIP) @@ -99,4 +100,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000090.lua b/unofficial/c513000090.lua index a39dd08a53..a27098047d 100644 --- a/unofficial/c513000090.lua +++ b/unofficial/c513000090.lua @@ -36,4 +36,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.RaiseEvent(g,EVENT_MSET,e,REASON_EFFECT,tp,tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c513000092.lua b/unofficial/c513000092.lua index 15af335ae8..b78ad87e16 100644 --- a/unofficial/c513000092.lua +++ b/unofficial/c513000092.lua @@ -49,4 +49,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.tg(e,c) return c~=e:GetHandler():GetEquipTarget() and Duel.GetAttackTarget() and Duel.GetAttackTarget()==c -end +end \ No newline at end of file diff --git a/unofficial/c513000094.lua b/unofficial/c513000094.lua index 5b3417215e..6a60886671 100644 --- a/unofficial/c513000094.lua +++ b/unofficial/c513000094.lua @@ -65,4 +65,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(tc,REASON_EFFECT) end e:Reset() -end +end \ No newline at end of file diff --git a/unofficial/c513000095.lua b/unofficial/c513000095.lua index c924728da7..0861d87fe5 100644 --- a/unofficial/c513000095.lua +++ b/unofficial/c513000095.lua @@ -110,4 +110,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) bc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c513000096.lua b/unofficial/c513000096.lua index 7480cbed17..90a8ea6f54 100644 --- a/unofficial/c513000096.lua +++ b/unofficial/c513000096.lua @@ -94,4 +94,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000097.lua b/unofficial/c513000097.lua index 4080fac075..5b85d405ce 100644 --- a/unofficial/c513000097.lua +++ b/unofficial/c513000097.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.handcon(e) return Duel.GetFieldGroupCount(e:GetHandler():GetControler(),LOCATION_MZONE,0)==0 -end +end \ No newline at end of file diff --git a/unofficial/c513000098.lua b/unofficial/c513000098.lua index 07b066f517..89a0904866 100644 --- a/unofficial/c513000098.lua +++ b/unofficial/c513000098.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x23} function s.filter(c,e,tp) - return c:IsSetCard(0x23) and c:IsMonster() and c:IsCanBeSpecialSummoned(e,0,tp,true,false) + return c:IsSetCard(SET_MALEFIC) and c:IsMonster() and c:IsCanBeSpecialSummoned(e,0,tp,true,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -50,4 +50,4 @@ end function s.rmop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.Remove(tc,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000099.lua b/unofficial/c513000099.lua index 00e1a9bc9f..b5c55a15f8 100644 --- a/unofficial/c513000099.lua +++ b/unofficial/c513000099.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:IsActiveType(TYPE_SPELL) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c513000103.lua b/unofficial/c513000103.lua index 8faa5ac0df..1d4c7feb86 100644 --- a/unofficial/c513000103.lua +++ b/unofficial/c513000103.lua @@ -20,4 +20,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000104.lua b/unofficial/c513000104.lua index 83cb392a48..d88bf539af 100644 --- a/unofficial/c513000104.lua +++ b/unofficial/c513000104.lua @@ -55,4 +55,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) local dam=ev-e:GetLabel() if dam<0 then dam=0 end Duel.ChangeBattleDamage(tp,dam) -end +end \ No newline at end of file diff --git a/unofficial/c513000105.lua b/unofficial/c513000105.lua index 601f1e5061..6063a43070 100644 --- a/unofficial/c513000105.lua +++ b/unofficial/c513000105.lua @@ -80,4 +80,4 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) local i=e:GetLabel() e:SetLabel(i+1) end -end +end \ No newline at end of file diff --git a/unofficial/c513000106.lua b/unofficial/c513000106.lua index 86a8fb1ed6..d3dfc2976d 100644 --- a/unofficial/c513000106.lua +++ b/unofficial/c513000106.lua @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if #g~=3 or ft<3 then return end Duel.SpecialSummon(g,0,tp,tp,true,true,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c513000107.lua b/unofficial/c513000107.lua index 195f9fef9d..635d25f8b7 100644 --- a/unofficial/c513000107.lua +++ b/unofficial/c513000107.lua @@ -17,7 +17,7 @@ end s.listed_series={0x64} s.listed_names={CARD_HARPIE_LADY} function s.counterfilter(c) - return not c:IsSetCard(0x64) + return not c:IsSetCard(SET_HARPIE) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetCustomActivityCount(id,tp,ACTIVITY_ATTACK)==0 end @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local lp=Duel.GetLP(1-tp) Duel.SetLP(1-tp,(lp<=atk) and 0 or (lp-atk)) end -end +end \ No newline at end of file diff --git a/unofficial/c513000108.lua b/unofficial/c513000108.lua index 4a7712f124..fe3dcebe61 100644 --- a/unofficial/c513000108.lua +++ b/unofficial/c513000108.lua @@ -10,7 +10,7 @@ function s.initial_effect(c) e1:SetCode(EVENT_CHAINING) e1:SetRange(LOCATION_GRAVE) e1:SetCondition(s.condition) - e1:SetCost(aux.bfgcost) + e1:SetCost(Cost.SelfBanish) e1:SetOperation(s.operation) c:RegisterEffect(e1) aux.GlobalCheck(s,function() @@ -100,4 +100,4 @@ end function s.damval(e,re,val,r,rp,rc) if (r&REASON_EFFECT)~=0 then return 0 else return val end -end +end \ No newline at end of file diff --git a/unofficial/c513000110.lua b/unofficial/c513000110.lua index 8c43eff4f4..444041f5ef 100644 --- a/unofficial/c513000110.lua +++ b/unofficial/c513000110.lua @@ -55,7 +55,7 @@ function s.dop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(1-tp,lp2) end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.GetCurrentPhase()==PHASE_MAIN1 + return Duel.IsTurnPlayer(tp) and Duel.GetCurrentPhase()==PHASE_MAIN1 end function s.descost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end @@ -79,4 +79,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c513000111.lua b/unofficial/c513000111.lua index 5a2535df08..60f610debc 100644 --- a/unofficial/c513000111.lua +++ b/unofficial/c513000111.lua @@ -50,4 +50,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(send,REASON_EFFECT) Duel.SortDecktop(tp,tp,3) Duel.SortDecktop(1-tp,1-tp,3) -end +end \ No newline at end of file diff --git a/unofficial/c513000112.lua b/unofficial/c513000112.lua index c43df2d071..40fdeda9e5 100644 --- a/unofficial/c513000112.lua +++ b/unofficial/c513000112.lua @@ -74,4 +74,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000115.lua b/unofficial/c513000115.lua index cf76393a1c..f0c2c2d001 100644 --- a/unofficial/c513000115.lua +++ b/unofficial/c513000115.lua @@ -42,4 +42,4 @@ function s.op2(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c513000116.lua b/unofficial/c513000116.lua index addcaec31a..4ba5a0046d 100644 --- a/unofficial/c513000116.lua +++ b/unofficial/c513000116.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) else Duel.SendtoGrave(sg1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000118.lua b/unofficial/c513000118.lua index 576ebfc6c2..b78c95ad29 100644 --- a/unofficial/c513000118.lua +++ b/unofficial/c513000118.lua @@ -191,7 +191,7 @@ end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end - Duel.RegisterFlagEffect(tp,id+1000,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(tp,id+1000,RESET_PHASE|PHASE_END,0,1) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_GRAVE) end function s.spop(e,tp,eg,ep,ev,re,r,rp) @@ -209,7 +209,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_SPSUMMON) local g2=Duel.SelectMatchingCard(1-tp,s.spfilter,1-tp,LOCATION_GRAVE,0,1,1,nil,e,1-tp) Duel.SpecialSummonStep(g2:GetFirst(),0,1-tp,1-tp,false,false,POS_FACEUP) - Duel.RegisterFlagEffect(1-tp,id+1000,RESET_PHASE+PHASE_END,0,1) + Duel.RegisterFlagEffect(1-tp,id+1000,RESET_PHASE|PHASE_END,0,1) end Duel.SpecialSummonComplete() end @@ -233,4 +233,4 @@ end function s.recon(e) local c=e:GetHandler() return c:IsReason(REASON_DESTROY) and Duel.IsPlayerAffectedByEffect(c:GetSummonPlayer(),id) -end +end \ No newline at end of file diff --git a/unofficial/c513000120.lua b/unofficial/c513000120.lua index f3e52403dd..3713167c2a 100644 --- a/unofficial/c513000120.lua +++ b/unofficial/c513000120.lua @@ -91,8 +91,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) g:DeleteGroup() end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_SZONE+LOCATION_HAND,1,nil) end - local sg=Duel.GetMatchingGroup(Card.IsTrap,tp,0,LOCATION_SZONE+LOCATION_HAND,nil) + if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_SZONE|LOCATION_HAND,1,nil) end + local sg=Duel.GetMatchingGroup(Card.IsTrap,tp,0,LOCATION_SZONE|LOCATION_HAND,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,#sg*300) end @@ -102,7 +102,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) g1:Merge(g2) Duel.ConfirmCards(tp,g1) Duel.ShuffleHand(1-tp) - local sg=Duel.GetMatchingGroup(Card.IsTrap,tp,0,LOCATION_SZONE+LOCATION_HAND,nil) + local sg=Duel.GetMatchingGroup(Card.IsTrap,tp,0,LOCATION_SZONE|LOCATION_HAND,nil) local ct=Duel.Destroy(sg,REASON_EFFECT) Duel.Damage(1-tp,ct*300,REASON_EFFECT) end \ No newline at end of file diff --git a/unofficial/c513000121.lua b/unofficial/c513000121.lua index 9c39ebf519..60eb6a063c 100644 --- a/unofficial/c513000121.lua +++ b/unofficial/c513000121.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:GetHandler():IsFacedown() -end +end \ No newline at end of file diff --git a/unofficial/c513000122.lua b/unofficial/c513000122.lua index bab4480f4f..c2cf8d1472 100644 --- a/unofficial/c513000122.lua +++ b/unofficial/c513000122.lua @@ -14,15 +14,15 @@ function s.filter(c) return c:IsSpell() and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,1-tp,LOCATION_DECK+LOCATION_HAND,0,1,nil) end - Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,10,1-tp,LOCATION_DECK+LOCATION_HAND) + if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToGrave,1-tp,LOCATION_DECK|LOCATION_HAND,0,1,nil) end + Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,10,1-tp,LOCATION_DECK|LOCATION_HAND) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Group.CreateGroup() - if Duel.GetMatchingGroupCount(s.filter,1-tp,LOCATION_DECK+LOCATION_HAND,0,nil)<=10 then - sg=Duel.GetMatchingGroup(s.filter,1-tp,LOCATION_DECK+LOCATION_HAND,0,nil) + if Duel.GetMatchingGroupCount(s.filter,1-tp,LOCATION_DECK|LOCATION_HAND,0,nil)<=10 then + sg=Duel.GetMatchingGroup(s.filter,1-tp,LOCATION_DECK|LOCATION_HAND,0,nil) else - sg=Duel.SelectMatchingCard(1-tp,s.filter,1-tp,LOCATION_DECK+LOCATION_HAND,0,10,10,nil) + sg=Duel.SelectMatchingCard(1-tp,s.filter,1-tp,LOCATION_DECK|LOCATION_HAND,0,10,10,nil) end Duel.SendtoGrave(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000124.lua b/unofficial/c513000124.lua index 7320ba96c4..ca2dd6978e 100644 --- a/unofficial/c513000124.lua +++ b/unofficial/c513000124.lua @@ -174,4 +174,4 @@ function s.ctop(e,tp,eg,ep,ev,re,r,rp) end function s.descon(e) return e:GetHandler():GetCounter(0x1097)>=3 -end +end \ No newline at end of file diff --git a/unofficial/c513000125.lua b/unofficial/c513000125.lua index f98e176fcf..b1f3180d65 100644 --- a/unofficial/c513000125.lua +++ b/unofficial/c513000125.lua @@ -144,4 +144,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) end -end +end \ No newline at end of file diff --git a/unofficial/c513000126.lua b/unofficial/c513000126.lua index a4a63e0d60..7841c2c445 100644 --- a/unofficial/c513000126.lua +++ b/unofficial/c513000126.lua @@ -84,4 +84,4 @@ function s.ctrlop(e,tp,eg,ep,ev,re,r,rp) else Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000127.lua b/unofficial/c513000127.lua index 3d9f167888..38b5c7fd3b 100644 --- a/unofficial/c513000127.lua +++ b/unofficial/c513000127.lua @@ -56,7 +56,7 @@ function s.resetop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():SetType(EFFECT_TYPE_QUICK_O) end function s.remcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.remop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -90,4 +90,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) g:AddCard(c) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Damage(1-tp,g:GetSum(Card.GetAttack),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000128.lua b/unofficial/c513000128.lua index 4a53977bee..22d1e0e7f3 100644 --- a/unofficial/c513000128.lua +++ b/unofficial/c513000128.lua @@ -31,4 +31,4 @@ function s.adval(c,att) end function s.atkval(e,c) return c:IsAttribute(e:GetLabel()) -end +end \ No newline at end of file diff --git a/unofficial/c513000131.lua b/unofficial/c513000131.lua index f6c433a378..e652f1a524 100644 --- a/unofficial/c513000131.lua +++ b/unofficial/c513000131.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.disable(e,c) return c:IsSpellTrap() and c~=e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c513000132.lua b/unofficial/c513000132.lua index 0bd03e8f19..b2cfc7d2f7 100644 --- a/unofficial/c513000132.lua +++ b/unofficial/c513000132.lua @@ -72,4 +72,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToBattle() then Duel.Damage(1-tp,1000,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000133.lua b/unofficial/c513000133.lua index 5bc5590e19..ea48d98172 100644 --- a/unofficial/c513000133.lua +++ b/unofficial/c513000133.lua @@ -101,4 +101,4 @@ function s.doperation(e,tp,eg,ep,ev,re,r,rp) e2:SetValue(tc:GetBaseDefense()) tc:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c513000134.lua b/unofficial/c513000134.lua index 42d48c427c..d240cb2dcf 100644 --- a/unofficial/c513000134.lua +++ b/unofficial/c513000134.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) e3:SetCode(EFFECT_UNSTOPPABLE_ATTACK) e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e3:SetRange(LOCATION_MZONE) - e3:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL) end) + e3:SetCondition(function(e) return e:GetHandler():IsSpecialSummoned() end) c:RegisterEffect(e3) --Resurrection local e4=Effect.CreateEffect(c) @@ -377,4 +377,4 @@ function s.valcheck(e,c) e2:SetValue(def) c:RegisterEffect(e2) end -end +end \ No newline at end of file diff --git a/unofficial/c513000135.lua b/unofficial/c513000135.lua index fe38e3a5a3..c1c9cb8eab 100644 --- a/unofficial/c513000135.lua +++ b/unofficial/c513000135.lua @@ -173,4 +173,4 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp) end function s.damop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(ep,Duel.GetLP(ep)*100) -end +end \ No newline at end of file diff --git a/unofficial/c513000136.lua b/unofficial/c513000136.lua index d15c9ca22b..57d081aa32 100644 --- a/unofficial/c513000136.lua +++ b/unofficial/c513000136.lua @@ -99,4 +99,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) if #dg==0 then return end Duel.BreakEffect() Duel.Destroy(dg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000137.lua b/unofficial/c513000137.lua index 7d754c9a14..1ec8a17be7 100644 --- a/unofficial/c513000137.lua +++ b/unofficial/c513000137.lua @@ -33,4 +33,4 @@ function s.atkval(e,c) end function s.defval(e,c) return c:GetDefense()/2 -end +end \ No newline at end of file diff --git a/unofficial/c513000138.lua b/unofficial/c513000138.lua index 2cdbff81f6..4427a9fc0c 100644 --- a/unofficial/c513000138.lua +++ b/unofficial/c513000138.lua @@ -43,4 +43,4 @@ function s.adval(e,c) return val+1 end end -end +end \ No newline at end of file diff --git a/unofficial/c513000139.lua b/unofficial/c513000139.lua index 6fb9dcba59..ec74d4d930 100644 --- a/unofficial/c513000139.lua +++ b/unofficial/c513000139.lua @@ -60,4 +60,4 @@ function s.divevo(e,tp,eg,ev,ep,re,r,rp) if divine_hierarchy>1 then e:GetLabelObject():SetLabel(1) end -end +end \ No newline at end of file diff --git a/unofficial/c513000140.lua b/unofficial/c513000140.lua index 1b3995b3c6..f2c7c8ab14 100644 --- a/unofficial/c513000140.lua +++ b/unofficial/c513000140.lua @@ -110,4 +110,4 @@ function s.ngtg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.ngop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c513000141.lua b/unofficial/c513000141.lua index 293657d613..9ff938e74c 100644 --- a/unofficial/c513000141.lua +++ b/unofficial/c513000141.lua @@ -45,7 +45,7 @@ function s.initial_effect(c) local e6=Effect.CreateEffect(c) e6:SetType(EFFECT_TYPE_SINGLE) e6:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) - e6:SetValue(function(e,c) return not c:IsSetCard(0x48) end) + e6:SetValue(function(e,c) return not c:IsSetCard(SET_NUMBER) end) c:RegisterEffect(e6) --copy local e7=Effect.CreateEffect(c) @@ -106,4 +106,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000142.lua b/unofficial/c513000142.lua index 7c6dc0f215..ed5d1d234c 100644 --- a/unofficial/c513000142.lua +++ b/unofficial/c513000142.lua @@ -29,4 +29,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c513000144.lua b/unofficial/c513000144.lua index a203ae0bd3..af835ebae0 100644 --- a/unofficial/c513000144.lua +++ b/unofficial/c513000144.lua @@ -66,7 +66,7 @@ function s.initial_effect(c) c:RegisterEffect(e7) end function s.millcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.millop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetFieldGroup(1-tp,LOCATION_DECK,0) @@ -121,4 +121,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end function s.indval(e,re) return re:GetOwner():IsType(TYPE_MONSTER+TYPE_SPELL+TYPE_TRAP) -end +end \ No newline at end of file diff --git a/unofficial/c513000147.lua b/unofficial/c513000147.lua index 6978e7d386..b5c15448ef 100644 --- a/unofficial/c513000147.lua +++ b/unofficial/c513000147.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(tp,og:FilterCount(Card.IsPreviousControler,nil,tp)*300,REASON_EFFECT,true) Duel.Damage(1-tp,og:FilterCount(Card.IsPreviousControler,nil,1-tp)*300,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c513000149.lua b/unofficial/c513000149.lua index 3f52791bc0..6d44c056a8 100644 --- a/unofficial/c513000149.lua +++ b/unofficial/c513000149.lua @@ -57,4 +57,4 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000152.lua b/unofficial/c513000152.lua index e9e9c6f4e4..625fed3d23 100644 --- a/unofficial/c513000152.lua +++ b/unofficial/c513000152.lua @@ -43,4 +43,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atkcon(e) return Duel.IsBattlePhase() -end +end \ No newline at end of file diff --git a/unofficial/c513000155.lua b/unofficial/c513000155.lua index a8eb3a1e21..72c6bf4cdb 100644 --- a/unofficial/c513000155.lua +++ b/unofficial/c513000155.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.indval(e,re,rp) return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and re:GetOwnerPlayer()~=e:GetOwnerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c513000157.lua b/unofficial/c513000157.lua index 6735377cec..d8f73b1bfb 100644 --- a/unofficial/c513000157.lua +++ b/unofficial/c513000157.lua @@ -43,4 +43,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local ct=eg:FilterCount(Card.IsPreviousControler,nil,1-tp) Duel.Damage(1-tp,ct*300,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000162.lua b/unofficial/c513000162.lua index 8af0a06b20..469da2a045 100644 --- a/unofficial/c513000162.lua +++ b/unofficial/c513000162.lua @@ -81,7 +81,7 @@ function s.spop(e,tp,c) end end function s.spcon1(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.spop2(e,tp,c) local c=e:GetHandler() @@ -115,4 +115,4 @@ function s.atkval(e,c) end function s.distg(e,c) return e:GetHandler():GetBattleTarget()==c -end +end \ No newline at end of file diff --git a/unofficial/c513000163.lua b/unofficial/c513000163.lua index c5a19e814d..2184c80217 100644 --- a/unofficial/c513000163.lua +++ b/unofficial/c513000163.lua @@ -96,4 +96,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) local atk=tc:GetAttack() Duel.Damage(p,atk,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000164.lua b/unofficial/c513000164.lua index ae4070a5fb..81eff6d805 100644 --- a/unofficial/c513000164.lua +++ b/unofficial/c513000164.lua @@ -43,4 +43,4 @@ end function s.drop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000165.lua b/unofficial/c513000165.lua index 179c8174c4..bf88126803 100644 --- a/unofficial/c513000165.lua +++ b/unofficial/c513000165.lua @@ -67,4 +67,4 @@ function s.rdop2(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) Duel.Destroy(e:GetHandler(),REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000166.lua b/unofficial/c513000166.lua index 7356286a10..86024e2403 100644 --- a/unofficial/c513000166.lua +++ b/unofficial/c513000166.lua @@ -21,7 +21,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE) end function s.filter(c,e,tp) return c:IsCode(68140974,100000051,100000052,100000053,100000054) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -35,10 +35,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft<=0 or (ft>1 and Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)) then return end - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,nil,e,tp) + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,nil,e,tp) if not s.rescon(sg) then return end local spg=aux.SelectUnselectGroup(sg,e,tp,5,5,s.rescon,1,tp,HINTMSG_SPSUMMON) if #sg>0 then Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000167.lua b/unofficial/c513000167.lua index 9ce86e3f89..6551e863cb 100644 --- a/unofficial/c513000167.lua +++ b/unofficial/c513000167.lua @@ -106,4 +106,4 @@ function s.dop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000172.lua b/unofficial/c513000172.lua index 32e2ae1ac4..cc80b9c7d1 100644 --- a/unofficial/c513000172.lua +++ b/unofficial/c513000172.lua @@ -21,7 +21,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_MZONE,0,nil) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0) - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,5,tp,LOCATION_HAND|LOCATION_DECK|LOCATION_GRAVE) end function s.filter(c,e,tp) return c:IsCode(31930787,100000057,100000058,100000059,100000060) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) @@ -35,10 +35,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) if ft<=0 or (ft>1 and Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT)) then return end - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_GRAVE,0,nil,e,tp) + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND|LOCATION_GRAVE,0,nil,e,tp) if not s.rescon(sg) then return end local spg=aux.SelectUnselectGroup(sg,e,tp,5,5,s.rescon,1,tp,HINTMSG_SPSUMMON) if #sg>0 then Duel.SpecialSummon(spg,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c513000173.lua b/unofficial/c513000173.lua index 7d23eb4908..d0b2ce53b0 100644 --- a/unofficial/c513000173.lua +++ b/unofficial/c513000173.lua @@ -95,4 +95,4 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(Duel.GetFieldGroup(tp,LOCATION_MZONE,0),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c513000179.lua b/unofficial/c513000179.lua index 13bfe9f43b..4cbf5c3ab3 100644 --- a/unofficial/c513000179.lua +++ b/unofficial/c513000179.lua @@ -39,4 +39,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,dam,REASON_EFFECT,true) Duel.Damage(tp,dam,REASON_EFFECT,true) Duel.RDComplete() -end +end \ No newline at end of file diff --git a/unofficial/c513000180.lua b/unofficial/c513000180.lua index 6f3d0b0d9a..8e69cea820 100644 --- a/unofficial/c513000180.lua +++ b/unofficial/c513000180.lua @@ -34,4 +34,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c513000184.lua b/unofficial/c513000184.lua index 14bab1570b..26e3a5aecc 100644 --- a/unofficial/c513000184.lua +++ b/unofficial/c513000184.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if re:GetHandler():IsRelateToEffect(re) then Duel.Destroy(eg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c513000186.lua b/unofficial/c513000186.lua index 2beb8f546f..e068eaddde 100644 --- a/unofficial/c513000186.lua +++ b/unofficial/c513000186.lua @@ -44,7 +44,7 @@ function s.initial_effect(c) end s.listed_names={39823987} function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end diff --git a/unofficial/c700000000.lua b/unofficial/c700000000.lua index 969d4f7595..a5a4ae5569 100644 --- a/unofficial/c700000000.lua +++ b/unofficial/c700000000.lua @@ -21,7 +21,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c,e,tp) - return c:IsSetCard(0x9a) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_SUPERHEAVY_SAMURAI) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -37,4 +37,4 @@ function s.sumop(e,tp,eg,ep,ev,re,r,rp) end function s.atlimit(e,c) return c~=e:GetHandler() -end +end \ No newline at end of file diff --git a/unofficial/c700000001.lua b/unofficial/c700000001.lua index 8343b45956..19f2f64370 100644 --- a/unofficial/c700000001.lua +++ b/unofficial/c700000001.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x33) and c:GetLevel()>0 + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) and c:GetLevel()>0 end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetLevel()) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c700000002.lua b/unofficial/c700000002.lua index 98d46f9864..2ce3929419 100644 --- a/unofficial/c700000002.lua +++ b/unofficial/c700000002.lua @@ -25,10 +25,10 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.tncon(e) - return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetHandler():GetMaterial():IsExists(Card.IsSetCard,1,nil,0x33) + return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetHandler():GetMaterial():IsExists(Card.IsSetCard,1,nil,SET_BLACKWING) end function s.cfilter(c) - return c:IsSetCard(0x33) and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_BLACKWING) and c:IsAbleToGraveAsCost() end function s.damcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end @@ -43,4 +43,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c700000007.lua b/unofficial/c700000007.lua index 589ae94156..66ecddb3b1 100644 --- a/unofficial/c700000007.lua +++ b/unofficial/c700000007.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) c:RegisterEffect(e4) end function s.cfilter(c) - return c:IsFaceup() and c:IsSetCard(0x2b) + return c:IsFaceup() and c:IsSetCard(SET_NINJA) end function s.actcon(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) @@ -48,4 +48,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) end function s.descon(e) return not Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c700000009.lua b/unofficial/c700000009.lua index 9c0c386aeb..653e1cf15e 100644 --- a/unofficial/c700000009.lua +++ b/unofficial/c700000009.lua @@ -50,4 +50,4 @@ function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Destroy(g,REASON_EFFECT+REASON_REPLACE) return true else return false end -end +end \ No newline at end of file diff --git a/unofficial/c700000010.lua b/unofficial/c700000010.lua index f10d93e0fb..0f80b0d78a 100644 --- a/unofficial/c700000010.lua +++ b/unofficial/c700000010.lua @@ -30,10 +30,10 @@ end s.listed_series={0x99,0x9f} function s.atkcon(e,tp,eg,ep,ev,re,r,rp) local at=Duel.GetAttacker() - return at:IsControler(tp) and at:IsSetCard(0x99) + return at:IsControler(tp) and at:IsSetCard(SET_ODD_EYES) end function s.atkfil(c) - return c:HasNonZeroAttack() and c:IsAttackPos() and c:IsSetCard(0x9f) + return c:HasNonZeroAttack() and c:IsAttackPos() and c:IsSetCard(SET_PERFORMAPAL) end function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetAttacker():IsCanBeEffectTarget(e) and Duel.IsExistingMatchingCard(s.atkfil,tp,LOCATION_MZONE,0,1,nil) end @@ -55,10 +55,10 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end end function s.atkfilter(c) - return c:IsFaceup() and (c:IsSetCard(0x99) or c:IsSetCard(0x9f)) + return c:IsFaceup() and (c:IsSetCard(SET_ODD_EYES) or c:IsSetCard(SET_PERFORMAPAL)) end function s.atkval(e,c) if s.atkfilter(c) then return Duel.GetMatchingGroupCount(s.atkfilter,c:GetControler(),LOCATION_MZONE,0,nil)*100 else return 0 end -end +end \ No newline at end of file diff --git a/unofficial/c700000011.lua b/unofficial/c700000011.lua index aa3459b1d6..3e2f2cce5d 100644 --- a/unofficial/c700000011.lua +++ b/unofficial/c700000011.lua @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c700000012.lua b/unofficial/c700000012.lua index 64e8ea48b2..3604bf8e43 100644 --- a/unofficial/c700000012.lua +++ b/unofficial/c700000012.lua @@ -30,7 +30,7 @@ function s.initial_effect(c) end s.listed_series={0x10ec} function s.cfilter(c) - return c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x10ec) and c:IsAbleToDeckOrExtraAsCost() + return c:IsType(TYPE_PENDULUM) and c:IsSetCard(SET_ABYSS_ACTOR) and c:IsAbleToDeckOrExtraAsCost() end function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end @@ -58,7 +58,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end end function s.atkfil(c) - return c:IsFaceup() and c:IsSetCard(0x10ec) + return c:IsFaceup() and c:IsSetCard(SET_ABYSS_ACTOR) end function s.atkop2(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() @@ -71,4 +71,4 @@ function s.atkop2(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c700000013.lua b/unofficial/c700000013.lua index 483c197f81..315ba6b3ac 100644 --- a/unofficial/c700000013.lua +++ b/unofficial/c700000013.lua @@ -27,7 +27,7 @@ function s.initial_effect(c) end s.listed_series={0x10ec,0x20ec} function s.cfilter(c) - return c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x10ec) and c:IsAbleToDeckOrExtraAsCost() + return c:IsType(TYPE_PENDULUM) and c:IsSetCard(SET_ABYSS_ACTOR) and c:IsAbleToDeckOrExtraAsCost() end function s.rvcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) end @@ -35,7 +35,7 @@ function s.rvcost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoExtraP(g,nil,REASON_COST) end function s.thfilter(c) - return c:IsSpell() and c:IsSetCard(0x20ec) and c:IsAbleToHand() + return c:IsSpell() and c:IsSetCard(SET_ABYSS_SCRIPT) and c:IsAbleToHand() end function s.rvtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.thfilter(chkc) end @@ -82,4 +82,4 @@ end function s.desop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() Duel.SendtoGrave(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c700000014.lua b/unofficial/c700000014.lua index d561445ed5..84837d1808 100644 --- a/unofficial/c700000014.lua +++ b/unofficial/c700000014.lua @@ -28,7 +28,7 @@ function s.initial_effect(c) end s.listed_series={0x10ec} function s.cfilter(c,tp) - return c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x10ec) and c:IsAbleToDeckOrExtraAsCost() + return c:IsType(TYPE_PENDULUM) and c:IsSetCard(SET_ABYSS_ACTOR) and c:IsAbleToDeckOrExtraAsCost() and Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,0,1,c) end function s.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) @@ -57,7 +57,7 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) end end function s.atkfil(c) - return c:IsFaceup() and c:IsSetCard(0x10ec) + return c:IsFaceup() and c:IsSetCard(SET_ABYSS_ACTOR) end function s.atkop2(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() @@ -69,4 +69,4 @@ function s.atkop2(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(gc*300) e1:SetReset(RESET_EVENT+RESETS_STANDARD) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c700000016.lua b/unofficial/c700000016.lua index 2a61f56e55..8639334c09 100644 --- a/unofficial/c700000016.lua +++ b/unofficial/c700000016.lua @@ -38,4 +38,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) and s.filter(tc) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c700000017.lua b/unofficial/c700000017.lua index ff880096b2..a81cdb6722 100644 --- a/unofficial/c700000017.lua +++ b/unofficial/c700000017.lua @@ -55,21 +55,21 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not dc then return end local bc=dc:GetBattleTarget() if ep==tp then - if bc:IsControler(tp) and bc:IsSetCard(0x10ec) and bc:IsStatus(STATUS_BATTLE_DESTROYED) + if bc:IsControler(tp) and bc:IsSetCard(SET_ABYSS_ACTOR) and bc:IsStatus(STATUS_BATTLE_DESTROYED) and not dc:IsStatus(STATUS_BATTLE_DESTROYED) then dc:RegisterFlagEffect(id+tp,RESET_EVENT+RESETS_STANDARD,0,1,ev) end - if dc:IsControler(tp) and dc:IsSetCard(0x10ec) and dc:IsStatus(STATUS_BATTLE_DESTROYED) + if dc:IsControler(tp) and dc:IsSetCard(SET_ABYSS_ACTOR) and dc:IsStatus(STATUS_BATTLE_DESTROYED) and not bc:IsStatus(STATUS_BATTLE_DESTROYED) then bc:RegisterFlagEffect(id+tp,RESET_EVENT+RESETS_STANDARD,0,1,ev) end end if ep==1-tp then - if bc:IsControler(1-tp) and bc:IsSetCard(0x10ec) and bc:IsStatus(STATUS_BATTLE_DESTROYED) + if bc:IsControler(1-tp) and bc:IsSetCard(SET_ABYSS_ACTOR) and bc:IsStatus(STATUS_BATTLE_DESTROYED) and not dc:IsStatus(STATUS_BATTLE_DESTROYED) then dc:RegisterFlagEffect(id+1-tp,RESET_EVENT+RESETS_STANDARD,0,1,ev) end - if dc:IsControler(1-tp) and dc:IsSetCard(0x10ec) and dc:IsStatus(STATUS_BATTLE_DESTROYED) + if dc:IsControler(1-tp) and dc:IsSetCard(SET_ABYSS_ACTOR) and dc:IsStatus(STATUS_BATTLE_DESTROYED) and not bc:IsStatus(STATUS_BATTLE_DESTROYED) then bc:RegisterFlagEffect(id+1-tp,RESET_EVENT+RESETS_STANDARD,0,1,ev) end @@ -133,4 +133,4 @@ function s.maop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c700000018.lua b/unofficial/c700000018.lua index a1d3e979eb..fe8cefbaf4 100644 --- a/unofficial/c700000018.lua +++ b/unofficial/c700000018.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) end s.listed_series={0x10ec} function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x10ec) + return c:IsFaceup() and c:IsSetCard(SET_ABYSS_ACTOR) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -50,4 +50,4 @@ function s.retop(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_CARD,1-tp,id) Duel.SendtoHand(bc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c700000019.lua b/unofficial/c700000019.lua index 09e5b9d7c6..c3fc7026f4 100644 --- a/unofficial/c700000019.lua +++ b/unofficial/c700000019.lua @@ -12,7 +12,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsSetCard(0x10ec) and c:IsPosition(POS_FACEUP_ATTACK) + return c:IsSetCard(SET_ABYSS_ACTOR) and c:IsPosition(POS_FACEUP_ATTACK) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil) end @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local rec=Duel.GetMatchingGroupCount(s.filter,tp,LOCATION_MZONE,0,nil)*500 local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Recover(p,rec,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c700000020.lua b/unofficial/c700000020.lua index 1ca99befb7..fc9977c65b 100644 --- a/unofficial/c700000020.lua +++ b/unofficial/c700000020.lua @@ -23,7 +23,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x10ec) + return c:IsFaceup() and c:IsSetCard(SET_ABYSS_ACTOR) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.filter(chkc) end @@ -52,4 +52,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.efilter(e,te) return te:GetOwnerPlayer()~=e:GetHandlerPlayer() -end +end \ No newline at end of file diff --git a/unofficial/c700000023.lua b/unofficial/c700000023.lua index 209f9c620f..c346a33373 100644 --- a/unofficial/c700000023.lua +++ b/unofficial/c700000023.lua @@ -31,7 +31,7 @@ function s.initial_effect(c) end s.listed_series={0xc6,0x9f} function s.drfil(c,tp) - return c:IsSummonPlayer(tp) and c:GetSummonType()==SUMMON_TYPE_PENDULUM and (c:IsSetCard(0xc6) or c:IsSetCard(0x9f)) and c:IsPreviousLocation(LOCATION_HAND) + return c:IsSummonPlayer(tp) and c:GetSummonType()==SUMMON_TYPE_PENDULUM and (c:IsSetCard(SET_PERFORMAGE) or c:IsSetCard(SET_PERFORMAPAL)) and c:IsPreviousLocation(LOCATION_HAND) end function s.drcon(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.drfil,3,nil,tp) @@ -71,4 +71,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c700000024.lua b/unofficial/c700000024.lua index d1f3f0b1f9..b5963bb53a 100644 --- a/unofficial/c700000024.lua +++ b/unofficial/c700000024.lua @@ -60,4 +60,4 @@ function s.xyzop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then Duel.Overlay(tc,c) end -end +end \ No newline at end of file diff --git a/unofficial/c700000025.lua b/unofficial/c700000025.lua index 8320555204..4959eb7cd1 100644 --- a/unofficial/c700000025.lua +++ b/unofficial/c700000025.lua @@ -99,4 +99,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.Overlay(tc2,tc) Duel.RaiseSingleEvent(tc:GetOverlayTarget(),EVENT_DETACH_MATERIAL,e,0,0,0,0) end -end +end \ No newline at end of file diff --git a/unofficial/c700000026.lua b/unofficial/c700000026.lua index 654482f55d..893c45848f 100644 --- a/unofficial/c700000026.lua +++ b/unofficial/c700000026.lua @@ -42,4 +42,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c700000027.lua b/unofficial/c700000027.lua index 2ddddfa513..f8752b796f 100644 --- a/unofficial/c700000027.lua +++ b/unofficial/c700000027.lua @@ -24,7 +24,7 @@ function s.filter(c,e) return c:HasNonZeroAttack() and (not e or not c:IsImmuneToEffect(e)) end function s.atkfilter(c) - return c:IsSetCard(0xba) and c:IsMonster() + return c:IsSetCard(SET_RAIDRAPTOR) and c:IsMonster() end function s.target(e,tp,ep,eg,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(Card.HasNonZeroAttack,tp,0,LOCATION_MZONE,1,nil) @@ -56,4 +56,4 @@ function s.operation(e,tp,ep,eg,ev,re,r,rp) ct=g:GetNext() until rc<=0 or not Duel.IsExistingMatchingCard(s.filter,tp,0,LOCATION_MZONE,1,nil,e) or not Duel.SelectYesNo(tp,210) -end +end \ No newline at end of file diff --git a/unofficial/c700000028.lua b/unofficial/c700000028.lua index 9402f64a2a..c72af7b0ff 100644 --- a/unofficial/c700000028.lua +++ b/unofficial/c700000028.lua @@ -45,4 +45,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e5:SetTargetRange(0,LOCATION_MZONE) e5:SetReset(RESET_PHASE+PHASE_DAMAGE) Duel.RegisterEffect(e5,tp) -end +end \ No newline at end of file diff --git a/unofficial/c700000029.lua b/unofficial/c700000029.lua index f97a95c16f..32f1670544 100644 --- a/unofficial/c700000029.lua +++ b/unofficial/c700000029.lua @@ -6,7 +6,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,0x9b),1,99,aux.FilterBoolFunctionEx2(Card.IsMelodiousSongtress)) + Fusion.AddProcMixRep(c,true,true,aux.FilterBoolFunctionEx(Card.IsSetCard,SET_MELODIOUS),1,99,aux.FilterBoolFunctionEx2(Card.IsMelodiousSongtress)) --summon success local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) @@ -29,4 +29,4 @@ function s.matcheck(e,c) e1:SetValue(ct*300) e1:SetReset(RESET_EVENT|RESETS_STANDARD_DISABLE&~RESET_TOFIELD) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c700000030.lua b/unofficial/c700000030.lua index 05e9c008b1..55028fb286 100644 --- a/unofficial/c700000030.lua +++ b/unofficial/c700000030.lua @@ -61,4 +61,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local g=Group.FromCards(c,tc) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_ATTACK) end -end +end \ No newline at end of file diff --git a/unofficial/c700000031.lua b/unofficial/c700000031.lua index e9c3a04811..bf851d3e1f 100644 --- a/unofficial/c700000031.lua +++ b/unofficial/c700000031.lua @@ -24,4 +24,4 @@ function s.negcost(e,tp,eg,ep,ev,re,r,rp,chk) end function s.negop(e,tp,eg,ep,ev,re,r,rp) Duel.NegateAttack() -end +end \ No newline at end of file diff --git a/unofficial/c700000032.lua b/unofficial/c700000032.lua index fced1cc7e1..61a8863714 100644 --- a/unofficial/c700000032.lua +++ b/unofficial/c700000032.lua @@ -11,7 +11,7 @@ function s.initial_effect(c) e1:SetCategory(CATEGORY_COUNTER) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetCode(EVENT_SPSUMMON_SUCCESS) - e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) end) + e1:SetCondition(function(e) return e:GetHandler():IsSynchroSummoned() end) e1:SetTarget(s.pctg) e1:SetOperation(s.pcop) c:RegisterEffect(e1) @@ -147,4 +147,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if Duel.IsPlayerAffectedByEffect(tp,CARD_BLUEEYES_SPIRIT) then return end tg:AddCard(c) Duel.SpecialSummon(tg,0,tp,tp,false,false,POS_FACEUP_ATTACK) -end +end \ No newline at end of file diff --git a/unofficial/c700000034.lua b/unofficial/c700000034.lua index a398b0f67b..e10d50535d 100644 --- a/unofficial/c700000034.lua +++ b/unofficial/c700000034.lua @@ -32,7 +32,7 @@ function s.spfilter(c,e,tp,rg,se) local minc=c.min_material_count local maxc=c.max_material_count if not minc then return false end - local mg2=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_DECK+LOCATION_EXTRA+LOCATION_GRAVE,0,nil,e,tp,c,se) + local mg2=Duel.GetMatchingGroup(s.matfilter,tp,LOCATION_DECK|LOCATION_EXTRA|LOCATION_GRAVE,0,nil,e,tp,c,se) if Duel.IsPlayerAffectedByEffect(tp,69832741) then local maxc2=math.min(#rg,maxc) local mft=Duel.GetLocationCount(tp,LOCATION_MZONE) @@ -86,7 +86,7 @@ function s.rmfilter(c) return c:IsSummonLocation(LOCATION_EXTRA) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsAbleToRemove() and aux.SpElimFilter(c,true) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - local rg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if chk==0 then return Duel.GetUsableMZoneCount(tp)>-1 and Duel.IsPlayerCanSpecialSummonCount(tp,2) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,rg) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) @@ -97,12 +97,12 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local fc=Duel.GetFirstTarget() - local rg=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.rmfilter),tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) + local rg=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.rmfilter),tp,LOCATION_MZONE|LOCATION_GRAVE,0,nil) if not fc or not fc:IsRelateToEffect(e) or not s.spfilter(fc,e,tp,rg,e) then return end local minc=fc.min_material_count local maxc=fc.max_material_count local rsg - local mg=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.matfilter),tp,LOCATION_DECK+LOCATION_EXTRA+LOCATION_GRAVE,0,nil,e,tp,fc,e) + local mg=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.matfilter),tp,LOCATION_DECK|LOCATION_EXTRA|LOCATION_GRAVE,0,nil,e,tp,fc,e) if Duel.IsPlayerAffectedByEffect(tp,69832741) then local maxc2=math.min(#rg,maxc) local mft=Duel.GetLocationCount(tp,LOCATION_MZONE) diff --git a/unofficial/c800000001.lua b/unofficial/c800000001.lua index 7940f57158..082b599130 100644 --- a/unofficial/c800000001.lua +++ b/unofficial/c800000001.lua @@ -20,4 +20,4 @@ function s.initial_effect(c) end function s.tg(e,c) return c:IsLevelBelow(4) and c:IsRace(RACE_INSECT+RACE_BEAST+RACE_PLANT+RACE_BEASTWARRIOR) -end +end \ No newline at end of file diff --git a/unofficial/c800000004.lua b/unofficial/c800000004.lua index 4169957b7f..871041685b 100644 --- a/unofficial/c800000004.lua +++ b/unofficial/c800000004.lua @@ -20,7 +20,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return eg:IsExists(s.cfilter,1,nil,tp) end function s.spfilter(c,e,tp) - return c:IsSetCard(0x8e) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_VAMPIRE) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 @@ -35,4 +35,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if tc then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c800000006.lua b/unofficial/c800000006.lua index be3ed21801..4eba943ef1 100644 --- a/unofficial/c800000006.lua +++ b/unofficial/c800000006.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.SendtoHand(tc,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c800000010.lua b/unofficial/c800000010.lua index 88a49c3163..acbe1657ea 100644 --- a/unofficial/c800000010.lua +++ b/unofficial/c800000010.lua @@ -10,4 +10,4 @@ function s.initial_effect(c) e1:SetCode(EFFECT_AVOID_BATTLE_DAMAGE) e1:SetValue(1) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c800000011.lua b/unofficial/c800000011.lua index dcac49b14e..5161a90d53 100644 --- a/unofficial/c800000011.lua +++ b/unofficial/c800000011.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(tp,tc) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c800000012.lua b/unofficial/c800000012.lua index a2d2ca1dfe..ae51175a6a 100644 --- a/unofficial/c800000012.lua +++ b/unofficial/c800000012.lua @@ -23,4 +23,4 @@ function s.initial_effect(c) e3:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e3:SetValue(-300) c:RegisterEffect(e3) -end +end \ No newline at end of file diff --git a/unofficial/c800000014.lua b/unofficial/c800000014.lua index 5c5c915d4a..0ab0b489e8 100644 --- a/unofficial/c800000014.lua +++ b/unofficial/c800000014.lua @@ -57,4 +57,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToBattle() then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c810000002.lua b/unofficial/c810000002.lua index 1b344bc38f..427ec3412a 100644 --- a/unofficial/c810000002.lua +++ b/unofficial/c810000002.lua @@ -103,4 +103,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end Duel.SendtoGrave(tc,REASON_EFFECT,1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c810000003.lua b/unofficial/c810000003.lua index 785cb5fcef..4581747947 100644 --- a/unofficial/c810000003.lua +++ b/unofficial/c810000003.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_PHASE+PHASE_END) e1:SetDescription(aux.Stringid(id,0)) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c810000005.lua b/unofficial/c810000005.lua index 26905d2f40..0fad3b686a 100644 --- a/unofficial/c810000005.lua +++ b/unofficial/c810000005.lua @@ -18,13 +18,13 @@ function s.rmfilter(c) return c:IsAbleToRemove() and aux.SpElimFilter(c) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and s.rmfilter(chkc) end - if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,5,nil) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and s.rmfilter(chkc) end + if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,5,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectTarget(tp,s.rmfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,5,5,nil) + local g=Duel.SelectTarget(tp,s.rmfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,5,5,nil) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,5,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetTargetCards(e) Duel.Remove(g,POS_FACEUP,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000006.lua b/unofficial/c810000006.lua index 6d317cfa3d..f406932b91 100644 --- a/unofficial/c810000006.lua +++ b/unofficial/c810000006.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if s<0 then s=p1-p2 end local d=math.floor(s/1000) Duel.Draw(tp,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000008.lua b/unofficial/c810000008.lua index c6e8a1005f..7547ec6ba1 100644 --- a/unofficial/c810000008.lua +++ b/unofficial/c810000008.lua @@ -41,4 +41,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) end function s.sdcon(e) return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_MZONE,0)>1 -end +end \ No newline at end of file diff --git a/unofficial/c810000009.lua b/unofficial/c810000009.lua index 009ca583be..ddc2091b91 100644 --- a/unofficial/c810000009.lua +++ b/unofficial/c810000009.lua @@ -31,4 +31,4 @@ function s.ntop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c810000011.lua b/unofficial/c810000011.lua index b0f9ace8b8..f230c3ee64 100644 --- a/unofficial/c810000011.lua +++ b/unofficial/c810000011.lua @@ -50,4 +50,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_ONFIELD,0,1,e:GetHandler()) then return end local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000014.lua b/unofficial/c810000014.lua index 4a549d6bc5..ce9f3c6a6a 100644 --- a/unofficial/c810000014.lua +++ b/unofficial/c810000014.lua @@ -57,4 +57,4 @@ end else dc[ac]=1 end Duel.SetDiceResult(table.unpack(dc)) end -end]]-- +end]]-- \ No newline at end of file diff --git a/unofficial/c810000016.lua b/unofficial/c810000016.lua index dcb3d0066b..5c84c9431f 100644 --- a/unofficial/c810000016.lua +++ b/unofficial/c810000016.lua @@ -34,4 +34,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if c:IsRelateToEffect(e) then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c810000018.lua b/unofficial/c810000018.lua index 50d2a54964..06692acc55 100644 --- a/unofficial/c810000018.lua +++ b/unofficial/c810000018.lua @@ -24,4 +24,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c810000019.lua b/unofficial/c810000019.lua index 4644955f7b..e65b6746d9 100644 --- a/unofficial/c810000019.lua +++ b/unofficial/c810000019.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil) then Duel.Damage(1-tp,800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c810000020.lua b/unofficial/c810000020.lua index 5ff3687bec..f283ae3b8a 100644 --- a/unofficial/c810000020.lua +++ b/unofficial/c810000020.lua @@ -30,4 +30,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c810000021.lua b/unofficial/c810000021.lua index f1f70f03fc..90edc0bb78 100644 --- a/unofficial/c810000021.lua +++ b/unofficial/c810000021.lua @@ -21,4 +21,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(sg,REASON_EFFECT) Duel.SetLP(tp,math.floor(Duel.GetLP(tp)/2)) Duel.SetLP(1-tp,math.floor(Duel.GetLP(1-tp)/2)) -end +end \ No newline at end of file diff --git a/unofficial/c810000022.lua b/unofficial/c810000022.lua index 4178a144b2..d546a6bbc4 100644 --- a/unofficial/c810000022.lua +++ b/unofficial/c810000022.lua @@ -30,4 +30,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(token,0,tp,tp,false,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c810000025.lua b/unofficial/c810000025.lua index e5216365e5..f79b21896c 100644 --- a/unofficial/c810000025.lua +++ b/unofficial/c810000025.lua @@ -25,4 +25,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.Damage(p,e:GetHandler():GetAttack(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000026.lua b/unofficial/c810000026.lua index 1e4ff8e1ed..2edc43f355 100644 --- a/unofficial/c810000026.lua +++ b/unofficial/c810000026.lua @@ -26,4 +26,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) then Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c810000027.lua b/unofficial/c810000027.lua index fbbd95d008..9f195c2bce 100644 --- a/unofficial/c810000027.lua +++ b/unofficial/c810000027.lua @@ -18,4 +18,4 @@ function s.ntcon(e,c) if c==nil then return true end return c:GetLevel()>4 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.filter,c:GetControler(),0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c810000029.lua b/unofficial/c810000029.lua index a3912136c1..b8d4ba03b7 100644 --- a/unofficial/c810000029.lua +++ b/unofficial/c810000029.lua @@ -28,4 +28,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.Destroy(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c810000031.lua b/unofficial/c810000031.lua index 5dcf4f474e..2119f68be8 100644 --- a/unofficial/c810000031.lua +++ b/unofficial/c810000031.lua @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1000) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c810000032.lua b/unofficial/c810000032.lua index 69160d0eaa..47d536bc0d 100644 --- a/unofficial/c810000032.lua +++ b/unofficial/c810000032.lua @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000033.lua b/unofficial/c810000033.lua index d2ef673355..eeb5a4947f 100644 --- a/unofficial/c810000033.lua +++ b/unofficial/c810000033.lua @@ -22,7 +22,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.filter(c) - return c:IsSetCard(0x95) and c:IsSpell() and c:IsAbleToHand() + return c:IsSetCard(SET_RANK_UP_MAGIC) and c:IsSpell() and c:IsAbleToHand() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK,0,1,nil) end @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c810000036.lua b/unofficial/c810000036.lua index 530b01e02a..779cda16af 100644 --- a/unofficial/c810000036.lua +++ b/unofficial/c810000036.lua @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c810000038.lua b/unofficial/c810000038.lua index 8db83da91b..26c953a301 100644 --- a/unofficial/c810000038.lua +++ b/unofficial/c810000038.lua @@ -52,4 +52,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c810000039.lua b/unofficial/c810000039.lua index 3436a2a487..203a0273c6 100644 --- a/unofficial/c810000039.lua +++ b/unofficial/c810000039.lua @@ -73,4 +73,4 @@ function s.spop2(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c810000040.lua b/unofficial/c810000040.lua index 8d4ee3877e..3f41efc69b 100644 --- a/unofficial/c810000040.lua +++ b/unofficial/c810000040.lua @@ -67,4 +67,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000042.lua b/unofficial/c810000042.lua index 07f3d2c68f..19ec0816b2 100644 --- a/unofficial/c810000042.lua +++ b/unofficial/c810000042.lua @@ -38,10 +38,10 @@ function s.regop(e,tp,eg,ep,ev,re,r,rp) pe:SetValue(500) end function s.atkcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local pe=e:GetLabelObject() local atk=pe:GetValue() pe:SetValue(atk+300) -end +end \ No newline at end of file diff --git a/unofficial/c810000044.lua b/unofficial/c810000044.lua index f6918e8dbd..626fa5a66f 100644 --- a/unofficial/c810000044.lua +++ b/unofficial/c810000044.lua @@ -54,4 +54,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c810000045.lua b/unofficial/c810000045.lua index 79eaf8b093..51561ce19b 100644 --- a/unofficial/c810000045.lua +++ b/unofficial/c810000045.lua @@ -18,4 +18,4 @@ function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.cfilter,c:GetControler(),0,LOCATION_MZONE,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c810000046.lua b/unofficial/c810000046.lua index 64269e2ac0..b0b56b63b3 100644 --- a/unofficial/c810000046.lua +++ b/unofficial/c810000046.lua @@ -55,4 +55,4 @@ function s.rttg(e,tp,eg,ep,ev,re,r,rp,chk) end function s.rtop(e,tp,eg,ep,ev,re,r,rp) Duel.ReturnToField(e:GetLabelObject()) -end +end \ No newline at end of file diff --git a/unofficial/c810000049.lua b/unofficial/c810000049.lua index ca9324ec4e..4a557e5a7b 100644 --- a/unofficial/c810000049.lua +++ b/unofficial/c810000049.lua @@ -52,4 +52,4 @@ function s.lvop(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD_DISABLE) c:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c810000050.lua b/unofficial/c810000050.lua index b7b3cea82c..22bb663d6b 100644 --- a/unofficial/c810000050.lua +++ b/unofficial/c810000050.lua @@ -34,4 +34,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp,c) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_SZONE,LOCATION_SZONE,1,1,nil,e) Duel.Destroy(g,REASON_COST) -end +end \ No newline at end of file diff --git a/unofficial/c810000051.lua b/unofficial/c810000051.lua index 64cd7fb198..82965c070f 100644 --- a/unofficial/c810000051.lua +++ b/unofficial/c810000051.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c) - return c:IsFaceup() and c:IsSetCard(0x33) + return c:IsFaceup() and c:IsSetCard(SET_BLACKWING) end function s.condition(e,tp,eg,ep,ev,re,r,rp) return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,2,nil) @@ -28,4 +28,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000052.lua b/unofficial/c810000052.lua index 10d1b926f7..90c1717a30 100644 --- a/unofficial/c810000052.lua +++ b/unofficial/c810000052.lua @@ -17,18 +17,18 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) return ep==tp end function s.filter(c,e,tp) - return c:IsSetCard(0x33) and c:GetLevel()<=4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_BLACKWING) and c:GetLevel()<=4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c810000054.lua b/unofficial/c810000054.lua index f81c8fc0fe..615857c0d4 100644 --- a/unofficial/c810000054.lua +++ b/unofficial/c810000054.lua @@ -26,12 +26,12 @@ function s.initial_effect(c) end s.listed_series={0x33} function s.rfilter(c) - return c:IsSetCard(0x33) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) + return c:IsSetCard(SET_BLACKWING) and c:IsMonster() and c:IsAbleToRemoveAsCost() and aux.SpElimFilter(c,true) end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end + if chk==0 then return Duel.IsExistingMatchingCard(s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil) + local g=Duel.SelectMatchingCard(tp,s.rfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -67,9 +67,9 @@ end function s.descost(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,0) - and Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,c) end + and Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,c) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) - local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,c) + local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,0,1,1,c) g=g+c Duel.Remove(g,POS_FACEUP,REASON_COST) end @@ -95,4 +95,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,dam,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c810000055.lua b/unofficial/c810000055.lua index 3c2973025a..e81cb8b6c3 100644 --- a/unofficial/c810000055.lua +++ b/unofficial/c810000055.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #sg>0 then Duel.SendtoGrave(sg,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c810000056.lua b/unofficial/c810000056.lua index eac808e617..5fee5c17a5 100644 --- a/unofficial/c810000056.lua +++ b/unofficial/c810000056.lua @@ -15,7 +15,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsSetCard(0x33) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_BLACKWING) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end @@ -32,4 +32,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000058.lua b/unofficial/c810000058.lua index 2a1aa29cc2..c380bc83cc 100644 --- a/unofficial/c810000058.lua +++ b/unofficial/c810000058.lua @@ -108,8 +108,8 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc:IsLocation(LOCATION_GRAVE) and Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)>0 then Duel.BreakEffect() local turnp=Duel.GetTurnPlayer() - Duel.SkipPhase(turnp,PHASE_MAIN1,RESET_PHASE+PHASE_END,1) - Duel.SkipPhase(turnp,PHASE_BATTLE,RESET_PHASE+PHASE_END,1,1) - Duel.SkipPhase(turnp,PHASE_MAIN2,RESET_PHASE+PHASE_END,1) + Duel.SkipPhase(turnp,PHASE_MAIN1,RESET_PHASE|PHASE_END,1) + Duel.SkipPhase(turnp,PHASE_BATTLE,RESET_PHASE|PHASE_END,1,1) + Duel.SkipPhase(turnp,PHASE_MAIN2,RESET_PHASE|PHASE_END,1) end -end +end \ No newline at end of file diff --git a/unofficial/c810000059.lua b/unofficial/c810000059.lua index 41e7b24453..d81e7d31ae 100644 --- a/unofficial/c810000059.lua +++ b/unofficial/c810000059.lua @@ -15,4 +15,4 @@ end s.listed_names={450000110} function s.condition(e) return Duel.IsEnvironment(450000110) -end +end \ No newline at end of file diff --git a/unofficial/c810000060.lua b/unofficial/c810000060.lua index 01e1f32146..5ac02ef5d6 100644 --- a/unofficial/c810000060.lua +++ b/unofficial/c810000060.lua @@ -59,4 +59,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(tc:GetAttack()*2) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c810000061.lua b/unofficial/c810000061.lua index 8a55296975..09488e16fe 100644 --- a/unofficial/c810000061.lua +++ b/unofficial/c810000061.lua @@ -30,4 +30,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,tc) end -end +end \ No newline at end of file diff --git a/unofficial/c810000062.lua b/unofficial/c810000062.lua index 2358328edf..06d13a714c 100644 --- a/unofficial/c810000062.lua +++ b/unofficial/c810000062.lua @@ -24,4 +24,4 @@ function s.initial_effect(c) end function s.filter(e,c) return c:IsMonster() -end +end \ No newline at end of file diff --git a/unofficial/c810000063.lua b/unofficial/c810000063.lua index 5e616ad9eb..71b016136a 100644 --- a/unofficial/c810000063.lua +++ b/unofficial/c810000063.lua @@ -23,4 +23,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoGrave(tc,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c810000064.lua b/unofficial/c810000064.lua index c736c52562..c41ede7952 100644 --- a/unofficial/c810000064.lua +++ b/unofficial/c810000064.lua @@ -64,4 +64,4 @@ function s.resetop(e,tp,eg,ep,ev,re,r,rp) e:GetLabelObject():Reset() e:Reset() end -end +end \ No newline at end of file diff --git a/unofficial/c810000069.lua b/unofficial/c810000069.lua index dc38b8029c..67afe252ad 100644 --- a/unofficial/c810000069.lua +++ b/unofficial/c810000069.lua @@ -50,4 +50,4 @@ function s.repval(e,re,r,rp) end function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.ChangeBattleDamage(tp,0) -end +end \ No newline at end of file diff --git a/unofficial/c810000071.lua b/unofficial/c810000071.lua index 60723d12dd..5b6fb8d009 100644 --- a/unofficial/c810000071.lua +++ b/unofficial/c810000071.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c810000075.lua b/unofficial/c810000075.lua index 24d1255582..65df0d5cb0 100644 --- a/unofficial/c810000075.lua +++ b/unofficial/c810000075.lua @@ -18,7 +18,7 @@ function s.initial_effect(c) end s.listed_names={39260991} function s.con(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c) return c:IsCode(39260991) and c:IsMonster() and c:IsAbleToHand() @@ -34,4 +34,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c810000077.lua b/unofficial/c810000077.lua index 937f1353c2..8fa4df1068 100644 --- a/unofficial/c810000077.lua +++ b/unofficial/c810000077.lua @@ -34,4 +34,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp,chk) e1:SetReset(RESET_EVENT|RESETS_STANDARD|RESET_PHASE|PHASE_DAMAGE_CAL) e1:SetValue(tc:GetAttack()*2) tc:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c810000078.lua b/unofficial/c810000078.lua index a2e9aff86b..9b24091a7f 100644 --- a/unofficial/c810000078.lua +++ b/unofficial/c810000078.lua @@ -19,4 +19,4 @@ function s.initial_effect(c) end function s.filter(e,c) return c:IsSetCard(0x1ca) -end +end \ No newline at end of file diff --git a/unofficial/c810000080.lua b/unofficial/c810000080.lua index 9f189d5679..645571f60f 100644 --- a/unofficial/c810000080.lua +++ b/unofficial/c810000080.lua @@ -82,4 +82,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000081.lua b/unofficial/c810000081.lua index 6c7129c714..0c1b14a6da 100644 --- a/unofficial/c810000081.lua +++ b/unofficial/c810000081.lua @@ -66,5 +66,5 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) end end function s.indes(e,c) - return not c:IsSetCard(0x48) -end + return not c:IsSetCard(SET_NUMBER) +end \ No newline at end of file diff --git a/unofficial/c810000082.lua b/unofficial/c810000082.lua index dfb32847fa..fd4f1eed67 100644 --- a/unofficial/c810000082.lua +++ b/unofficial/c810000082.lua @@ -19,11 +19,11 @@ function s.cfilter(c) return c:IsMonster() and c:IsAbleToGrave() end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,LOCATION_ONFIELD+LOCATION_HAND,1,nil) end - local sg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,LOCATION_ONFIELD+LOCATION_HAND,nil) + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_ONFIELD|LOCATION_HAND,LOCATION_ONFIELD|LOCATION_HAND,1,nil) end + local sg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_ONFIELD|LOCATION_HAND,LOCATION_ONFIELD|LOCATION_HAND,nil) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,sg,#sg,0,0) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local sg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_ONFIELD+LOCATION_HAND,LOCATION_ONFIELD+LOCATION_HAND,nil) + local sg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_ONFIELD|LOCATION_HAND,LOCATION_ONFIELD|LOCATION_HAND,nil) Duel.SendtoGrave(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000083.lua b/unofficial/c810000083.lua index 0966da5be0..ea30b0a946 100644 --- a/unofficial/c810000083.lua +++ b/unofficial/c810000083.lua @@ -48,4 +48,4 @@ function s.posop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) and tc:IsPosition(POS_FACEUP_ATTACK) then Duel.ChangePosition(tc,POS_FACEUP_DEFENSE) end -end +end \ No newline at end of file diff --git a/unofficial/c810000084.lua b/unofficial/c810000084.lua index 2735c84037..2b31b9f472 100644 --- a/unofficial/c810000084.lua +++ b/unofficial/c810000084.lua @@ -58,4 +58,4 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000085.lua b/unofficial/c810000085.lua index bffaf16012..b4cdfe31ea 100644 --- a/unofficial/c810000085.lua +++ b/unofficial/c810000085.lua @@ -37,4 +37,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c810000086.lua b/unofficial/c810000086.lua index bd8cdead89..0ea1f794cb 100644 --- a/unofficial/c810000086.lua +++ b/unofficial/c810000086.lua @@ -31,4 +31,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c810000087.lua b/unofficial/c810000087.lua index 6bfff926e7..de3213d7fe 100644 --- a/unofficial/c810000087.lua +++ b/unofficial/c810000087.lua @@ -45,4 +45,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.ConfirmCards(1-tp,g) end -end +end \ No newline at end of file diff --git a/unofficial/c810000088.lua b/unofficial/c810000088.lua index 516b41b9aa..93506e301d 100644 --- a/unofficial/c810000088.lua +++ b/unofficial/c810000088.lua @@ -22,4 +22,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end Duel.ShuffleHand(1-tp) end -end +end \ No newline at end of file diff --git a/unofficial/c810000089.lua b/unofficial/c810000089.lua index 29bb027433..d6c51c95b3 100644 --- a/unofficial/c810000089.lua +++ b/unofficial/c810000089.lua @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Equip(tp,e:GetHandler(),tc) end -end +end \ No newline at end of file diff --git a/unofficial/c810000090.lua b/unofficial/c810000090.lua index f03ba2c3cd..e56891af11 100644 --- a/unofficial/c810000090.lua +++ b/unofficial/c810000090.lua @@ -44,4 +44,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if e:GetHandler():IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then Duel.Equip(tp,e:GetHandler(),tc) end -end +end \ No newline at end of file diff --git a/unofficial/c810000091.lua b/unofficial/c810000091.lua index a05f1e6a57..d5509d46d8 100644 --- a/unofficial/c810000091.lua +++ b/unofficial/c810000091.lua @@ -31,12 +31,12 @@ function s.initial_effect(c) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() - if c:GetAttackedCount()==0 and Duel.GetTurnPlayer()==tp then + if c:GetAttackedCount()==0 and Duel.IsTurnPlayer(tp) then e:SetLabel(1) end end function s.clear(e,tp,eg,ep,ev,re,r,rp) - if e:GetLabelObject():GetLabel()==1 and Duel.GetTurnPlayer()==tp then + if e:GetLabelObject():GetLabel()==1 and Duel.IsTurnPlayer(tp) then e:GetLabelObject():SetLabel(0) end end @@ -76,4 +76,4 @@ function s.adop(e,tp,eg,ep,ev,re,r,rp) end function s.adcon(e) return e:GetHandler():GetAttackedCount()>0 -end +end \ No newline at end of file diff --git a/unofficial/c810000092.lua b/unofficial/c810000092.lua index 8604e6228a..9723db79bd 100644 --- a/unofficial/c810000092.lua +++ b/unofficial/c810000092.lua @@ -41,15 +41,15 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then if e:GetLabel()==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end e:SetLabel(0) - return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) + return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)>0 then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c810000093.lua b/unofficial/c810000093.lua index e220430989..2e53a7d08b 100644 --- a/unofficial/c810000093.lua +++ b/unofficial/c810000093.lua @@ -46,4 +46,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget() Duel.Destroy(tc,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000095.lua b/unofficial/c810000095.lua index 98c5fe9ce0..60edb19520 100644 --- a/unofficial/c810000095.lua +++ b/unofficial/c810000095.lua @@ -105,4 +105,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) if not g or not g:IsContains(tc) or not Duel.IsChainDisablable(ev) then return false end Duel.NegateEffect(ev) -end +end \ No newline at end of file diff --git a/unofficial/c810000096.lua b/unofficial/c810000096.lua index 807165aa0a..8cbff57e46 100644 --- a/unofficial/c810000096.lua +++ b/unofficial/c810000096.lua @@ -34,7 +34,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.PayLPCost(tp,800) end function s.cfilter(c,p) - return c:IsSetCard(0xb3) and c:IsPreviousControler(p) + return c:IsSetCard(SET_YOSENJU) and c:IsPreviousControler(p) and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) end function s.condition(e,tp,eg,ep,ev,re,r,rp) @@ -53,8 +53,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and e:GetHandler():GetFlagEffect(id)==0 + return Duel.IsTurnPlayer(tp) and e:GetHandler():GetFlagEffect(id)==0 end function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(e:GetHandler(),REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000097.lua b/unofficial/c810000097.lua index c48cec2f82..0a0a109425 100644 --- a/unofficial/c810000097.lua +++ b/unofficial/c810000097.lua @@ -26,7 +26,7 @@ end function s.spcon(e,c) if c==nil then return true end return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,0xa9),c:GetControler(),LOCATION_MZONE,0,1,nil) + and Duel.IsExistingMatchingCard(aux.FaceupFilter(Card.IsSetCard,SET_FLUFFAL),c:GetControler(),LOCATION_MZONE,0,1,nil) end function s.con(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() diff --git a/unofficial/c810000098.lua b/unofficial/c810000098.lua index 5c1a847413..3dc912a31e 100644 --- a/unofficial/c810000098.lua +++ b/unofficial/c810000098.lua @@ -13,18 +13,18 @@ function s.initial_effect(c) e2:SetType(EFFECT_TYPE_IGNITION) e2:SetRange(LOCATION_SZONE) e2:SetCost(s.spcost) - e2:SetTarget(Fusion.SummonEffTG(aux.FilterBoolFunction(Card.IsSetCard,0xad))) - e2:SetOperation(Fusion.SummonEffOP(aux.FilterBoolFunction(Card.IsSetCard,0xad))) + e2:SetTarget(Fusion.SummonEffTG(aux.FilterBoolFunction(Card.IsSetCard,SET_FRIGHTFUR))) + e2:SetOperation(Fusion.SummonEffOP(aux.FilterBoolFunction(Card.IsSetCard,SET_FRIGHTFUR))) c:RegisterEffect(e2) end s.listed_series={0x46,0xad} s.listed_names={CARD_POLYMERIZATION} function s.cfilter(c) - return (c:IsCode(CARD_POLYMERIZATION) or c:IsSetCard(0x46)) and c:IsAbleToRemoveAsCost() + return (c:IsCode(CARD_POLYMERIZATION) or c:IsSetCard(SET_FUSION)) and c:IsAbleToRemoveAsCost() end function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_GRAVE,0,1,1,nil) Duel.Remove(g,POS_FACEUP,REASON_COST) -end +end \ No newline at end of file diff --git a/unofficial/c810000100.lua b/unofficial/c810000100.lua index dcba2afbe3..79de6ef520 100644 --- a/unofficial/c810000100.lua +++ b/unofficial/c810000100.lua @@ -48,4 +48,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c810000101.lua b/unofficial/c810000101.lua index 5adbce7219..6ebfdff9d7 100644 --- a/unofficial/c810000101.lua +++ b/unofficial/c810000101.lua @@ -14,4 +14,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) and Duel.Destroy(e:GetHandler(),REASON_EFFECT+REASON_REPLACE) then Duel.ChangeBattleDamage(tp,0) end -end +end \ No newline at end of file diff --git a/unofficial/c810000102.lua b/unofficial/c810000102.lua index 409a0b18a0..4ba9b455e8 100644 --- a/unofficial/c810000102.lua +++ b/unofficial/c810000102.lua @@ -27,4 +27,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local sg=g:Filter(Card.IsRelateToEffect,nil,e) Duel.SpecialSummon(sg:GetFirst(),0,tp,tp,false,false,POS_FACEUP_DEFENSE) -end +end \ No newline at end of file diff --git a/unofficial/c810000103.lua b/unofficial/c810000103.lua index 9917941b68..a7ecf668aa 100644 --- a/unofficial/c810000103.lua +++ b/unofficial/c810000103.lua @@ -13,7 +13,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.filter(c,e,tp) - return c:IsSetCard(0xa9) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_FLUFFAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc,e,tp) end @@ -28,4 +28,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) if tc:IsRelateToEffect(e) then Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c810000105.lua b/unofficial/c810000105.lua index a14cc78626..edbd0fe0c3 100644 --- a/unofficial/c810000105.lua +++ b/unofficial/c810000105.lua @@ -14,7 +14,7 @@ function s.initial_effect(c) c:RegisterEffect(e1) end function s.cfilter(c) - return c:IsSetCard(0xa9) and c:IsMonster() and c:IsAbleToGraveAsCost() + return c:IsSetCard(SET_FLUFFAL) and c:IsMonster() and c:IsAbleToGraveAsCost() end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND,0,1,nil) end @@ -31,4 +31,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Draw(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c810000106.lua b/unofficial/c810000106.lua index 5d68c6b1f8..836b31a519 100644 --- a/unofficial/c810000106.lua +++ b/unofficial/c810000106.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --Activate - local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,0xad),Fusion.OnFieldMat(Card.IsAbleToRemove),s.fextra,Fusion.BanishMaterial,nil,nil,nil,nil,nil,nil,nil,nil,nil,s.extratg) + local e1=Fusion.CreateSummonEff(c,aux.FilterBoolFunction(Card.IsSetCard,SET_FRIGHTFUR),Fusion.OnFieldMat(Card.IsAbleToRemove),s.fextra,Fusion.BanishMaterial,nil,nil,nil,nil,nil,nil,nil,nil,nil,s.extratg) c:RegisterEffect(e1) end s.listed_series={0xad} @@ -16,5 +16,5 @@ function s.fextra(e,tp,mg) end function s.extratg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE+LOCATION_GRAVE) + Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_MZONE|LOCATION_GRAVE) end \ No newline at end of file diff --git a/unofficial/c810000107.lua b/unofficial/c810000107.lua index 102f1a5c40..e02237f944 100644 --- a/unofficial/c810000107.lua +++ b/unofficial/c810000107.lua @@ -21,7 +21,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) if tc:IsControler(1-tp) then tc,bc=bc,tc end - if not tc or not bc or tc:IsControler(1-tp) or not tc:IsSetCard(0xad) then return false end + if not tc or not bc or tc:IsControler(1-tp) or not tc:IsSetCard(SET_FRIGHTFUR) then return false end if tc:IsHasEffect(EFFECT_INDESTRUCTABLE_BATTLE) then local tcind={tc:GetCardEffect(EFFECT_INDESTRUCTABLE_BATTLE)} for i=1,#tcind do @@ -59,7 +59,7 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) end function s.cfilter(c,e,tp) return c:IsOnField() and c:IsMonster() and c:IsControler(tp) and (not e or c:IsRelateToEffect(e)) - and c:IsSetCard(0xad) + and c:IsSetCard(SET_FRIGHTFUR) end function s.condition2(e,tp,eg,ep,ev,re,r,rp) local ex,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY) @@ -94,4 +94,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) e3:SetValue(800) tc:RegisterEffect(e3) end -end +end \ No newline at end of file diff --git a/unofficial/c810000109.lua b/unofficial/c810000109.lua index 5c34a6aa0f..65c74648fb 100644 --- a/unofficial/c810000109.lua +++ b/unofficial/c810000109.lua @@ -4,7 +4,7 @@ local s,id=GetID() function s.initial_effect(c) --fusion material c:EnableReviveLimit() - Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunction(Card.IsSetCard,0xad),3) + Fusion.AddProcMixN(c,true,true,aux.FilterBoolFunction(Card.IsSetCard,SET_FRIGHTFUR),3) --special summon local e1=Effect.CreateEffect(c) e1:SetDescription(aux.Stringid(id,0)) @@ -86,4 +86,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) end function s.aclimit(e,re,tp) return re:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c810000110.lua b/unofficial/c810000110.lua index 843138825d..ba40c5d88b 100644 --- a/unofficial/c810000110.lua +++ b/unofficial/c810000110.lua @@ -35,4 +35,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) Duel.Damage(1-tp,atk,REASON_EFFECT) end end -end +end \ No newline at end of file diff --git a/unofficial/c810000111.lua b/unofficial/c810000111.lua index c7bac3b161..0a470e0565 100644 --- a/unofficial/c810000111.lua +++ b/unofficial/c810000111.lua @@ -17,10 +17,10 @@ function s.initial_effect(c) c:RegisterEffect(e2) end function s.thfilter(c) - return c:IsSetCard(0xa9) and c:IsAbleToHand() + return c:IsSetCard(SET_FLUFFAL) and c:IsAbleToHand() end function s.spfilter(c,e,tp) - return c:IsSetCard(0xa9) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) + return c:IsSetCard(SET_FLUFFAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.thfilter(chkc) end @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) end end -end +end \ No newline at end of file diff --git a/unofficial/c810000112.lua b/unofficial/c810000112.lua index 706b25384d..acc1201475 100644 --- a/unofficial/c810000112.lua +++ b/unofficial/c810000112.lua @@ -55,4 +55,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end function s.eqlimit(e,c) return c:IsRace(RACE_BEAST) -end +end \ No newline at end of file diff --git a/unofficial/c810000113.lua b/unofficial/c810000113.lua index 5af076b3b2..9ab7440d98 100644 --- a/unofficial/c810000113.lua +++ b/unofficial/c810000113.lua @@ -42,4 +42,4 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc=g:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c810000114.lua b/unofficial/c810000114.lua index 74634f3a66..b941af2973 100644 --- a/unofficial/c810000114.lua +++ b/unofficial/c810000114.lua @@ -32,10 +32,10 @@ function s.cfilter(c,p) end function s.checkop(e,tp,eg,ep,ev,re,r,rp) if eg:IsExists(s.cfilter,1,nil,0) then - Duel.RegisterFlagEffect(0,id,RESET_PHASE+PHASE_END,0,2) + Duel.RegisterFlagEffect(0,id,RESET_PHASE|PHASE_END,0,2) end if eg:IsExists(s.cfilter,1,nil,1) then - Duel.RegisterFlagEffect(1,id,RESET_PHASE+PHASE_END,0,2) + Duel.RegisterFlagEffect(1,id,RESET_PHASE|PHASE_END,0,2) end end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) diff --git a/unofficial/c95000000.lua b/unofficial/c95000000.lua index 6e600973ff..3937219fef 100644 --- a/unofficial/c95000000.lua +++ b/unofficial/c95000000.lua @@ -145,7 +145,7 @@ function s.stop(e) local hct=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0) Duel.Remove(c,POS_FACEUP,REASON_RULE) Duel.Hint(HINT_CARD,0,id) - local g=Duel.GetMatchingGroup(aux.NOT(Card.IsSetCard),tp,0xff,0,c,0x602) + local g=Duel.GetMatchingGroup(aux.NOT(Card.IsSetCard),tp,SET_CLEAR_WING,0,c,0x602) if #g>0 then Duel.SendtoDeck(g,nil,-2,REASON_RULE) end @@ -231,7 +231,7 @@ function s.repop(e,tp,eg,ep,ev,re,r,rp) Duel.Destroy(g,rs+REASON_REPLACE) end function s.effop(e,tp,eg,ep,ev,re,r,rp) - if Duel.GetTurnPlayer()==tp then return end + if Duel.IsTurnPlayer(tp) then return end local a=Duel.GetFlagEffect(1-tp,951)==0 local b=Duel.GetFlagEffect(1-tp,952)==0 local c=Duel.GetFlagEffect(1-tp,953)==0 diff --git a/unofficial/c95000002.lua b/unofficial/c95000002.lua index 9d5b2a2faf..2b6890ed8a 100644 --- a/unofficial/c95000002.lua +++ b/unofficial/c95000002.lua @@ -88,4 +88,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) if g then Duel.SendtoHand(g,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c95000003.lua b/unofficial/c95000003.lua index def9dae1ee..66f71e469b 100644 --- a/unofficial/c95000003.lua +++ b/unofficial/c95000003.lua @@ -48,7 +48,7 @@ function s.filter(c) return c:IsCode(95000004,95000005,95000006,95000007,95000008) and c:IsSSetable(true) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) - if chk==0 then return Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil):GetClassCount(Card.GetCode)==5 end + if chk==0 then return Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,1,nil):GetClassCount(Card.GetCode)==5 end end function s.rescon(sg,e,tp,mg) return sg:IsExists(Card.IsCode,1,nil,95000004) and sg:IsExists(Card.IsCode,1,nil,95000005) and sg:IsExists(Card.IsCode,1,nil,95000006) and sg:IsExists(Card.IsCode,1,nil,95000007) and sg:IsExists(Card.IsCode,1,nil,95000008) @@ -56,7 +56,7 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end if Duel.GetLocationCount(tp,LOCATION_SZONE)<5 then return end - local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_HAND,0,nil) + local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_HAND,0,nil) if not s.rescon(sg) then return end local setg=aux.SelectUnselectGroup(sg,e,tp,5,5,s.rescon,1,tp,HINTMSG_SET) if #sg>0 then @@ -85,4 +85,4 @@ end function s.thop(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.thfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler()) Duel.SendtoHand(g,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95000004.lua b/unofficial/c95000004.lua index 8b3173c684..9e312e0d77 100644 --- a/unofficial/c95000004.lua +++ b/unofficial/c95000004.lua @@ -43,4 +43,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) g3:SetStatus(STATUS_EFFECT_ENABLED,true) g3:SetStatus(STATUS_CHAINING,true) end -end +end \ No newline at end of file diff --git a/unofficial/c95000005.lua b/unofficial/c95000005.lua index 3ca5522830..0db9f53e73 100644 --- a/unofficial/c95000005.lua +++ b/unofficial/c95000005.lua @@ -69,4 +69,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.climit(e,lp,tp) return lp==tp or not e:IsHasType(EFFECT_TYPE_ACTIVATE) -end +end \ No newline at end of file diff --git a/unofficial/c95000006.lua b/unofficial/c95000006.lua index 29f6b1bd22..9b5088b539 100644 --- a/unofficial/c95000006.lua +++ b/unofficial/c95000006.lua @@ -52,4 +52,4 @@ end function s.op1(e,tp,eg,ep,ev,re,r,rp) Duel.DisableShuffleCheck() Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_RULE) -end +end \ No newline at end of file diff --git a/unofficial/c95000007.lua b/unofficial/c95000007.lua index 9ddbf4c73e..42e82c7fe6 100644 --- a/unofficial/c95000007.lua +++ b/unofficial/c95000007.lua @@ -61,4 +61,4 @@ end function s.op1(e,tp,eg,ep,ev,re,r,rp) Duel.DisableShuffleCheck() Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_RULE) -end +end \ No newline at end of file diff --git a/unofficial/c95000008.lua b/unofficial/c95000008.lua index 6046203524..acc59dadd7 100644 --- a/unofficial/c95000008.lua +++ b/unofficial/c95000008.lua @@ -53,4 +53,4 @@ end function s.op1(e,tp,eg,ep,ev,re,r,rp) Duel.DisableShuffleCheck() Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_RULE) -end +end \ No newline at end of file diff --git a/unofficial/c95000009.lua b/unofficial/c95000009.lua index ac83d18b5f..763c733b5c 100644 --- a/unofficial/c95000009.lua +++ b/unofficial/c95000009.lua @@ -57,4 +57,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoGrave(sg,REASON_EFFECT+REASON_DISCARD) Duel.ShuffleHand(1-p) end -end +end \ No newline at end of file diff --git a/unofficial/c95000010.lua b/unofficial/c95000010.lua index 41e0c72f23..d256758f42 100644 --- a/unofficial/c95000010.lua +++ b/unofficial/c95000010.lua @@ -55,4 +55,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.ConfirmCards(1-tc:GetControler(),tc) end -end +end \ No newline at end of file diff --git a/unofficial/c95000011.lua b/unofficial/c95000011.lua index b7b96c7e72..ddbace7186 100644 --- a/unofficial/c95000011.lua +++ b/unofficial/c95000011.lua @@ -27,4 +27,4 @@ function s.dirfilter(c) end function s.dircon(e) return Duel.IsExistingMatchingCard(s.dirfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c95000012.lua b/unofficial/c95000012.lua index 3c07e18b74..fd7ca5ede0 100644 --- a/unofficial/c95000012.lua +++ b/unofficial/c95000012.lua @@ -18,4 +18,4 @@ end s.mark=0 function s.valcon(e,re,r,rp) return r&REASON_EFFECT~=0 -end +end \ No newline at end of file diff --git a/unofficial/c95000013.lua b/unofficial/c95000013.lua index 33cd9f616b..21414abf4e 100644 --- a/unofficial/c95000013.lua +++ b/unofficial/c95000013.lua @@ -39,4 +39,4 @@ function s.dirfilter(c) end function s.dircon(e) return Duel.IsExistingMatchingCard(s.dirfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil) -end +end \ No newline at end of file diff --git a/unofficial/c95000014.lua b/unofficial/c95000014.lua index 0ab0a59962..02ff857d6d 100644 --- a/unofficial/c95000014.lua +++ b/unofficial/c95000014.lua @@ -82,11 +82,11 @@ function s.equipop(c,e,tp,tc) end end function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) - if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and s.eqfilter(chkc) end + if chkc then return chkc:IsLocation(LOCATION_MZONE|LOCATION_GRAVE) and s.eqfilter(chkc) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 - and Duel.IsExistingTarget(s.eqfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,1,e:GetHandler(),tp) end + and Duel.IsExistingTarget(s.eqfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,1,e:GetHandler(),tp) end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) - local g=Duel.SelectTarget(tp,s.eqfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,1,1,e:GetHandler(),tp) + local g=Duel.SelectTarget(tp,s.eqfilter,tp,LOCATION_MZONE|LOCATION_GRAVE,LOCATION_MZONE|LOCATION_GRAVE,1,1,e:GetHandler(),tp) Duel.SetOperationInfo(0,CATEGORY_EQUIP,g,1,0,0) end function s.eqop(e,tp,eg,ep,ev,re,r,rp) @@ -102,4 +102,4 @@ function s.damop(e,tp,eg,ep,ev,re,r,rp) if tp==ep then Duel.ChangeBattleDamage(1-ep,ev,false) end -end +end \ No newline at end of file diff --git a/unofficial/c95000015.lua b/unofficial/c95000015.lua index 1d2bda8928..e354dd0578 100644 --- a/unofficial/c95000015.lua +++ b/unofficial/c95000015.lua @@ -89,4 +89,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c95000016.lua b/unofficial/c95000016.lua index db5cacd478..44b7088d5c 100644 --- a/unofficial/c95000016.lua +++ b/unofficial/c95000016.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if tc and tc:IsRelateToEffect(e) then Duel.SendtoDeck(tc,1-tp,0,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c95000017.lua b/unofficial/c95000017.lua index 69b52e4ccd..60a2a327ce 100644 --- a/unofficial/c95000017.lua +++ b/unofficial/c95000017.lua @@ -49,7 +49,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end function s.filter(c,e) - return c:IsFaceup() and c:IsType(TYPE_TOKEN) and not c:IsImmuneToEffect(e) and c:IsSetCard(0x48) + return c:IsFaceup() and c:IsType(TYPE_TOKEN) and not c:IsImmuneToEffect(e) and c:IsSetCard(SET_NUMBER) end function s.atkop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil,e) @@ -63,4 +63,4 @@ function s.atkop(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e1) tc=sg:GetNext() end -end +end \ No newline at end of file diff --git a/unofficial/c95000018.lua b/unofficial/c95000018.lua index 3e8a9213fa..a5305abf88 100644 --- a/unofficial/c95000018.lua +++ b/unofficial/c95000018.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000019.lua b/unofficial/c95000019.lua index 624a549c21..c6ddbe0e51 100644 --- a/unofficial/c95000019.lua +++ b/unofficial/c95000019.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000020.lua b/unofficial/c95000020.lua index ab4daa1561..8ded47a04c 100644 --- a/unofficial/c95000020.lua +++ b/unofficial/c95000020.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000021.lua b/unofficial/c95000021.lua index eababe0a5b..0342518d20 100644 --- a/unofficial/c95000021.lua +++ b/unofficial/c95000021.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000023.lua b/unofficial/c95000023.lua index 867cc0bc00..f05f39a853 100644 --- a/unofficial/c95000023.lua +++ b/unofficial/c95000023.lua @@ -80,10 +80,10 @@ function s.cfilter(c,e,tp,eg,ep,ev,re,r,rp,chain,chk) end function s.accost(e,tp,eg,ep,ev,re,r,rp,chk) local chain=Duel.GetCurrentChain() - if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp,eg,ep,ev,re,r,rp,chain) end + if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp,eg,ep,ev,re,r,rp,chain) end chain=chain-1 Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) - local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp,eg,ep,ev,re,r,rp,chain,true) + local g=Duel.SelectMatchingCard(tp,s.cfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp,eg,ep,ev,re,r,rp,chain,true) copychain=0 Duel.SendtoGrave(g,REASON_COST) Duel.SetTargetCard(g:GetFirst()) @@ -129,4 +129,4 @@ function s.acop(e,tp,eg,ep,ev,re,r,rp) etc=g:GetNext() end end -end +end \ No newline at end of file diff --git a/unofficial/c95000024.lua b/unofficial/c95000024.lua index 0bd1d28a5f..bdd074c1bd 100644 --- a/unofficial/c95000024.lua +++ b/unofficial/c95000024.lua @@ -26,14 +26,14 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.activate(e,tp,eg,ep,ev,re,r,rp) if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp) + local g=Duel.SelectMatchingCard(tp,s.filter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp) if #g>0 then Duel.SpecialSummon(g,0,tp,tp,true,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c95000025.lua b/unofficial/c95000025.lua index 3bdcd41bab..d5b4bb3236 100644 --- a/unofficial/c95000025.lua +++ b/unofficial/c95000025.lua @@ -81,4 +81,4 @@ function s.desrepop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() tc:SetStatus(STATUS_DESTROY_CONFIRMED,false) Duel.Destroy(tc,REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c95000026.lua b/unofficial/c95000026.lua index 5811659926..4fea4c8fda 100644 --- a/unofficial/c95000026.lua +++ b/unofficial/c95000026.lua @@ -96,4 +96,4 @@ end function s.winop(e,tp,eg,ep,ev,re,r,rp) local WIN_REASON_NUMERRONIUS=0x52 Duel.Win(tp,WIN_REASON_NUMERRONIUS) -end +end \ No newline at end of file diff --git a/unofficial/c95000027.lua b/unofficial/c95000027.lua index fa959241ae..899fe39ec2 100644 --- a/unofficial/c95000027.lua +++ b/unofficial/c95000027.lua @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp,chk) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local tc=sg:Select(tp,1,1,nil):GetFirst() Duel.SpecialSummon(tc,0,tp,1-tp,false,false,POS_FACEUP) -end +end \ No newline at end of file diff --git a/unofficial/c95000028.lua b/unofficial/c95000028.lua index aa1803ca42..1557647314 100644 --- a/unofficial/c95000028.lua +++ b/unofficial/c95000028.lua @@ -88,4 +88,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c95000029.lua b/unofficial/c95000029.lua index 4519765ebd..bd360f568a 100644 --- a/unofficial/c95000029.lua +++ b/unofficial/c95000029.lua @@ -46,7 +46,7 @@ end s.listed_series={0x156e,0x4a} s.mark=0 function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.IsMainPhase() + return Duel.IsTurnPlayer(tp) and Duel.IsMainPhase() end function s.spfilter(c,e,tp) return c:IsSetCard(0x156e) and c:IsMonster() @@ -56,7 +56,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and e:GetHandler():GetFlagEffect(id)==0 end - e:GetHandler():RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,1) + e:GetHandler():RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,1) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) end function s.spop(e,tp,eg,ep,ev,re,r,rp) @@ -68,10 +68,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c) - return c:IsFaceup() and (c:IsSetCard(0x156e) or c:IsSetCard(0x4a)) + return c:IsFaceup() and (c:IsSetCard(0x156e) or c:IsSetCard(SET_TIMELORD)) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -82,4 +82,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95000030.lua b/unofficial/c95000030.lua index 2d05e4dc99..890f9d620b 100644 --- a/unofficial/c95000030.lua +++ b/unofficial/c95000030.lua @@ -132,4 +132,4 @@ end function s.lpop(e,tp,eg,ep,ev,re,r,rp) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) Duel.SetLP(p,Duel.GetLP(p)/2) -end +end \ No newline at end of file diff --git a/unofficial/c95000031.lua b/unofficial/c95000031.lua index 5563821bdd..7912c914a5 100644 --- a/unofficial/c95000031.lua +++ b/unofficial/c95000031.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000032.lua b/unofficial/c95000032.lua index 4caead7a61..f05501663f 100644 --- a/unofficial/c95000032.lua +++ b/unofficial/c95000032.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000033.lua b/unofficial/c95000033.lua index 23c149ea1a..176d13a1f8 100644 --- a/unofficial/c95000033.lua +++ b/unofficial/c95000033.lua @@ -133,4 +133,4 @@ end function s.tdop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,nil) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95000034.lua b/unofficial/c95000034.lua index 0103a09e6d..1467287d74 100644 --- a/unofficial/c95000034.lua +++ b/unofficial/c95000034.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000035.lua b/unofficial/c95000035.lua index 42972c5fbf..1e2960d3e0 100644 --- a/unofficial/c95000035.lua +++ b/unofficial/c95000035.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000036.lua b/unofficial/c95000036.lua index c8634bfa18..a516b991ea 100644 --- a/unofficial/c95000036.lua +++ b/unofficial/c95000036.lua @@ -59,4 +59,4 @@ end function s.damop(e,tp,eg,ep,ev,re,r,rp) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) Duel.Damage(p,d,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95000037.lua b/unofficial/c95000037.lua index 624305ed0b..a2dc62dd0b 100644 --- a/unofficial/c95000037.lua +++ b/unofficial/c95000037.lua @@ -51,7 +51,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) Duel.SendtoGrave(g,REASON_COST) end function s.spcon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp and Duel.IsMainPhase() + return Duel.IsTurnPlayer(tp) and Duel.IsMainPhase() end function s.spfilter(c,e,tp) return c:IsSetCard(0x156e) and c:IsMonster() @@ -61,7 +61,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND,0,1,nil,e,tp) and e:GetHandler():GetFlagEffect(id)==0 end - e:GetHandler():RegisterFlagEffect(id,RESET_PHASE+PHASE_END,0,1) + e:GetHandler():RegisterFlagEffect(id,RESET_PHASE|PHASE_END,0,1) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) end function s.spop(e,tp,eg,ep,ev,re,r,rp) @@ -73,10 +73,10 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) end end function s.descon(e,tp,eg,ep,ev,re,r,rp) - return Duel.GetTurnPlayer()==tp + return Duel.IsTurnPlayer(tp) end function s.filter(c) - return c:IsFaceup() and (c:IsSetCard(0x156e) or c:IsSetCard(0x4a)) + return c:IsFaceup() and (c:IsSetCard(0x156e) or c:IsSetCard(SET_TIMELORD)) end function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end @@ -87,4 +87,4 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) then return end local sg=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,0,nil) Duel.Destroy(sg,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95000038.lua b/unofficial/c95000038.lua index 07fb67907d..d5c701dc8f 100644 --- a/unofficial/c95000038.lua +++ b/unofficial/c95000038.lua @@ -133,4 +133,4 @@ end function s.tdop(e,tp,eg,ep,ev,re,r,rp) local sg=Duel.GetMatchingGroup(Card.IsAbleToDeck,tp,0,LOCATION_GRAVE,nil) Duel.SendtoDeck(sg,nil,2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95000039.lua b/unofficial/c95000039.lua index 446438d57c..98bb23c69b 100644 --- a/unofficial/c95000039.lua +++ b/unofficial/c95000039.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000040.lua b/unofficial/c95000040.lua index 0728cbab1c..2f2a042b4b 100644 --- a/unofficial/c95000040.lua +++ b/unofficial/c95000040.lua @@ -8,4 +8,4 @@ function s.initial_effect(c) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetValue(TYPE_NORMAL) c:RegisterEffect(e1) -end +end \ No newline at end of file diff --git a/unofficial/c95000041.lua b/unofficial/c95000041.lua index c8e37f83bd..995220a2ec 100644 --- a/unofficial/c95000041.lua +++ b/unofficial/c95000041.lua @@ -34,14 +34,14 @@ function s.spfilter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 - and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) + and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,nil,e,tp) end + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND|LOCATION_DECK) end function s.operation(e,tp,eg,ep,ev,re,r,rp) if not e:GetHandler():IsRelateToEffect(e) or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) - local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() + local tc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_HAND|LOCATION_DECK,0,1,1,nil,e,tp):GetFirst() if tc and Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) then tc:CompleteProcedure() end -end +end \ No newline at end of file diff --git a/unofficial/c95000042.lua b/unofficial/c95000042.lua index 56f8a9329f..afd2fe6c4b 100644 --- a/unofficial/c95000042.lua +++ b/unofficial/c95000042.lua @@ -45,17 +45,17 @@ end s.listed_series={0x156e,0x4a} s.mark=3 function s.atktg(e,c) - return c~=e:GetHandler() and (c:IsSetCard(0x156e) or c:IsSetCard(0x4a)) + return c~=e:GetHandler() and (c:IsSetCard(0x156e) or c:IsSetCard(SET_TIMELORD)) end function s.filter(c) - return c:IsFaceup() and (c:IsSetCard(0x156e) or c:IsSetCard(0x4a)) + return c:IsFaceup() and (c:IsSetCard(0x156e) or c:IsSetCard(SET_TIMELORD)) end function s.atkval(e,c) local g=Duel.GetMatchingGroup(s.filter,c:GetControler(),LOCATION_MZONE,0,nil) return g:GetSum(Card.GetAttack) end function s.repfilter(c) - return (c:IsSetCard(0x156e) or c:IsSetCard(0x4a)) and not c:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED) + return (c:IsSetCard(0x156e) or c:IsSetCard(SET_TIMELORD)) and not c:IsStatus(STATUS_DESTROY_CONFIRMED+STATUS_BATTLE_DESTROYED) end function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() @@ -74,4 +74,4 @@ function s.desrepop(e,tp,eg,ep,ev,re,r,rp) local tc=e:GetLabelObject() tc:SetStatus(STATUS_DESTROY_CONFIRMED,false) Duel.Destroy(tc,REASON_EFFECT+REASON_REPLACE) -end +end \ No newline at end of file diff --git a/unofficial/c95200000.lua b/unofficial/c95200000.lua index 4105303315..43b2eb70f2 100644 --- a/unofficial/c95200000.lua +++ b/unofficial/c95200000.lua @@ -70,4 +70,4 @@ end s.command = { 95200001,95200002,95200003,95200004,95200005,95200006,95200007,95200008,95200009, 95200010,95200011,95200012,95200013,95200014,95200015,95200016,95200017,95200018, - 95200019,95200020,95200021,95200022,95200023,95200024,95200025,95200101,95200102} + 95200019,95200020,95200021,95200022,95200023,95200024,95200025,95200101,95200102} \ No newline at end of file diff --git a/unofficial/c95200001.lua b/unofficial/c95200001.lua index 9e4f3b2ac0..513958a249 100644 --- a/unofficial/c95200001.lua +++ b/unofficial/c95200001.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sg1:Merge(sg2) Duel.SendtoHand(sg1,nil,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c95200002.lua b/unofficial/c95200002.lua index 3580e2a19c..e953b5a2b8 100644 --- a/unofficial/c95200002.lua +++ b/unofficial/c95200002.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) sg1:Merge(sg2) Duel.SendtoGrave(sg1,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c95200004.lua b/unofficial/c95200004.lua index 006a42bd4f..df826bfcf1 100644 --- a/unofficial/c95200004.lua +++ b/unofficial/c95200004.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(1-tp,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95200005.lua b/unofficial/c95200005.lua index 939ec740ca..37a6f9cd31 100644 --- a/unofficial/c95200005.lua +++ b/unofficial/c95200005.lua @@ -25,4 +25,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,tc1) Duel.ConfirmCards(tp,tc2) end -end +end \ No newline at end of file diff --git a/unofficial/c95200006.lua b/unofficial/c95200006.lua index 3075f509b6..6fd51110f4 100644 --- a/unofficial/c95200006.lua +++ b/unofficial/c95200006.lua @@ -28,4 +28,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,2,REASON_EFFECT) Duel.Draw(1-tp,2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95200007.lua b/unofficial/c95200007.lua index 8267afecd3..03e0c7fde0 100644 --- a/unofficial/c95200007.lua +++ b/unofficial/c95200007.lua @@ -24,4 +24,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) local sg2=g2:Select(1-tp,1,1,nil) Duel.SSet(1-tp,sg2:GetFirst()) end -end +end \ No newline at end of file diff --git a/unofficial/c95200008.lua b/unofficial/c95200008.lua index 36fc2e56ad..2599ff1bad 100644 --- a/unofficial/c95200008.lua +++ b/unofficial/c95200008.lua @@ -32,4 +32,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) g:Merge(sg2) end Duel.Destroy(g,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95200009.lua b/unofficial/c95200009.lua index 684fa4d035..8211c982ac 100644 --- a/unofficial/c95200009.lua +++ b/unofficial/c95200009.lua @@ -41,4 +41,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.ConfirmCards(1-tp,hsg1) Duel.ConfirmCards(tp,hsg2) end -end +end \ No newline at end of file diff --git a/unofficial/c95200010.lua b/unofficial/c95200010.lua index fb6fcad46d..269f26e61f 100644 --- a/unofficial/c95200010.lua +++ b/unofficial/c95200010.lua @@ -26,4 +26,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.BreakEffect() Duel.Draw(tp,#g1,REASON_EFFECT) Duel.Draw(1-tp,#g2,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95200011.lua b/unofficial/c95200011.lua index 90f7dae5ce..0c12485a93 100644 --- a/unofficial/c95200011.lua +++ b/unofficial/c95200011.lua @@ -17,4 +17,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.RockPaperScissors() Duel.Recover(p,2000,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95200012.lua b/unofficial/c95200012.lua index 67c4e89074..f607496d8e 100644 --- a/unofficial/c95200012.lua +++ b/unofficial/c95200012.lua @@ -25,4 +25,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SpecialSummon(g,0,p,p,false,false,POS_FACEUP) end -end +end \ No newline at end of file diff --git a/unofficial/c95200013.lua b/unofficial/c95200013.lua index 9a4fdd06f1..173359aae8 100644 --- a/unofficial/c95200013.lua +++ b/unofficial/c95200013.lua @@ -17,4 +17,4 @@ end function s.operation(e,tp,eg,ep,ev,re,r,rp) local p=Duel.RockPaperScissors() Duel.Draw(p,1,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95200014.lua b/unofficial/c95200014.lua index f5979405ee..148bee7006 100644 --- a/unofficial/c95200014.lua +++ b/unofficial/c95200014.lua @@ -27,4 +27,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c95200015.lua b/unofficial/c95200015.lua index bcc0172015..95e1020728 100644 --- a/unofficial/c95200015.lua +++ b/unofficial/c95200015.lua @@ -33,4 +33,4 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) if p~=PLAYER_ALL then Duel.Recover(p,d,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c95200016.lua b/unofficial/c95200016.lua index 2117aec226..342b951c16 100644 --- a/unofficial/c95200016.lua +++ b/unofficial/c95200016.lua @@ -20,4 +20,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.atkval(e,c) return c:GetBaseAttack()*2 -end +end \ No newline at end of file diff --git a/unofficial/c95200017.lua b/unofficial/c95200017.lua index 81f7e3933e..ec4fdc0f20 100644 --- a/unofficial/c95200017.lua +++ b/unofficial/c95200017.lua @@ -39,4 +39,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) tc:RegisterEffect(e2) tc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) end -end +end \ No newline at end of file diff --git a/unofficial/c95200018.lua b/unofficial/c95200018.lua index cd838d39b9..040161d3c4 100644 --- a/unofficial/c95200018.lua +++ b/unofficial/c95200018.lua @@ -17,4 +17,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetValue(1) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c95200019.lua b/unofficial/c95200019.lua index 39e5961ac0..978ce8cab3 100644 --- a/unofficial/c95200019.lua +++ b/unofficial/c95200019.lua @@ -16,4 +16,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_WIND+ATTRIBUTE_EARTH)) e1:SetReset(RESET_PHASE+PHASE_END) Duel.RegisterEffect(e1,tp) -end +end \ No newline at end of file diff --git a/unofficial/c95200020.lua b/unofficial/c95200020.lua index b88f7acc6e..602d6aa981 100644 --- a/unofficial/c95200020.lua +++ b/unofficial/c95200020.lua @@ -20,4 +20,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end function s.actfilter(e,c) return c:IsAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK) -end +end \ No newline at end of file diff --git a/unofficial/c95200021.lua b/unofficial/c95200021.lua index 64e6cee1cf..b203af6202 100644 --- a/unofficial/c95200021.lua +++ b/unofficial/c95200021.lua @@ -19,4 +19,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) tc:RegisterEffect(e1) end -end +end \ No newline at end of file diff --git a/unofficial/c95200022.lua b/unofficial/c95200022.lua index 766ad4329c..b49a2da2a5 100644 --- a/unofficial/c95200022.lua +++ b/unofficial/c95200022.lua @@ -13,4 +13,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) if #g~=0 then Duel.SendtoGrave(g,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c95200023.lua b/unofficial/c95200023.lua index 8f66e0b3cb..d01820cc48 100644 --- a/unofficial/c95200023.lua +++ b/unofficial/c95200023.lua @@ -21,4 +21,4 @@ end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) Duel.SendtoHand(g,nil,REASON_EFFECT) -end +end \ No newline at end of file diff --git a/unofficial/c95200024.lua b/unofficial/c95200024.lua index 5c9d87d6ed..264f042540 100644 --- a/unofficial/c95200024.lua +++ b/unofficial/c95200024.lua @@ -68,4 +68,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) end end end -end +end \ No newline at end of file diff --git a/unofficial/c95200025.lua b/unofficial/c95200025.lua index befe795f04..ca64c768fe 100644 --- a/unofficial/c95200025.lua +++ b/unofficial/c95200025.lua @@ -33,4 +33,4 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) if ((op2 and check) or (not op2 and not check)) then Duel.Recover(1-tp,800,REASON_EFFECT) end -end +end \ No newline at end of file diff --git a/unofficial/c95200101.lua b/unofficial/c95200101.lua index 1e6b87e115..c4f22dadc3 100644 --- a/unofficial/c95200101.lua +++ b/unofficial/c95200101.lua @@ -15,11 +15,11 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,PLAYER_ALL,LOCATION_DECK+LOCATION_EXTRA) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,PLAYER_ALL,LOCATION_DECK|LOCATION_EXTRA) end function s.activate(e,tp,eg,ep,ev,re,r,rp) - local g1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil,e,tp) - local g2=Duel.GetMatchingGroup(s.filter,1-tp,LOCATION_DECK+LOCATION_EXTRA,0,nil,e,tp) + local g1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_DECK|LOCATION_EXTRA,0,nil,e,tp) + local g2=Duel.GetMatchingGroup(s.filter,1-tp,LOCATION_DECK|LOCATION_EXTRA,0,nil,e,tp) if #g1>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(25200959,0)) then Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) local sg1=g1:Select(tp,1,1,nil) @@ -31,4 +31,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.SpecialSummonStep(sg2:GetFirst(),0,1-tp,1-tp,true,false,POS_FACEUP) end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/c95200102.lua b/unofficial/c95200102.lua index b283ef6d0c..aa7b702e18 100644 --- a/unofficial/c95200102.lua +++ b/unofficial/c95200102.lua @@ -15,7 +15,7 @@ function s.filter(c,e,tp) end function s.target(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return true end - Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,PLAYER_ALL,LOCATION_DECK+LOCATION_EXTRA) + Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,PLAYER_ALL,LOCATION_DECK|LOCATION_EXTRA) end function s.activate(e,tp,eg,ep,ev,re,r,rp) local g1=Duel.GetMatchingGroup(s.filter,tp,LOCATION_EXTRA,0,nil,e,tp) @@ -35,4 +35,4 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) end end Duel.SpecialSummonComplete() -end +end \ No newline at end of file diff --git a/unofficial/proc_unofficial.lua b/unofficial/proc_unofficial.lua index 70f0c19807..07d34c1910 100644 --- a/unofficial/proc_unofficial.lua +++ b/unofficial/proc_unofficial.lua @@ -64,7 +64,7 @@ function Auxiliary.RankUpCheckCondition(condition,...) for _,flagLabel in ipairs(flagLabels) do if nameFilter[flagLabel] then return true end end - return e:GetLabel()==1 and e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) + return e:GetLabel()==1 and e:GetHandler():IsXyzSummoned() and (not condition or condition(e,tp,eg,ep,ev,re,r,rp)) end end @@ -716,7 +716,7 @@ function UnofficialProc.cannotBattleIndes() end end local function batregop(e,tp,eg,ep,ev,re,r,rp) - local tg=Duel.GetMatchingGroup(nil,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,nil) + local tg=Duel.GetMatchingGroup(nil,tp,LOCATION_ONFIELD|LOCATION_GRAVE,LOCATION_ONFIELD|LOCATION_GRAVE,nil) for tc in tg:Iter() do local indes={tc:GetCardEffect(EFFECT_INDESTRUCTABLE)} local indesBattle={tc:GetCardEffect(EFFECT_INDESTRUCTABLE_BATTLE)} @@ -1147,4 +1147,4 @@ function UnofficialProc.divineHierarchy() local ge5=ge1:Clone() ge5:SetLabelObject(im) Duel.RegisterEffect(ge5,0) -end +end \ No newline at end of file