Commit 7696b5c3 authored by REIKAI's avatar REIKAI 💬

Update c16199990.lua

parent 5eb45d49
Pipeline #16677 passed with stages
in 51 minutes and 7 seconds
......@@ -44,7 +44,8 @@ local cate_table_for_reikai={
['ct'] = CATEGORY_COUNTER,
['des'] = CATEGORY_DESTROY,
}
rk.List_A_Counter = {
rk.List_A_Counter = rk.List_A_Counter or {
1487805,
20985997,
21768554,
......@@ -103,7 +104,15 @@ function rk.set(code,setcode,rkflag,excode)
end
function Card.IsListedACounter(c)
local code = c:GetOriginalCode()
return aux.IsCounterAdded(c,0x100e) or IsInTable(code,rk.List_A_Counter) or rk.check(c,"Acounter")
return aux.IsCounterAdded(c,0x100e) or rk.IsInTable(code,rk.List_A_Counter) or rk.check(c,"Acounter")
end
function rk.IsInTable(parm,table)
for _,v in ipairs(table) do
if v == parm then
return true
end
end
return false
end
function rk.rkcardcheck(c)
return c.rkcheck==true
......@@ -399,4 +408,4 @@ function rk.indes1(c,code,att)
e2:SetRange(LOCATION_SZONE)
tc:RegisterEffect(e2)
return e1,e2
end
end
\ No newline at end of file
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