Dummy's storm bolt doesn't stun...

feelthless

New Member
Reaction score
1
Hi all. My problem is: I made a spell that initialy stuns the target then a dummy casts storm bolt each time the targeted unit travels 200 range. Everything is fine but the storm bolt doesn't stuns. It deals the damage but it doesnt stun. I am sure that the storm bolt dummy ability has duration of 0.5 seconds which is mini stun and have to work. Where is my fault ?
Here is the trigger:
JASS:
DarkPulse4
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to Dark Pulse 
        (Level of Dark Pulse  for (Casting unit)) Equal to 4
    Actions
        Set caster1 = (Casting unit)
        Set target1 = (Target unit of ability being cast)
        Set targetposition1 = (Position of target1)
        Wait until ((target1 has buff Dark Pulse (BuffPlacer)) Equal to True), checking every 0.10 seconds
        Unit - Create 1 Dummy for (Owner of caster1) at targetposition1 facing Default building facing degrees
        Unit - Add Dark Pulse (Initial stun)  to (Last created unit)
        Unit - Order (Last created unit) to Human Mountain King - Storm Bolt target1
        Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
        Wait until ((Distance between targetposition1 and (Position of target1)) Greater than or equal to 200.00), checking every 0.10 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (target1 has buff Dark Pulse (BuffPlacer)) Equal to True
            Then - Actions
                Unit - Create 1 Dummy for (Owner of caster1) at (Position of target1) facing Default building facing degrees
                Unit - Add Dark Pulse (mini-stun)  to (Last created unit)
                Unit - Order (Last created unit) to Human Mountain King - Storm Bolt target1
                Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
                Set targetposition1 = (Position of target1)
            Else - Actions
        Wait until ((Distance between targetposition1 and (Position of target1)) Greater than or equal to 200.00), checking every 0.10 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (target1 has buff Dark Pulse (BuffPlacer)) Equal to True
            Then - Actions
                Unit - Create 1 Dummy for (Owner of caster1) at (Position of target1) facing Default building facing degrees
                Unit - Add Dark Pulse (mini-stun)  to (Last created unit)
                Unit - Order (Last created unit) to Human Mountain King - Storm Bolt target1
                Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
                Set targetposition1 = (Position of target1)
            Else - Actions
        Wait until ((Distance between targetposition1 and (Position of target1)) Greater than or equal to 200.00), checking every 0.10 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (target1 has buff Dark Pulse (BuffPlacer)) Equal to True
            Then - Actions
                Unit - Create 1 Dummy for (Owner of caster1) at (Position of target1) facing Default building facing degrees
                Unit - Add Dark Pulse (mini-stun)  to (Last created unit)
                Unit - Order (Last created unit) to Human Mountain King - Storm Bolt target1
                Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
                Set targetposition1 = (Position of target1)
            Else - Actions
        Wait until ((Distance between targetposition1 and (Position of target1)) Greater than or equal to 200.00), checking every 0.10 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (target1 has buff Dark Pulse (BuffPlacer)) Equal to True
            Then - Actions
                Unit - Create 1 Dummy for (Owner of caster1) at (Position of target1) facing Default building facing degrees
                Unit - Add Dark Pulse (mini-stun)  to (Last created unit)
                Unit - Order (Last created unit) to Human Mountain King - Storm Bolt target1
                Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
                Unit - Remove Dark Pulse (BuffPlacer) buff from target1
            Else - Actions

Thanks in advance
 

vypur85

Hibernate
Reaction score
803
The event 'A unit Finishes casting an ability' does not have the Unit event response 'Target unit of ability being cast'. You may want to change the event to 'A unit starts the effect of an ability'.

Haven't read the trigger though. Just pointing out the event thing.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top