local qicai = fk.CreateSkill{
  name = "qicai",
  tags = { Skill.Compulsory },
}

qicai:addEffect("targetmod", {
  bypass_distances = function(self, player, skill, card)
    return player:hasSkill(qicai.name) and card and card.type == Card.TypeTrick
  end,
})

qicai:addTest(function(room, me)
  FkTest.runInRoom(function()
    room:handleAddLoseSkills(me, "qicai")
  end)

  local snatch = Fk:cloneCard("supply_shortage")
  lu.assertIsTrue(table.every(room:getOtherPlayers(me, false), function (other)
    return me:canUseTo(snatch, other)
  end))
end)

return qicai
