Commit 28f3302b authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent 02bd6b61
Pipeline #860 passed with stages
in 45 minutes and 44 seconds
......@@ -36,7 +36,7 @@ function cm.thfil(c,ec)
return c.setname=="Gmemories" and c:IsAbleToGrave()
end
function cm.thfil1(c,ec)
return (c:IsType(TYPE_TRAP) or c:IsType(TYPE_SPELL)) and c.setname=="Gmemories" and c:GetActivateEffect():IsActivatable(tp,true,true) and c:IsType(TYPE_CONTINUOUS)
return (c:IsType(TYPE_TRAP) or c:IsType(TYPE_SPELL)) and c.setname=="Gmemories" and c:IsType(TYPE_CONTINUOUS)
end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfil,tp,LOCATION_DECK,0,1,nil,e:GetHandler()) end
......@@ -51,9 +51,11 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local xg=Duel.GetOperatedGroup()
if xg:GetCount()>0 and xg:IsExists(cm.thfil1,1,nil,tp) then
local xg0=xg:GetFirst()
local te=xg0:GetActivateEffect()
if not te:IsActivatable(tp,true,true) then return end
Duel.MoveToField(xg0,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
te:UseCountLimit(tp,1,true)
local tep=tc:GetControler()
local tep=xg0:GetControler()
local cost=te:GetCost()
if cost then cost(te,tep,eg,ep,ev,re,r,rp,1) end
end
......@@ -103,4 +105,4 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.filter(c)
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