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!
I think it stick to Undead class units, try use channel and trigger it, unless there's another solution, that's the best you can do to make non undead friendly unit targetable.
Would Unit - Add Classification work? I was going to try this with Dark Conversion until I realized it checks for Race instead of classification so I never got to know.
it might u have to try it. some of the abilities are hard coded in wc3. that means the only way u can change it is to make a new spell from channel and trigger the whole spell.
I would recommend that you trigger this. You can create a dummy spell that (using triggers) kills the targeted unit, and do a short equation to add the mana to the casting unit.
I'll even be nice about it and post the trigger for it. For whatever reason when I added the affects to the ability for caster and target, they wouldn't work so I just put them in the trigger.
Dark Ritual
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Dummy Spell
Actions
Set TempUnit[0] = (Casting unit)
Set TempUnit[1] = (Target unit of ability being cast)
Set Replenish = ((0.33 x (Real((Level of Dummy Spell for TempUnit[0])))) x (Life of TempUnit[1]))
Unit - Kill TempUnit[1]
Unit - Set mana of TempUnit[0] to ((Mana of TempUnit[0]) + Replenish)
Special Effect - Create a special effect attached to the origin of TempUnit[0] using Abilities\Spells\Undead\DarkRitual\DarkRitualCaster.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect attached to the origin of TempUnit[1] using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
Special Effect - Destroy (Last created special effect)
All you have to do now is make the spell do nothing other than have a cooldown.
EDIT: Also you want to have the 'Targets Allowed' field to have these as allowable targets; Air, Friendly, Ground, Organic.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.