• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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