Commit 39284efb authored by Amiya's avatar Amiya

修复

parent ebb324f4
Pipeline #42475 failed with stages
in 54 seconds
......@@ -81,7 +81,7 @@ function s.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,LOCATION_GRAVE+LOCATION_MZONE)
elseif op==2 then
if e:IsCostChecked() then
e:SetCategory(CATEGORY_DISABLE)
e:SetCategory(CATEGORY_POSITION)
Duel.RegisterFlagEffect(tp,id+o,RESET_PHASE+PHASE_END,0,1)
end
local g=Duel.GetMatchingGroup(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
......
......@@ -49,8 +49,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local eft=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_PENDULUM)
if ft>0 then
if ft>=2 then ft=2 end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil,e,tp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) and ft>1 then ft=1 end
local ect=(c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]) or ft
local loc=LOCATION_DECK
if ect>0 then loc=loc+LOCATION_EXTRA end
if ect<eft then eft=ect end
local g=Duel.GetMatchingGroup(s.spfilter,tp,loc,0,nil,e,tp)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:SelectSubGroup(tp,s.gcheck,false,1,ft,tp,eft)
......
......@@ -76,8 +76,12 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local eft=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_PENDULUM)
if ft>0 then
if ft>=2 then ft=2 end
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil,e,tp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) and ft>1 then ft=1 end
local ect=(c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]) or ft
local loc=LOCATION_DECK
if ect>0 then loc=loc+LOCATION_EXTRA end
if ect<eft then eft=ect end
local g=Duel.GetMatchingGroup(s.spfilter,tp,loc,0,nil,e,tp)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=g:SelectSubGroup(tp,s.gcheck,false,1,ft,tp,eft)
......
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