wip
This commit is contained in:
parent
366fade8d3
commit
1ea098f4b4
3 changed files with 31 additions and 5 deletions
|
|
@ -359,13 +359,13 @@ export class MahjongService implements OnApplicationShutdown, OnModuleInit {
|
|||
};
|
||||
|
||||
// リーチ中はポン、チー、カンできない
|
||||
if (engine.isRiichiHouse(res.canPonHouse)) {
|
||||
if (res.canPonHouse != null && engine.isRiichiHouse(res.canPonHouse)) {
|
||||
answers.pon = false;
|
||||
}
|
||||
if (engine.isRiichiHouse(res.canCiiHouse)) {
|
||||
if (res.canCiiHouse != null && engine.isRiichiHouse(res.canCiiHouse)) {
|
||||
answers.cii = false;
|
||||
}
|
||||
if (engine.isRiichiHouse(res.canKanHouse)) {
|
||||
if (res.canKanHouse != null && engine.isRiichiHouse(res.canKanHouse)) {
|
||||
answers.kan = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue