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)
s[0]=0
end
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
function s.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=0
local type={TYPE_RITUAL,TYPE_FUSION,TYPE_SYNCHRO,TYPE_XYZ,TYPE_PENDULUM,TYPE_LINK}
for i=1,#type do
local value=type[i]
if bit.band(s[tp],value)~=0 then
if bit.band(s[0],value)~=0 then
ct=ct+1
end
end
......@@ -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}
for i=1,#type do
local value=type[i]
if bit.band(s[tp],value)~=0 then
if bit.band(s[0],value)~=0 then
ct=ct+1
end
end
......
......@@ -89,9 +89,9 @@ function s.cfilter(c,tp)
return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end
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)
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)
Duel.Release(g,REASON_COST)
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