luapaiyi = sgs.CreateTriggerSkill name = "luapaiyi", frequency = sgs.Skill_NotFrequent, events = on_trigger = function(self, event, player, data) local room = player:getRoom() if room:askForSkillInvoke(player, self:objectName(), data) then local list = room:getAllPlayers() local target = room:askForPlayerChosen(player, list, self:objectName()) if target then local count = target:getLostHp() if count < 1 then target:drawCards(1) player:drawCards(1) if target:getHandcardNum() > player:getHandcardNum() then target:turnOver() end else if target:isAlive() then target:drawCards(count) end player:drawCards(count) if target:getHandcardNum() > player:getHandcardNum() then target:turnOver() end end end end end}