Commit a3c5e531 authored by Amiya's avatar Amiya

修复

parent da696d39
Pipeline #42471 passed with stages
in 2 minutes and 33 seconds
...@@ -82,14 +82,14 @@ function s.clearop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,14 +82,14 @@ function s.clearop(e,tp,eg,ep,ev,re,r,rp)
s[0]=0 s[0]=0
end end
function s.drcon(e,tp,eg,ep,ev,re,r,rp) function s.drcon(e,tp,eg,ep,ev,re,r,rp)
return s[tp]>0 return bit.band(s[0],TYPE_RITUAL+TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_PENDULUM+TYPE_LINK)~=0
end end
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=0 local ct=0
local type={TYPE_RITUAL,TYPE_FUSION,TYPE_SYNCHRO,TYPE_XYZ,TYPE_PENDULUM,TYPE_LINK} local type={TYPE_RITUAL,TYPE_FUSION,TYPE_SYNCHRO,TYPE_XYZ,TYPE_PENDULUM,TYPE_LINK}
for i=1,#type do for i=1,#type do
local value=type[i] local value=type[i]
if bit.band(s[tp],value)~=0 then if bit.band(s[0],value)~=0 then
ct=ct+1 ct=ct+1
end end
end end
...@@ -101,7 +101,7 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,7 +101,7 @@ function s.drop(e,tp,eg,ep,ev,re,r,rp)
local type={TYPE_RITUAL,TYPE_FUSION,TYPE_SYNCHRO,TYPE_XYZ,TYPE_PENDULUM,TYPE_LINK} local type={TYPE_RITUAL,TYPE_FUSION,TYPE_SYNCHRO,TYPE_XYZ,TYPE_PENDULUM,TYPE_LINK}
for i=1,#type do for i=1,#type do
local value=type[i] local value=type[i]
if bit.band(s[tp],value)~=0 then if bit.band(s[0],value)~=0 then
ct=ct+1 ct=ct+1
end end
end end
......
...@@ -89,9 +89,9 @@ function s.cfilter(c,tp) ...@@ -89,9 +89,9 @@ function s.cfilter(c,tp)
return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end end
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,chk) and Duel.CheckReleaseGroupEx(tp,s.cfilter,1,REASON_COST,true,c,tp) end if chk==0 then return aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,chk) and Duel.CheckReleaseGroupEx(tp,s.cfilter,1,REASON_COST,true,nil,tp) end
aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,chk) aux.bfgcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectReleaseGroupEx(tp,s.cfilter,1,1,REASON_COST,true,c,tp) local g=Duel.SelectReleaseGroupEx(tp,s.cfilter,1,1,REASON_COST,true,nil,tp)
g:AddCard(c) g:AddCard(c)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
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