From: Simon Cross Date: Sat, 17 May 2014 18:17:13 +0000 (+0200) Subject: Optional remove win actions once they're used. X-Git-Tag: 0.1~48 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=354e76ebbc811fc75586be7d86dd8f8b7fa4a262;p=naja.git Optional remove win actions once they're used. --- diff --git a/naja/actions.py b/naja/actions.py index 5aa465a..6f03358 100644 --- 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):