Skip to content

Commit 9030744

Browse files
committed
Deprecate SMODS.debuff_card(card, 'reset', source).
It never makes sense to use this function, it just serves as a footgun where mods can trample over each other
1 parent 0b34664 commit 9030744

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/utils.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,11 @@ end
417417
function SMODS.debuff_card(card, debuff, source)
418418
debuff = debuff or nil
419419
source = source and tostring(source) or nil
420-
if debuff == 'reset' then card.ability.debuff_sources = {}; return end
420+
if debuff == 'reset' then
421+
sendWarnMessage("SMODS.debuff_card(card, 'reset', source) is deprecated")
422+
card.ability.debuff_sources = {};
423+
return
424+
end
421425
card.ability.debuff_sources = card.ability.debuff_sources or {}
422426
card.ability.debuff_sources[source] = debuff
423427
SMODS.recalc_debuff(card)

version.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return "1.0.0~BETA-1027a-STEAMODDED"
1+
return "1.0.0~BETA-1028a-STEAMODDED"

0 commit comments

Comments
 (0)