Commit 4238ca55 authored by salix5's avatar salix5

pendulum_level

parent 2908f6e5
...@@ -1070,7 +1070,12 @@ function Auxiliary.AddPendulumProcedure(c) ...@@ -1070,7 +1070,12 @@ function Auxiliary.AddPendulumProcedure(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function Auxiliary.PConditionFilter(c,e,tp,lscale,rscale) function Auxiliary.PConditionFilter(c,e,tp,lscale,rscale)
local lv=c:GetLevel() local lv=0
if c.pendulum_level then
lv=c.pendulum_level
else
lv=c:GetLevel()
end
return (c:IsLocation(LOCATION_HAND) or (c:IsFaceup() and c:IsType(TYPE_PENDULUM))) return (c:IsLocation(LOCATION_HAND) or (c:IsFaceup() and c:IsType(TYPE_PENDULUM)))
and lv>lscale and lv<rscale and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_PENDULUM,tp,false,false) and lv>lscale and lv<rscale and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_PENDULUM,tp,false,false)
and not c:IsForbidden() and not c:IsForbidden()
......
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