Commit 8c48e04b authored by GuGu's avatar GuGu

Update c74561099.lua

parent f0bcb381
Pipeline #42374 passed with stage
in 8 seconds
...@@ -189,6 +189,7 @@ function cCardno.AddXyzProcedure(c,f,lv,ct,alterf,alterdesc,maxct,alterop) ...@@ -189,6 +189,7 @@ function cCardno.AddXyzProcedure(c,f,lv,ct,alterf,alterdesc,maxct,alterop)
end end
function cCardno.XyzCondition(f,lv,minct,maxct,alterf,alterdesc,alterop) function cCardno.XyzCondition(f,lv,minct,maxct,alterf,alterdesc,alterop)
return function(e,c,og,min,max) return function(e,c,og,min,max)
if (min and type(min)~="Number") or (max and type(max)~="Number") then return false end
if c==nil then return true end if c==nil then return true end
if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end if c:IsType(TYPE_PENDULUM) and c:IsFaceup() then return false end
local tp=c:GetControler() local tp=c:GetControler()
...@@ -220,6 +221,7 @@ function cCardno.XyzCondition(f,lv,minct,maxct,alterf,alterdesc,alterop) ...@@ -220,6 +221,7 @@ function cCardno.XyzCondition(f,lv,minct,maxct,alterf,alterdesc,alterop)
end end
function cCardno.XyzTarget(f,lv,minct,maxct,alterf,alterdesc,alterop) function cCardno.XyzTarget(f,lv,minct,maxct,alterf,alterdesc,alterop)
return function(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max) return function(e,tp,eg,ep,ev,re,r,rp,chk,c,og,min,max)
if (min and type(min)~="Number") or (max and type(max)~="Number") then return false end
if og and not min then if og and not min then
return true return true
end 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