Edit: BTW, i did this way: ((Owner of (Attacked unit)) is an enemy of (Owner of (Attacking unit))) Equal to True
But thnx
Btw, i'll do a skill that is passive, and costs 200 mana, when the unit gets 200 mana (thats why the mana recovery thingy), he will have An increased ATK Speed for 20 seconds, i'll need to create a trigger for this?
Unit - Unit's mana becomes Greater than or equal to 200.00
Conditions
Actions
Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) - 200.00)
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Bloodlust to (Last created unit)
Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Triggering unit)
If the Dummy already has bloodlust or whatever your spell is then remove the "Unit - Add Bloodlust to (Last created unit)". If you don't want it to leak, set a variable to (Position of (Triggering unit)) and then remove it.
Hmm, i found a bug...
Ok, he is recovering the mana with each attack but...
If i keep clicking on my enemy he recovers mana, even without attacking, doing this i can charge 400 mana in like 4-5 seconds (i set him to gain 25 mana with each attack)
How i make him to gain mana only when he damages some unit?
For this you have to use a second trigger like this:
Trigger:
Enter Map
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Trigger - Add to (Your Trigger) the event (Unit - (Triggering unit) Takes damage)
And then remove the event from the other trigger, and change all (Attacking Unit) to (Damage Source)... I'm not sure if you need to change Attacked unit to Triggering Unit, but try it
Ghan has said he has fixed this. Monovertex please confirm this fix. This was only a problem with people that had signatures in the upper levels like not the special members but the respected members.