Hello everyone,
I've been trying to figure out how to check if a specific unit has a specific buff.
Apparently using UnitHasBuffBJ does not work, why does it not work?
Because the native checks for the ability level of the buff.
But this can not be done since buffs don't have ability levels >.>
How can this ever return true at all :S?
If I use this native for an ability code it does work...
So basically blizzard created a native that doesn't work, is there any alternative to this native?
I've been trying to figure out how to check if a specific unit has a specific buff.
Apparently using UnitHasBuffBJ does not work, why does it not work?
JASS:
function UnitHasBuffBJ takes unit whichUnit, integer buffcode returns boolean
return (GetUnitAbilityLevel(whichUnit, buffcode) > 0)
endfunction
Because the native checks for the ability level of the buff.
But this can not be done since buffs don't have ability levels >.>
How can this ever return true at all :S?
If I use this native for an ability code it does work...
So basically blizzard created a native that doesn't work, is there any alternative to this native?