summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authormomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-23 18:15:21 +0000
committermomacabu <momacabu@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-11-23 18:15:21 +0000
commitefbd5d0dd7dbf038333d65d59d0becad59e6e2a4 (patch)
treed5b149d3025ef79222eeaa6c34eb976799649b02 /src/map/clif.c
parent7298dd6e6f12729de1571628781c3945ae86f31e (diff)
downloadhercules-efbd5d0dd7dbf038333d65d59d0becad59e6e2a4.tar.gz
hercules-efbd5d0dd7dbf038333d65d59d0becad59e6e2a4.tar.bz2
hercules-efbd5d0dd7dbf038333d65d59d0becad59e6e2a4.tar.xz
hercules-efbd5d0dd7dbf038333d65d59d0becad59e6e2a4.zip
Partial fix for bugreport:4337.
A new field was added to homun_skill_tree.txt containing the minimum level of intimacy to unlock a skill. This is used in some skills where the homunculus has to reach a amount of 910 of intimacy. The default value is 0 and it should only affect evolved homunculus. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16954 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 75cc51a24..5ed1dc694 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -1478,6 +1478,9 @@ void clif_hominfo(struct map_session_data *sd, struct homun_data *hd, int flag)
void clif_send_homdata(struct map_session_data *sd, int state, int param)
{ //[orn]
int fd = sd->fd;
+
+ if ( (state == SP_INTIMATE) && (param >= 910) && (sd->hd->homunculus.class_ == sd->hd->homunculusDB->evo_class) )
+ merc_hom_calc_skilltree(sd->hd, 0);
WFIFOHEAD(fd, packet_len(0x230));
WFIFOW(fd,0)=0x230;