summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-27 16:14:00 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-27 16:14:00 +0000
commit32645379b64e7dcad23574c0562c61f7416ebce4 (patch)
treed5fdb52bf708268150367bdcb69e1375782d5d49 /src/map/pc.c
parent50e31d2860fe8f754d186a35ac1b4b61f653af5a (diff)
downloadhercules-32645379b64e7dcad23574c0562c61f7416ebce4.tar.gz
hercules-32645379b64e7dcad23574c0562c61f7416ebce4.tar.bz2
hercules-32645379b64e7dcad23574c0562c61f7416ebce4.tar.xz
hercules-32645379b64e7dcad23574c0562c61f7416ebce4.zip
- HW_GANBANTEIN now also removes traps.
- PF_DOUBLECASTING takes effect amotion time after the initial cast instead of amotion*div - SG_KNOWLEDGE now lasts time1 after you quit a map before it clears out (defaults to 10 mins currently) - Modified Intravision to modify the status-change packet to specify SI_INTRAVISION instead of cloaking/hiding/chasewalk. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5774 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 f51d86ecc..d2eee308d 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3020,6 +3020,10 @@ int pc_setpos(struct map_session_data *sd,unsigned short mapindex,int x,int y,in
status_change_end(&sd->bl,SC_MOON_COMFORT,-1);
if (sd->sc.data[SC_STAR_COMFORT].timer != -1)
status_change_end(&sd->bl,SC_STAR_COMFORT,-1);
+ if (sd->sc.data[SC_KNOWLEDGE].timer != -1) {
+ delete_timer(sd->sc.data[SC_KNOWLEDGE].timer, status_change_timer);
+ sd->sc.data[SC_KNOWLEDGE].timer = add_timer(gettick() + skill_get_time(SG_KNOWLEDGE, sd->sc.data[SC_KNOWLEDGE].val1), status_change_timer, sd->bl.id, SC_KNOWLEDGE);
+ }
}
}