修改获取换卡数量限制的字段
This commit is contained in:
parent
a6ae526b56
commit
7f59ffe0a5
@ -29,7 +29,7 @@ export class ChangeCardCommand extends Command<CardGameState, { client: Client,
|
||||
client.send('change_card_s2c', {errcode: 2, errmsg: '当前玩家已换卡'});
|
||||
return;
|
||||
}
|
||||
const maxCount = singleton(GameEnv).roundDrawNum;
|
||||
const maxCount = singleton(GameEnv).cardChangeNum;
|
||||
if (cards.length > maxCount) {
|
||||
client.send('change_card_s2c', {errcode: 3, errmsg: '换卡数量超过限制'});
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user