这一版先去掉援助攻击

This commit is contained in:
chenxi 2023-04-24 16:42:11 +08:00
parent 1108eaf034
commit a5574d91d4

View File

@ -938,21 +938,21 @@ end
function BattleController:generateInstructions(skillEntity, elementType, lineCount, influenceElementTypeMap, elementTypeMap)
local elementTypeCount = 0
local assistingList = nil
-- local assistingList = nil
---- 援助
for element, count in pairs(elementTypeMap) do
if element == elementType then
elementTypeCount = count
else
if assistingList == nil then
assistingList = {}
end
local obj = {
count = count,
skillMatch = element,
}
table.insert(assistingList, obj)
end
-- if element == elementType then
elementTypeCount = elementTypeCount + count
-- else
-- if assistingList == nil then
-- assistingList = {}
-- end
-- local obj = {
-- count = count,
-- skillMatch = element,
-- }
-- table.insert(assistingList, obj)
-- end
end
---- 技能
@ -990,12 +990,12 @@ function BattleController:generateInstructions(skillEntity, elementType, lineCou
end
end
if assistingList then
table.insert(self.instructions, {
name = BattleConst.INSTRUCTION_NAME.ASSISTING,
assistingList = assistingList,
})
end
-- if assistingList then
-- table.insert(self.instructions, {
-- name = BattleConst.INSTRUCTION_NAME.ASSISTING,
-- assistingList = assistingList,
-- })
-- end
---- 加buff
if skillEntity then