summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-17 01:12:09 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-06-01 02:01:55 +0200
commita30f969b07c2d4e0f7e3189c5566fb50738babde (patch)
tree7f693fe3063b607a9d5e51f5882e3878d1b22201 /src/map/status.c
parentf9ea7676708eebef5006466e8e108b863f7106d9 (diff)
downloadhercules-a30f969b07c2d4e0f7e3189c5566fb50738babde.tar.gz
hercules-a30f969b07c2d4e0f7e3189c5566fb50738babde.tar.bz2
hercules-a30f969b07c2d4e0f7e3189c5566fb50738babde.tar.xz
hercules-a30f969b07c2d4e0f7e3189c5566fb50738babde.zip
Make CastDefRate can be grouped by levels
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);
}