我用的是1217版,应该是最新版吧~~这里是用决斗当杀,出错的代码如下 lianju = sgs.CreateViewAsSkill{ name = "lianju", n = 1, view_filter = function(self,selected,to_select) return to_select:OneCardViewAs("duel") end, view_as = function(self, cards) if #cards < 1 then return nil end if #cards == 1 then local card = cards[1] local suit = sgs.Card_NoSuit local numb = 0 local acard = sgs.Sanguosha:cloneCard("slash", suit, numb) for _,card in ipairs(cards) do acard:addSubcard(card:getId()) end acard:setSkillName(self:objectName()) return acard end end,