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