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