Commit 7af6ce3b authored by POLYMER's avatar POLYMER

fix

parent 271dec32
......@@ -73,8 +73,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then
local chkf=tp
local mg1=Group.CreateGroup()
local mg4=Group.CreateGroup()
local mg1=Group.CreateGroup()
local mg3=Duel.GetMatchingGroup(s.filter3,tp,LOCATION_HAND,0,c)
if #mg3>0 and Duel.GetFlagEffect(1-tp,id)>0 then
mg1:Merge(mg3)
......@@ -95,20 +94,6 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if #mg7>0 and Duel.GetFlagEffect(1-tp,id+4)>0 then
mg1:Merge(mg7)
end
local ge=c:IsHasEffect(EFFECT_TO_GRAVE_REDIRECT)
if ge and ge:GetValue()&LOCATION_DECK and c:IsCanBeFusionMaterial()
and c:IsAbleToGrave() and Duel.GetFlagEffect(1-tp,id+1)>0 then
mg4:AddCard(c)
end
if not ge and c:IsCanBeFusionMaterial()
and c:IsAbleToRemove() and Duel.GetFlagEffect(1-tp,id+3)>0 then
mg4:AddCard(c)
end
if ge and ge:GetValue()&LOCATION_REMOVED and c:IsCanBeFusionMaterial()
and c:IsAbleToDeck() and Duel.GetFlagEffect(1-tp,id+4)>0 then
mg4:AddCard(c)
end
if #mg4>0 then mg1:Merge(mg4) end
Auxiliary.FCheckAdditional=s.fcheck
Auxiliary.GCheckAdditional=s.gcheck
local res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
......@@ -123,7 +108,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
res=Duel.IsExistingMatchingCard(s.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,mf,chkf)
end
end
return res
return Debug.Message(res)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
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