Check for Specific Buff

hybridremix

New Member
Reaction score
0
I need to be able to check if the unit using the trigger has a certain buff in order to perform the action. Here's the quick rundown:

I want a spell that absorbs 80% of an incoming hit and gives the unit mana. I'm trying to set it up so that using the spell applies a buff until the next hit. The next hit should only give the unit mana if the buff is active on the unit.

At the moment I'm giving the mana just when the unit takes damage. I need to add a condition to check if the specific buff is active on the unit, then I can absorb the damage and give the mana.

So what's the function that checks for a buff? I've been looking all night and I just can't find one.
 

Azlier

Old World Ghost
Reaction score
461
Well, since you posted in the JASS help forum, it's like this.

JASS:
if GetUnitAbilityLevel(whichUnit, BuffId) > 0 then


You see, buffs are just extensions of abilities. You check their levels just like an ability.
 

Azlier

Old World Ghost
Reaction score
461
JASS:
'b000'


vBulletin seems stubborn to make that 'b' lowercase. It will not let me capitalize it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top