• 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.

Checking if unit has a buff/debuff

Status
Not open for further replies.
Level 5
Joined
Jul 18, 2010
Messages
159
Hi, I want to make skill/spell that will deal damage equal to number of buffs(or debuffs in this situation) for example 20 damage more for each debuff on target unit.
Is there anyway to:
1. check how many buffs target unit has
2. Make spell check only for some buffs/debuffs (for example bonus damage triggers only when unit is stunned, slowed or dazed - still +20 per each while ignoring the other buffs/debuffs)
3. Make spell do diffrent effects based on what buffs/debuffs target has applied on.

edit:
I'm using only triggers, never used JASS, but if JASS will be the only way I'll try it.
 
Level 5
Joined
Jul 18, 2010
Messages
159
<facepalm>
Oh god... checked triggers before posting this and didn't see "Unit has specific buff"...
I'm blind sorry for spamming.

Thanks for the Reply anyway, it made me check it one more time xd
 
Last edited:
Status
Not open for further replies.
Top