Merge branch 'PR-Branch' of https://github.com/PZ157/noname into PR-Branch

This commit is contained in:
157 2024-01-28 15:03:23 +08:00
commit 2d4979fed2
1 changed files with 2 additions and 2 deletions

View File

@ -804,10 +804,10 @@ export class Player extends HTMLDivElement {
if (cards && !isArray) recast.cards = [cards]; if (cards && !isArray) recast.cards = [cards];
else if (isArray && cards.length) recast.cards = cards; else if (isArray && cards.length) recast.cards = cards;
else _status.event.next.remove(recast); else _status.event.next.remove(recast);
// if (typeof recastingLose != 'function') recastingLose = (player, cards) => player.loseToDiscardpile(cards).log = false; if (typeof recastingLose != 'function') recastingLose = (player, cards) => player.loseToDiscardpile(cards).log = false;
recast.recastingLose = recastingLose; recast.recastingLose = recastingLose;
recast.recastingLosingEvents = []; recast.recastingLosingEvents = [];
// if (typeof recastingGain != 'function') recastingGain = (player, cards) => player.draw(cards.length).log = false; if (typeof recastingGain != 'function') recastingGain = (player, cards) => player.draw(cards.length).log = false;
recast.recastingGain = recastingGain; recast.recastingGain = recastingGain;
recast.recastingGainingEvents = []; recast.recastingGainingEvents = [];
recast.setContent('recast'); recast.setContent('recast');