summaryrefslogtreecommitdiffstats
path: root/sigscript/MoveWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/MoveWrapper.cpp')
-rw-r--r--sigscript/MoveWrapper.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sigscript/MoveWrapper.cpp b/sigscript/MoveWrapper.cpp
index 6c21cc38..60dc2729 100644
--- a/sigscript/MoveWrapper.cpp
+++ b/sigscript/MoveWrapper.cpp
@@ -41,14 +41,14 @@ QString Sigscript::MoveWrapper::name() const
Sigmod::Fraction Sigscript::MoveWrapper::accuracy() const
{
- if (hasValueOfType<Sigmod::Fraction>("accuracy"))
+ if (sigmod()->singlePlayer() && hasValueOfType<Sigmod::Fraction>("accuracy"))
return valueOfType<Sigmod::Fraction>("accuracy");
return m_move->accuracy();
}
int Sigscript::MoveWrapper::power() const
{
- if (hasValueOfType<int>("power"))
+ if (sigmod()->singlePlayer() && hasValueOfType<int>("power"))
return valueOfType<int>("power");
return m_move->power();
}
@@ -70,7 +70,7 @@ int Sigscript::MoveWrapper::powerPoints() const
int Sigscript::MoveWrapper::priority() const
{
- if (hasValueOfType<int>("priority"))
+ if (sigmod()->singlePlayer() && hasValueOfType<int>("priority"))
return valueOfType<int>("priority");
return m_move->priority();
}