When an enemy is stunned with a stun that has no id, and a second stun without id is applied, the duration of the first stun is refreshed. This is easiest to trigger with Dianyun, as neither his base attack stun nor his wave stun have an id. The wave stun lasts for 4s, and his main attack has a cooldown of 2s and applies a short stun. Hence, if the wave stun is applied, and then Dianyun uses his main attack on the enemy, the 4s duration will be refreshed every 2s, causing a permanent stunlock.
This issue also applies to e.g. Rotten Forest roots, which lasts 6s. Dianyun, but also towers like Shaolin and Orc Shaman, will pair with this to cause an infinite stunlock.
The easiest and probably most robust solution is to simply give all stuns an id.
The following stuns have no ids
Soul Impact stun
Mortemis hero spell golem
Archdemon slam
Shaolin stun
Witches stun
Furnace stun
Shaman stun
Rotten Forest roots
Rotten Forest ent summon
Bone Flinger skeleton summon
Tramin Flashbang
Margosa dark call
Jigou slam
Doom Tank slam
Dianyun main
Dianyun ricochet
Dianyun wave
(technically, some instakills also apply a stun, but since the target dies, there is no stunlock potential)
When an enemy is stunned with a stun that has no id, and a second stun without id is applied, the duration of the first stun is refreshed. This is easiest to trigger with Dianyun, as neither his base attack stun nor his wave stun have an id. The wave stun lasts for 4s, and his main attack has a cooldown of 2s and applies a short stun. Hence, if the wave stun is applied, and then Dianyun uses his main attack on the enemy, the 4s duration will be refreshed every 2s, causing a permanent stunlock.
This issue also applies to e.g. Rotten Forest roots, which lasts 6s. Dianyun, but also towers like Shaolin and Orc Shaman, will pair with this to cause an infinite stunlock.
The easiest and probably most robust solution is to simply give all stuns an id.
The following stuns have no ids Soul Impact stun Mortemis hero spell golem Archdemon slam Shaolin stun Witches stun Furnace stun Shaman stun Rotten Forest roots Rotten Forest ent summon Bone Flinger skeleton summon Tramin Flashbang Margosa dark call Jigou slam Doom Tank slam Dianyun main Dianyun ricochet Dianyun wave
(technically, some instakills also apply a stun, but since the target dies, there is no stunlock potential)