projects
/
naja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5041570
)
Optional remove win actions once they're used.
author
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 18:17:13 +0000
(20:17 +0200)
committer
Simon Cross
<hodgestar@gmail.com>
Sat, 17 May 2014 18:31:09 +0000
(20:31 +0200)
naja/actions.py
patch
|
blob
|
history
diff --git
a/naja/actions.py
b/naja/actions.py
index 5aa465a4c3122889e801871211432323a0cbaf71..6f03358b34b64de2d4c0b01027ab083ac3707482 100644
(file)
--- a/
naja/actions.py
+++ b/
naja/actions.py
@@
-175,6
+175,8
@@
class AcquireWinToken(LocationAction):
board.player.bits.clear_bits(set([
BITS.RED, BITS.GREEN, BITS.BLUE,
]))
+ if self.data.get('once', False):
+ location.actions.remove(self)
class GainHealth(LocationAction):