1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
-
+
-
+
-
-
+
+
+
-
-
+
+
-
-
+
+
|
local string = string
local table = table
local Debug = Debug
local Effect = Effect
local Duel = Duel
local Card = Card
local d = {}
local f = {}
d["排_效果卡的类型"] = {
d["排_效果卡之类型"] = {
TYPE_SPELL,
TYPE_TRAP,
TYPE_EFFECT,
}
d["排_非效果灵摆怪兽的卡编"] = {
d["排_非效果灵摆怪兽之卡片编号"] = {
28363749,
19474136,
17390179,
83980492,
}
d["数_所有区域"] = LOCATION_HAND + LOCATION_MZONE + LOCATION_SZONE + LOCATION_GRAVE + LOCATION_REMOVED + LOCATION_DECK + LOCATION_EXTRA
do
local k1
--~ 这一局所适用规则的对
k1 = {
[3] = "大师规则三(2014) ",
[4] = "新大师规则(2017) ",
[5] = "大师规则(2020) ",
}
f["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin
--~ 这一局的模式
--~ 规则参数
--~ 数_这一局的模式
--~ 数_规则参数
function _G.Debug.ReloadFieldBegin(o1, o2)
d["数_假洗卡"] = o1 & DUEL_PSEUDO_SHUFFLE
d["数_战斗阶段"] = o1 & DUEL_ATTACK_FIRST_TURN
d["数_人工智能"] = o1 & DUEL_SIMPLE_AI
if o2 then
d["字_这一局的规则"] = k1[o2]
else
d["字_这一局的规则"] = k1[5]
end
local k1
f["Debug.ReloadFieldBegin"](o1, o2)
end
end
f["不被连锁"] = function()
Duel.SetChainLimit(aux.FALSE)
return true
end
f["是否有效果卡"] = function(card)
for i = 1, #d["排_效果卡的类型"] do
if Card.IsType(card, d["排_效果卡的类型"][i]) then
for i = 1, #d["排_效果卡之类型"] do
if Card.IsType(card, d["排_效果卡之类型"][i]) then
return true
end
end
if Card.IsType(card, TYPE_PENDULUM) then
for i = 1, #d["排_非效果灵摆怪兽的卡编"] do
if Card.IsCode(card, d["排_非效果灵摆怪兽的卡编"][i]) then
for i = 1, #d["排_非效果灵摆怪兽之卡片编号"] do
if Card.IsCode(card, d["排_非效果灵摆怪兽之卡片编号"][i]) then
return false
else
end
end
return true
end
end
|