Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -109,29 +109,41 @@ return true end end end end -function s["开局选牌入手"](u1) - local h1, h2 - str["开局选牌入手之数"] = u1 - --~ 效果 - h1 = Effect.GlobalEffect() - h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) - h1:SetCode(EVENT_ADJUST) - h1:SetCondition(aux.TRUE) - --~ 调该效果的效果 - --~ 调该效果的玩家 +do + --~ “调该效果”的效果 + --~ 效果,其调该效果 + --~ “调该效果”的玩家 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) + function s["开局选牌入手"](u1) + local h1, h2 + 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 end function s["禁格"](u1) local h1 s["禁格之数"] = u1 --~ 效果