mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-18 22:11:07 +00:00
You can only hurt someone in survival, fix #23
This commit is contained in:
parent
32b957cc60
commit
e88ca19177
1 changed files with 1 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ function inject(serv, player)
|
|||
function attackEntity(entityId)
|
||||
{
|
||||
var attackedPlayer = serv.entities[entityId].player;
|
||||
if(attackedPlayer.gameMode!=0) return;
|
||||
attackedPlayer.updateHealth(attackedPlayer.entity.health - 1);
|
||||
|
||||
if(attackedPlayer.entity.health==0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue