Commit 6ddebbe2 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Merge branch 'master' of git.mycard.moe:alstroemeria-silentlove/ygopro-222DIY-cards into 2024.6.9

parents 16da8b2f 10819417
...@@ -27,14 +27,16 @@ function cm.initial_effect(c) ...@@ -27,14 +27,16 @@ function cm.initial_effect(c)
e2:SetOperation(cm.op) e2:SetOperation(cm.op)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.thcfilter(c) function cm.thcfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsReleasable() return c:IsType(TYPE_MONSTER) and c:IsReleasable()
end end
function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroupEx(tp,cm.thcfilter,1,nil) and e:GetHandler():IsAbleToHand() end local g=Duel.GetReleaseGroup(tp,true):Filter(cm.thcfilter,e:GetHandler(),tp)
if chk==0 then return #g>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectReleaseGroupEx(tp,cm.thcfilter,1,1,nil) local rg=g:Select(tp,1,1,nil)
Duel.Release(g,REASON_COST) local tc=rg:GetFirst()
Duel.Release(tc,REASON_COST)
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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