- Joined
- Aug 16, 2007
- Messages
- 881
Hello, I've got a quick question. Is there any way to check the level of a buff at a unit? GUI or JASS doesn't matter. Thanks
GetUnitAbilityLevel()
That doesn't actually work even though it seem like it should.Use the buff's id.JASS:GetUnitAbilityLevel()
function UnitHasBuffBJ takes unit whichUnit, integer buffcode returns boolean
return (GetUnitAbilityLevel(whichUnit, buffcode) > 0)
endfunction