fix:correction kill
这个提交包含在:
父节点
3c47694f3d
当前提交
d075d532d7
共有 1 个文件被更改,包括 6 次插入 和 0 次删除
|
|
@ -41,6 +41,12 @@ class Player
|
||||||
this.death++;
|
this.death++;
|
||||||
this.health=defaulthealth;
|
this.health=defaulthealth;
|
||||||
|
|
||||||
|
players.forEach((p) => {
|
||||||
|
if(p.id==killerId) {
|
||||||
|
p.kill++;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
net.died(this.id,killerId);
|
net.died(this.id,killerId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用