summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/toy.groovy4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy
index b01f804..8ddebd6 100644
--- a/scripts/toy.groovy
+++ b/scripts/toy.groovy
@@ -780,7 +780,9 @@ def sessionSummon = { imageSpec ->
def sessionPlay = {
def ph = (float)1.0;
def pm = { val ->
- ph *= val;
+ if (val) {
+ ph *= val;
+ }
};
def ap = { val ->
adjustPunish(-val * ph);