不知道为什么没有用……只会东拼西凑_(:з)∠)_
Luae123123 = sgs.CreateFilterSkill{
name = "Luae123123",
view_filter = function(self,to_select)
local room = sgs.Sanguosha:currentRoom()
local place = room:getCardPlace(to_select:getEffectiveId())
local splayer=room:findPlayerBySkillName(self:objectName())
return (place == sgs.Player_PlaceHand) and splayer:getHandcardNum() == 1
end,
view_as = function(self, originalCard)
local peach = sgs.Sanguosha:cloneCard("peach", originalCard:getSuit(), originalCard:getNumber())
peach:setSkillName(self:objectName())
local card = sgs.Sanguosha:getWrappedCard(originalCard:getId())
card:takeOver(peach)
return card
end
}
Luae123123 = sgs.CreateFilterSkill{
name = "Luae123123",
view_filter = function(self,to_select)
local room = sgs.Sanguosha:currentRoom()
local place = room:getCardPlace(to_select:getEffectiveId())
local splayer=room:findPlayerBySkillName(self:objectName())
return (place == sgs.Player_PlaceHand) and splayer:getHandcardNum() == 1
end,
view_as = function(self, originalCard)
local peach = sgs.Sanguosha:cloneCard("peach", originalCard:getSuit(), originalCard:getNumber())
peach:setSkillName(self:objectName())
local card = sgs.Sanguosha:getWrappedCard(originalCard:getId())
card:takeOver(peach)
return card
end
}