Hi,
I have got a spell (basic 'Heal') that should have 25% chance upon cast, to heal 1 randomly chosen target within 300 of the healed target.
This is what I have at the moment.
Player 9 = The enemy, for clarification.
EDIT: it's not proccing, even after 100 tries. Guess it's malfunction within the trigger.
I have got a spell (basic 'Heal') that should have 25% chance upon cast, to heal 1 randomly chosen target within 300 of the healed target.
This is what I have at the moment.
Trigger:
- Heal
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Heal (HEALER)
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 4) Equal to 1
- (Level of Heal (HEALER) for (Casting unit)) Equal to 1
- Then - Actions
- Set TempUnitGroup = (Units within 300.00 of (Position of (Target unit of ability being cast)) matching (((Owner of (Picked unit)) is an enemy of Player 9 (Gray)) Equal to True))
- Unit Group - Pick every unit in (Random 1 units from TempUnitGroup) and do (Actions)
- Loop - Actions
- Set TempPoint = (Position of (Picked unit))
- Special Effect - Create a special effect at TempPoint using Abilities\Spells\Human\Heal\HealTarget.mdl
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + 140.00)
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_TempPoint)
- Loop - Actions
- Custom script: call DestroyGroup(udg_TempUnitGroup)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Player 9 = The enemy, for clarification.
EDIT: it's not proccing, even after 100 tries. Guess it's malfunction within the trigger.