Skip to content

Commit

Permalink
Minor fixes to plagiarize script commands (rathena#7394)
Browse files Browse the repository at this point in the history
* Fix plagiarizeskillreset unable to reset.
* Update plagiarizeskill documentation.
  • Loading branch information
Emistry authored and Singe-Horizontal committed Nov 5, 2022
1 parent 86eff97 commit 81ff04d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions doc/script_commands.txt
Expand Up @@ -6309,6 +6309,10 @@ it just removes non-permanent script.
Enable the player to plagiarize specific skills that are copyable.
Return 1 on success, 0 otherwise.

Note:
- Plagiarism only able to copy skill while SC_PRESERVE is not active and skill is copyable by Plagiarism.
- Reproduce can copy skill if SC__REPRODUCE is active and the skill is copyable by Reproduce.

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

*plagiarizeskillreset <flag>;
Expand Down
2 changes: 1 addition & 1 deletion src/map/script.cpp
Expand Up @@ -10191,7 +10191,7 @@ BUILDIN_FUNC(plagiarizeskillreset)
{
TBL_PC *sd;

if (!script_rid2sd(sd))
if (script_rid2sd(sd))
script_pushint(st, pc_skill_plagiarism_reset(*sd, script_getnum(st, 2)));

return SCRIPT_CMD_SUCCESS;
Expand Down

0 comments on commit 81ff04d

Please sign in to comment.