Ver código fonte

Fixed bugreport:5018 skills permanently granted through scripts are now 100% functional.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15825 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 anos atrás
pai
commit
bf4a87928d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/map/pc.c

+ 1 - 1
src/map/pc.c

@@ -1274,7 +1274,7 @@ int pc_calc_skilltree(struct map_session_data *sd)
 
 	for( i = 0; i < MAX_SKILL; i++ )
 	{ 
-		if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) //Don't touch plagiarized skills
+		if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED && sd->status.skill[i].flag != SKILL_FLAG_PERMANENT ) //Don't touch plagiarized skills
 			sd->status.skill[i].id = 0; //First clear skills.
 	}