diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-11 19:37:02 +0530 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-28 22:22:30 +0100 |
commit | 6fccf18b6112475d00c3abc63804043df8cb4df6 (patch) | |
tree | 89305c9080421768ceea19bc7cfd78293dc691cf /src/map/mob.c | |
parent | 21f992314cde9243474bb171d09ec3d971b07214 (diff) | |
download | hercules-6fccf18b6112475d00c3abc63804043df8cb4df6.tar.gz hercules-6fccf18b6112475d00c3abc63804043df8cb4df6.tar.bz2 hercules-6fccf18b6112475d00c3abc63804043df8cb4df6.tar.xz hercules-6fccf18b6112475d00c3abc63804043df8cb4df6.zip |
Added NoKnockback Mode for monsters
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index 063a1ff6e..e26006599 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3760,6 +3760,8 @@ int mob_read_db_mode_sub(struct mob_db *entry, struct config_setting_t *t) mode |= libconfig->setting_get_bool(t2) ? MD_CHANGETARGET_CHASE : 0; if ((t2 = libconfig->setting_get_member(t, "TargetWeak"))) mode |= libconfig->setting_get_bool(t2) ? MD_TARGETWEAK : 0; + if ((t2 = libconfig->setting_get_member(t, "NoKnockback"))) + mode |= libconfig->setting_get_bool(t2) ? MD_NOKNOCKBACK : 0; return mode; } @@ -4109,6 +4111,7 @@ int mob_read_db_sub(struct config_setting_t *mobt, int n, const char *source) * ChangeTargetMelee: true/false * ChangeTargetChase: true/false * TargetWeak: true/false + * NoKnockback: true/false * } * MoveSpeed: move speed * AttackDelay: attack delay |