--用视为技+技能卡搞定(男性时改变性别出杀)
test6Card = sgs.CreateSkillCard{
name = "test6",
target_fixed = false,
will_throw = true,
filter = function(self, targets, to_select)
if #targets == 0 then
return sgs.Self:canSlash(to_select, nil, false)
end
return false
end,
on_use = function(self, room, source, targets)
source:setGender(sgs.General_Female)
local slash = sgs.Sanguosha:cloneCard("slash", sgs.Card_NoSuit, 0)
slash:setSkillName(self:objectName())
local use = sgs.CardUseStruct()
use.card = slash
use.from = source
for _,p in pairs(targets) do
use.to:append(p)
end
room:useCard(use)
end
}
test6 = sgs.CreateZeroCardViewAsSkill{
name = "test6",
view_as = function()
return test6Card:clone()
end,
enabled_at_play = function(self,player)
return player:isMale()
end
}