diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-05-17 04:56:18 +0200 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-06-01 02:01:56 +0200 |
commit | 887820f62769ffcc09de0053ba6a645b83cf74d9 (patch) | |
tree | 96027b9ae4650e2231c96dde806252d86f364670 /src/map/mob.c | |
parent | 529401c53e79ed848cea6dfaab75366d05174a43 (diff) | |
download | hercules-887820f62769ffcc09de0053ba6a645b83cf74d9.tar.gz hercules-887820f62769ffcc09de0053ba6a645b83cf74d9.tar.bz2 hercules-887820f62769ffcc09de0053ba6a645b83cf74d9.tar.xz hercules-887820f62769ffcc09de0053ba6a645b83cf74d9.zip |
Make Unit->Id can be grouped by levels
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 b6ba5e5a9..df6deb866 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3871,7 +3871,7 @@ static int mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16 continue; /// Normal aggressive mob. Disable skills that cannot help fighting against players. (Those with flags UF_NOMOB and UF_NOPC are specific to always aid players!) [Skotlex] - if (flag == 0 && skill->get_unit_id(skill_id, 0) != 0 && + if (flag == 0 && skill->get_unit_id(skill_id, sd->status.skill[idx].lv, 0) != 0 && (skill->get_unit_flag(skill_id) & (UF_NOMOB | UF_NOPC)) > 0) continue; |