Commit c74c808d authored by TanakaKotoha's avatar TanakaKotoha

mopempoe

parent 111db27e
No preview for this file type
...@@ -68,4 +68,4 @@ function c10909013.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,4 +68,4 @@ function c10909013.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.SendtoHand(c,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,c) Duel.ConfirmCards(1-tp,c)
end end
end end
\ No newline at end of file
...@@ -72,7 +72,7 @@ function c15000051.spfilter(c) ...@@ -72,7 +72,7 @@ function c15000051.spfilter(c)
return c:IsRace(RACE_FIEND) and c:IsType(TYPE_PENDULUM) and c:IsFaceup() return c:IsRace(RACE_FIEND) and c:IsType(TYPE_PENDULUM) and c:IsFaceup()
end end
function c15000051.spcon(e) function c15000051.spcon(e)
return not Duel.IsExistingMatchingCard(nil,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler()) return Duel.IsExistingMatchingCard(c15000051.spfilter,e:GetHandlerPlayer(),LOCATION_EXTRA+LOCATION_GRAVE,0,1,1,nil) and not Duel.IsExistingMatchingCard(nil,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler())
end end
function c15000051.spop(e,tp,eg,ep,ev,re,r,rp) function c15000051.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(15000051,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(15000051,0))
...@@ -139,4 +139,4 @@ function c15000051.sp2op(e,tp,eg,ep,ev,re,r,rp) ...@@ -139,4 +139,4 @@ function c15000051.sp2op(e,tp,eg,ep,ev,re,r,rp)
end end
function c15000051.splimit(e,c) function c15000051.splimit(e,c)
return not c:IsRace(RACE_FIEND) return not c:IsRace(RACE_FIEND)
end end
\ No newline at end of file
...@@ -48,11 +48,14 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,11 +48,14 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.thfil,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.thfil,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
Duel.BreakEffect()
local xg=Duel.GetOperatedGroup() local xg=Duel.GetOperatedGroup()
if xg:GetCount()>0 and xg:IsExists(cm.thfil1,1,nil,tp) then if xg:GetCount()>0 and xg:IsExists(cm.thfil1,1,nil,tp) then
local xg0=xg:GetFirst() local xg0=xg:GetFirst()
Duel.MoveToField(xg0,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(xg0,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
te:UseCountLimit(tp,1,true)
local tep=tc:GetControler()
local cost=te:GetCost()
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
end end
end end
end end
...@@ -100,4 +103,4 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,4 +103,4 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.filter(c) function cm.filter(c)
return c:IsFaceup() and c.setname=="Gmemories" return c:IsFaceup() and c.setname=="Gmemories"
end end
\ No newline at end of file
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