Closed tolik518 closed 5 months ago
Hey, thanks for reporting this with all the info!
Wow you've got some nice items there, that's a lot of attack speed! I may have forgotten that Artifacts can have attack speed too when tweaking the stats... whoops...
The issue is that you have a combined attack speed of more than 400, as the base attack speed is 4 seconds (4000). The attack speed is calculated as (base_attack - (x * 10))
, so 20 attack speed makes attacks 200ms quicker. Having an attack speed more than the base_attack speed causes an attempt to subtract with overflow
error in the CLI version, but the wasm version doesn't catch errors in the same way it seems.
I'll get a fix in for this by nerfing the attack speed to 175 for each.
@hseager yeah that makes sense - maybe there also should be a check so you won't get a value below 0?
@hseager yeah that makes sense - maybe there also should be a check so you won't get a value below 0?
yeah you're right. I actually woke up this morning and thought the same thing about fixing it properly!
I've added an attack_speed cap in the config and a unit test to check it.
So I just had a round where I was attacked multiple times without having the possibility to attack back:
I don't know if I was being extremely unlucky, but I think the changes should be rather small, I guess?
I had the same issue in my next fight and died.
I played the wasm version over here: https://hseager.github.io/you-are-merlin-www/