summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 4657d3bcf..c3da30b6a 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -2158,9 +2158,10 @@ int pc_skill(struct map_session_data *sd,int id,int level,int flag)
clif_skillinfoblock(sd);
}
else if(sd->status.skill[id].lv < level){ // ?えられるがlvが小さいなら
- if(sd->status.skill[id].id==id)
- sd->status.skill[id].flag=sd->status.skill[id].lv+2; // lvを記憶
- else {
+ if(sd->status.skill[id].id==id) {
+ if (!sd->status.skill[id].flag) //Non-granted skill, store it's level.
+ sd->status.skill[id].flag=sd->status.skill[id].lv+2;
+ } else {
sd->status.skill[id].id=id;
sd->status.skill[id].flag=1; // cardスキルとする
}