Commit 12bec6be authored by nanahira's avatar nanahira

Merge branch 'master' into 2018

parents c26ce76e a3ed1374
...@@ -47,6 +47,7 @@ function cm.filter2(c,e,tp,m,f,chkf,l) ...@@ -47,6 +47,7 @@ function cm.filter2(c,e,tp,m,f,chkf,l)
end end
function cm.ReplaceLocationCount(f,ec) function cm.ReplaceLocationCount(f,ec)
return function(tp,p,g,fc) return function(tp,p,g,fc)
local g=g or Group.CreateGroup()
if g:IsContains(ec) then return f(tp,p,g,fc) end if g:IsContains(ec) then return f(tp,p,g,fc) end
g:AddCard(ec) g:AddCard(ec)
local res=f(tp,p,g,fc) local res=f(tp,p,g,fc)
...@@ -130,4 +131,4 @@ function cm.hdop(e,tp,eg,ep,ev,re,r,rp) ...@@ -130,4 +131,4 @@ function cm.hdop(e,tp,eg,ep,ev,re,r,rp)
local sg=g:RandomSelect(tp,1) local sg=g:RandomSelect(tp,1)
Duel.Remove(sg,POS_FACEUP,REASON_EFFECT) Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)
end end
end end
\ No newline at end of file
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