Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Commit

Permalink
Fixed a bug causing DeathLink to always kill the player, even if they…
Browse files Browse the repository at this point in the history
… did not enable it
  • Loading branch information
LegendaryLinux committed Nov 6, 2021
1 parent 06878ab commit 6bf1e26
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const CLIENT_VERSION = {
state: 'Beta',
major: 0,
minor: 18,
patch: 0,
patch: 1,
};

const ARCHIPELAGO_PROTOCOL_VERSION = {
Expand Down
2 changes: 1 addition & 1 deletion assets/serverSocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ const connectToServer = (address, password = null) => {

// DeathLink handling
if (command.tags.includes('DeathLink')) {
if (command.data.source !== playerSlot) {
if (deathLinkEnabled && (command.data.source !== playerSlot)) {
// Notify the player of the DeathLink occurrence, and who is to blame
const deadPlayer = players.find((player) =>
(player.team === playerTeam && player.slot === command.data.source)).alias;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "z3client",
"version": "0.18.0",
"version": "0.18.1",
"author": "Chris Wilson",
"description": "A Z3 client designed to replace the old Python Z3 client in the Archipelago MultiWorld ecosystem.",
"license": "MIT",
Expand Down

0 comments on commit 6bf1e26

Please sign in to comment.