From a7a0e85a95e97963c38d1bf94e1280998d897304 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Sun, 26 Jan 2025 22:02:17 +0900 Subject: [PATCH] . --- exp_scenario/module/commands/kill.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/exp_scenario/module/commands/kill.lua b/exp_scenario/module/commands/kill.lua index 509daff6..7c3dd922 100644 --- a/exp_scenario/module/commands/kill.lua +++ b/exp_scenario/module/commands/kill.lua @@ -22,8 +22,10 @@ Commands.new("kill", { "exp-commands_kill.description" }) return Commands.status.error{ "exp-commands_kill.already-dead" } elseif (other_player == player) or (highest_role(other_player).index < highest_role(player).index) then -- You can always kill yourself or can kill lower role players - local pos = other_player.position - other_player.surface.create_entity{ name = "lightning", position = { pos.x, pos.y - 16 }, target = other_player.character } + if script.active_mods["space-age"] then + local pos = other_player.position + other_player.surface.create_entity{ name = "lightning", position = { pos.x, pos.y - 16 }, target = other_player.character } + end other_player.character.die() else return Commands.status.unauthorised{ "exp-commands_kill.lower-role" }