Luazuiquan = sgs.CreateTriggerSkill{
name = "Luazuiquan" ,
frequency = sgs.Skill_Compulsory ,
events = {sgs.PreCardUsed} ,
on_trigger = function(self, event, player, data)
local use = data:toCardUse()
local room = player:getRoom()
if player:getMark("@zuiquan") < 3 then
room:addPlayerMark(player,"@zuiquan")
elseif player:getMark("@zuiquan") == 3 then
room:setPlayerMark(player,"@zuiquan",0)
if use.card:isNDTrick() then
use.card:toTrick():setCancelable(false)
elseif use.card:isKindOf("Slash") then
room:setPlayerMark(player, "drank",1)
end
end
end
}