Could also be integer overflow that kills my duelist actually, either way, arbitrary precision integers will fix it.
yungscipio
Recent community posts
Rate my lineup boys

Unfortunately my duelist had a tendency to kill himself.
I think it happens because of floating point rounding error when he swaps health and dmg, sometimes it rounds down the result and puts his health below 1. For damage and health, arbitrary precision integers should be used instead of floating point numbers to fix this.

Also it seems random damage doesn't work correctly here, it should easily kill everyone here but it does nothing so he has to hit each one directly to kill them.
Nice one thank you!
Yes I understand the limit. But if you go above the limit and then down again it's suddenly too low.
It's like this:
Buy 4 pumpkins -> 100% retain
Buy 1 more to have 5 -> 100% retain (because of limit, ok)
Replace 1 to have 4 again -> 75% retain (now it's wrong)
And now you have 4 pumpkins but only 75% armor retention.
Very impressive game, nicely done.
I noticed a couple of issues on a somewhat lengthy endless run:
1. Inactive pumpkin
Once you have 4 pumpkins in potted plants, 100% of armor is retained each round. However if you get a 5th, then realise it does nothing and remove it again, you end up with 4 but this time only 75% of armor is retained. And if you remove another to have 3, you keep only 50% where it should be 75%.
Flower pots do the same thing also with number of cards instead of armor retention.
2. Infinite armor
If you buy 4 magnet shrooms you steal 120% of zombie armor. This interacts strangely with the Z-Mech zombie who applies armor to himself when you gain armor. In a fight with the Mech zombie if either of you apply armor you both instantly gain NaN armor and it's impossible for anyone to die. The only way to continue the game here is to restart until you get a different opponent zombie.
3. Flower pots
They seem to stop working at around 8 cards and after that getting more flower pots does nothing, but you can still waste your money buying them anyway.
4. Marigold
The description says "For every 50 coins, it costs one less sun", however it seems to always cost 3 suns regardless of coins. Maybe this is not a bug and I simply don't understand what it means.
There were also some times where my armor would suddenly shoot up to 999, but I don't have any clue what it's related to, something about the magnet shroom as well I think.