Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -64,45 +64,55 @@ h1 = Effect.GlobalEffect() h1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) h1:SetCode(EVENT_ADJUST) h1:SetCondition(aux.TRUE) -- 随机抽卡 - function h2(effect_event) + --~ 调该效果的效果 + function h2(u2) Duel.ShuffleDeck(0) Duel.Draw(0, u1, REASON_RULE) - effect_event:Reset() + u2:Reset() end h1:SetOperation(h2) Duel.RegisterEffect(h1, 0) end fun["一_该效果不能被连锁"] = function() Duel.SetChainLimit(aux.FALSE) return true end -fun["一_通关邀请"] = function() - --备用:圣魔术师 - str["原解邀请"] = "残局群181175613" - str["二解邀请"] = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」" - str["效果"] = Effect.GlobalEffect() - str["效果"]:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS) - str["效果"]:SetCode(EVENT_DAMAGE) - function cache_1() - cache_1 = Duel.GetLP(1) - if cache_1 <= 0 then - if cache_1 == 0 then - else - Debug.ShowHint(str["二解邀请"]) - end - Debug.ShowHint(str["原解邀请"]) - else - return false - end - end - str["效果"]:SetCondition(cache_1) - str["效果"]:SetOperation(aux.NULL) - Duel.RegisterEffect(str["效果"], 0) -end +do + local h1, h2 + --~ 原解邀请 + h1 = "残局群181175613" + --~ 二解邀请,备用:圣魔术师 + h2 = "爆貘团:「你居然二解了,请加群告诉我怎么二解。」" + fun["一_通关邀请"] = function() + 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) + end + end fun["一_是否效果卡"] = function(card) for i = 1, #str["效果卡的种类表"] do if Card.IsType(card, str["效果卡的种类表"][i]) then return true end