summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-06 20:09:57 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-06 20:09:57 -0300
commit9b1493838b6655f15fc33c2e2fe7dc7d85632e45 (patch)
tree8acdc4f57b0d34693d73953a2824180a18d93409 /src/emap/script_buildins.c
parent8461835e454de7b58877dd1d9def10d9be459c7a (diff)
downloadevol-hercules-9b1493838b6655f15fc33c2e2fe7dc7d85632e45.tar.gz
evol-hercules-9b1493838b6655f15fc33c2e2fe7dc7d85632e45.tar.bz2
evol-hercules-9b1493838b6655f15fc33c2e2fe7dc7d85632e45.tar.xz
evol-hercules-9b1493838b6655f15fc33c2e2fe7dc7d85632e45.zip
ispcdead("someone") is now supported for TMW2
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r--src/emap/script_buildins.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 5e86a22..ff33a5f 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -1000,9 +1000,13 @@ BUILDIN(isPcDead)
if (sd == NULL)
{
- ShowWarning("player not attached\n");
- script->reportsrc(st);
- return false;
+ sd = script->nick2sd(st, script_getstr(st, 2));
+ if (sd == NULL)
+ {
+ ShowWarning("player not attached\n");
+ script->reportsrc(st);
+ return false;
+ }
}
script_pushint(st, pc_isdead(sd) ? 1 : 0);