Okay, so I am trying to create an ability that gives a unit a buff that gives it 100% damage return, similar to the Thorns Aura ability, but I would also like it to return the damage from targeted spells (chain lightning, firebolt, etc.) Is this possible?
I've been messing around with triggers, something like:
Event: Any unit takes damage
Condition: Unit has buff = Eye For An Eye ((That's what I call the spell))
Effects: Damage (Attacking Unit) for (Damage done)
This trigger goes off, but does no damage (apparently the "Damage Done" get event doesn't work the way I'm trying to make it work. Anyone have any suggestions?
To the actions and, sure enough, if I had the buff and took damage it would start spamming "!", so I know it's triggering okay.
I am aware that the buff check condition and the damage taken event are sometimes... difficult, but I'm not sure how buggy they are. Buggy in what way? Buff check being really buggy would be tough, since many of the triggers in my map rely on it, (mostly) successfully right now.
I'm thinking some solution may be possible using variables, but I've been yet unable to impliment it.
I'm not sure but you shouldn't use 'attacking unit'. in jass, there's GetEventDamageSource for the damaging unit, and that is different from GetAttacker... i don't know WEU but there must something like Damage Source, or Damaging Unit for that.