MrMister
Sailor Apprentice
Jar of Leeches is (I assume, going by the description) a cheap antidote that with suck away a bit of your health.
The Quick Heal function (from what I remember when I checked it out years ago) chooses by default the medicament item in your inventory that a) has health gain/regen and b) has the smallest health gain/regen (to both use cheaper stuff first and to avoid overhealing).
The problem is that Jar of Leeches' negative health regen makes it a valid target for Quick Heal, unlike normal antidotes (which lack any health regen). And not just that, but it will always be used (unless you change the setting to use the most powerful healing potions first), since its negative regen makes it the one with the smallest regen, and thus the highest priority target for the b) check.
I was not amused when I needed a patch-me-up and Eduardo went for a kiss instead.
Suggestion: slightly edit the quickheal function to also check that the item's health regen is positive.
If this is not fixed and just treated as a feature, then you *must* always manually select healing items when you carry leeches.You can't even give it yo your companions to carry I'm pretty sure, as they will succumb to the same fate. EDIT: Actually, LAi_UseHealthBottle has a `if(healthInBottle <= 0) return;` check, so they should be fine.
The Quick Heal function (from what I remember when I checked it out years ago) chooses by default the medicament item in your inventory that a) has health gain/regen and b) has the smallest health gain/regen (to both use cheaper stuff first and to avoid overhealing).
The problem is that Jar of Leeches' negative health regen makes it a valid target for Quick Heal, unlike normal antidotes (which lack any health regen). And not just that, but it will always be used (unless you change the setting to use the most powerful healing potions first), since its negative regen makes it the one with the smallest regen, and thus the highest priority target for the b) check.
I was not amused when I needed a patch-me-up and Eduardo went for a kiss instead.
Suggestion: slightly edit the quickheal function to also check that the item's health regen is positive.
If this is not fixed and just treated as a feature, then you *must* always manually select healing items when you carry leeches.
Last edited: