function UnitRemoveBuffBJ takes integer buffcode, unit whichUnit returns boolean return UnitRemoveAbility(whichUnit, buffcode) endfunction
function UnitHasBuffBJ takes unit whichUnit, integer buffcode returns boolean return (GetUnitAbilityLevel(whichUnit, buffcode) > 0) endfunction
It didn't work tho.
However, has anyone discovered any way to add a buff to a unit, without making a dummy, giving it an ability (that aplies the buff), and making the dummy cast the buffing spell?
~I kind a need only the icon of the buff, not its effect~