diff options
| -rw-r--r-- | parsingtoolbox.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp index 23486cd..5551998 100644 --- a/parsingtoolbox.cpp +++ b/parsingtoolbox.cpp @@ -2360,8 +2360,14 @@ ExportedDiceResult ParsingToolBox::finalDiceResultFromInstruction(ExecutionNode* for(auto& die : diceResult->getResultList()) { faces= die->getFaces(); - HighLightDice hlDice(die->getListValue(), die->isHighlighted(), die->getColor(), - die->hasBeenDisplayed(), die->getFaces(), die->getUuid()); + QList<qint64> listValues; + auto listOfValues= die->getListValue(); + if(listOfValues.size() > 1) + listValues << die->getValue() << listOfValues; + else + listValues << listOfValues; + HighLightDice hlDice(listValues, die->isHighlighted(), die->getColor(), die->hasBeenDisplayed(), + die->getFaces(), die->getUuid()); if(alreadyAdded.find(die->getUuid()) == alreadyAdded.end() && !hlDice.displayed()) { list.append(hlDice); |