Commit b97ae339 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c65052102.lua

parent 2b7cd4d1
......@@ -49,14 +49,14 @@ function c65052102.repop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1)
end
end
function c65052102.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and aux.IsCodeListed(c,65052110) and not c:IsForbidden()
function c65052102.filter(c,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and aux.IsCodeListed(c,65052110) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end
function c65052102.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65052102.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
if chk==0 then return Duel.IsExistingMatchingCard(c65052102.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,tp) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 end
end
function c65052102.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c65052102.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c65052102.filter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil,tp)
if g:GetCount()>0 then
Duel.MoveToField(g:GetFirst(),tp,tp,LOCATION_SZONE,POS_FACEUP,true)
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