xxx:你使用的【杀】无视防具
从高顺那里捞来的
限制条件自己加
然后把xxx改成技能名就好
xxx = sgs.CreateTriggerSkill{
name = "xxx",
events = {sgs.TargetConfirmed, sgs.CardFinished},
frequency = sgs.Skill_Compulsory,
on_trigger = function(self, event, player, data)
local room = player:getRoom()
if event == sgs.TargetConfirmed then
local use = data:toCardUse()
if use.from and use.from:hasSkill(self:objectName()) then
if use.card:isKindOf("Slash") then
if use.from:objectName() == player:objectName() then
room:setPlayerFlag(use.from, "xxxArmor")
for _,p in sgs.qlist(use.to) do
room:setPlayerMark(p, "Armor_Nullified", 1)
end
end
end
end
return false
else
local use = data:toCardUse()
if use.card:isKindOf("Slash") and use.from:hasFlag("xxxArmor") then
for _,p in sgs.qlist(use.to) do
room:setPlayerMark(p, "Armor_Nullified", 0)
end
end
end
end,
}