Commit f93fe216 authored by Tachibana's avatar Tachibana 🐟

pic

parent c88d3883
Pipeline #26500 passed with stages
in 23 minutes and 48 seconds
......@@ -83,14 +83,13 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetLabel(TYPE_RITUAL)
e1:SetTargetRange(1,0)
e1:SetTarget(s.sumlimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function s.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:GetOriginalType()&e:GetLabel()>0
function s.sumlimit(e,c,tp,sumtp,sumpos)
return bit.band(sumtp,SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL
end
function s.discon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -89,7 +89,7 @@ function cm.thtg2(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.thop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.thfilter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.thfilter2,tp,LOCATION_DECK,0,1,1,nil)
if #g>0 then
local ss=Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
......
......@@ -35,8 +35,8 @@ function cm.initial_effect(c)
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end
if Duel.CheckReleaseGroup(REASON_COST,tp,nil,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
local g=Duel.SelectReleaseGroup(REASON_COST,tp,nil,1,1,nil)
if Duel.IsExistingMatchingCard(Card.IsReleasable,tp,LOCATION_MZONE,0,1,c) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
local g=Duel.SelectMatchingCard(tp,Card.IsReleasable,tp,LOCATION_MZONE,0,1,1,c)
Duel.Release(g,REASON_COST)
e:SetLabel(1)
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