Hello! Has anyone here got a code for an additional buff for buff-granting objects? For example, I want to give an object, the "Tattered Flag" (which provides bonuses to morale and luck for 1 battle), another bonus, say, a speed buff. Naturally, the buff will work the same way as the original, i.e., through GiveHeroBattleBonus(). It will be applied to everyone who touches the object and will not be reapplied until the hero fights someone. Currently, I'm thinking of writing a code that will add everyone who touches the object to a list and give them a tag like allow_touch = 0 (if 0, then the buff will not be applied upon re-touch), and then, in the function from COMBAT_RESULTS_TRIGGER, track who finished the battle, and if it's one of our visitors, give them permission (change 0 to 1) to be re-buffed by the flag. But maybe there's an easier way?
and update after the battle