huoshen = sgs.CreateFilterSkill{
name = "huoshen",
view_filter = function(self, to_select)
local room = sgs.Sanguosha:currentRoom()
local place = room:getCardPlace(to_select:getEffectiveId())
if place == sgs.Player_PlaceHand then
return to_select:objectName() == "slash"
end
return false
end,
view_as = function(self, card)
local suit = card:getSuit()
local point = card:getNumber()
local id = card:getId()
local fire_slash = sgs.Sanguosha:cloneCard("fire_slash", suit, point)
fire_slash:setSkillName(self:objectName())
local vs_card = sgs.Sanguosha:getWrappedCard(id)
vs_card:takeOver(fire_slash)
return vs_card
end
}
哪里写错了,为什么不能火攻自己?
name = "huoshen",
view_filter = function(self, to_select)
local room = sgs.Sanguosha:currentRoom()
local place = room:getCardPlace(to_select:getEffectiveId())
if place == sgs.Player_PlaceHand then
return to_select:objectName() == "slash"
end
return false
end,
view_as = function(self, card)
local suit = card:getSuit()
local point = card:getNumber()
local id = card:getId()
local fire_slash = sgs.Sanguosha:cloneCard("fire_slash", suit, point)
fire_slash:setSkillName(self:objectName())
local vs_card = sgs.Sanguosha:getWrappedCard(id)
vs_card:takeOver(fire_slash)
return vs_card
end
}
哪里写错了,为什么不能火攻自己?