diff options
author | Haru <haru@dotalux.com> | 2020-06-01 02:46:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 02:46:12 +0200 |
commit | 183488e0088f59242b0ab609271d126dc2a6c758 (patch) | |
tree | 7cbcefd162a683bd083f556ea11d75369999bc85 /src/map/status.c | |
parent | 0a2097d8e295a329ad3d0e732fb74e77707dc2bb (diff) | |
parent | 560b765a844c453ce2c7cff24a63735f11dc4f0f (diff) | |
download | hercules-183488e0088f59242b0ab609271d126dc2a6c758.tar.gz hercules-183488e0088f59242b0ab609271d126dc2a6c758.tar.bz2 hercules-183488e0088f59242b0ab609271d126dc2a6c758.tar.xz hercules-183488e0088f59242b0ab609271d126dc2a6c758.zip |
Merge pull request #2731 from Kenpachi2k13/skill_db_update
Extend and clean up skill DB code
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c index a6e6b24c0..637342632 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -6503,7 +6503,7 @@ static defType status_get_def(struct block_list *bl) int def = st ? st->def : 0; ud = unit->bl2ud(bl); if (ud && ud->skilltimer != INVALID_TIMER) - def -= def * skill->get_castdef(ud->skill_id)/100; + def -= def * skill->get_castdef(ud->skill_id, ud->skill_lv) / 100; return cap_value(def, DEFTYPE_MIN, DEFTYPE_MAX); } |