From 8790b0b4a6a0f0d2862ae7ef84aee779c0e6748e Mon Sep 17 00:00:00 2001 From: skyleo Date: Sat, 25 May 2024 18:59:27 +0200 Subject: [PATCH] Add SKILL_FLAG_PERM_GRANTED to non-copyable logic of can_copy for safety reasons as there's no clearly defined behavior for those --- src/map/skill.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/skill.c b/src/map/skill.c index 67146797a1c..ebabd361f5a 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -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