summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 14:05:27 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-21 14:05:27 +0000
commit3fc3bc499c203c6cb17d10709bf1f589a44d0642 (patch)
tree37afa787ddc55c483ade1d0a2ef3bfdbafa162ee /src/map/status.c
parent6d34fcfe024681d1c796b1c485a76371c39a0b10 (diff)
downloadhercules-3fc3bc499c203c6cb17d10709bf1f589a44d0642.tar.gz
hercules-3fc3bc499c203c6cb17d10709bf1f589a44d0642.tar.bz2
hercules-3fc3bc499c203c6cb17d10709bf1f589a44d0642.tar.xz
hercules-3fc3bc499c203c6cb17d10709bf1f589a44d0642.zip
- Added a check to prevent Blind from ending while standing on a fog of wall.
- The mob Slave ai will be executed now even when the slave has a target. This will allow for "instant" warping to the master when it changes maps or teleports. if the slave has a target already, it won't unlock it and chase back to the master or anything like that. - Removed a couple of checks that prevents item ids above 20000. However, remember that the max id is still ~32k or the client is the one who's gonna crash! git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7799 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 8d24827ff..747547386 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6436,6 +6436,15 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
return 0;
}
break;
+ case SC_BLIND:
+ if(sc->data[SC_FOGWALL].timer!= -1)
+ { //Blind lasts forever while you are standing on the fog.
+ sc->data[type].timer=add_timer(
+ 5000+tick, status_change_timer,
+ bl->id, data);
+ return 0;
+ }
+ break;
}
// default for all non-handled control paths