diff options
author | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-02 14:31:16 +0000 |
---|---|---|
committer | rud0lp20 <rud0lp20@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-08-02 14:31:16 +0000 |
commit | 103ca6312d0d252b5a8a05eefa78034ad341fe6e (patch) | |
tree | 87f499d9a38013a223fa4005719b4d52d6ab4e9b /src/map/mob.c | |
parent | bc3119af6271425b6d1579e10ff3d64478467a06 (diff) | |
download | hercules-103ca6312d0d252b5a8a05eefa78034ad341fe6e.tar.gz hercules-103ca6312d0d252b5a8a05eefa78034ad341fe6e.tar.bz2 hercules-103ca6312d0d252b5a8a05eefa78034ad341fe6e.tar.xz hercules-103ca6312d0d252b5a8a05eefa78034ad341fe6e.zip |
Fixed bugreport:6324 where re-spawning mob still hits/chases its previous attacker.
Partial fixed bugreport:6396 where Chemical Protection skills doesn't check targets current equipments.
Finally added almost all Kagerou/Oboro skills only one more left..phew...:D
(KG_KAGEHUMI,KG_KYOMU,KG_KAGEMUSYA,OB_ZANGETSU,OB_OBOROGENSOU,OB_OBOROGENSOU_TRANSITION_ATK,OB_AKAITSUKI)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16560 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 1e9b3caf9..4ed1f3848 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -959,6 +959,8 @@ int mob_spawn (struct mob_data *md) md->attacked_id = 0; md->target_id = 0; md->move_fail_count = 0; + md->ud.state.attack_continue = 0; + md->ud.target_to = 0; if( md->spawn_timer != INVALID_TIMER ) { delete_timer(md->spawn_timer, mob_delayspawn); @@ -2132,10 +2134,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) if(src && src->type == BL_MOB) mob_unlocktarget((struct mob_data *)src,tick); - - /* clear previous target otherwise we'll respawn aiming at the same dude */ - md->attacked_id = 0; - + if( sd ) { if( sd->mission_mobid == md->class_) { //TK_MISSION [Skotlex] if( ++sd->mission_count >= 100 && (temp = mob_get_random_id(0, 0xE, sd->status.base_level)) ) |