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

byd

parent 839d1afb
......@@ -46,7 +46,7 @@ function cm.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end
......
......@@ -16,7 +16,7 @@ function s.initial_effect(c)
end
function s.tgfilter(c)
local b1=c:IsLocation(LOCATION_REMOVED)
local b2=c.MoJin==true and c:IsLocation(LOCATION_DECK) and c:IsType(TYPE_MONSTER)
local b2=c.MoJin==true and c:IsLocation(LOCATION_DECK) and c:IsType(TYPE_MONSTER)
local b3=c:IsFaceupEx() and c:IsCode(5012625) and c:IsLocation(LOCATION_MZONE)
return (b1 or b2 or b3) and c:IsAbleToGrave()
end
......@@ -31,7 +31,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_REMOVED,0,1,nil)
local b2=Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK,0,1,nil)
local b3=Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_MZONE,0,1,nil)
local b4=rg1:CheckSubGroup(s.fselect,1,1,tp) --b4=rg1:CheckSubGroup(s.fselect,11,11,tp)
local b4=rg1:CheckSubGroup(s.fselect,11,11,tp)
and Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,nil,e,tp)
if chk==0 then return b1 or b2 or b3 or b4 end
local off=1
......@@ -109,17 +109,17 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=g:FilterSelect(tp,Card.IsLocation,1,1,nil,LOCATION_MZONE)
local pg=Duel.GetMatchingGroup(aux.NecroValleyFilter(s.spfilter),tp,LOCATION_GRAVE,0,nil,e,tp)
if ft>0 and #sg>0 and Duel.SendtoGrave(sg,REASON_EFFECT+REASON_RETURN)~=0 then
if pg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(1621413,2)) then
if pg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local cg=pg:Select(tp,1,ft,nil)
local cg=pg:Select(tp,1,1,nil)--cg=pg:Select(tp,1,ft,nil)
Duel.SpecialSummon(cg,0,tp,tp,false,false,POS_FACEUP)
end
end
else
local rg1=Duel.GetMatchingGroup(Card.IsReleasableByEffect,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local rs=rg1:SelectSubGroup(tp,s.fselect,false,1,1,tp) --rs=rg1:SelectSubGroup(tp,s.fselect,false,11,11,tp)
local rs=rg1:SelectSubGroup(tp,s.fselect,false,11,11,tp)
if Duel.Release(rs,REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local rg=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.filter),tp,LOCATION_GRAVE+LOCATION_HAND,0,1,1,nil,e,tp)
......
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