diff options
author | shennetsind <ind@henn.et> | 2013-03-29 15:44:32 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-03-29 15:44:32 -0300 |
commit | cfd2bdb06048c17decaafd0f5a3c04e3f0ac6a3b (patch) | |
tree | 924f4058e4e8a162f5956b3999955cf851ffee6b /src/map/mob.c | |
parent | ea42e92c2d130f723cd09a637448cd20a52777e8 (diff) | |
download | hercules-cfd2bdb06048c17decaafd0f5a3c04e3f0ac6a3b.tar.gz hercules-cfd2bdb06048c17decaafd0f5a3c04e3f0ac6a3b.tar.bz2 hercules-cfd2bdb06048c17decaafd0f5a3c04e3f0ac6a3b.tar.xz hercules-cfd2bdb06048c17decaafd0f5a3c04e3f0ac6a3b.zip |
Re-introducing clone-nocopy skill
This was once available through the now-gone skill_nocast_db.txt.
To make a skill not copy-able by clones (aka the skill is not inherited by a clone when it is created), use flag 0x8000 in the inf2 skill db field
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 71b500491..2995a4db4 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3389,7 +3389,7 @@ int mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, cons for (i=0,j = MAX_SKILL_TREE-1;j>=0 && i< MAX_MOBSKILL ;j--) { skill_id = skill_tree[pc_class2idx(sd->status.class_)][j].id; if (!skill_id || sd->status.skill[skill_id].lv < 1 || - (skill->get_inf2(skill_id)&(INF2_WEDDING_SKILL|INF2_GUILD_SKILL)) + (skill->get_inf2(skill_id)&(INF2_WEDDING_SKILL|INF2_GUILD_SKILL|INF2_CLONE_NOCOPY)) ) continue; //Normal aggressive mob, disable skills that cannot help them fight |