修复联网对战攻击校验变量用错

This commit is contained in:
MrZ_26
2022-10-27 00:01:29 +08:00
parent 2de663703b
commit a2eb7e4a54

View File

@@ -2606,7 +2606,7 @@ local function update_streaming(P)
for _,p in next,PLY_ALIVE do
if p.sid==sid then
P.netAtk=P.netAtk+amount
if P.netAtk~=P.stat.atk then
if P.netAtk~=P.stat.send then
MES.new('warn',"#"..P.uid..' desynchronized')
NET.player_finish({foo=""})
P:lose(true)