[Solved] Dummy to cast a newly trained unit not working
So I've done this.. Basically i want to make the Musketeer unit have a 25% chance to miss on its attacks, but since I cant Add Buffs to units, I just made a dummy unit that casts it on the newly made Musketeer to add the buff right then and there. But it only works sometimes..? And sometimes the dummies dont remove. Any help? I'm sure theres a much easier way >.<
So I've done this.. Basically i want to make the Musketeer unit have a 25% chance to miss on its attacks, but since I cant Add Buffs to units, I just made a dummy unit that casts it on the newly made Musketeer to add the buff right then and there. But it only works sometimes..? And sometimes the dummies dont remove. Any help? I'm sure theres a much easier way >.<
-
musket inaccuracies
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Mounted Musketeer
- (Unit-type of (Triggering unit)) Equal to Musketeer
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Unit - Create 1 fakeunit2 for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees
- Wait 0.01 seconds
- Unit - Order (Last created unit) to Undead Banshee - Curse (Triggering unit)
- Wait 0.60 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) has buff Curse) Equal to True
-
Then - Actions
- Unit - Remove (Last created unit) from the game
-
Else - Actions
- Wait 0.01 seconds
- Unit - Order (Last created unit) to Undead Banshee - Curse (Triggering unit)
- Wait 0.60 seconds
- Unit - Remove (Last created unit) from the game
-
If - Conditions
-
Events
Last edited: