Commit 43ce8704 authored by TanakaKotoha's avatar TanakaKotoha

mopemope

parent 0ad019e3
No preview for this file type
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c98610001.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c98610001.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil,REASON_EFFECT) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1)
end end
function c98610001.spop(e,tp,eg,ep,ev,re,r,rp) function c98610001.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c98610002.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c98610002.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil,REASON_EFFECT) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1)
end end
function c98610002.spop(e,tp,eg,ep,ev,re,r,rp) function c98610002.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c98610003.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c98610003.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil,REASON_EFFECT) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1)
end end
function c98610003.spop(e,tp,eg,ep,ev,re,r,rp) function c98610003.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c98610004.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c98610004.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil,REASON_EFFECT) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1)
end end
function c98610004.spop(e,tp,eg,ep,ev,re,r,rp) function c98610004.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c98610005.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c98610005.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil,REASON_EFFECT) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1)
end end
function c98610005.spop(e,tp,eg,ep,ev,re,r,rp) function c98610005.spop(e,tp,eg,ep,ev,re,r,rp)
...@@ -46,9 +46,9 @@ function c98610005.tfilter(c) ...@@ -46,9 +46,9 @@ function c98610005.tfilter(c)
end end
function c98610005.tptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) 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 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 if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,3,nil,REASON_EFFECT) local g=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,3,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
end end
function c98610005.tpop(e,tp,eg,ep,ev,re,r,rp) 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) ...@@ -56,9 +56,9 @@ function c98610005.tpop(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
local g1=Duel.GetOperatedGroup() local g1=Duel.GetOperatedGroup()
local ct=g1:FilterCount(c98610005.tfilter,nil) local ct=g1:FilterCount(c98610005.tfilter,nil)
if ct>0 and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil,REASON_EFFECT) if ct>0 and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(98610005,2)) then and Duel.SelectYesNo(tp,aux.Stringid(98610005,2)) then
local g2=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,ct*2,nil,REASON_EFFECT) local g2=Duel.SelectMatchingCard(tp,Card.IsAbleToRemove,tp,0,LOCATION_GRAVE,1,ct*2,nil)
Duel.Remove(g2,POS_FACEUP,REASON_EFFECT) Duel.Remove(g2,POS_FACEUP,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c98610006.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c98610006.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil,REASON_EFFECT) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_HAND,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,tp,1)
end end
function c98610006.spop(e,tp,eg,ep,ev,re,r,rp) function c98610006.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,14 +38,14 @@ function c98610007.ffilter(c) ...@@ -38,14 +38,14 @@ function c98610007.ffilter(c)
end end
function c98610007.target(e,tp,eg,ep,ev,re,r,rp,chk) function c98610007.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:GetOverlayGroup():IsExists(Card.IsAbleToRemove,1,nil,REASON_EFFECT) end if chk==0 then return c:GetOverlayGroup():IsExists(Card.IsAbleToRemove,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,0)
end end
function c98610007.operation(e,tp,eg,ep,ev,re,r,rp) function c98610007.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=c:GetOverlayGroup():Filter(Card.IsAbleToRemove,nil,REASON_EFFECT) local g=c:GetOverlayGroup():Filter(Card.IsAbleToRemove,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)~=0 and sg:GetFirst():IsLocation(LOCATION_REMOVED) then if Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)~=0 and sg:GetFirst():IsLocation(LOCATION_REMOVED) then
......
...@@ -38,12 +38,12 @@ function c98610008.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,12 +38,12 @@ function c98610008.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c98610008.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c98610008.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,0,1,nil,REASON_EFFECT) if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,0,1,nil)
and Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil,REASON_EFFECT) end and Duel.IsExistingTarget(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_ONFIELD,0,1,1,nil,REASON_EFFECT) local g1=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,1,nil,REASON_EFFECT) local g2=Duel.SelectTarget(tp,Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD,1,1,nil)
g1:Merge(g2) g1:Merge(g2)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g1,2,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g1,2,0,0)
end end
......
...@@ -67,7 +67,7 @@ function c98610011.tpop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,7 +67,7 @@ function c98610011.tpop(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(c98610011.sfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then return end if not Duel.IsExistingMatchingCard(c98610011.sfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) then return end
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0) local g=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
local gc=g:GetCount() local gc=g:GetCount()
if gc>0 and g:FilterCount(Card.IsAbleToRemove,nil,REASON_EFFECT)==gc then if gc>0 and g:FilterCount(Card.IsAbleToRemove,nil)==gc then
local oc=Duel.Remove(g,POS_FACEUP,REASON_EFFECT) local oc=Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
if oc>0 then if oc>0 then
Duel.Draw(tp,oc-1,REASON_EFFECT) Duel.Draw(tp,oc-1,REASON_EFFECT)
......
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