Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -116,33 +116,30 @@ end end end end fun["一_开局添加手卡"] = function(u1) + local h1, h2 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 + --~ 效果 + 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()