fix: チー可能条件が間違っているのを修正
This commit is contained in:
parent
977218bda5
commit
dd8bd23d64
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue