bug fixes
This commit is contained in:
parent
9fece35ef8
commit
e2b50d703a
|
@ -98,17 +98,13 @@ end
|
||||||
|
|
||||||
-- 一个玩家的武将牌上有没有这个技能?
|
-- 一个玩家的武将牌上有没有这个技能?
|
||||||
local function is_general_skill(player, skill_name)
|
local function is_general_skill(player, skill_name)
|
||||||
local generals
|
local generals = { player.general, player.deputyGeneral }
|
||||||
|
table.removeOne(generals, "")
|
||||||
local general_skills = {}
|
local general_skills = {}
|
||||||
if player.deputyGeneral == "" then
|
|
||||||
generals = { player.general }
|
|
||||||
else
|
|
||||||
generals = { player.general, player.deputyGeneral }
|
|
||||||
end
|
|
||||||
for _, g in ipairs(generals) do
|
for _, g in ipairs(generals) do
|
||||||
general_skills = table.connect(general_skills, Fk.generals[g].skills)
|
general_skills = table.connect(general_skills, Fk.generals[g].skills)
|
||||||
end
|
end
|
||||||
if not table.contains(general_skills, Fk.skills[skill_name]) then return end
|
return table.contains(general_skills, Fk.skills[skill_name])
|
||||||
end
|
end
|
||||||
|
|
||||||
local zaisheng = fk.CreateTriggerSkill {
|
local zaisheng = fk.CreateTriggerSkill {
|
||||||
|
|
Loading…
Reference in New Issue