Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -40,11 +40,11 @@ s["Debug.ReloadFieldBegin"](u1, u2) end end do local h1 - --~ 调该效果的效果 + --~ “调该效果”的效果 function s["_开局洗牌抽牌"](u1) Duel.ShuffleDeck(0) --~ 抽卡之数 Duel.Draw(0, h1, REASON_RULE) u1:Reset() @@ -70,34 +70,32 @@ local h1, h2 --~ 原解邀请 h1 = "残局群181175613" --~ 二解邀请,备用:圣魔术师 h2 = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」" - function s["通关之邀"]() - 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 - else - return false - end - end - h3:SetCondition(h4) - h3:SetOperation(aux.NULL) - Duel.RegisterEffect(h3, 0) + --~ 通关之邀 + function s["_通关之邀"]() + local h3 + --~ 对方之血 + h3 = Duel.GetLP(1) + if h3 <= 0 then + if h3 == 0 then + Debug.ShowHint(h1) + else + Debug.ShowHint(h2) + end + end + end + function s["通关之邀"]() + local h1, h2 + --~ 效果 + h1 = Effect.GlobalEffect() + h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) + h1:SetCode(EVENT_DAMAGE) + h1:SetCondition(s["_通关之邀"]) + h1:SetOperation(aux.NULL) + Duel.RegisterEffect(h1, 0) end end function s.["是否效牌"](card) for i = 1, #s["效牌之类排"] do if Card.IsType(card, s["效牌之类排"][i]) then