summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-28 01:32:47 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-28 01:32:47 -0300
commit3f0364f9cb51cb864e55afa610c0c3eb072c531d (patch)
tree1fa5a47138c9e4fffbf12615de1e82612d22a9a0 /src
parent517290161699e4092989c6c892710cc63fd3e1aa (diff)
downloadevol-hercules-3f0364f9cb51cb864e55afa610c0c3eb072c531d.tar.gz
evol-hercules-3f0364f9cb51cb864e55afa610c0c3eb072c531d.tar.bz2
evol-hercules-3f0364f9cb51cb864e55afa610c0c3eb072c531d.tar.xz
evol-hercules-3f0364f9cb51cb864e55afa610c0c3eb072c531d.zip
Tweak homstatus() to lie if Homunculus is dead
Diffstat (limited to 'src')
-rw-r--r--src/emap/script_buildins.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index b801305..b897700 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -2822,7 +2822,11 @@ BUILDIN(homstatus)
return true;
// Return the status (0 - active; 1 - resting ; 2 - mission)
- script_pushint(st,sd->hd->homunculus.vaporize);
+ // BUT Dead homunculus is not active (send RESTING instead)
+ if (!homun_alive(sd->hd))
+ script_pushint(st,1);
+ else
+ script_pushint(st,sd->hd->homunculus.vaporize);
return true;
}