- Joined
- Jul 12, 2011
- Messages
- 1,371
Hello everyone!
I'making a unit's passive spell that heals only the friendly units he attacks. I've managed to make the healing part but it works even in the hostile ones. Can you help me?
Script:
I'making a unit's passive spell that heals only the friendly units he attacks. I've managed to make the healing part but it works even in the hostile ones. Can you help me?
Script:
-
Healing Shot
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Footman
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (((Attacked unit) belongs to an ally of (Owner of (Attacked unit))) Equal to True) and (((Attacked unit) belongs to an enemy of (Owner of (Attacked unit))) Equal to False)
-
Then - Actions
- Wait 1.00 seconds
- Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) + 80.00)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events