【战斗】假战斗数据组建错误修复
parent
d668e4ffc3
commit
857f97f2ab
|
@ -582,6 +582,7 @@ function this.GetPlayerDataFromMonsterGroup(gId)
|
||||||
for j = 1, #Contents[1] do
|
for j = 1, #Contents[1] do
|
||||||
if Contents[1][j] ~= 0 then
|
if Contents[1][j] ~= 0 then
|
||||||
local data = this.GetMonsterData(Contents[1][j])
|
local data = this.GetMonsterData(Contents[1][j])
|
||||||
|
data.camp = 0
|
||||||
data.position = j
|
data.position = j
|
||||||
table.insert(playerData, data)
|
table.insert(playerData, data)
|
||||||
end
|
end
|
||||||
|
@ -598,7 +599,7 @@ function this.GetFakeBattleData(fakeId)
|
||||||
end
|
end
|
||||||
local battleData = {}
|
local battleData = {}
|
||||||
battleData.enemyData = this.GetBattleEnemyData(fakeConfig.EnnemiId)
|
battleData.enemyData = this.GetBattleEnemyData(fakeConfig.EnnemiId)
|
||||||
battleData.playerData = this.GetBattleEnemyData(fakeConfig.OwnId)
|
battleData.playerData = this.GetPlayerDataFromMonsterGroup(fakeConfig.OwnId)
|
||||||
return battleData
|
return battleData
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue