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

[Trigger] Help with combining spells through Dummy

Level 1
Joined
May 10, 2025
Messages
2
Hi, I am a beginner spell maker, I read some introductary guides, and have tried to create 2 spells but I can't get them to work.

The problem with both is that I try to combine two spell effects in one, making the second effect be cast by a Dummy.

Spell 1: The hero casts Bloodlust, and after the effect runs out I want the target to be affected by cripple
  • Bloodlust spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Bloodlust (Vol)
    • Actions
      • Unit - Create 1 DUMMY1 for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
      • Unit - Add a 9.50 second Generic expiration timer to (Last created unit)
      • Unit - Set level of Cripple (vol) for DUMMY1 for (Last created unit) to (Level of Bloodlust (Vol) for (Triggering unit))
      • Wait 8.00 seconds
      • Unit - Order (Last created unit) to Undead Necromancer - Cripple (Target unit of ability being cast)
Spell 2: The hero casts polymorph, and I want the target to be healed while affected by polymorph
  • Volalite Polymorph Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Vol Polymorph
    • Actions
      • Unit - Create 1 DUMMY1 for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Unit - Set level of Vol DUMMY1 Rejuvination for (Last created unit) to (Level of Vol Polymorph for (Triggering unit))
      • Unit - Order (Last created unit) to Night Elf Druid Of The Claw - Rejuvenation (Target unit of ability being cast)
Any help is greatly appreciated. Sorry if my question is too simple, I haven't been able to track down an answer in another post.
 
Last edited by a moderator:
Level 31
Joined
Aug 29, 2012
Messages
1,402
Assuming your dummy already has the spells and can cast them(e.g. they have a huge cast range, no mana cost, no tech tree requirement, etc),

1/ By using (last created unit) after a wait, you have the risk that the last created unit is something totally different (like the dummy from your second spell for example). One solution is to store the dummy in an unit variable, so that you can use it safely through a wait. Same remark for (target of ability being cast), it usually won't work after a wait

2/ Can't think of anything wrong with the healing trigger except one thing: I assume polymorph is cast on enemies, did you change the targets allowed for your rejuvenation spell? Otherwise it can only be cast on friendlies by default
 
Top