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