- Joined
- Sep 3, 2006
- Messages
- 1,738
Okay, so I had an idea for a hero. The spell is called "Vision Hack" and is meant to respond to the units ultimate "Maphack" which allows that unit to see the entire map. Now, the only problem is that I'm trying to make it so that "Vision Hack" damages every enemy hero that is visible to the casting player.
What I have so far works, minus the hero having to be in vision:
What I have so far works, minus the hero having to be in vision:
-
Vision Hack
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Vision Hack (C)
-
-
Actions
-
Unit Group - Pick every unit in (Units within 1000000000.00 of (Position of (Casting unit)) matching (((Picked unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is A Hero) Equal to True
-
-
Then - Actions
-
Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real((Intelligence of (Casting unit) (Exclude bonuses)))) damage of attack type Spells and damage type Normal
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-