The_Reaping
Member
- Reaction score
- 2
Okay. so i'm creating a spell that deals damage every second for 3 seconds, in an AoE, and heals the hero for 5% of all damage dealt. I have the triggers set up and everything, but for some reason. When I first use the spell it only hits and heals twice and the second time I cast it, it only hits and heals once.. Getting irritating. I just can't seem to find out the problem.
Here's the trigger info.
Thanks in advance.
Here's the trigger info.
Trigger:
- Nerubian Plague
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Nerubian Plague
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Nerubian Plague for (Triggering unit)) Equal to 1
- Then - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- Set TempGroup = (Units within 275.00 of (Target point of ability being cast) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing 75.00 damage of attack type Magic and damage type Disease
- Special Effect - Destroy (Last created special effect)
- Loop - Actions
- Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (0.05 x (75.00 x (Real((Number of units in TempGroup))))))
- Special Effect - Destroy (Last created special effect)
- Custom script: call DestroyGroup(udg_TempGroup)
- Wait 1.00 seconds
- Loop - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Nerubian Plague for (Triggering unit)) Equal to 2
- Then - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- Set TempGroup = (Units within 275.00 of (Target point of ability being cast) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing 150.00 damage of attack type Magic and damage type Disease
- Special Effect - Destroy (Last created special effect)
- Loop - Actions
- Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (0.05 x (150.00 x (Real((Number of units in TempGroup))))))
- Special Effect - Destroy (Last created special effect)
- Custom script: call DestroyGroup(udg_TempGroup)
- Wait 1.00 seconds
- Loop - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Nerubian Plague for (Triggering unit)) Equal to 3
- Then - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- Set TempGroup = (Units within 275.00 of (Target point of ability being cast) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing 225.00 damage of attack type Magic and damage type Disease
- Special Effect - Destroy (Last created special effect)
- Loop - Actions
- Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (0.05 x (225.00 x (Real((Number of units in TempGroup))))))
- Custom script: call DestroyGroup(udg_TempGroup)
- Special Effect - Destroy (Last created special effect)
- Wait 1.00 seconds
- Loop - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Nerubian Plague for (Triggering unit)) Equal to 4
- Then - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Loop - Actions
- Set TempGroup = (Units within 275.00 of (Target point of ability being cast) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing 300.00 damage of attack type Magic and damage type Disease
- Special Effect - Destroy (Last created special effect)
- Loop - Actions
- Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Spells\Undead\DeathCoil\DeathCoilSpecialArt.mdl
- Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (0.05 x (300.00 x (Real((Number of units in TempGroup))))))
- Custom script: call DestroyGroup(udg_TempGroup)
- Special Effect - Destroy (Last created special effect)
- Wait 1.00 seconds
- Loop - Actions
- For each (Integer A) from 1 to 3, do (Actions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Thanks in advance.