summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 04:31:18 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-02 04:31:18 +0000
commit07de6e307e4aae0beee1f6397ecbd37fd3295e04 (patch)
tree6042d0219c68683709ccb2b345a7683bc9243ba3 /src
parent00aa5613f7aaa85676d3f549ec6b71d9adf3b4b8 (diff)
downloadhercules-07de6e307e4aae0beee1f6397ecbd37fd3295e04.tar.gz
hercules-07de6e307e4aae0beee1f6397ecbd37fd3295e04.tar.bz2
hercules-07de6e307e4aae0beee1f6397ecbd37fd3295e04.tar.xz
hercules-07de6e307e4aae0beee1f6397ecbd37fd3295e04.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/map/mob.c4
-rw-r--r--src/map/skill.c2
2 files changed, 4 insertions, 2 deletions
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();