summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-06-01 02:46:12 +0200
committerGitHub <noreply@github.com>2020-06-01 02:46:12 +0200
commit183488e0088f59242b0ab609271d126dc2a6c758 (patch)
tree7cbcefd162a683bd083f556ea11d75369999bc85 /src/map/status.c
parent0a2097d8e295a329ad3d0e732fb74e77707dc2bb (diff)
parent560b765a844c453ce2c7cff24a63735f11dc4f0f (diff)
downloadhercules-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.c2
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);
}