Commit a3a5f3ab authored by TanakaKotoha's avatar TanakaKotoha

fix

parent e1d05595
Pipeline #539 passed with stages
in 41 minutes and 43 seconds
......@@ -3,7 +3,7 @@ if not pcall(function() require("expansions/script/c18007001") end) then require
local m=18007016
local cm=_G["c"..m]
function cm.initial_effect(c)
local e1=rsef.ACT(c,nil,{m,0},nil,"dr","ptg",nil,rscost.cost(cm.cfilter,cm.fun,LOCATION_HAND+LOCATION_MZONE),cm.drtg,cm.drop)
local e1=rsef.ACT(c,nil,{m,0},nil,"dr","ptg",nil,rscost.cost(cm.cfilter,"td",LOCATION_MZONE+LOCATION_HAND),cm.drtg,cm.drop)
local e2=rsef.QO(c,nil,{m,1},nil,"sp",nil,LOCATION_GRAVE,cm.spcon,aux.bfgcost,rstg.target(rsop.list(cm.spfilter,"sp",LOCATION_DECK)),cm.spop)
end
cm.rssetcode="PhantomQuantum"
......@@ -20,15 +20,8 @@ function cm.spop(e,tp)
rssf.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP_DEFENSE,nil,rssf.SummonBuff(nil,nil,nil,nil,"td"))
end
end
function cm.fun(g,e,tp)
local hg=g:Filter(Card.IsLocation,nil,LOCATION_HAND)
if #hg>0 then
Duel.ConfirmCards(1-tp,g)
end
Duel.SendtoDeck(g,nil,2,REASON_COST)
end
function cm.cfilter(c)
return c:CheckSetCard("PhantomQuantum") and c:IsType(TYPE_MONSTER) and c:IsAbleToDeckAsCost()
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeckAsCost()
end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
......
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