Commit 9133deea authored by 聖園ミカ's avatar 聖園ミカ 🐟

md

parent 9e7b27ec
No preview for this file type
...@@ -60,6 +60,7 @@ function cm.initial_effect(c) ...@@ -60,6 +60,7 @@ function cm.initial_effect(c)
e7:SetCode(EVENT_PHASE+PHASE_END) e7:SetCode(EVENT_PHASE+PHASE_END)
e7:SetRange(LOCATION_SZONE) e7:SetRange(LOCATION_SZONE)
e7:SetCountLimit(1) e7:SetCountLimit(1)
e7:SetCondition(cm.tgcon)
e7:SetOperation(cm.tgop) e7:SetOperation(cm.tgop)
c:RegisterEffect(e7) c:RegisterEffect(e7)
--back --back
...@@ -240,23 +241,22 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -240,23 +241,22 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.tgfilter7(c)
return c:IsSetCard(0xa341) and c:IsType(TYPE_MONSTER)
end
function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(cm.tgfilter7,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end
function cm.thfilter1(c) function cm.thfilter1(c)
return c:IsCode(33400850,33400851) and c:IsAbleToHand() return c:IsCode(33400850,33400851) and c:IsAbleToHand()
end end
function cm.check(g)
if #g==1 then return true end
local res=0x0
if g:IsExists(Card.IsCode,1,nil,33400850) then res=res+0x1 end
if g:IsExists(Card.IsCode,1,nil,33400851) then res=res+0x2 end
return res~=0x1 and res~=0x2
end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp) function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.SendtoGrave(c,REASON_EFFECT) Duel.SendtoGrave(c,REASON_EFFECT)
if Duel.IsExistingMatchingCard(cm.thfilter1,tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,6)) then if Duel.IsExistingMatchingCard(cm.thfilter1,tp,LOCATION_GRAVE,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(m,6)) then
local g=Duel.GetMatchingGroup(cm.thfilter1,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(cm.thfilter1,tp,LOCATION_GRAVE,0,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g1=g:SelectSubGroup(tp,cm.check,false,1,2) local g1=g:SelectSubGroup(tp,aux.dncheck,false,1,2)
Duel.SendtoHand(g1,nil,REASON_EFFECT) Duel.SendtoHand(g1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g1) Duel.ConfirmCards(1-tp,g1)
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