62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
+
-
+
-
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
|
str["随机抽卡的数量"] = u1
--~ 效果
h1 = Effect.GlobalEffect()
h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
h1:SetCode(EVENT_ADJUST)
h1:SetCondition(aux.TRUE)
-- 随机抽卡
--~ 调该效果的效果
function h2(effect_event)
function h2(u2)
Duel.ShuffleDeck(0)
Duel.Draw(0, u1, REASON_RULE)
effect_event:Reset()
u2:Reset()
end
h1:SetOperation(h2)
Duel.RegisterEffect(h1, 0)
end
fun["一_该效果不能被连锁"] = function()
Duel.SetChainLimit(aux.FALSE)
return true
end
do
local h1, h2
fun["一_通关邀请"] = function()
--~ 原解邀请
--备用:圣魔术师
str["原解邀请"] = "残局群181175613"
str["二解邀请"] = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
str["效果"] = Effect.GlobalEffect()
str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
str["效果"]:SetCode(EVENT_DAMAGE)
function cache_1()
cache_1 = Duel.GetLP(1)
if cache_1 <= 0 then
if cache_1 == 0 then
else
Debug.ShowHint(str["二解邀请"])
end
h1 = "残局群181175613"
--~ 二解邀请,备用:圣魔术师
h2 = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」"
fun["一_通关邀请"] = function()
local h3, h4
--~ 效果
h3 = Effect.GlobalEffect()
h3:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
h3:SetCode(EVENT_DAMAGE)
--~ 通关之邀
function h4()
local h5
--~ 对方之血
h5 = Duel.GetLP(1)
if h5 <= 0 then
if h5 == 0 then
Debug.ShowHint(h1)
else
Debug.ShowHint(h2)
end
Debug.ShowHint(str["原解邀请"])
else
return false
end
end
str["效果"]:SetCondition(cache_1)
str["效果"]:SetOperation(aux.NULL)
Duel.RegisterEffect(str["效果"], 0)
end
else
return false
end
end
h3:SetCondition(h4)
h3:SetOperation(aux.NULL)
Duel.RegisterEffect(h3, 0)
end
end
fun["一_是否效果卡"] = function(card)
for i = 1, #str["效果卡的种类表"] do
if Card.IsType(card, str["效果卡的种类表"][i]) then
return true
end
end
if Card.IsType(card, TYPE_PENDULUM) then
|