From c81357872054f1abe96031dcf0bcf757d97cbaf7 Mon Sep 17 00:00:00 2001 From: Felixzhangmingzhe Date: Wed, 6 Nov 2024 02:38:30 +0000 Subject: [PATCH] update mobile_sp.lua. Signed-off-by: Felixzhangmingzhe --- mobile_sp.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mobile_sp.lua b/mobile_sp.lua index 45e5efa..b5781d3 100644 --- a/mobile_sp.lua +++ b/mobile_sp.lua @@ -1674,8 +1674,9 @@ local mobile__shuaiyan = fk.CreateTriggerSkill{ anim_type = "control", events = {fk.EventPhaseStart}, can_trigger = function(self, event, target, player, data) - return target == player and player:hasSkill(self) and player.phase == Player.Discard and - table.find(player.room:getOtherPlayers(player), function(p) return not p:isNude() end) + return target == player and player:hasSkill(self) and player.phase == Player.Discard and + player:getHandcardNum() > 1 and + table.find(player.room:getOtherPlayers(player), function(p) return not p:isNude() end) end, on_cost = function(self, event, target, player, data) local room = player.room -- Gitee