HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Another Blizzard Bug?

10-11-2007, 10:46 AM#1
PandaMine
Is it just me or does GetUnitAbilityLevel not work on the Unholy Frenzy buff (or 'Buhf'). It seems to always return 0, even if the unit has the buff
10-11-2007, 10:59 AM#2
Hitchhiker
it is 'BUhf'
10-11-2007, 11:11 AM#3
PandaMine
According to object editor and GUI's conversion script its 'Buhf' but that could be where the problem lies
10-11-2007, 11:17 AM#4
Tide-Arc Ephemera
Uh... if you try to get level of an ability via a buff, it will return 1 or 0. In which 1 means it's present. According to the UMSWE GUI description anyway.
10-11-2007, 11:53 AM#5
Hitchhiker
hm if you look at the buff field from the unholy frenzy ability, its 'BUhf' but the buff itself has 'Buhf' as id...
seems that there are two versions of the unholy frenzy buff (like purge), but theres only the 'Buhf' in my editor.
10-12-2007, 02:05 AM#6
PandaMine
I know how to JASS, the problem is exactly what Hitchhiker said, the object editor says the buff id is 'Buhf' but the buff is actually 'BUhf' . Even the GUI trigger makes this mistake when converting the Buff Id

Thanks for your help
10-12-2007, 10:37 AM#7
Silvenon
Just an off-topic question: What integer does SetUnitAbilityLevel() return?
10-12-2007, 10:50 AM#8
Hitchhiker
The level of the ability after you set it. Setting the level of an ability to 4 if it only has 3 levels, it would return 3.
10-12-2007, 06:42 PM#9
Silvenon
I remember I did some tests on it, but as I can recall, it wasn't quite the way you said, but I think I'm wrong. Thanks anyways