Commit 65ae7074 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c16348121.lua

parent b400965e
......@@ -59,15 +59,15 @@ end
function c16348121.splimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION or se:GetHandler():IsSetCard(0x5dc2)
end
function c16348121.filter(c)
function c16348121.setfilter(c)
return c:IsSetCard(0x5dc2) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
end
function c16348121.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16348121.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c16348121.setfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil) end
end
function c16348121.setop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c16348121.filter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil):GetFirst()
local tc=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c16348121.setfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil):GetFirst()
if tc then Duel.SSet(tp,tc) end
end
function c16348121.condition(e,tp,eg,ep,ev,re,r,rp)
......
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