Hi, I've tried to make a chance on hit spell that is based of chain lightning everytime u attack there is a chance you will cast chain lightning on the attacked unit
I have no idea to make the dummy check who is the attacked unit in the 2nd trigger (right now it's set to random unit just ignore that) Sorry if my triggers are all wrong im not really great
Trigger:
- Pet attacks speed Copy
- Events
- Unit - A unit Is attacked
- Conditions
- (Unit-type of (Attacking unit)) Equal to Wolf
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random integer number between 1 and 20) Equal to 20
- Then - Actions
- Trigger - Run Pet BS <gen> (checking conditions)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Pet BS
- Events
- Conditions
- Actions
- Set Attacking_Unit = (Random unit from (Units of type Wolf))
- Set Attacked_Unit = (Attacked unit)
- Set TempUnit = (Random unit from (Units of type Beast Strenght Dummy))
- Unit - Create 1 Beast Strenght Dummy for Player 1 (Red) at (Position of Attacking_Unit) facing Default building facing degrees
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Unit - Order TempUnit to Orc Far Seer - Chain Lightning Attacked_Unit