diff options
| author | 2018-06-01 15:49:06 +0200 | |
|---|---|---|
| committer | 2018-06-01 15:49:06 +0200 | |
| commit | 3cf50d44cdf19d52c94e3b5357adee4519dfdd49 (patch) | |
| tree | 0a73d7a2132a9909fe5a270d6feb1689ed360019 /diceparser.cpp | |
| parent | 0a9202c3ef0d3255ae3d57d0df68f7232396b580 (diff) | |
| download | OneRoll-3cf50d44cdf19d52c94e3b5357adee4519dfdd49.tar.gz OneRoll-3cf50d44cdf19d52c94e3b5357adee4519dfdd49.zip | |
fix issue about mergin reroll until and make the help command a bit more complete
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index 641cf21..c160df4 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -1065,6 +1065,11 @@ bool DiceParser::readOption(QString& str,ExecutionNode* previous)//, auto reroll = (operatorName==RerollAndAdd || operatorName==Reroll); auto addingMode = (operatorName==RerollAndAdd); RerollDiceNode* rerollNode = new RerollDiceNode(reroll, addingMode); + ExecutionNode* nodeParam = nullptr; + if(readParameterNode(str,nodeParam)) + { + rerollNode->setInstruction(nodeParam); + } rerollNode->setValidator(validator); previous->setNextNode(rerollNode); node = rerollNode; |