Skip to content

Commit

Permalink
Add SKILL_FLAG_REPLACED_LV_0 to non-copyable logic of can_copy to mat…
Browse files Browse the repository at this point in the history
…ch SKILL_FLAG_PLAGIARIZED
  • Loading branch information
skyleo committed May 31, 2024
1 parent e658962 commit 7c4cda0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,8 @@ static int can_copy(struct map_session_data *sd, uint16 skill_id)
if (!cidx)
return 0;

if (sd->status.skill[cidx].id && sd->status.skill[cidx].flag == SKILL_FLAG_PLAGIARIZED)
if (sd->status.skill[cidx].id != 0 && (sd->status.skill[cidx].flag >= SKILL_FLAG_REPLACED_LV_0
|| sd->status.skill[cidx].flag == SKILL_FLAG_PLAGIARIZED))
return 0;

// Checks if preserve is active and if skill can be copied by Plagiarism
Expand Down

0 comments on commit 7c4cda0

Please sign in to comment.