summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Rohdewald <wolfgang@rohdewald.de>2015-11-24 19:25:53 (GMT)
committerWolfgang Rohdewald <wolfgang@rohdewald.de>2016-08-25 06:41:34 (GMT)
commita82ad6fee401c4f9a02a3182bec9328a9681bb9a (patch)
treea986cfd71ee7534ebdd51cf1ac7c0bbf3ad6cb6a
parent56b71b6ed55a3e89efea4bf2c6727d5c9e7ae760 (diff)
Hand.__sub__: Never set newHand.LastTile
-rw-r--r--src/hand.py12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/hand.py b/src/hand.py
index 24f1e0c..bc244f2 100644
--- a/src/hand.py
+++ b/src/hand.py
@@ -460,18 +460,10 @@ class Hand(object):
declaredMelds.remove(meld)
tilesInHand.extend(meld.concealed)
# if we robbed a kong, remove that announcement
- mjParts = []
+ mjPart = ''
announcements = self.announcements - set('k')
if announcements:
- mjParts.append('m.' + ''.join(announcements))
- if (self.lastTile and self.lastTile.isExposed
- and self.lastTile.concealed in tilesInHand):
- # undo exposing lastMeld
-# msgx = '{}-{}: new L:{}'.format(self, subtractTile, self.lastTile.concealed)
-# self.debug(msgx)
-# self.player.game.addCsvTag('sublasttile')
- mjParts.append('L' + self.lastTile.concealed)
- mjPart = ' '.join(mjParts)
+ mjPart = 'm.' + ''.join(announcements)
rest = 'R' + str(tilesInHand)
newString = ' '.join(str(x) for x in (
declaredMelds, rest, boni, mjPart))