fix: チー可能条件が間違っているのを修正

This commit is contained in:
zyoshoka 2025-04-18 19:59:06 +09:00
parent 977218bda5
commit dd8bd23d64
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class StateManager {
const hand = this.handTileTypes[caller];
return Common.SHUNTU_PATTERNS.some(pattern =>
pattern.includes($type(tid)) &&
pattern.filter(t => hand.includes(t)).length >= 2);
pattern.filter(t => hand.includes(t) && t !== $type(tid)).length >= 2);
}
private withTsumoTile(tile: TileId | undefined, isRinshan: boolean): TileId {

View File

@ -247,7 +247,7 @@ export class PlayerGameEngine {
const canCii = !this.isMeRiichi && house === Common.prevHouse(this.myHouse) &&
Common.SHUNTU_PATTERNS.some(pattern =>
pattern.includes($type(tid)) &&
pattern.filter(t => this.myHandTileTypes.includes(t)).length >= 2);
pattern.filter(t => this.myHandTileTypes.includes(t) && t !== $type(tid)).length >= 2);
this.state.canRon = canRon ? { callee: house } : null;
this.state.canPon = canPon ? { callee: house } : null;