Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit 36bb15a

Browse files
committed
Quick fix for removing called tile
1 parent 8423640 commit 36bb15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/mahjong/player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def enemy_called_riichi(self):
210210

211211
def add_called_meld(self, meld: Meld):
212212
# we had to remove tile from the hand for the kan set
213-
if meld.type == Meld.KAN or meld.type == Meld.CHANKAN:
213+
if meld.type == Meld.KAN or meld.type == Meld.CHANKAN and meld.called_tile in self.tiles:
214214
self.tiles.remove(meld.called_tile)
215215

216216
super().add_called_meld(meld)

0 commit comments

Comments
 (0)