- Joined
- Dec 8, 2005
- Messages
- 58
Im trying to make a tower have a 35% chance of missing its attacks all the time. I tried to make a ability based off of Drunken Haze but can't seem to make my dummy unit cast it on my tower when its built here's my trigger...
It just don't work and I am not sure why. I should also add I'm very noob with Dummy Units . So yeah I just want the tower to miss 35% of time every time it attacks.
Code:
Defence Turrent
Events
Unit - A unit Finishes construction
Conditions
(Unit-type of (Constructed structure)) Equal to 50. Cal Defence Turret
Actions
Unit - Create 1 Dummy Unit for (Triggering player) at (Position of (Constructed structure)) facing Default building facing (270.0) degrees
Unit Group - Pick every unit in (Units of type Dummy Unit) and do (Actions)
Loop - Actions
Unit - Add Miss for Defence Turrent to (Picked unit)
Unit - Order (Picked unit) to Neutral Pandaren Brewmaster - Drunken Haze (Constructed structure)
Unit - Remove Miss for Defence Turrent from (Picked unit)
Unit - Add a 2.00 second Generic expiration timer to (Picked unit)
It just don't work and I am not sure why. I should also add I'm very noob with Dummy Units . So yeah I just want the tower to miss 35% of time every time it attacks.