summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorPlaytester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-02 20:33:41 +0000
committerPlaytester <Playtester@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-02 20:33:41 +0000
commit8d7d2705e3c12c7c6cff03755bd031a35b993ba9 (patch)
tree5b9248e2f9ec6c483eaa0f9abd6eb6a144896be3 /src/map/pc.c
parent055a8778bc0b8cd87709af7517c5955bcc8f898c (diff)
downloadhercules-8d7d2705e3c12c7c6cff03755bd031a35b993ba9.tar.gz
hercules-8d7d2705e3c12c7c6cff03755bd031a35b993ba9.tar.bz2
hercules-8d7d2705e3c12c7c6cff03755bd031a35b993ba9.tar.xz
hercules-8d7d2705e3c12c7c6cff03755bd031a35b993ba9.zip
* Spirit of Bard and Dancer now only works for mastered skills (bugreport:3037)
- also fixed an outdated comment in the source code git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13714 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 9ee886984..1c4330c01 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1106,12 +1106,16 @@ int pc_calc_skilltree(struct map_session_data *sd)
{ //Enable Bard/Dancer spirit linked skills.
if( sd->status.sex )
{ //Link dancer skills to bard.
+ if( sd->status.skill[i-8].lv < 10 )
+ continue;
sd->status.skill[i].id = i;
sd->status.skill[i].lv = sd->status.skill[i-8].lv; // Set the level to the same as the linking skill
sd->status.skill[i].flag = 1; // Tag it as a non-savable, non-uppable, bonus skill
}
else
{ //Link bard skills to dancer.
+ if( sd->status.skill[i].lv < 10 )
+ continue;
sd->status.skill[i-8].id = i - 8;
sd->status.skill[i-8].lv = sd->status.skill[i].lv; // Set the level to the same as the linking skill
sd->status.skill[i-8].flag = 1; // Tag it as a non-savable, non-uppable, bonus skill