I'm trying to make a passive animate dead spell where once you kill a unit, a dummy unit will come up at the unit's location and cast animate dead. So I made the trigger using dying unit but the things is I don't think dying is equal to dead so animate dead doesn't cast. How do I make the spell work?
Trigger:
- Frostmourne
- Events
- Unit - A unit Dies
- Conditions
- (Level of Devotion Aura for (Killing unit)) Greater than 0
- Actions
- Set Frostmourne[0] = (Position of (Dying unit))
- Unit - Create 1 Dummy Unit for (Owner of (Killing unit)) at Frostmourne[0] facing Default building facing degrees
- Unit - Add Animate Dead (Lord of the Scourge) to (Last created unit)
- Unit - Set level of Animate Dead (Lord of the Scourge) for (Last created unit) to (Level of Devotion Aura for (Killing unit))
- Unit - Order (Last created unit) to Undead Death Knight - Animate Dead
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_Frostmourne[0])
- Events