I'm trying to make a consumable for my mod that applies random enhancements (including modded ones) to all selected cards.
I have something similar for editions but I'm unsure how to do it for enhancements
What I have for editions:
use = function(self, card, area, copier) if G and G.hand and G.hand.highlighted then for i = 1, #G.hand.highlighted do G.hand.highlighted[i]:set_edition(poll_edition('random key', nil, false, true)) end end end