- Joined
- May 28, 2007
- Messages
- 365
I'm having a problem where changing the ability of an Item spell (based off of Alx3 which is Item Hero Stat Bonus) is not changing the amount of stats given.
At level 20 the ability should give 20 strength, but it is only giving the amount given at level 1, which is 1 strength, even after I change the ability level. Anyone have any idea why?
At level 20 the ability should give 20 strength, but it is only giving the amount given at level 1, which is 1 strength, even after I change the ability level. Anyone have any idea why?
JASS:
call UnitAddAbility(user, 'IS01')
call SetUnitAbilityLevel(user, 'IS01', 20)
call BJDebugMsg("Ability level: "+I2S(GetUnitAbilityLevel(user, WeaponStr))) // This displays "Ability level: 20" like it should