Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -4,16 +4,16 @@ local Effect = Effect local Duel = Duel local Card = Card local d = {} local f = {} -d["排_效果卡的类型"] = { +d["排_效果卡之类型"] = { TYPE_SPELL, TYPE_TRAP, TYPE_EFFECT, } -d["排_非效果灵摆怪兽的卡编"] = { +d["排_非效果灵摆怪兽之卡片编号"] = { 28363749, 19474136, 17390179, 83980492, } @@ -25,37 +25,38 @@ [3] = "大师规则三(2014) ", [4] = "新大师规则(2017) ", [5] = "大师规则(2020) ", } f["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin - --~ 这一局的模式 - --~ 规则参数 + --~ 数_这一局的模式 + --~ 数_规则参数 function _G.Debug.ReloadFieldBegin(o1, o2) d["数_假洗卡"] = o1 & DUEL_PSEUDO_SHUFFLE d["数_战斗阶段"] = o1 & DUEL_ATTACK_FIRST_TURN d["数_人工智能"] = o1 & DUEL_SIMPLE_AI if o2 then d["字_这一局的规则"] = k1[o2] else d["字_这一局的规则"] = k1[5] end + local k1 f["Debug.ReloadFieldBegin"](o1, o2) end end f["不被连锁"] = function() Duel.SetChainLimit(aux.FALSE) return true end f["是否有效果卡"] = function(card) - for i = 1, #d["排_效果卡的类型"] do - if Card.IsType(card, d["排_效果卡的类型"][i]) then + for i = 1, #d["排_效果卡之类型"] do + if Card.IsType(card, d["排_效果卡之类型"][i]) then return true end end if Card.IsType(card, TYPE_PENDULUM) then - for i = 1, #d["排_非效果灵摆怪兽的卡编"] do - if Card.IsCode(card, d["排_非效果灵摆怪兽的卡编"][i]) then + for i = 1, #d["排_非效果灵摆怪兽之卡片编号"] do + if Card.IsCode(card, d["排_非效果灵摆怪兽之卡片编号"][i]) then return false else end end return true