diff --git a/doc/script_commands.txt b/doc/script_commands.txt index ce0e838d7b..41c0848633 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -10691,6 +10691,7 @@ current invoking character. *addhomintimacy {,}; Increase or decrease a homunculus' intimacy value by the given . 100000 is full loyalty. +Fails silently when no players are attached or if the player has no homunculus. --------------------------------------- diff --git a/src/map/script.cpp b/src/map/script.cpp index 1d1045b4a2..bd53f409bf 100644 --- a/src/map/script.cpp +++ b/src/map/script.cpp @@ -15861,7 +15861,7 @@ BUILDIN_FUNC(addhomintimacy) homun_data *hd; if (!script_charid2sd(3, sd) || !(hd = sd->hd)) - return SCRIPT_CMD_FAILURE; + return SCRIPT_CMD_SUCCESS; int32 value = script_getnum(st, 2);