Commit d1ce6b3d authored by POLYMER's avatar POLYMER

fix

parent 30c5e1d6
...@@ -132,14 +132,10 @@ end ...@@ -132,14 +132,10 @@ end
function s.mvalue(e,fp,rp,r) function s.mvalue(e,fp,rp,r)
return 1-Duel.GetFieldGroupCount(fp,LOCATION_SZONE,0) return 1-Duel.GetFieldGroupCount(fp,LOCATION_SZONE,0)
end end
function s.drfilter(c)
return c:IsAbleToRemoveAsCost(POS_FACEDOWN)
end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.drfilter,tp,LOCATION_EXTRA,0,nil) local g=Duel.GetExtraTopGroup(tp,2)
if chk==0 then return #g>=2 end if chk==0 then return g:FilterCount(Card.IsAbleToRemoveAsCost,nil,POS_FACEDOWN)==2 end
local rg=g:RandomSelect(tp,2) Duel.Remove(g,POS_FACEDOWN,REASON_COST)
Duel.Remove(rg,POS_FACEDOWN,REASON_COST)
end end
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) 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