Skip to content

Commit

Permalink
Updated addhomintimacy script command (rathena#8551)
Browse files Browse the repository at this point in the history
* The command now fails silently when no players are attached or if the player has no homunculus (like other homunculus script command)

Fixed rathena#8534
  • Loading branch information
Atemo authored Aug 9, 2024
1 parent 88ce3fe commit a5c939b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/script_commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10691,6 +10691,7 @@ current invoking character.
*addhomintimacy <amount>{,<char_id>};

Increase or decrease a homunculus' intimacy value by the given <amount>. 100000 is full loyalty.
Fails silently when no players are attached or if the player has no homunculus.

---------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/map/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a5c939b

Please sign in to comment.