Commit 45358408 authored by oilloillo's avatar oilloillo

Update c999206.lua

parent 6dff98bd
Pipeline #22042 passed with stage
in 1 minute and 5 seconds
...@@ -45,13 +45,13 @@ aux.FilterBoolFunction(Card.IsFusionSetCard,0xaa1), ...@@ -45,13 +45,13 @@ aux.FilterBoolFunction(Card.IsFusionSetCard,0xaa1),
} }
function M.spfilter1(c, tp, fc) function M.spfilter1(c, tp, fc)
local flag = Duel.GetLocationCountFromEx(tp, tp, c, TYPE_FUSION) < 1 local flag = Duel.GetLocationCount(tp, LOCATION_MZONE) < 1
return c:IsCode(999203) and c:IsAbleToDeckAsCost() and c:IsCanBeFusionMaterial(fc) return c:IsCode(999203) and c:IsAbleToDeckAsCost() and c:IsCanBeFusionMaterial(fc)
and Duel.IsExistingMatchingCard(M.spfilter2, tp, LOCATION_MZONE+LOCATION_EXTRA, 0, 1, c, fc, flag) and Duel.IsExistingMatchingCard(M.spfilter2, tp, LOCATION_MZONE+LOCATION_EXTRA, 0, 1, c, fc, flag)
end end
function M.spfilter2(c, fc, flag) function M.spfilter2(c, fc, flag)
if flag and Duel.GetLocationCountFromEx(tp, tp, c, TYPE_FUSION) < 1 then return false end if flag and Duel.GetLocationCount(tp, LOCATION_MZONE) < 1 then return false end
return c:IsSetCard(0xaa1) and c:IsCanBeFusionMaterial(fc) and c:IsAbleToDeckAsCost() return c:IsSetCard(0xaa1) and c:IsCanBeFusionMaterial(fc) and c:IsAbleToDeckAsCost()
end end
...@@ -65,7 +65,7 @@ function M.sprop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -65,7 +65,7 @@ function M.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TODECK)
local g1 = Duel.SelectMatchingCard(tp, M.spfilter1, tp, LOCATION_MZONE+LOCATION_EXTRA, 0, 1, 1, nil, tp, c) local g1 = Duel.SelectMatchingCard(tp, M.spfilter1, tp, LOCATION_MZONE+LOCATION_EXTRA, 0, 1, 1, nil, tp, c)
local flag = Duel.GetLocationCountFromEx(tp, tp, g1:GetFirst(), TYPE_FUSION) < 1 local flag = Duel.GetLocationCount(tp, LOCATION_MZONE) < 1
Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_TODECK)
local g2 = Duel.SelectMatchingCard(tp, M.spfilter2, tp, LOCATION_MZONE+LOCATION_EXTRA, 0, 1, 1, g1:GetFirst(), c, flag) local g2 = Duel.SelectMatchingCard(tp, M.spfilter2, tp, LOCATION_MZONE+LOCATION_EXTRA, 0, 1, 1, g1:GetFirst(), c, flag)
......
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