ironhidegames / issues-kr4

Kingdom Rush Vengance - PC Port - Issues
4 stars 0 forks source link

Stuns without ids refreshing causes significant issues #474

Open Mmlh1 opened 4 months ago

Mmlh1 commented 4 months ago

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)

Mmlh1 commented 3 months ago

https://cdn.discordapp.com/attachments/1243295563164684378/1271952213161410631/Kingdom_Rush_Vengeance_2024-08-10_23-33-12_online-video-cutter.com.mp4?ex=66b9354f&is=66b7e3cf&hm=32386b0c54e14b59dcf4750dcd5e6ef672f02823968e24cc5fca1c7d0390a34e&

https://cdn.discordapp.com/attachments/1243295563164684378/1271952643085963315/Kingdom_Rush_Vengeance_2024-08-10_23-35-05_online-video-cutter.com.mp4?ex=66b935b5&is=66b7e435&hm=3b200391b1dfa0de0dfdd3f9981def013596e8c36407ea367e2547929100bf28&