Skip to content

Commit d928936

Browse files
authored
fix tags
1 parent fc875c6 commit d928936

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

items/tag.lua

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ local cat = {
1212
name = "cry-Cat Tag",
1313
order = 12,
1414
loc_vars = function(self, info_queue, tag)
15-
return { vars = { tag.ability.level } }
15+
return { vars = { tag.ability.level or 1 } }
1616
end,
1717
}
1818
local epic_tag = {
@@ -246,12 +246,21 @@ local gambler = {
246246
emp.ability.shiny = cry_rollshinybool()
247247
end
248248
add_tag(emp)
249+
tag.triggered = true
249250
emp:apply_to_run({ type = "new_blind_choice" })
250251
G.CONTROLLER.locks[lock] = nil
251252
return true
252253
end)
253254
else
254255
tag:nope()
256+
tag.triggered = true
257+
for i = 1, #G.GAME.tags do
258+
if G.GAME.tags[i] ~= tag then
259+
if G.GAME.tags[i]:apply_to_run({ type = "new_blind_choice" }) then
260+
break
261+
end
262+
end
263+
end
255264
end
256265
tag.triggered = true
257266
return true
@@ -290,6 +299,7 @@ local bundle = {
290299
_tag.ability.shiny = cry_rollshinybool()
291300
add_tag(_tag)
292301
if i == 1 then
302+
tag.triggered = true
293303
_tag:apply_to_run({ type = "new_blind_choice" })
294304
end
295305
end

0 commit comments

Comments
 (0)