Commit 7420a951c7489fc48732fcaffde55cabfa8dbb83
1 parent
b1644d3b
好友 无阵容 bug
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/models/RoleCross.lua
... | ... | @@ -287,7 +287,7 @@ end |
287 | 287 | |
288 | 288 | function CMD.friendBattleInfo(roleId) |
289 | 289 | local info = CMD.getProperties(roleId, {"pvpTBC", "hangTB"}) |
290 | - return next(info.pvpTBC) and info.pvpTBC or info.hangTB | |
290 | + return (next(info.pvpTBC) and next(info.pvpTBC.heros)) and info.pvpTBC or info.hangTB | |
291 | 291 | end |
292 | 292 | |
293 | 293 | function CMD.pvpCInfo(roleId) | ... | ... |