Commit d07ab329 authored by wind2009's avatar wind2009

Update 登竜華転生紋

parent 2273518f
......@@ -34,13 +34,13 @@ function s.gcheck(g,tp)
and g:IsExists(s.thfiter,1,nil,g)
end
function s.thfiter(c,g)
return c:IsAbleToHand() and g:IsExists(s.tgfiter,1,c,g,c)
return c:IsAbleToHand() and g:IsExists(s.rmfiter,1,c,g,c)
end
function s.tgfiter(c,g,tc)
return c:IsAbleToGrave() and g:IsExists(s.rmfiter,1,Group.FromCards(c,tc))
function s.rmfiter(c,g,tc)
return c:IsAbleToRemove() and g:IsExists(s.tgfiter,1,Group.FromCards(c,tc))
end
function s.rmfiter(c)
return c:IsAbleToRemove()
function s.tgfiter(c)
return c:IsAbleToGrave()
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.hgrfilter,tp,LOCATION_DECK,0,nil)
......@@ -56,14 +56,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
if sg:GetCount()>2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g1=sg:FilterSelect(tp,s.thfiter,1,1,nil,sg)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g2=sg:FilterSelect(tp,s.tgfiter,1,1,g1,sg,g1:GetFirst())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g3=sg:FilterSelect(tp,s.rmfiter,1,1,g1+g2)
local g2=sg:FilterSelect(tp,s.rmfiter,1,1,g1,sg,g1:GetFirst())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g3=sg:FilterSelect(tp,s.tgfiter,1,1,g1+g2)
Duel.SendtoHand(g1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g1)
Duel.SendtoGrave(g2,REASON_EFFECT)
Duel.Remove(g3,POS_FACEUP,REASON_EFFECT)
Duel.Remove(g2,POS_FACEUP,REASON_EFFECT)
Duel.SendtoGrave(g3,REASON_EFFECT)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
......
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