• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Removng specific buffs from target unit

Status
Not open for further replies.
  • Remove Buffs
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to (Your Awesome Spell)
    • Actions
      • Unit - Remove Buff C from (Target Unit Of Ability Being Cast)
      • Unit - Remove Buff D from (Target Unit Of Ability Being Cast)
      • Unit - Remove Buff E from (Target Unit Of Ability Being Cast)
That is essentially how the trigger would look. You don't really need to check whether the user has it because wc3 already does that check internally (or at least, there is no harm done if you attempt to remove an ability that the unit doesn't have). The function is under "Unit", listed as "Unit - Remove Specific Buff".

Note: In the trigger above, you can assign (Target Unit Of Ability Being Cast) to a variable so that you won't keep fetching the target in the "Unit - Remove ..." function. I just didn't use a variable in the trigger above because it is just an example.
 
Status
Not open for further replies.
Top