mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-23 15:44:26 +02:00
fix: チー可能条件が間違っているのを修正
This commit is contained in:
@@ -133,7 +133,7 @@ class StateManager {
|
|||||||
const hand = this.handTileTypes[caller];
|
const hand = this.handTileTypes[caller];
|
||||||
return Common.SHUNTU_PATTERNS.some(pattern =>
|
return Common.SHUNTU_PATTERNS.some(pattern =>
|
||||||
pattern.includes($type(tid)) &&
|
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 {
|
private withTsumoTile(tile: TileId | undefined, isRinshan: boolean): TileId {
|
||||||
|
|||||||
@@ -247,7 +247,7 @@ export class PlayerGameEngine {
|
|||||||
const canCii = !this.isMeRiichi && house === Common.prevHouse(this.myHouse) &&
|
const canCii = !this.isMeRiichi && house === Common.prevHouse(this.myHouse) &&
|
||||||
Common.SHUNTU_PATTERNS.some(pattern =>
|
Common.SHUNTU_PATTERNS.some(pattern =>
|
||||||
pattern.includes($type(tid)) &&
|
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.canRon = canRon ? { callee: house } : null;
|
||||||
this.state.canPon = canPon ? { callee: house } : null;
|
this.state.canPon = canPon ? { callee: house } : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user