Clarity Potion

Level 26
Joined
Dec 4, 2007
Messages
1,758
Hail Hivers,

a little, weird nuisance: Clarity potions always dispell on attack, despite unchecking the option in the object editor (contrary to Healing Salve - working correctly).
Has anyone found a workaround? If not, i guess scripting is in order once again.

edit: rejuvenation potion works (i.e. persist through attacks), but then individual healing/mana potions get overwritten
 
What deepstrasz mentioned actually works, separate buffs and all.
But then both get removed on attack - so rejuvenation buff is hardcoded to always get removed on attack.

edit: that's not true... it works with a modified default replenishment potion :goblin_wtf:
edit2: i think i've found the culprit:
ticking 'allow when full' to always, mistakenly gets interpreted as dispel on attack by the game, i.e. mismatching data

I'll report the finding to Blizzard, let's see if they patch it in a year.
 
Last edited:
What deepstrasz mentioned actually works, separate buffs and all.
But then both get removed on attack - so rejuvenation buff is hardcoded to always get removed on attack.

edit: that's not true... it works with a modified default replenishment potion :goblin_wtf:
....but the engine is still cheating behind your back, I believe. The Replenishment Potion and Rejuvenation are technically different "class" behaviors in the code. Replenishment is an "instant-Area" logic. Because they belong to different internal categories, the engine doesn't see them as the same effect, so they don't overwrite each other, aka u evaded the stacking bug.

Blizzard probably hardcoded the Item Class for almost all consumable restoration items. If the engine sees a unit has a buff originating from an item ability that restores hp or mana over time, it checks for the Damage Event, at least from my understanding.


If you want a potion that stays active while your Hero is in the thick of a 1vxy, you have to "trick" the engine into thinking the mana isn't coming from a potion at all; I'd probably go with one of these:
  • dummy ability;
  • custom buff;
  • periodic trigger;
  • or scripted mana ticks;
**so the engine no longer recognizes it as a native restoration consumable at all.
 
Back
Top