我爱小喵酱😺 勇者沙漠狼
想要猫系女友
关注数: 248 粉丝数: 384 发帖数: 48,526 关注贴吧数: 51
怎么一次性获得所有武将牌上的牌 原技能如下,只能每次一张一张拿,如何实现到了时机就一次拿完的 jianxiong_hero = sgs.CreateTriggerSkill{ name = "jianxiong_hero" , events = {sgs.TargetConfirmed, sgs.Damaged}, frequency = sgs.Skill_Frequent, on_trigger = function(self, event, player, data) local use = data:toCardUse() if event == sgs.TargetConfirmed and use.to:contains(player) then if use.card:isNDTrick() and not (use.from:objectName() == player:objectName()) or (use.card:isKindOf("Slash")) then if player:askForSkillInvoke(self:objectName(), data) then player:addToPile("intrigue", use.card) player:broadcastSkillInvoke("jianxiong") end end elseif event == sgs.Damaged and player:isAlive() and player:hasSkill(self:objectName()) then local damage = data:toDamage() if damage.card and damage.card:isKindOf("Slash") or (damage.card:isNDTrick()) and not (damage.from:objectName() == player:objectName()) then if player:askForSkillInvoke(self:objectName(), data) then player:drawCards(1, self:objectName()) player:broadcastSkillInvoke("jianxiong") end end end return false end } jianxiong_heroObtain = sgs.CreateTriggerSkill{ name = "#jianxiong_heroObtain", events = {sgs.EventPhaseStart}, can_trigger = function(self, target) return target end, on_trigger = function(self, event, player, data) local room = player:getRoom() local caocao_hero = room:findPlayerBySkillName(self:objectName()) if not caocao_hero:isAlive() then return false end if caocao_hero:getPile("intrigue"):isEmpty() then return false end if player:getPhase() == sgs.Player_Finish then room:fillAG(caocao_hero:getPile("intrigue"), caocao_hero) local id = room:askForAG(caocao_hero, caocao_hero:getPile("intrigue"), false, self:objectName()) room:clearAG(caocao_hero) room:obtainCard(caocao_hero, id) return false end end, }
首页 1 2 3 4 5 下一页