Commit 0ad019e3 authored by TanakaKotoha's avatar TanakaKotoha

mopemope

parent 08cb0587
Pipeline #723 failed with stages
in 59 minutes and 4 seconds
......@@ -14,9 +14,9 @@ function c10970012.cfilter(c)
return c:IsType(TYPE_SPELL) and c:IsAbleToGraveAsCost()
end
function c10970012.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c10970012.cfilter,tp,LOCATION_HAND,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c10970012.cfilter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c10970012.cfilter,tp,LOCATION_HAND,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c10970012.cfilter,tp,LOCATION_HAND,0,1,1,e:GetHandler())
Duel.SendtoGrave(g,REASON_COST)
end
function c10970012.filter(c)
......
......@@ -48,7 +48,7 @@ function c98610005.tptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsAbleToRemove() end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,REASON_EFFECT) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_REMOVED,1,3,nil,REASON_EFFECT)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,3,nil,REASON_EFFECT)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
end
function c98610005.tpop(e,tp,eg,ep,ev,re,r,rp)
......@@ -56,9 +56,9 @@ function c98610005.tpop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
local g1=Duel.GetOperatedGroup()
local ct=g1:FilterCount(c98610005.tfilter,nil)
if ct>0 and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil,REASON_EFFECT)
if ct>0 and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil,REASON_EFFECT)
and Duel.SelectYesNo(tp,aux.Stringid(98610005,2)) then
local g2=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,ct*2,nil,REASON_EFFECT)
local g2=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,ct*2,nil,REASON_EFFECT)
Duel.Remove(g2,POS_FACEUP,REASON_EFFECT)
end
end
\ No newline at end of file
......@@ -18,21 +18,21 @@ function c98610010.initial_effect(c)
e2:SetCode(EVENT_REMOVE)
e2:SetCountLimit(1,98610010)
e2:SetCondition(c98610010.tpcon)
e1:SetCost(c98610010.tpcost)
e2:SetCost(c98610010.tpcost)
e2:SetTarget(c98610010.tptg)
e2:SetOperation(c98610010.tpop)
c:RegisterEffect(e2)
Duel.AddCustomActivityCounter(98610010,ACTIVITY_CHAIN,c98610010.chainfilter)
end
function c98610010.chainfilter(re,tp,cid)
return re:GetHandler():IsSetCard(0x70)
return re:GetHandler():IsSetCard(0x870)
end
function c98610010.filter(c)
return c:IsSetCard(0x870) and c:IsAbleToRemove()
end
function c98610010.target(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetDecktopGroup(tp,3)
if chk==0 then return rg:FilterCount(Card.IsAbleToRemove,nil,REASON_EFFECT)>0 end
if chk==0 then return rg:FilterCount(Card.IsAbleToRemove,nil)>0 end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,rg,3,0,0)
end
function c98610010.activate(e,tp,eg,ep,ev,re,r,rp)
......@@ -66,7 +66,7 @@ function c98610010.tpcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp)
end
function c98610010.aclimit(e,re,tp)
return not re:GetHandler():IsSetCard(0x70)
return not re:GetHandler():IsSetCard(0x870)
end
function c98610010.tptg(e,tp,eg,ep,ev,re,r,rp,chk)
local rg1=Duel.GetDecktopGroup(tp,5)
......
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