stacking stuns

windale5

New Member
Reaction score
2
Is there a way to make a stun stackable. In other word it mean like in wow if 1 player stuns you and another player uses a stun the stun time add up of both the abilities that have stun you
Ex:
firebolt 9 sec stun time
storm bolt 7 sec stun time.
Your hero got hit by both abilities at the same time
you are stunned for 16 secs total.
is this possible
 

roXplosive

New Member
Reaction score
15
I think you should attach an event that counts the stun duration of the hero when he takes damage if it is possible to detect the spell that damaged him . If so I think you should make a trigger acting when the hero takes damage , detect the stun time of the spell used via a table and set a global variable StunTimeRemaining to the current stun time added to the previous stun time . This will add stuns up . Next do a trigger pweriodic that activates when StunTimeRemaining>0 , if the hero is not stunned stun him via a dummy unit for the duration of the timer of this thread and reduce the StunTimeRemaining . That's what I can think of .
 

Dirac

22710180
Reaction score
147
Set the stun duration of both those abilities to 9999.

Through triggers remove the buff after the desired duration, if another stun is casted on an already stunned unit, just make it longer
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top