resolving comment
This commit is contained in:
parent
8651df0118
commit
e821900153
@ -1,24 +1,24 @@
|
|||||||
local zone = nil
|
local zone = nil
|
||||||
local CHAOS_TOKEN_NAMES = {
|
local CHAOS_TOKEN_NAMES = {
|
||||||
"Elder Sign",
|
["Elder Sign"] = true,
|
||||||
"+1",
|
["+1"] = true,
|
||||||
"0",
|
["0"] = true,
|
||||||
"-1",
|
["-1"] = true,
|
||||||
"-2",
|
["-2"] = true,
|
||||||
"-3",
|
["-3"] = true,
|
||||||
"-4",
|
["-4"] = true,
|
||||||
"-5",
|
["-5"] = true,
|
||||||
"-6",
|
["-6"] = true,
|
||||||
"-7",
|
["-7"] = true,
|
||||||
"-8",
|
["-8"] = true,
|
||||||
"Skull",
|
["Skull"] = true,
|
||||||
"Cultist",
|
["Cultist"] = true,
|
||||||
"Tablet",
|
["Tablet"] = true,
|
||||||
"Elder Thing",
|
["Elder Thing"] = true,
|
||||||
"Auto-fail",
|
["Auto-fail"] = true,
|
||||||
"Bless",
|
["Bless"] = true,
|
||||||
"Curse",
|
["Curse"] = true,
|
||||||
"Frost"
|
["Frost"] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
-- general code
|
-- general code
|
||||||
@ -63,15 +63,9 @@ function setMenu(isEnabled)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function onObjectEnterScriptingZone(entering, object)
|
function onObjectEnterScriptingZone(entering, object)
|
||||||
if zone ~= entering or object == self or object.type == "Deck" or object.type == "Card" then
|
if zone ~= entering then return end
|
||||||
return
|
if object == self or object.type == "Deck" or object.type == "Card" then return end
|
||||||
end
|
if CHAOS_TOKEN_NAMES[object.getName()] then return end
|
||||||
|
|
||||||
local name = object.getName()
|
|
||||||
for _, entry in ipairs(CHAOS_TOKEN_NAMES) do
|
|
||||||
if entry == name then return end
|
|
||||||
end
|
|
||||||
|
|
||||||
object.destruct()
|
object.destruct()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user