diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-24 17:06:13 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2018-12-24 17:06:13 +0000 |
commit | 386fd48e8465213d9a9a0a122ba59ee825b272d4 (patch) | |
tree | 478c1666b4a618ea02acfc12042435629ea21351 /scripts | |
parent | Functions for getting/setting away status (diff) | |
download | toy-386fd48e8465213d9a9a0a122ba59ee825b272d4.zip |
Ensure play cannot occur when owner is away
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/toy.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 8f3a10a..8c8a2de 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -1153,7 +1153,7 @@ def playSchedule = { lastPlay -> } }; def playEvent = { rt = true, first = true -> - if (!rt) return; + if (!rt || getAway()) return; dress([[DRESSED,nTEASE],[DRESSED,TEASE],[TITS],[STOOD]]); if (sessionSummon([DRESSED,nTEASE])) { if (first.asBoolean()) { |