Commit a37beee4 authored by nanahira's avatar nanahira

Merge branch 'master' into new

parents a9c9f4cb bc6fcf7d
...@@ -50,7 +50,7 @@ end ...@@ -50,7 +50,7 @@ end
function cm.cfilter(c,tp) function cm.cfilter(c,tp)
local ty=c:GetSummonType() local ty=c:GetSummonType()
if c:GetSummonPlayer()==tp or c:GetMaterialCount()<=0 then return false end if c:GetSummonPlayer()==tp or c:GetMaterialCount()<=0 then return false end
for i,tty in pairs({SUMMON_TYPE_FUSION+SUMMON_TYPE_SYNCHRO+SUMMON_TYPE_XYZ+SUMMON_TYPE_LINK}) do for i,tty in pairs({SUMMON_TYPE_FUSION,SUMMON_TYPE_SYNCHRO,SUMMON_TYPE_XYZ,SUMMON_TYPE_LINK}) do
if (ty & tty)==tty then return true end if (ty & tty)==tty then return true end
end end
return false return false
......
...@@ -61,5 +61,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,5 +61,11 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
sg:Merge(g) sg:Merge(g)
end end
end end
Duel.SpecialSummon(sg,SUMMON_TYPE_PENDULUM,tp,tp,false,false,POS_FACEUP) if #sg<=0 then return end
for tc in aux.Next(sg) do
local bool=aux.PendulumSummonableBool(tc)
Duel.SpecialSummonStep(tc,SUMMON_TYPE_PENDULUM,tp,tp,bool,bool,POS_FACEUP)
end
Duel.SpecialSummonComplete()
for tc in aux.Next(sg) do tc:CompleteProcedure() end
end end
\ No newline at end of file
...@@ -150,7 +150,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -150,7 +150,8 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.PConditionFilter(c,e,tp) function cm.PConditionFilter(c,e,tp)
return (c:IsLocation(LOCATION_HAND) or (c:IsFaceup() and c:IsType(TYPE_PENDULUM))) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_PENDULUM,tp,false,false) local bool=aux.PendulumSummonableBool(c)
return (c:IsLocation(LOCATION_HAND) or (c:IsFaceup() and c:IsType(TYPE_PENDULUM))) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_PENDULUM,tp,bool,bool)
and not c:IsForbidden() and not c:IsForbidden()
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -226,7 +227,13 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -226,7 +227,13 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
sg:Merge(g) sg:Merge(g)
end end
end end
Duel.SpecialSummon(sg,SUMMON_TYPE_PENDULUM,tp,tp,false,false,POS_FACEUP) if #sg<=0 then return end
for tc in aux.Next(sg) do
local bool=aux.PendulumSummonableBool(tc)
Duel.SpecialSummonStep(tc,SUMMON_TYPE_PENDULUM,tp,tp,bool,bool,POS_FACEUP)
end
Duel.SpecialSummonComplete()
for tc in aux.Next(sg) do tc:CompleteProcedure() end
end end
function cm.sumcon(e,tp,eg,ep,ev,re,r,rp) function cm.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousPosition(POS_FACEUP) and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousPosition(POS_FACEUP) and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
......
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