Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor branch: hacky hack to stop modicon crash #374

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/gameset.lua
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,11 @@ function cry_get_gameset(card, center)
if not center.key then
if center.tag and center.tag.key then --dumb fix for tags
center = center.tag
elseif card.atlas and (
card.atlas.original_key == "modicon" or
card.atlas.original_key == "mod_tags" or
card.atlas.name == "tags") then -- dumber fix for modicons
return G.PROFILES[G.SETTINGS.profile].cry_gameset or "mainline"
else
error("Could not find key for center: " .. tprint(center))
end
Expand Down