I'm trying to make a function that allows me to change the permanent damage of a unit, and all of it works except for two lines of code. The two lines are the ones that add and remove the hero inventory. Am I doing something that doesn't work?
u is the unit passed to the function. I have tried removing and/or giving the Hero Inventory to a unit to test the function and that also doesn't seem to work.
JASS:
call UnitAddAbility(u, 'Ainv')
//...
call UnitRemoveAbility(u, 'Ainv')
u is the unit passed to the function. I have tried removing and/or giving the Hero Inventory to a unit to test the function and that also doesn't seem to work.