summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 07:30:19 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-29 07:30:19 +0000
commitc8b1b09166e76fd4edcfa6787b29e4fb37371476 (patch)
tree5b78dea881ec375f8c3de4bbde066e450a5566e3 /src/map/pc.c
parent9aa84dcd148be7aefe0d66075ca6ff4907f60952 (diff)
downloadhercules-c8b1b09166e76fd4edcfa6787b29e4fb37371476.tar.gz
hercules-c8b1b09166e76fd4edcfa6787b29e4fb37371476.tar.bz2
hercules-c8b1b09166e76fd4edcfa6787b29e4fb37371476.tar.xz
hercules-c8b1b09166e76fd4edcfa6787b29e4fb37371476.zip
- Added support for packet 0x229 (clif_changeoption).
- Bumped up PACKETVER to 7 to enable use of packets 0x229 and 0x22c - Small cleanup on the calculation in the skill tree regarding spirit skills. - Added missing next/prev initialization in chat-creation. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6359 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index ed8dfbf62..81a687f06 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -985,10 +985,14 @@ int pc_calc_skilltree(struct map_session_data *sd)
f=0; // Do not unlock normal skills when Basic Skills is not maxed out (can happen because of skill reset)
}
if(sd->status.skill[id].id==0 ){
- if(sd->sc.count && sd->sc.data[SC_SPIRIT].timer != -1 && skill_get_inf2(id)&INF2_SPIRIT_SKILL) { //Enable Spirit Skills. [Skotlex]
- sd->status.skill[id].id=id;
- sd->status.skill[id].lv=1;
- sd->status.skill[id].flag=1; //So it is not saved, and tagged as a "bonus" skill.
+ if(skill_get_inf2(id)&INF2_SPIRIT_SKILL)
+ { //Spirit skills cannot be learned, they will only show up on your tree when you get buffed.
+ if (sd->sc.count && sd->sc.data[SC_SPIRIT].timer != -1)
+ { //Enable Spirit Skills. [Skotlex]
+ sd->status.skill[id].id=id;
+ sd->status.skill[id].lv=1;
+ sd->status.skill[id].flag=1; //So it is not saved, and tagged as a "bonus" skill.
+ }
flag=1;
} else if (f){
sd->status.skill[id].id=id;