Commit 4394bcc6 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c11451909.lua

parent edd79440
Pipeline #32502 passed with stages
in 64 minutes and 56 seconds
......@@ -116,13 +116,14 @@ function cm.spfilter(c,e,tp)
end
function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return eg:IsExists(cm.repfilter,1,nil,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
if chk==0 then return not pnfl_desreplace and eg:IsExists(cm.repfilter,1,nil,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp) end
return true
end
function cm.repval(e,c)
return cm.repfilter(c,e:GetHandlerPlayer())
end
function cm.repop(e,tp,eg,ep,ev,re,r,rp)
pnfl_desreplace=true
local c=e:GetHandler()
Duel.HintSelection(Group.FromCards(c))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......@@ -135,6 +136,7 @@ function cm.repop(e,tp,eg,ep,ev,re,r,rp)
local op=turne:GetOperation()
op(turne,turne:GetOwnerPlayer(),nil,0,0,0,0,0)
end
pnfl_desreplace=false
end
function cm.confilter(c)
return c:IsFaceup() and c:IsSetCard(0xc976)
......@@ -151,7 +153,7 @@ function cm.condition(e)
for _,code in pairs(tab) do
ct=ct+1
end
return ct==5
return ct>=5
end
function cm.etarget(e,c)
return cm.confilter(c)
......
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