【ID1010112】【魂印】在大闹天宫中招募神将后,神将身上的魂印会显示在玩家装备魂印时的列表中

dev_chengFeng
jiaoyangna 2020-09-29 11:30:52 +08:00
parent 124fc753a0
commit fd2f210c5b
2 changed files with 10 additions and 3 deletions

View File

@ -556,6 +556,13 @@ function this.GetSingleHeroData(heroDId)
return ExpeditionManager.GetSingleHeroData(heroDId)
end
end
function this.IsHaveHero(heroDId)
if heroDatas[heroDId] then
return true
end
return false
end
--获取当前升星信息
function this.GetHeroCurUpStarInfo(heroDId)
local indexStar = 0

View File

@ -793,19 +793,19 @@ function this.GetAllSoulPrint(isUpHero,heroSId,_heroDid)
local Range = equipConfig[soulPrintSid].Range
if Range and #Range > 0 and Range[1] > 0 then
for k = 1, #Range do
if Range[k] == heroSId and heroDid ~= heroDids[i] then --这个魂印能装在这个英雄身上并且没有装在这个英雄身上
if Range[k] == heroSId and heroDid ~= heroDids[i] and HeroManager.IsHaveHero(heroDids[i]) then --这个魂印能装在这个英雄身上并且没有装在这个英雄身上
local singleSoulPrint = {id = soulPrintSid,upHero = heroDids[i]}
table.insert(allData,singleSoulPrint)
end
end
else
if heroDid ~= heroDids[i] then --这个魂印能装在所有英雄身上并且没有装在这个英雄身上
if heroDid ~= heroDids[i] and HeroManager.IsHaveHero(heroDids[i]) then --这个魂印能装在所有英雄身上并且没有装在这个英雄身上
local singleSoulPrint = {id = soulPrintSid,upHero = heroDids[i]}
table.insert(allData,singleSoulPrint)
end
end
else --这个魂印没有装在这个英雄身上
if heroDid ~= heroDids[i] then
if heroDid ~= heroDids[i] and HeroManager.IsHaveHero(heroDids[i]) then
local singleSoulPrint = {id = soulPrintSid,upHero = heroDids[i]}
table.insert(allData,singleSoulPrint)
end