LuaSkill7 = sgs.CreateFilterSkill{
name = "LuaSkill7",
view_filter = function(self,to_select)
local room = sgs.Sanguosha:currentRoom() --这个函数貌似以前没见过吧,嘻嘻
--这个函数的作用是获取Room
--当然,这个函数只能在服务器运行,在客户端运行会坑爹。
local place = room:getCardPlace(to_select:getEffectiveId())
return (place == sgs.Player_PlaceJudge) --只要是判定区的,就OK
end,
view_as = function(self, card)
local id = card:getEffectiveId()
local new_card = sgs.Sanguosha:getWrappedCard(id)
new_card:setSkillName(self:objectName())
new_card:setSuit(sgs.Card_Club)
new_card:setModified(true)
return new_card
end
}