mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixed a small bug regarding suicide and killedByItem
This commit is contained in:
parent
5eeb120799
commit
6149b6c47b
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ function (Parent, Nc) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Player.prototype.suicide = function() {
|
Player.prototype.suicide = function() {
|
||||||
this.addDamage(100, this);
|
this.addDamage(100, this, null);
|
||||||
};
|
};
|
||||||
|
|
||||||
Player.prototype.addDamage = function(damage, enemy, byItem) {
|
Player.prototype.addDamage = function(damage, enemy, byItem) {
|
||||||
|
|
@ -87,7 +87,7 @@ function (Parent, Nc) {
|
||||||
playerId: this.id,
|
playerId: this.id,
|
||||||
killedByPlayerId: killedByPlayer.id,
|
killedByPlayerId: killedByPlayer.id,
|
||||||
ragDollId: ragDollId,
|
ragDollId: ragDollId,
|
||||||
item: byItem.options.name
|
item: byItem ? byItem.options.name : "Suicide"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue