LuaLueduo = sgs.CreateTriggerSkill{
name = "LuaLueduo" ,
......
}
LuaLueduoTargetMod = sgs.CreateTargetModSkill{
name = "#LuaLueduoTargetMod",
......
}
LuaBaoli = sgs.CreateTriggerSkill{
......
--[[***********************问题出现在这里*******************************--]]
room:handleAcquireDetachSkills(player, "LuaLueduo|LuaLueduoTargetMod|-LuaZhiduo")
......
}
local Skills = sgs.SkillList()
if not sgs.Sanguosha:getSkill("LuaLueduo") then
Skills:append(LuaLueduo)
elseif not sgs.Sanguosha:getSkill("LuaLueduoTargetMod") then
Skills:append(LuaLueduoTargetMod)
end
dongbai:addSkill(LuaBaoli)
使用handleAcquireDetachSkills函数获得技能时,LuaLueduoTargetMod技能失败,如果将name = "#LuaLueduoTargetMod" 改成不隐藏(去掉#),则能正常获取,请教怎么才能既隐藏又能正常获得该技能
name = "LuaLueduo" ,
......
}
LuaLueduoTargetMod = sgs.CreateTargetModSkill{
name = "#LuaLueduoTargetMod",
......
}
LuaBaoli = sgs.CreateTriggerSkill{
......
--[[***********************问题出现在这里*******************************--]]
room:handleAcquireDetachSkills(player, "LuaLueduo|LuaLueduoTargetMod|-LuaZhiduo")
......
}
local Skills = sgs.SkillList()
if not sgs.Sanguosha:getSkill("LuaLueduo") then
Skills:append(LuaLueduo)
elseif not sgs.Sanguosha:getSkill("LuaLueduoTargetMod") then
Skills:append(LuaLueduoTargetMod)
end
dongbai:addSkill(LuaBaoli)
使用handleAcquireDetachSkills函数获得技能时,LuaLueduoTargetMod技能失败,如果将name = "#LuaLueduoTargetMod" 改成不隐藏(去掉#),则能正常获取,请教怎么才能既隐藏又能正常获得该技能