自己出的牌也调用onCardLinkOver
This commit is contained in:
parent
1f94bfddde
commit
3031b31024
@ -8,6 +8,7 @@ import {singleton} from "../../common/Singleton";
|
|||||||
import {GameEnv} from "../../cfg/GameEnv";
|
import {GameEnv} from "../../cfg/GameEnv";
|
||||||
import {debugRoom} from "../../common/Debug";
|
import {debugRoom} from "../../common/Debug";
|
||||||
import {TurnEndCommand} from "./TurnEndCommand";
|
import {TurnEndCommand} from "./TurnEndCommand";
|
||||||
|
import {Card} from "../schema/Card";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 出牌
|
* 出牌
|
||||||
@ -72,6 +73,8 @@ export class DiscardCommand extends Command<CardGameState, { client: Client, car
|
|||||||
if (cards.length === 1) {
|
if (cards.length === 1) {
|
||||||
return [new NextSubCommand()];
|
return [new NextSubCommand()];
|
||||||
} else {
|
} else {
|
||||||
|
let cardArr: Card[] = [...this.state.cards.values()];
|
||||||
|
this.room.battleMan.onCardLinkOver(player, cardArr);
|
||||||
this.state.gameState = GameStateConst.STATE_PICK_PET;
|
this.state.gameState = GameStateConst.STATE_PICK_PET;
|
||||||
let self = this;
|
let self = this;
|
||||||
let time = singleton(GameEnv).playerActTime * 1000 + player.extraTime;
|
let time = singleton(GameEnv).playerActTime * 1000 + player.extraTime;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user