Skip to content

Commit

Permalink
Add SKILL_FLAG_PERM_GRANTED to non-copyable logic of can_copy for saf…
Browse files Browse the repository at this point in the history
…ety reasons as there's no clearly defined behavior for those
  • Loading branch information
skyleo committed May 31, 2024
1 parent 7c4cda0 commit 8790b0b
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 @@ -1263,7 +1263,8 @@ static int can_copy(struct map_session_data *sd, uint16 skill_id)
return 0;

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))
|| sd->status.skill[cidx].flag == SKILL_FLAG_PLAGIARIZED
|| sd->status.skill[cidx].flag == SKILL_FLAG_PERM_GRANTED))
return 0;

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

0 comments on commit 8790b0b

Please sign in to comment.