FMAlchemist
New Member
- Reaction score
- 4
Ohkays, I've read abit on this little thing called "leaks" and all that.
kk well I have a tiny problem with this 1.
okok it basicly pick all allys and heals them, and picks all undead and hurts them, yeah?
kk but it playes a special effect on them all. yeah? just the way i want it. but im concerned about leaks.
Q`1. is that a leak? if yes go to Q`2
Q`2. What does one have to do, to remove this.
ty~~
kk well I have a tiny problem with this 1.
Code:
Heal
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Heal
Actions
Wait 0.20 seconds
Set Main_Attack_Group[(Player number of (Owner of (Triggering unit)))] = (Units within 300.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True))
Set Main_Attack_Group2[(Player number of (Owner of (Triggering unit)))] = (Units within 300.00 of (Position of (Triggering unit)) matching (((Matching unit) is Undead) Equal to True))
Unit Group - Pick every unit in Main_Attack_Group2[(Player number of (Owner of (Triggering unit)))] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Main_Attack_Group2[(Player number of (Owner of (Triggering unit)))]) Less than or equal to 4
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Real((Strength of (Triggering unit) (Include bonuses)))) x 2.00))
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Main_Attack_Group2[(Player number of (Owner of (Triggering unit)))]) Greater than 4
(Number of units in Main_Attack_Group2[(Player number of (Owner of (Triggering unit)))]) Less than or equal to 9
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Real((Strength of (Triggering unit) (Include bonuses)))) x 1.50))
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
Else - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - ((Real((Strength of (Triggering unit) (Include bonuses)))) x 1.00))
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
Unit Group - Pick every unit in Main_Attack_Group[(Player number of (Owner of (Triggering unit)))] and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Main_Attack_Group[(Player number of (Owner of (Triggering unit)))]) Less than or equal to 5
Then - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 2.00))
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
Else - Actions
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 1.70))
Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Undead\ReplenishMana\SpiritTouchTarget.mdl
okok it basicly pick all allys and heals them, and picks all undead and hurts them, yeah?
kk but it playes a special effect on them all. yeah? just the way i want it. but im concerned about leaks.
Q`1. is that a leak? if yes go to Q`2
Q`2. What does one have to do, to remove this.
ty~~