No matter when i do i can't get life drain to be able to target allied units. Im using it so i can get lightning fx at a height. Is theer any possible way to get it to target allies?
i'm still new but i think you could just open up abilitydata.slk file and add friend to the targ1 field for the particular source spell that your guy is using. Then add/overwrite the file to your map. That should make your spell able to target friend units as well as enemys.
I don't have Frozen thrown so i have to do everything the hard way lol...
I also had this problem. To solve it set the life drained to 0.01 and draining time to 999999. And obviously set it to target allies. oh, and base the spell of "Life Drain" and not off "Siphon Mana".
I already did that, set drian interval to 99999, set hp drained to .01, and set duration to 3600(max). I tried manually casting it but it says "Unable to target your own units", or "Must target an enemy unit". When did you use the life drain thing, because the 1.17 patch might be causing this.
Well... I personally never tried to drain from an unit to another and I'm not really sure how you could trigger this... But just giving life to one friend is easy. Check my observations below. It should work!
I don't like Channel for some reason. I still suggest Life Drain, just change the draining to 0.01 and time between drainings to 9999999 and that is all. Why doesn't it work? I suppose you still want to have it target enemy units. Ok, if you just would've left the timer to 0 then it wouldn't have worked and it would've told you that no target is valid.
I told you, i already tried setting the life drained to 0.01, and drain itnerval to max, but it still says "Must target enemy unit". I don't like channel either because it pauses the caster, but i decided to use it any way and added this loop to the trigger.
Ok... I am still surprised that Life Drain doesn't work... Hmm, please try my Divine Intervention. You will see there that I used some Drain which is used by enemy Neutral Hostile to target the Paladin. Here is the link to Divine Intervention: http://www.wc3sear.ch/index.php?p=Spells&ID=733&sid=102cfb37a526a012f92cd7cd70abaa5f .And the Drain Spell, is called Caster Light . I guarantee it will work since as you can see, it worked for my spell. Just change the HP drained to 0.01, AoE, Range and Duration to whatever you want, and Drain Interval to 999999. That is all!
The only reason yours works is because its an enemy targetting him. I need it to be able to target allies. Its ok though, i did it through trigegrs by pausing the caster and doing a loop which exited either when the timer ahd expired, or when the mind controlled unit dies, or when he caster dies,or when the unit goes out of range.