- Joined
- Nov 11, 2007
- Messages
- 39
Hi, im having a problem ordering a unit to attack while windwalked.
The spell is basically moving the unit next to a random enemy unit, windwalking and then using windwalk to do bonus damage to the enemy unit. The trigger works flawlessly without the windwalk but the unit refuses to break out of windwalk to attack.
Omni = 300% attack speed Berzerk ability.
Omnibonus is a windwalk ability that is placed on the unit through the unit editor.
I realize this spell still has some holes in it such as when no units are in range, but ill clean those up later. Also its very fussy about being invunrable? not sure why.
The spell is basically moving the unit next to a random enemy unit, windwalking and then using windwalk to do bonus damage to the enemy unit. The trigger works flawlessly without the windwalk but the unit refuses to break out of windwalk to attack.
Omni = 300% attack speed Berzerk ability.
Omnibonus is a windwalk ability that is placed on the unit through the unit editor.
-
Omni New
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Omni
-
Actions
- Unit - Make (Casting unit) Invulnerable
- Unit - Set (Casting unit) acquisition range to 0.00
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 512.00 of (Position of (Casting unit)) matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is alive) Equal to True))) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to Omni
-
Loop - Actions
- Set OmniTarget = (Random unit from Omni)
- Unit Group - Remove all units from Omni
- Set OmniSource = (Position of (Casting unit))
- Unit - Move (Casting unit) instantly to (Position of OmniTarget), facing (Position of OmniTarget)
- Special Effect - Create a special effect attached to the origin of (Casting unit) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Create a special effect at OmniSource using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Unit - Order (Casting unit) to Orc Blademaster - Wind Walk
- Wait 0.10 seconds
- Unit - Order (Casting unit) to Attack OmniTarget
- Wait 0.40 seconds
-
Unit Group - Pick every unit in (Units within 512.00 of (Position of (Casting unit)) matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is alive) Equal to True))) and do (Actions)
-
Loop - Actions
- Unit - Make (Casting unit) Vulnerable
- Unit - Set (Casting unit) acquisition range to 500.00
-
Events
I realize this spell still has some holes in it such as when no units are in range, but ill clean those up later. Also its very fussy about being invunrable? not sure why.