Commit 8cf73983 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c18700136.lua

parent 22906f1a
Pipeline #30847 passed with stages
in 24 minutes and 39 seconds
--奇物收容与探寻
local m=18700136
local cm=_G["c"..m]
xpcall(function() require("expansions/script/1") end,function() require("script/1") end)
function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
......@@ -46,14 +45,14 @@ function cm.filter2(c)
return c:IsSetCard(0x822) and not c:IsPublic()
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsExistingMatchingCard(nil,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil) end
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsExistingMatchingCard(cm.filter2,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil) end
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_HAND+LOCATION_DECK,0,1,8,nil,tp)
local g1=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_HAND+LOCATION_DECK,0,1,8,nil)
if g1:GetCount()>0 then
Duel.ConfirmCards(1-tp,g1)
Duel.Draw(tp,g1:GetCount()+1,REASON_EFFECT)
local g2=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_HAND,0,g1:GetCount(),g1:GetCount(),nil,tp)
local g2=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_HAND,0,g1:GetCount(),g1:GetCount(),nil)
Duel.SendtoDeck(g2,nil,nil,REASON_EFFECT)
end
local e1=Effect.CreateEffect(e:GetHandler())
......
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