Commit 8ea9ea23 authored by DailyShana's avatar DailyShana

fix

parent 8ed9d3fe
...@@ -1374,16 +1374,16 @@ end ...@@ -1374,16 +1374,16 @@ end
function Auxiliary.FShaddollFilter2(c,attr) function Auxiliary.FShaddollFilter2(c,attr)
return c:IsFusionAttribute(attr) or c:IsHasEffect(4904633) return c:IsFusionAttribute(attr) or c:IsHasEffect(4904633)
end end
function Auxiliary.FShaddollSpFilter1(c,tp,mg,exg,attr) function Auxiliary.FShaddollSpFilter1(c,tp,mg,exg,attr,chkf)
return mg:IsExists(Auxiliary.FShaddollSpFilter2,1,c,tp,c,attr) or (exg and exg:IsExists(Auxiliary.FShaddollSpFilter2,1,c,tp,c,attr)) return mg:IsExists(Auxiliary.FShaddollSpFilter2,1,c,tp,c,attr,chkf) or (exg and exg:IsExists(Auxiliary.FShaddollSpFilter2,1,c,tp,c,attr,chkf))
end end
function Auxiliary.FShaddollSpFilter2(c,tp,mc,attr) function Auxiliary.FShaddollSpFilter2(c,tp,mc,attr,chkf)
local sg=Group.FromCards(c,mc) local sg=Group.FromCards(c,mc)
if sg:IsExists(Auxiliary.TuneMagicianCheckX,1,nil,sg,EFFECT_TUNE_MAGICIAN_F) then return false end if sg:IsExists(Auxiliary.TuneMagicianCheckX,1,nil,sg,EFFECT_TUNE_MAGICIAN_F) then return false end
if not Auxiliary.MustMaterialCheck(sg,tp,EFFECT_MUST_BE_FMATERIAL) then return false end if not Auxiliary.MustMaterialCheck(sg,tp,EFFECT_MUST_BE_FMATERIAL) then return false end
return ((Auxiliary.FShaddollFilter1(c) and Auxiliary.FShaddollFilter2(mc,attr)) return ((Auxiliary.FShaddollFilter1(c) and Auxiliary.FShaddollFilter2(mc,attr))
or (Auxiliary.FShaddollFilter2(c,attr) and Auxiliary.FShaddollFilter1(mc))) or (Auxiliary.FShaddollFilter2(c,attr) and Auxiliary.FShaddollFilter1(mc)))
and Duel.GetLocationCountFromEx(tp,tp,sg)>0 and (chkf==PLAYER_NONE or Duel.GetLocationCountFromEx(tp,tp,sg)>0)
end end
function Auxiliary.FShaddollCondition(attr) function Auxiliary.FShaddollCondition(attr)
return function(e,g,gc,chkf) return function(e,g,gc,chkf)
...@@ -1398,9 +1398,9 @@ function Auxiliary.FShaddollCondition(attr) ...@@ -1398,9 +1398,9 @@ function Auxiliary.FShaddollCondition(attr)
end end
if gc then if gc then
if not mg:IsContains(gc) then return false end if not mg:IsContains(gc) then return false end
return Auxiliary.FShaddollSpFilter1(gc,tp,mg,exg,attr) return Auxiliary.FShaddollSpFilter1(gc,tp,mg,exg,attr,chkf)
end end
return mg:IsExists(Auxiliary.FShaddollSpFilter1,1,nil,tp,mg,exg,attr) return mg:IsExists(Auxiliary.FShaddollSpFilter1,1,nil,tp,mg,exg,attr,chkf)
end end
end end
function Auxiliary.FShaddollOperation(attr) function Auxiliary.FShaddollOperation(attr)
...@@ -1418,18 +1418,18 @@ function Auxiliary.FShaddollOperation(attr) ...@@ -1418,18 +1418,18 @@ function Auxiliary.FShaddollOperation(attr)
mg:RemoveCard(gc) mg:RemoveCard(gc)
else else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
g=mg:FilterSelect(tp,Auxiliary.FShaddollSpFilter1,1,1,nil,tp,mg,exg,attr) g=mg:FilterSelect(tp,Auxiliary.FShaddollSpFilter1,1,1,nil,tp,mg,exg,attr,chkf)
mg:Sub(g) mg:Sub(g)
end end
if exg and exg:IsExists(Auxiliary.FShaddollSpFilter2,1,nil,tp,g:GetFirst(),attr) if exg and exg:IsExists(Auxiliary.FShaddollSpFilter2,1,nil,tp,g:GetFirst(),attr,chkf)
and (mg:GetCount()==0 or (exg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(81788994,0)))) then and (mg:GetCount()==0 or (exg:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(81788994,0)))) then
fc:RemoveCounter(tp,0x16,3,REASON_EFFECT) fc:RemoveCounter(tp,0x16,3,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local sg=exg:FilterSelect(tp,Auxiliary.FShaddollSpFilter2,1,1,nil,tp,g:GetFirst(),attr) local sg=exg:FilterSelect(tp,Auxiliary.FShaddollSpFilter2,1,1,nil,tp,g:GetFirst(),attr,chkf)
g:Merge(sg) g:Merge(sg)
else else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local sg=mg:FilterSelect(tp,Auxiliary.FShaddollSpFilter2,1,1,nil,tp,g:GetFirst(),attr) local sg=mg:FilterSelect(tp,Auxiliary.FShaddollSpFilter2,1,1,nil,tp,g:GetFirst(),attr,chkf)
g:Merge(sg) g:Merge(sg)
end end
Duel.SetFusionMaterial(g) Duel.SetFusionMaterial(g)
......
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