• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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