summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/emap/script_buildins.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 38ab767..76c8a24 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -2982,17 +2982,17 @@ BUILDIN(recallhomunculus)
*------------------------------------------*/
BUILDIN(homstatus)
{
- struct map_session_data *sd = script->rid2sd(st);
- if (sd == NULL || sd->hd == NULL)
- return true;
+ struct map_session_data *sd = script->rid2sd(st);
+ if (sd == NULL || sd->hd == NULL)
+ return true;
- // Return the status (0 - active; 1 - resting ; 2 - mission)
- // BUT Dead homunculus is not active (send RESTING instead)
- if (!sd->hd->homunculus.vaporize && !homun_alive(sd->hd))
- script_pushint(st,1);
- else
- script_pushint(st,sd->hd->homunculus.vaporize);
- return true;
+ // Return the status (0 - active; 1 - resting ; 2 - mission)
+ // BUT Dead homunculus is not active (send RESTING instead)
+ if (!sd->hd->homunculus.vaporize && !homun_alive(sd->hd))
+ script_pushint(st,1);
+ else
+ script_pushint(st,sd->hd->homunculus.vaporize);
+ return true;
}