Commit bb888252 authored by 聖園ミカ's avatar 聖園ミカ 🐟

md

parent bf69daad
...@@ -90,23 +90,23 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -90,23 +90,23 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if e:GetLabel()~=100 then return false end if e:GetLabel()~=100 then return false end
e:SetLabel(0) e:SetLabel(0)
return Duel.CheckReleaseGroupEx(REASON_COST,tp,cm.costfilter0,1,e:GetHandler()) return Duel.CheckReleaseGroupEx(tp,cm.costfilter0,1,REASON_COST,e:GetHandler())
end end
e:SetLabel(0) e:SetLabel(0)
local off=1 local off=1
local ops={} local ops={}
local opval={} local opval={}
if Duel.CheckReleaseGroupEx(REASON_COST,tp,cm.costfilter1,1,e:GetHandler()) then if Duel.CheckReleaseGroupEx(tp,cm.costfilter1,1,REASON_COST,e:GetHandler()) then
ops[off]=aux.Stringid(m,1) ops[off]=aux.Stringid(m,1)
opval[off-1]=1 opval[off-1]=1
off=off+1 off=off+1
end end
if Duel.CheckReleaseGroupEx(REASON_COST,tp,cm.costfilter2,1,e:GetHandler()) then if Duel.CheckReleaseGroupEx(tp,cm.costfilter2,1,REASON_COST,e:GetHandler()) then
ops[off]=aux.Stringid(m,2) ops[off]=aux.Stringid(m,2)
opval[off-1]=2 opval[off-1]=2
off=off+1 off=off+1
end end
if Duel.CheckReleaseGroupEx(REASON_COST,tp,cm.costfilter3,1,e:GetHandler()) then if Duel.CheckReleaseGroupEx(tp,cm.costfilter3,1,REASON_COST,e:GetHandler()) then
ops[off]=aux.Stringid(m,3) ops[off]=aux.Stringid(m,3)
opval[off-1]=3 opval[off-1]=3
off=off+1 off=off+1
...@@ -114,15 +114,15 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -114,15 +114,15 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if off==1 then return end if off==1 then return end
local op=Duel.SelectOption(tp,table.unpack(ops)) local op=Duel.SelectOption(tp,table.unpack(ops))
if opval[op]==1 then if opval[op]==1 then
local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,cm.costfilter1,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroupEx(tp,cm.costfilter1,1,1,REASON_COST,e:GetHandler())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
e:SetLabel(1) e:SetLabel(1)
elseif opval[op]==2 then elseif opval[op]==2 then
local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,cm.costfilter2,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroupEx(tp,cm.costfilter2,1,1,REASON_COST,e:GetHandler())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
e:SetLabel(2) e:SetLabel(2)
elseif opval[op]==3 then elseif opval[op]==3 then
local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,cm.costfilter3,1,1,e:GetHandler()) local g=Duel.SelectReleaseGroupEx(tp,cm.costfilter3,1,1,REASON_COST,e:GetHandler())
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
e:SetLabel(3) e:SetLabel(3)
end 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