- Joined
- Mar 17, 2012
- Messages
- 582
Hi there! I have a trigger that makes my "Dwarven Hamer" to bash an enemy on each attack.
How to make my illusions don't use that item? ITE checking? But what about default warcraft spells in items like Feedback or different orbs?
-
Bash
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Attacking unit) has an item of type Dwarven Hammer) Equal to True
-
Actions
- Set Basher_Owner = (Attacking unit)
- Set Basher_Target = (Attacked unit)
- Set Basher_Owner_Point = (Position of Basher_Owner)
- Set Basher_Target_Point = (Position of Basher_Target)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 100) Less than or equal to 20
- (Distance between Basher_Owner_Point and Basher_Target_Point) Less than or equal to 175.00
-
Then - Actions
- Unit - Create 1 Regular Dummy for (Owner of Basher_Owner) at Basher_Target_Point facing Default building facing degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Bash basher to (Last created unit)
- Unit - Order (Last created unit) to Human Mountain King - Storm Bolt Basher_Target
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation (udg_Basher_Owner_Point)
- Custom script: call RemoveLocation (udg_Basher_Target_Point)
-
Events
How to make my illusions don't use that item? ITE checking? But what about default warcraft spells in items like Feedback or different orbs?