Commit a3c7de8b authored by Nemo Ma's avatar Nemo Ma

fix

parent 90e54f7a
...@@ -1580,8 +1580,8 @@ function rstg.disneg(dn_type, dn_str, ex_tg) ...@@ -1580,8 +1580,8 @@ function rstg.disneg(dn_type, dn_str, ex_tg)
dn_str = dn_str or "dum" dn_str = dn_str or "dum"
local c = e:GetHandler() local c = e:GetHandler()
local rc = re:GetHandler() local rc = re:GetHandler()
if chkc then return ex_tg(e, tp, eg, ep, ev, re, r, rp, chk, chkc) end if chkc then return not ex_tg or ex_tg(e, tp, eg, ep, ev, re, r, rp, chk, chkc) end
if chk == 0 then return (dn_str ~= "rm" or aux.nbcon(tp, re)) and (ex_tg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)) end if chk == 0 then return (dn_str ~= "rm" or aux.nbcon(tp, re)) and (not ex_tg or ex_tg(e, tp, eg, ep, ev, re, r, rp, chk, chkc)) end
local op_cate = rscate.cate_selhint_list[dn_str][2] local op_cate = rscate.cate_selhint_list[dn_str][2]
if op_cate and op_cate ~= 0 and rc:IsRelateToEffect(re) then if op_cate and op_cate ~= 0 and rc:IsRelateToEffect(re) then
local res = rsop.Operation_Solve(eg, dn_str, REASON_EFFECT, { }, 0, e, tp, eg, ep, ev, re, r, rp) local res = rsop.Operation_Solve(eg, dn_str, REASON_EFFECT, { }, 0, e, tp, eg, ep, ev, re, r, rp)
......
...@@ -58,7 +58,7 @@ function cm.con2(e) ...@@ -58,7 +58,7 @@ function cm.con2(e)
return e:GetHandler():IsDefensePos() return e:GetHandler():IsDefensePos()
end end
function cm.regop(e,tp,eg,ep,ev,re,r,rp) function cm.regop(e,tp,eg,ep,ev,re,r,rp)
if re==e:GetHandler() then if re:GetHandler()==e:GetHandler() then
Duel.SetChainLimit(function(e,rp,tp)return tp==rp end) Duel.SetChainLimit(function(e,rp,tp)return tp==rp end)
end end
end end
...@@ -83,7 +83,7 @@ function cm.stfilterg(g,tp,tc,lv,smat) ...@@ -83,7 +83,7 @@ function cm.stfilterg(g,tp,tc,lv,smat)
local g1=g:Filter(cm.stfilter1,nil) local g1=g:Filter(cm.stfilter1,nil)
local g2=g:Filter(cm.stfilter2,nil) local g2=g:Filter(cm.stfilter2,nil)
local count=g:GetCount() local count=g:GetCount()
return g1:GetCount()==1 and g2:GetCount()==count-1 and g:GetSum(Card.GetLevel)==lv and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 return g1:GetCount()==1 and g2:GetCount()==count-1 and g:GetSum(Card.GetLevel)==lv and Duel.GetLocationCountFromEx(tp,tp,nil,tc)>0
end end
function cm.sycon(e,c,smat,mg) function cm.sycon(e,c,smat,mg)
if c==nil then return true end if c==nil then return true end
......
--五河士道 祈福 --五河士道 祈福
local m=m local m=33401307
local cm=_G["c"..m] local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--link summon --link summon
......
...@@ -24,7 +24,7 @@ end ...@@ -24,7 +24,7 @@ end
function c67200299.link_mat_filter(c,lc) function c67200299.link_mat_filter(c,lc)
local con=c:IsSetCard(0x674) and c:IsCanBeLinkMaterial(lc) local con=c:IsSetCard(0x674) and c:IsCanBeLinkMaterial(lc)
local con_mzone=c:IsLocation(LOCATION_MZONE) and c:IsFaceup() local con_mzone=c:IsLocation(LOCATION_MZONE) and c:IsFaceup()
local con_remove=c:IsLocation(LOCATION_SZONE) and c:IsReleasable() local con_remove=c:IsLocation(LOCATION_SZONE) and c:IsReleasable() and c:IsType(TYPE_PENDULUM)
local con_extra=false local con_extra=false
local tp=lc:GetControler() local tp=lc:GetControler()
local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL,tp)} local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL,tp)}
......
...@@ -75,8 +75,8 @@ function cm.initial_effect(c) ...@@ -75,8 +75,8 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EFFECT_SEND_REPLACE) e3:SetCode(EFFECT_SEND_REPLACE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetTarget(cm.reptg) e3:SetTarget(cm.reptg2)
e3:SetValue(cm.repval) e3:SetValue(cm.repval2)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
GM_global_to_deck_check=true GM_global_to_deck_check=true
...@@ -304,12 +304,12 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -304,12 +304,12 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function cm.repfilter(c,tp,rp) function cm.repfilter2(c,tp,rp)
return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsCode(7429501) return c:IsControler(tp) and c:IsLocation(LOCATION_MZONE) and c:IsCode(7429501)
and c:GetReasonPlayer()==1-tp and c:GetReasonPlayer()==1-tp
end end
function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.reptg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and eg:IsExists(cm.repfilter,1,nil,tp,rp) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and eg:IsExists(cm.repfilter2,1,nil,tp,rp) end
local eqg=eg:Filter(cm.eqfilter,nil,tp) local eqg=eg:Filter(cm.eqfilter,nil,tp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0
or not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,1,eg) or eqg:GetCount()<=0 then return false end or not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,1,eg) or eqg:GetCount()<=0 then return false end
...@@ -344,7 +344,7 @@ function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -344,7 +344,7 @@ function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
return true return true
end end
function cm.repval(e,c) function cm.repval2(e,c)
return c:IsControler(e:GetHandlerPlayer()) and c:IsCode(7429501) return c:IsControler(e:GetHandlerPlayer()) and c:IsCode(7429501)
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,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