aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/booleancondition.cpp
diff options
context:
space:
mode:
authorobiwankennedy <renaud@rolisteam.org>2014-01-14 18:41:25 +0100
committerobiwankennedy <renaud@rolisteam.org>2014-01-14 18:41:25 +0100
commitbdac1684ee605328beb6ac5f9b39678deb4e4a79 (patch)
tree71ed273e9e9eca5b4ca009a819a4dc7102705427 /booleancondition.cpp
parent137ad92dfe03dc789c55ed14a4561dfa10ee91d9 (diff)
downloadOneRoll-bdac1684ee605328beb6ac5f9b39678deb4e4a79.tar.gz
OneRoll-bdac1684ee605328beb6ac5f9b39678deb4e4a79.zip
Update booleancondition.cpp
getLastRolledValue API calls
Diffstat (limited to 'booleancondition.cpp')
-rw-r--r--booleancondition.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/booleancondition.cpp b/booleancondition.cpp
index 26d8063..f2d39fa 100644
--- a/booleancondition.cpp
+++ b/booleancondition.cpp
@@ -9,15 +9,15 @@ bool BooleanCondition::isValid(Die* b) const
switch(m_operator)
{
case Equal:
- return (b->getValue()==m_value);
+ return (b->getLastRolledValue()==m_value);
case GreaterThan:
- return (b->getValue()>m_value);
+ return (b->getLastRolledValue()>m_value);
case LesserThan:
- return (b->getValue()<m_value);
+ return (b->getLastRolledValue()<m_value);
case GreaterOrEqual:
- return (b->getValue()>=m_value);
+ return (b->getLastRolledValue()>=m_value);
case LesserOrEqual:
- return (b->getValue()<=m_value);
+ return (b->getLastRolledValue()<=m_value);
}