Well after many hours I found a work around to the lack of Reincarnation detection event and got my spell working. But now I've got a smaller problem because my actions that follow need to be applied after the unit revives so I tossed in the wait untill triggering unit's life is greater than 2 and all works fine. But I know that simple fix ruined the mpi'ness that it had going. Any idea's on what I should do?
Here's the trigger:
Inspiration
Events
Conditions
Actions
Custom script: if (IsUnitType(GetTriggerUnit(), UNIT_TYPE_DEAD) == false) then
Wait until ((Life of (Triggering unit)) Greater than or equal to 2.00), checking every 0.10 seconds
Set TempPoint = (Position of (Triggering unit))
Set TempGroup = (Units within 400.00 of TempPoint matching ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
Unit - Add InspirationBuff to (Last created unit)
Unit - Set level of InspirationBuff for (Last created unit) to (Level of Inspiration for (Triggering unit))
Unit - Order (Last created unit) to Undead Necromancer - Unholy Frenzy (Picked unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: endif
Custom script: call DestroyGroup (udg_TempGroup)
Custom script: call RemoveLocation (udg_TempPoint)
Here's the trigger:
Inspiration
Events
Conditions
Actions
Custom script: if (IsUnitType(GetTriggerUnit(), UNIT_TYPE_DEAD) == false) then
Wait until ((Life of (Triggering unit)) Greater than or equal to 2.00), checking every 0.10 seconds
Set TempPoint = (Position of (Triggering unit))
Set TempGroup = (Units within 400.00 of TempPoint matching ((Owner of (Matching unit)) Not equal to Player 12 (Brown)))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
Unit - Add InspirationBuff to (Last created unit)
Unit - Set level of InspirationBuff for (Last created unit) to (Level of Inspiration for (Triggering unit))
Unit - Order (Last created unit) to Undead Necromancer - Unholy Frenzy (Picked unit)
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Custom script: endif
Custom script: call DestroyGroup (udg_TempGroup)
Custom script: call RemoveLocation (udg_TempPoint)