diff options
| author | 2020-04-26 16:31:31 +0200 | |
|---|---|---|
| committer | 2020-04-26 16:31:31 +0200 | |
| commit | 5f68d8399b771da0f3500a5d037315607e25c78d (patch) | |
| tree | f1600941bde0bfd427f92f8d0bfa7fb97c65d4c6 /booleancondition.cpp | |
| parent | 214945c0cbf14544df5defdfea0bc89c87626274 (diff) | |
| download | OneRoll-5f68d8399b771da0f3500a5d037315607e25c78d.tar.gz OneRoll-5f68d8399b771da0f3500a5d037315607e25c78d.zip | |
Add support for OnEachValue compare method.
Diffstat (limited to 'booleancondition.cpp')
| -rw-r--r-- | booleancondition.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/booleancondition.cpp b/booleancondition.cpp index af566b7..1c992c2 100644 --- a/booleancondition.cpp +++ b/booleancondition.cpp @@ -94,7 +94,11 @@ BooleanCondition::~BooleanCondition() qint64 BooleanCondition::hasValid(Die* b, bool recursive, bool unhighlight) const { QList<qint64> listValues; - if(recursive) + if(m_conditionType == Dice::OnEachValue) + { + listValues.append(b->getValue()); + } + else if(recursive) { listValues= b->getListValue(); } |