Skip to content

Commit 8e71b39

Browse files
committed
idk why its doing this but its fixed now
1 parent 328477e commit 8e71b39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/pointerlib.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ function Cryptid.pointergetblist(target) -- "Is this card pointer banned?"
105105
if not target then
106106
results[1] = true
107107
end
108-
if G.GAME.banned_keys[target] then
108+
if G.GAME.banned_keys[target] or (type(target) == "table" and G.GAME.banned_keys[target.key]) then
109109
results[1] = true
110110
end
111111
for index, value in ipairs(Cryptid.pointerblist) do
112-
if target == value then
112+
if target == value or (type(target) == "table" and target.key) then
113113
results[1] = true
114114
end
115115
end
116-
if results[1] ~= true and G.P_CENTERS[target] then
117-
target = G.P_CENTERS[target]
116+
if results[1] ~= true and (G.P_CENTERS[target] or (type(target) == "table" and G.P_CENTERS[target.key])) then
117+
target = (G.P_CENTERS[target] or (type(target) == "table" and G.P_CENTERS[target.key]))
118118
for value, power in pairs(Cryptid.pointerblisttype) do
119119
for index, val2 in pairs(target) do
120120
if value == index then

0 commit comments

Comments
 (0)