It is supposed to heal allies for 50% intelligence of the casting hero, and deal 50% intelligence as damage to enemies. But it has no effect. What is wrong? Do I have to use variables? Or do I have to replace casting unit with triggering unit?
-
Natures Balance
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Druid (Nature's Balance)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Target unit of ability being cast) is A structure) Not equal to True
- ((Target unit of ability being cast) is Magic Immune) Not equal to True
- ((Target unit of ability being cast) is dead) Not equal to True
- ((Target unit of ability being cast) belongs to an enemy of (Owner of (Casting unit))) Equal to True
- (Target unit of ability being cast) Not equal to (Casting unit)
-
Then - Actions
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Real((Intelligence of (Casting unit) (Include bonuses)))) x 0.50) damage of attack type Spells and damage type Normal
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Target unit of ability being cast) is A structure) Not equal to True
- ((Target unit of ability being cast) is Magic Immune) Not equal to True
- ((Target unit of ability being cast) is dead) Not equal to True
- ((Target unit of ability being cast) belongs to an ally of (Owner of (Casting unit))) Equal to True
-
Then - Actions
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((Real((Intelligence of (Casting unit) (Include bonuses)))) x -0.50) damage of attack type Spells and damage type Normal
-
Else - Actions
- Do nothing
-
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