Merge branch 'libccy:PR-Branch' into PR-Branch

This commit is contained in:
157 2024-01-28 14:54:16 +08:00 committed by GitHub
commit f29361ab27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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];
else if (isArray && cards.length) recast.cards = cards;
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.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.recastingGainingEvents = [];
recast.setContent('recast');