From 07de6e307e4aae0beee1f6397ecbd37fd3295e04 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 2 May 2012 04:31:18 +0000 Subject: Fixed bugreport:5649 shura cursed circle now stops mobs from being able to target you while under effect. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16040 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 4 ++-- src/map/skill.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/mob.c b/src/map/mob.c index 8318d492f..cf2e8ed6e 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1397,8 +1397,8 @@ static bool mob_ai_sub_hard(struct mob_data *md, unsigned int tick) return false; // Abnormalities - if(( md->sc.opt1 > 0 && md->sc.opt1 != OPT1_STONEWAIT && md->sc.opt1 != OPT1_BURNING ) || md->sc.data[SC_BLADESTOP]) - { //Should reset targets. + if(( md->sc.opt1 > 0 && md->sc.opt1 != OPT1_STONEWAIT && md->sc.opt1 != OPT1_BURNING ) + || md->sc.data[SC_BLADESTOP] || md->sc.data[SC__MANHOLE] || md->sc.data[SC_CURSEDCIRCLE_TARGET]) {//Should reset targets. md->target_id = md->attacked_id = 0; return false; } diff --git a/src/map/skill.c b/src/map/skill.c index 6250b85a3..2e028b129 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8043,6 +8043,8 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, in if( flag&1 ) { if( is_boss(bl) ) break; if( sc_start2(bl, type, 100, skilllv, src->id, skill_get_time(skillid, skilllv))) { + if( bl->type == BL_MOB ) + mob_unlocktarget((TBL_MOB*)bl,gettick()); unit_stop_attack(bl); clif_bladestop(src, bl->id, 1); map_freeblock_unlock(); -- cgit v1.2.3-70-g09d2