summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-26 11:13:39 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-26 11:13:39 +0000
commit81d811f3c35d37e358f6874dd702923a0a934275 (patch)
tree1cd3966f751bfa6924f5bcb47fc7ec73bee0f0c7 /src/map/mob.c
parent0aebc2311a3167c5f261f78ff7ab89a4b25a2ddb (diff)
downloadhercules-81d811f3c35d37e358f6874dd702923a0a934275.tar.gz
hercules-81d811f3c35d37e358f6874dd702923a0a934275.tar.bz2
hercules-81d811f3c35d37e358f6874dd702923a0a934275.tar.xz
hercules-81d811f3c35d37e358f6874dd702923a0a934275.zip
- Implemented official Convex Mirror (With help of Yomanda and Sirius White)
- Fixed SC_WARN don't receiving reflecting damage (Bug Report 1854). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12997 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 9abdd54e7..270b9ebd4 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -951,7 +951,7 @@ int mob_setdelayspawn(struct mob_data *md)
if (spawntime < 5000) //Min respawn time (is it needed?)
spawntime = 5000;
- add_timer(gettick()+spawntime, mob_delayspawn, md->bl.id, 0);
+ md->spawn_timer = add_timer(gettick()+spawntime, mob_delayspawn, md->bl.id, 0);
return 0;
}
@@ -1007,6 +1007,7 @@ int mob_spawn (struct mob_data *md)
md->attacked_id = 0;
md->target_id = 0;
md->move_fail_count = 0;
+ md->spawn_timer = -1;
// md->master_id = 0;
md->master_dist = 0;