buttonmen-dev / buttonmen

Buttonmen - an online dice game
Other
16 stars 24 forks source link

Berserk Konstant die says it isn't rerolled when it shrinks #1627

Open irilyth opened 9 years ago

irilyth commented 9 years ago

In http://dev.buttonweavers.com/ui/game.html?game=1672, I attacked with a Berserk Konstant die, and the log said

irilyth performed Berserk attack using [kB(20):9] against [k(4):4,sk(6):5]; Defender k(4) was captured; Defender sk(6) was captured; Attacker kB(20) changed size from 20 to 10 sides, recipe changed from kB(20) to k(10), does not reroll

The die should have re-rolled when it shrank, because it's a new Konstant die entering play, and Konstant dice get rolled when they enter play -- and in fact it did, the new die appeared as a k(10):6, so this looks like just a logging bug.

blackshadowshade commented 9 years ago

This also needs to deal with any other skill that replaces the die, like Mighty and Weak.