Commit 9f4d679a authored by nanahira's avatar nanahira

update Nanahira pendulum procedure

parent f707368a
...@@ -1037,12 +1037,14 @@ function cm.PendConditionNanahira() ...@@ -1037,12 +1037,14 @@ function cm.PendConditionNanahira()
return #g>0 return #g>0
end end
end end
function cm.PendCheckNanahira(g,mft,maxlist) function cm.PendCheckAdditionalNanahira(mft,maxlist)
if mft>0 and g:IsExists(Card.IsLocation,mft+1,nil,0xbf) then return false end return function(g)
for loc,lct in pairs(maxlist) do if mft>0 and g:IsExists(Card.IsLocation,mft+1,nil,0xbf) then return false end
if lct>0 and g:IsExists(Card.IsLocation,lct+1,nil,loc) then return false end for loc,lct in pairs(maxlist) do
if lct>0 and g:IsExists(Card.IsLocation,lct+1,nil,loc) then return false end
end
return true
end end
return true
end end
function cm.PendOperationNanahira() function cm.PendOperationNanahira()
return function(e,tp,eg,ep,ev,re,r,rp,c,sg,og) return function(e,tp,eg,ep,ev,re,r,rp,c,sg,og)
...@@ -1122,7 +1124,9 @@ function cm.PendOperationNanahira() ...@@ -1122,7 +1124,9 @@ function cm.PendOperationNanahira()
if ce then if ce then
tg=tg:Filter(aux.PConditionExtraFilterSpecific,nil,e,tp,lscale,rscale,ce) tg=tg:Filter(aux.PConditionExtraFilterSpecific,nil,e,tp,lscale,rscale,ce)
end end
local g=cm.SelectGroupWithCancel(tp,HINTMSG_SPSUMMON,tg,cm.PendCheckNanahira,nil,1,ft,mft,maxlist) Auxiliary.GCheckAdditional=cm.PendCheckAdditionalNanahira(mft,maxlist)
local g=cm.SelectGroupWithCancel(tp,HINTMSG_SPSUMMON,tg,aux.TRUE,nil,1,ft)
Auxiliary.GCheckAdditional=nil
if not g then return end if not g then return end
if ce then if ce then
Duel.Hint(HINT_CARD,0,ce:GetOwner():GetOriginalCode()) Duel.Hint(HINT_CARD,0,ce:GetOwner():GetOriginalCode())
......
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