114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
else
return true
end
end
end
end
fun["一_开局添加手卡"] = function(u1)
str["开局添加手卡"] = true
str["开局添加手卡的数量"] = u1
str["效果"] = Effect.GlobalEffect()
str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
str["效果"]:SetCode(EVENT_ADJUST)
str["效果"]:SetCondition(aux.TRUE)
function cache_1(effect_event, player_who_activate_the_effect)
str["玩家选定的卡"] = Duel.SelectMatchingCard(
player_who_activate_the_effect,
Card.IsAbleToHand,
player_who_activate_the_effect,
LOCATION_DECK,
0,
u1,
u1,
nil
)
Duel.SendtoHand(str["玩家选定的卡"], nil, REASON_RULE)
effect_event:Reset()
end
str["效果"]:SetOperation(cache_1)
Duel.RegisterEffect(str["效果"], 0)
end
fun["一_禁格"] = function(u1)
local h1
s["禁格之数"] = u1
--~ 效果
h1 = Effect.GlobalEffect()
h1:SetCode(EFFECT_USE_EXTRA_MZONE)
h1:SetValue(u1)
|
>
>
|
|
|
|
>
>
|
>
|
<
|
<
<
<
<
<
<
<
|
|
|
|
|
|
|
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
else
return true
end
end
end
end
fun["一_开局添加手卡"] = function(u1)
local h1, h2
str["开局添加手卡"] = true
str["开局添加手卡的数量"] = u1
--~ 效果
h1 = Effect.GlobalEffect()
h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
h1:SetCode(EVENT_ADJUST)
h1:SetCondition(aux.TRUE)
--~ 调该效果的效果
--~ 调该效果的玩家
function h2(u2, u3)
local h3
--~ 玩家选定的卡
h3 = Duel.SelectMatchingCard(u3, Card.IsAbleToHand, u3, LOCATION_DECK, 0, u1, u1, nil)
Duel.SendtoHand(h3, nil, REASON_RULE)
u2:Reset()
end
h1:SetOperation(h2)
Duel.RegisterEffect(h1, 0)
end
fun["一_禁格"] = function(u1)
local h1
s["禁格之数"] = u1
--~ 效果
h1 = Effect.GlobalEffect()
h1:SetCode(EFFECT_USE_EXTRA_MZONE)
h1:SetValue(u1)
|