Commit f40ae3c5 authored by Huangnan's avatar Huangnan

fix

parent dcf2f9d8
Pipeline #30455 passed with stages
in 45 minutes and 22 seconds
......@@ -55,7 +55,7 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(p,d,REASON_EFFECT)
end
function s.tdfi1ter(c)
return c:IsSetCard(0x409) and c:IsAbleToDeck()
return c:IsSetCard(0x409) and c:IsAbleToDeck() and not c:IsCode(11901440)
and not (c:IsLocation(0x20) and c:IsFacedown())
end
function s.scon(e,tp,eg,ep,ev,re,r,rp)
......@@ -64,12 +64,12 @@ function s.scon(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousPosition(0x5) and c:IsPreviousControler(tp) and c:GetReasonPlayer()==1-tp
end
function s.stg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.tdfi1ter,tp,0x30,0,1,e:GetHandler()) end
if chk==0 then return Duel.IsExistingMatchingCard(s.tdfi1ter,tp,0x30,0,1,nil) end
Duel.SetOperationInfo(0,0x10,nil,1,tp,0x30)
end
function s.sop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(3,tp,506)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.tdfi1ter),tp,0x30,0,1,5,e:GetHandler())
Duel.Hint(3,tp,507)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.tdfi1ter),tp,0x30,0,1,5,nil)
if g:GetCount()>0 then
Duel.HintSelection(g)
Duel.SendtoDeck(g,nil,2,0x40)
......
......@@ -50,9 +50,7 @@ function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
local ex,tg,ct,p,v=Duel.GetOperationInfo(ev,ctg)
if tg then
if tg:IsExists(cm.nfilter,1,nil) then return true end
elseif v and v>0 and Duel.IsExistingMatchingCard(cm.nfilter,tp,v,0,1,nil) then
return true
end
elseif v and v>0 and p==tp and Duel.IsExistingMatchingCard(cm.nfilter,tp,v,0,1,nil) then return true end
end
return false
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