From e4dd8127069b3540d74135a057217e7920bbdc24 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 13 Jul 2018 23:33:30 -0300 Subject: Safeguard --- npc/commands/resync.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'npc/commands/resync.txt') diff --git a/npc/commands/resync.txt b/npc/commands/resync.txt index f96e1e05f..8e7b5e02e 100644 --- a/npc/commands/resync.txt +++ b/npc/commands/resync.txt @@ -11,6 +11,10 @@ end; OnCall: + if (ispcdead()) { + dispbottom l("Impossible to resync: You are dead."); + end; + } if (@rsync_delay > gettimetick(2) && readparam(Hp) < readparam(MaxHp)) dispbottom l("Not resync'ing to prevent flood."); getmapxy(.@m$, .@x, .@y, 0); -- cgit v1.2.3-60-g2f50