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

Auras question...

Status
Not open for further replies.
Level 10
Joined
Mar 17, 2012
Messages
582
Hi everyone!
Does anyone know how to make an aura buff to "last" less than 2 seconds after leaving the range of aura's AoE?

I have a spell (aura) that every 0.1 seconds deals triggered damage to units that have an aura effect, but even if unit runs 100500 kilometers away from me (owner of aura) he keeps taking damage a few seconds.
:thumbs_down:
 
Level 7
Joined
Mar 6, 2006
Messages
282
Probably because, in your trigger that runs every 0.1 seconds, you check to see if the target has a dummy aura buff. So like all non-triggered auras, the effect lasts for a tiny bit once the unit is out of range.

The fix is to trigger the aura's AoE yourself with EnumUnitsInRange and adding them to a global group. Raise the timer to like 0.5 seconds, and only add new units to the group once they're in range, and remove units respectively.
 
Level 24
Joined
Oct 12, 2008
Messages
1,783
Okay, I'm gonna show you a video:
https://www.youtube.com/watch?v=usLw...ature=youtu.be

If there is no way to make a buff last less - could you advice me an alternative buff (like Immolation (I'm not sure that there is any buff on a target))

The first reply already explained everything you need to know.
In short, there is no other way or else everyone would be doing it.
 
Level 10
Joined
Mar 17, 2012
Messages
582
The first reply already explained everything you need to know.
In short, there is no other way or else everyone would be doing it.

There is! And I found it! It is Immolation (illidan's one). I set duration 0.25 and damage 1. Then I check if unit has a buff Immolation and deal damage every 0.1 seconds.

wualah! :thumbs_up:
 
Status
Not open for further replies.
Top