Commit 19d36ba5 authored by nanahira's avatar nanahira

update

parent a45eacc9
...@@ -31,7 +31,7 @@ end ...@@ -31,7 +31,7 @@ end
local old_fromex=Duel.GetLocationCountFromEx local old_fromex=Duel.GetLocationCountFromEx
function Duel.GetLocationCountFromEx(tp,...) function Duel.GetLocationCountFromEx(tp,...)
local c=select(3,...) local c=select(3,...)
if not c or c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ) then if not c or c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ) and c:IsFacedown() then
return old_fromex(tp,...) return old_fromex(tp,...)
end end
forced_to_extra[tp]=true forced_to_extra[tp]=true
...@@ -148,7 +148,7 @@ local old_spsummon_step=Duel.SpecialSummonStep ...@@ -148,7 +148,7 @@ local old_spsummon_step=Duel.SpecialSummonStep
local old_spsummon=Duel.SpecialSummon local old_spsummon=Duel.SpecialSummon
function Duel.SpecialSummonStep(c,...) function Duel.SpecialSummonStep(c,...)
local tp=select(3,...) local tp=select(3,...)
if c:IsLocation(LOCATION_EXTRA) and (c:IsType(TYPE_PENDULUM) and not c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ) or c:IsType(TYPE_LINK)) then if c:IsLocation(LOCATION_EXTRA) and (c:IsType(TYPE_PENDULUM) and c:IsFaceup() or c:IsType(TYPE_LINK)) then
forced_to_extra[tp]=true forced_to_extra[tp]=true
end end
local res=old_spsummon_step(c,...) local res=old_spsummon_step(c,...)
...@@ -165,7 +165,7 @@ function Duel.SpecialSummon(g,...) ...@@ -165,7 +165,7 @@ function Duel.SpecialSummon(g,...)
end end
local groups={} local groups={}
groups[1]=tg:Filter(function(c) groups[1]=tg:Filter(function(c)
return c:IsLocation(LOCATION_EXTRA) and (c:IsType(TYPE_PENDULUM) and not c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ) or c:IsType(TYPE_LINK)) return c:IsLocation(LOCATION_EXTRA) and (c:IsType(TYPE_PENDULUM) and c:IsFaceup() or c:IsType(TYPE_LINK))
end,nil) end,nil)
tg:Sub(groups[1]) tg:Sub(groups[1])
groups[2]=tg:Filter(function(c) groups[2]=tg:Filter(function(c)
......
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