HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

UnitRemoveAbility VS UnitRemoveBuffBJ

03-19-2006, 07:05 AM#1
adjack
Is UnitRemoveAbility(unit,buff) faster than UnitRemoveBuffBJ(buff,unit) ?
03-19-2006, 07:19 AM#2
Jacek
Collapse JASS:
function UnitRemoveBuffBJ takes integer buffcode, unit whichUnit returns boolean
    return UnitRemoveAbility(whichUnit, buffcode)
endfunction
UnitRemoveBuffBJ just swaps the parameters and calls UnitRemoveAbility. That means UnitRemoveAbility will be faster because it is native function.