Commit 0483d578 authored by 聖園ミカ's avatar 聖園ミカ 🐟

null

parent e35283ad
......@@ -289,14 +289,14 @@ function fgo.spsum(c,race,tcode,tcode2,opf1,opf2)
e2:SetType(EFFECT_TYPE_IGNITION)
if opf1~=0 then
e2:SetCost(function (e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(REASON_COST,tp,function (c,race) return c:IsRace(race) and opf1(c,opf2) end,1,tc,race) end
local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,function (c,race) return c:IsRace(race) and opf1(c,opf2) end,1,1,tc,race)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,function (c,race) return c:IsRace(race) and opf1(c,opf2) end,1,REASON_COST,true,tc,race) end
local g=Duel.SelectReleaseGroupEx(tp,function (c,race) return c:IsRace(race) and opf1(c,opf2) end,1,1,REASON_COST,true,tc,race)
Duel.Release(g,REASON_COST)
end)
else
e2:SetCost(function (e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(REASON_COST,tp,function (c,race) return c:IsRace(race) end,1,tc,race) end
local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,function (c,race)return c:IsRace(race) end,1,1,tc,race)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,function (c,race) return c:IsRace(race) end,1,REASON_COST,true,tc,race) end
local g=Duel.SelectReleaseGroupEx(tp,function (c,race)return c:IsRace(race) end,1,1,REASON_COST,true,tc,race)
Duel.Release(g,REASON_COST)
end)
end
......
......@@ -22,8 +22,8 @@ function cm.sumfilter(c)
return c:IsCode(m)
end
function cm.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(REASON_COST,tp,cm.sumfilter,2,nil) end
local g=Duel.SelectReleaseGroupEx(REASON_COST,tp,cm.sumfilter,2,2,nil)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,cm.sumfilter,2,REASON_COST,true,nil) end
local g=Duel.SelectReleaseGroupEx(tp,cm.sumfilter,2,2,REASON_COST,true,nil)
Duel.Release(g,REASON_COST)
end
function cm.thfilter(c)
......
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