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

pic

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