Commit 2b7cd4d1 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c65052101.lua

parent 41a0ceb9
......@@ -21,15 +21,15 @@ function c65052101.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectMatchingCard(tp,c65052101.costfil,tp,LOCATION_SZONE,0,1,1,e:GetHandler())
Duel.Release(g,REASON_COST)
end
function c65052101.spfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and aux.IsCodeListed(c,65052110) and not c:IsForbidden()
function c65052101.spfilter(c,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and aux.IsCodeListed(c,65052110) and not c:IsForbidden() and c:CheckUniqueOnField(tp)
end
function c65052101.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65052101.spfilter,tp,LOCATION_DECK,0,1,nil) and Duel.GetLocationCount(tp,LOCATION_SZONE)>-1 end
if chk==0 then return Duel.IsExistingMatchingCard(c65052101.spfilter,tp,LOCATION_DECK,0,1,nil,tp) and Duel.GetLocationCount(tp,LOCATION_SZONE)>-1 end
end
function c65052101.spop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.SelectMatchingCard(tp,c65052101.spfilter,tp,LOCATION_DECK,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c65052101.spfilter,tp,LOCATION_DECK,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