Commit 49a71b13 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c65052110.lua

parent a8eb2e6f
......@@ -19,12 +19,12 @@ function c65052110.initial_effect(c)
e2:SetOperation(c65052110.activate)
c:RegisterEffect(e2)
end
function c65052110.fil(c)
return aux.IsCodeListed(c,65052110) and c:IsType(TYPE_SPELL+TYPE_TRAP) and not (c:IsForbidden() or c:IsCode(65052110))
function c65052110.fil(c,tp)
return aux.IsCodeListed(c,65052110) and c:IsType(TYPE_SPELL+TYPE_TRAP) and not (c:IsForbidden() or c:IsCode(65052110)) and c:CheckUniqueOnField(tp)
end
function c65052110.act(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local g1=Duel.GetMatchingGroup(c65052110.fil,tp,LOCATION_DECK,0,nil)
local g1=Duel.GetMatchingGroup(c65052110.fil,tp,LOCATION_DECK,0,nil,tp)
local b=g1:GetCount()>0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
if b and Duel.SelectYesNo(tp,aux.Stringid(65052110,0)) then
local g01=g1:Select(tp,1,1,nil)
......
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