Use SMODS.get_enhancements

This commit is contained in:
Emik 2026-03-21 21:53:03 +01:00
parent 51ad870d8c
commit dd71145698
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 2 additions and 4 deletions

View file

@ -6,7 +6,7 @@
"author": [ "author": [
"Emik" "Emik"
], ],
"version": "2.2.1", "version": "2.2.2",
"badge_colour": "8BE9FD", "badge_colour": "8BE9FD",
"main_file": "src/main.lua", "main_file": "src/main.lua",
"badge_text_colour": "44475A", "badge_text_colour": "44475A",

View file

@ -17,9 +17,7 @@ function CardArea:can_highlight(...)
end end
function Card:set_debuff(...) function Card:set_debuff(...)
if self.config and if SMODS.get_enhancements(self).m_wild and SMODS.Mods.Roland.config.no_wild_debuff then
self.config.center_key == "m_wild" and
SMODS.Mods.Roland.config.no_wild_debuff then
self.debuff = false self.debuff = false
else else
orig_set_debuff(self, ...) orig_set_debuff(self, ...)