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

Dark Ritual that targets non-undead units?

Status
Not open for further replies.
Level 9
Joined
Apr 23, 2010
Messages
312
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.
 
Status
Not open for further replies.
Top