user:
skill={
audio: 2,
trigger: {
source: "damageEnd",
},
logTarget: "player",
filter: function(event, player) {
return player !=
网页链接 && event.player.countCards('h') > 0;
},
check: function(event, player) {
return get.attitude(player, event.player) <= 0;
},
content: function() {
var target = trigger.player;
player.viewHandcards(target);
var chosenColor = player.chooseControl('red', 'black').set('prompt', '请选择一种颜色');
var hs = target.getCards('h', {color: chosenColor});
if (hs.length) {
target.discard(hs);
player.draw(hs.length);
}
},
}