Hi, I have a trigger for a spell that I need help finishing.
Here is what I have:The hero can summon "spirits" (based on spirit of vengence). These are the only targets for the spell. The hero can target this spirit, and then nearby friendly units are healed, and nearby enemy units are damaged.
Here is what I would like:
1) Have the trigger leakless
2) Have more spirits summoned by any units the spell kills.
Here is what I have:The hero can summon "spirits" (based on spirit of vengence). These are the only targets for the spell. The hero can target this spirit, and then nearby friendly units are healed, and nearby enemy units are damaged.
Here is what I would like:
1) Have the trigger leakless
2) Have more spirits summoned by any units the spell kills.
-
Well of Souls
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Well of Souls
-
Actions
- Set Point = (Target point of ability being cast)
- Set UnitGroup = (Units within 650.00 of Point matching (((Matching unit) is alive) Equal to True))
- Set Level = (Level of Well of Souls for (Triggering unit))
- Set Dmg = (Level x ((Hero level of (Triggering unit)) + 125))
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 1000.00 damage of attack type Spells and damage type Normal
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to Well of Souls
-
Then - Actions
-
Unit Group - Pick every unit in UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Owner of (Picked unit)) is an ally of Player 12 (Brown)) Equal to True
-
Then - Actions
- Unit - Set life of (Picked unit) to 100.00%
- Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\DeathPact\DeathPactTarget.mdl
- Special Effect - Destroy (Last created special effect)
-
Else - Actions
- Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real(Dmg)) damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
- Special Effect - Destroy (Last created special effect)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in UnitGroup and do (Actions)
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_Point)
- Custom script: set udg_Point = null
- Custom script: call DestroyGroup( udg_UnitGroup)
- Custom script: set udg_UnitGroup = null
-
Events