summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-31 16:04:04 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-31 16:04:04 +0000
commit09f8a1dfa523f9574aa7f4003fb32cb39f18f29c (patch)
tree36294621024db5370b36081fc7045f255764f632 /src/map/mob.c
parent0f4fad15c74141d817cc8505b4c5d95c74e96bf2 (diff)
downloadhercules-09f8a1dfa523f9574aa7f4003fb32cb39f18f29c.tar.gz
hercules-09f8a1dfa523f9574aa7f4003fb32cb39f18f29c.tar.bz2
hercules-09f8a1dfa523f9574aa7f4003fb32cb39f18f29c.tar.xz
hercules-09f8a1dfa523f9574aa7f4003fb32cb39f18f29c.zip
Fixed bugreport:5867 clones with cloaking skill are no longer "invincible"
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16182 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 51f283fde..e8ec4e0a7 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3047,7 +3047,7 @@ int mobskill_use(struct mob_data *md, unsigned int tick, int event)
}
if (rnd() % 10000 > ms[i].permillage) //Lupus (max value = 10000)
continue;
-
+
if (ms[i].cond1 == event)
flag = 1; //Trigger skill.
else if (ms[i].cond1 == MSC_SKILLUSED)
@@ -3152,6 +3152,7 @@ int mobskill_use(struct mob_data *md, unsigned int tick, int event)
break;
}
if (!bl) continue;
+
x = bl->x;
y = bl->y;
// Look for an area to cast the spell around...
@@ -3198,6 +3199,7 @@ int mobskill_use(struct mob_data *md, unsigned int tick, int event)
break;
}
if (!bl) continue;
+
md->skillidx = i;
map_freeblock_lock();
if( !battle_check_range(&md->bl,bl,skill_get_range2(&md->bl, ms[i].skill_id,ms[i].skill_lv)) ||
@@ -3443,6 +3445,8 @@ int mob_clone_spawn(struct map_session_data *sd, int m, int x, int y, const char
md = mob_once_spawn_sub(&sd->bl, m, x, y, "--en--",class_,event);
if (!md) return 0; //Failed?
+ md->special_state.clone = 1;
+
if (master_id || flag || duration) { //Further manipulate crafted char.
if (flag&1) //Friendly Character
md->special_state.ai = 1;