summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-04 21:41:51 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-04 21:41:51 +0000
commit8f6d2a3af8da8854ea9bde4b1f73aeb0bc1ea38c (patch)
tree6f687ec1b60cf420f77b1b55f090343ab8bf30e0 /src/map/skill.c
parent95fc41ba7d03c570e9305e2e4dfd35c83598fb89 (diff)
downloadhercules-8f6d2a3af8da8854ea9bde4b1f73aeb0bc1ea38c.tar.gz
hercules-8f6d2a3af8da8854ea9bde4b1f73aeb0bc1ea38c.tar.bz2
hercules-8f6d2a3af8da8854ea9bde4b1f73aeb0bc1ea38c.tar.xz
hercules-8f6d2a3af8da8854ea9bde4b1f73aeb0bc1ea38c.zip
- Some clean-ups in the mob_ai
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6478 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index edf39a2c9..ac9dbcea7 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -4340,12 +4340,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in
skill_get_time2(skillid, skilllv) * (100-(status_get_int(bl)+status_get_vit(bl))/2)/100,10);
}
clif_skill_nodamage(src,bl,skillid,skilllv,1);
- if(dstmd){
- dstmd->attacked_id=0;
- dstmd->target_id=0;
- dstmd->state.skillstate=MSS_IDLE;
- dstmd->next_walktime=tick+rand()%3000+3000;
- }
+ if(dstmd)
+ mob_unlocktarget(dstmd,tick);
break;
case WZ_ESTIMATION: /* ƒ‚ƒ“ƒXƒ^??î•ñ */