- Joined
- May 8, 2007
- Messages
- 70
Hi all
i have a problem with one of my triggers.
The plan: I want create a spell that heals frindly Targets and deals damage to enemy Targets. So i created this Trigger here:
Maybe someone know, what i do wrong or i can do better that this trigger works.
i have a problem with one of my triggers.
The plan: I want create a spell that heals frindly Targets and deals damage to enemy Targets. So i created this Trigger here:
-
- Holy Paladin 5
-
Events:
- Unit - A unit Begins casting an ability
-
Conditions:
- Unit - A unit Begins casting an ability
-
Actions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Ability being cast) Equal to - Holy Paladin 5
-
Then - Actions
- Set PALA_Caster = (Casting unit)
-
Unit Group - Pick every unit in (Units within 600.00 of (Position of PALA_Caster) matching ((Owner of (Picked unit)) Equal to Neutral Hostile)) and do (Actions)
-
Loop - Actions
- Unit - Cause PALA_Caster to damage (Picked unit), dealing ((Real((Intelligence of PALA_Caster (Include bonuses)))) x 3.00) damage of attack type Spells and damage type Normal
-
Loop - Actions
- Wait 0.01 seconds
-
Unit Group - Pick every unit in (Units within 600.00 of (Position of PALA_Caster) matching ((Owner of (Picked unit)) Equal to (Local player))) and do (Actions)
-
Loop - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Real((Intelligence of PALA_Caster (Include bonuses)))) x 2.00))
-
Loop - Actions
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events:
Maybe someone know, what i do wrong or i can do better that this trigger works.