Commit e5a506a3 authored by GuGu's avatar GuGu

Update c999103.lua 鬼王字段维护

parent 328301ee
Pipeline #21784 passed with stage
in 1 minute and 56 seconds
......@@ -18,13 +18,13 @@ function M.cfilter(c)
end
function M.spfilter(c, e, tp)
return (c:IsCode(24010) or c:IsCode(10006) or c:IsCode(10008)) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
return c:IsOriginalCodeRule(24010,10006,10008,11022) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
and Duel.IsExistingMatchingCard(M.spfilter2, tp, LOCATION_EXTRA+LOCATION_DECK, 0, 1, nil, e, tp, c)
end
function M.spfilter2(c, e, tp, tc)
local code = tc:GetCode()
local flag = (c:IsCode(24010) or c:IsCode(10006) or c:IsCode(10008)) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false) and not c:IsCode(code)
local flag = c:IsOriginalCodeRule(24010,10006,10008,11022) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false) and not c:IsOriginalCodeRule(code)
if not flag then return false end
return Duel.GetLocationCountFromEx(tp, tp, nil, Group.FromCards(c, tc)) >= 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment