summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-06 15:53:40 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-10-06 15:53:40 +0000
commit10e194b9dad274ca749b2470b24e487968935304 (patch)
tree2e88a1a109d9ce45056377288f4d18f315e1843e /src/map/mob.c
parentcf10605ca4f989fdffaf12c06006a8f8fa14c383 (diff)
downloadhercules-10e194b9dad274ca749b2470b24e487968935304.tar.gz
hercules-10e194b9dad274ca749b2470b24e487968935304.tar.bz2
hercules-10e194b9dad274ca749b2470b24e487968935304.tar.xz
hercules-10e194b9dad274ca749b2470b24e487968935304.zip
- Disabling status abnormalities will now reset a mob's target.
- Mob morphing also resets their target now. - Monk combos no longer can ignore skill delay (delay skill for all their combo-related skills is ASPD) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8945 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index da0e28ea5..cc6a59cb1 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1076,7 +1076,10 @@ static int mob_ai_sub_hard(struct block_list *bl,va_list ap)
// Abnormalities
if((md->sc.opt1 > 0 && md->sc.opt1 != OPT1_STONEWAIT) || md->sc.data[SC_BLADESTOP].timer != -1)
+ { //Should reset targets.
+ md->target_id = md->attacked_id = 0;
return 0;
+ }
if (md->sc.count && md->sc.data[SC_BLIND].timer != -1)
view_range = 3;
@@ -2331,6 +2334,9 @@ int mob_class_change (struct mob_data *md, int class_)
if(md->lootitem == NULL && md->db->status.mode&MD_LOOTER)
md->lootitem=(struct item *)aCalloc(LOOTITEM_SIZE,sizeof(struct item));
+ //Targets should be cleared no morph
+ md->target_id = md->attacked_id = 0;
+
//Need to update name display.
clif_charnameack(0, &md->bl);