Commit e7028a54 authored by GuGu's avatar GuGu

Update c86379795.lua 重写送墓

parent 0ccdc5a1
Pipeline #29185 passed with stage
in 8 seconds
......@@ -50,22 +50,19 @@ function c86379795.activate1(e,tp,eg,ep,ev,re,r,rp)
end
end
--
function c86379795.filter2(c,tp)
return c:IsSetCard(0x214a) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() and Duel.IsExistingMatchingCard(c86379795.filter22,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,c)
end
function c86379795.filter22(c)
return c:IsSetCard(0x514a) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
function c86379795.filter2(c)
return c:IsSetCard(0x214a,0x514a) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c86379795.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c86379795.filter1,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil,tp) end
local g=Duel.GetMatchingGroup(c86379795.filter2,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil)
if chk==0 then return g and g:CheckSubGroup(aux.gfcheck,2,2,Card.IsSetCard,0x214a,0x514a) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,2,tp,LOCATION_DECK+LOCATION_EXTRA)
end
function c86379795.activate2(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c86379795.filter2,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil)
if not (g and g:CheckSubGroup(aux.gfcheck,2,2,Card.IsSetCard,0x214a,0x514a)) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,c86379795.filter2,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,1,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g2=Duel.SelectMatchingCard(tp,c86379795.filter22,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,1,g1)
g1:Merge(g2)
local g1=g:SelectSubGroup(tp,aux.gfcheck,true,2,2,Card.IsSetCard,0x214a,0x514a)
if g1:GetCount()==2 then
Duel.SendtoGrave(g1,REASON_EFFECT)
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