Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -39,27 +39,29 @@ end s["Debug.ReloadFieldBegin"](u1, u2) end end do + local h1 + --~ 调该效果的效果 + function s["_开局洗牌抽牌"](u1) + Duel.ShuffleDeck(0) + --~ 抽卡之数 + Duel.Draw(0, h1, REASON_RULE) + u1:Reset() + end function s["开局洗牌抽牌"](u1) - local h1, h2 + local h2 s["开局洗牌抽牌之数"] = u1 --~ 效果 - h1 = Effect.GlobalEffect() - h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) - h1:SetCode(EVENT_ADJUST) - h1:SetCondition(aux.TRUE) - -- 随机抽牌 - --~ 调该效果的效果 - function h2(u2) - Duel.ShuffleDeck(0) - Duel.Draw(0, u1, REASON_RULE) - u2:Reset() - end - h1:SetOperation(h2) - Duel.RegisterEffect(h1, 0) + h2 = Effect.GlobalEffect() + h2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) + h2:SetCode(EVENT_ADJUST) + h2:SetCondition(aux.TRUE) + h1 = u1 + h2:SetOperation(s["_开局洗牌抽牌"]) + Duel.RegisterEffect(h2, 0) end end function s.["不被连锁"]() Duel.SetChainLimit(aux.FALSE) return true