//===========================================================================
function UnitHasBuffBJ takes unit whichUnit, integer buffcode returns boolean
return (GetUnitAbilityLevel(whichUnit, buffcode) > 0)
endfunction
//===========================================================================
function UnitRemoveBuffBJ takes integer buffcode, unit whichUnit returns boolean
return UnitRemoveAbility(whichUnit, buffcode)
endfunction