Commit 281e8a01 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 163168a6
Pipeline #30029 passed with stages
in 50 minutes and 31 seconds
...@@ -16,6 +16,7 @@ function cm.initial_effect(c) ...@@ -16,6 +16,7 @@ function cm.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetCondition(cm.spcon) e2:SetCondition(cm.spcon)
e2:SetTarget(cm.sptg)
e2:SetOperation(cm.spop) e2:SetOperation(cm.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--sp --sp
...@@ -70,13 +71,22 @@ function cm.filter1(c) ...@@ -70,13 +71,22 @@ function cm.filter1(c)
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(c:GetControler(),cm.filter1,1,nil) local tp=c:GetControler()
return Duel.CheckReleaseGroupEx(tp,cm.filter1,1,REASON_SPSUMMON,false,nil,tp)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetReleaseGroup(tp,false,REASON_SPSUMMON):Filter(cm.filter1,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local tc=g:SelectUnselect(nil,tp,false,true,1,1)
if tc then
e:SetLabelObject(tc)
return true
else return false end
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.SelectReleaseGroup(REASON_COST,tp,cm.filter1,1,1,nil) local tc=e:GetLabelObject()
Duel.Release(g,REASON_COST) Duel.Release(tc,REASON_SPSUMMON)
end end
function cm.linklimit(e,c) function cm.linklimit(e,c)
if not c then return false end if not c then return false end
return not c:IsSetCard(0x3a71) return not c:IsSetCard(0x3a71)
......
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