Commit e167bdb8 authored by nanahira's avatar nanahira

fix

parent f201c50a
...@@ -76,13 +76,13 @@ function cm.spcon(e,c) ...@@ -76,13 +76,13 @@ function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
local g=Duel.GetReleaseGroup(tp):Filter(cm.spfilter,nil,c) local g=Duel.GetReleaseGroup(tp):Filter(cm.spfilter,nil,c)
local g2=Duel.GetMatchingGroup(1-tp):Filter(cm.spfilter_,nil,c) local g2=Duel.GetReleaseGroup(1-tp):Filter(cm.spfilter_,nil,c)
g1:Merge(g2) g1:Merge(g2)
return g:IsExists(cm.spfilter1,1,nil,tp,g) return g:IsExists(cm.spfilter1,1,nil,tp,g)
end end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c) function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetReleaseGroup(tp):Filter(cm.spfilter,nil,c) local g=Duel.GetReleaseGroup(tp):Filter(cm.spfilter,nil,c)
local g2=Duel.GetMatchingGroup(1-tp):Filter(cm.spfilter_,nil,c) local g2=Duel.GetReleaseGroup(1-tp):Filter(cm.spfilter_,nil,c)
g1:Merge(g2) g1:Merge(g2)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g1=g:FilterSelect(tp,cm.spfilter1,1,1,nil,tp,g) local g1=g:FilterSelect(tp,cm.spfilter1,1,1,nil,tp,g)
...@@ -92,4 +92,4 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -92,4 +92,4 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
g1:Merge(g2) g1:Merge(g2)
c:SetMaterial(g1) c:SetMaterial(g1)
Duel.Release(g1,REASON_COST+REASON_FUSION+REASON_MATERIAL) Duel.Release(g1,REASON_COST+REASON_FUSION+REASON_MATERIAL)
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