This commit is contained in:
539943419 committed 2025-01-29 01:04:28 +08:00
1 parent ff9fa39c51
commit 6de5ec2b08
2 files changed
+11 -6

No files matched your search

+4 -3
View File
@@ -117,9 +117,10 @@ export default (lib, game, ui, get, ai, _status) => {
* @returns {boolean} 如果玩家可以使用卡牌,则返回true,否则返回false
*/
canUse(player, card) {
return game.filterPlayer(current => {
return lib.filter.targetEnabled2(card, player, current);
}).length != 0
return player.hasUseTarget(card)
// return game.filterPlayer(current => {
// return lib.filter.targetEnabled2(card, player, current);
// }).length != 0
}
},
loadash: {