summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-03 16:31:16 +0200
committerHaru <haru@dotalux.com>2018-06-03 16:31:16 +0200
commitef51052488cedd262573882ead2ca9441652ee92 (patch)
tree82d58fe7af8e5592b72da14e66fb305d06ed89ae
parentb8cdb8e191f17cb0c8798e0379be9d68c72d6368 (diff)
downloadhercules-ef51052488cedd262573882ead2ca9441652ee92.tar.gz
hercules-ef51052488cedd262573882ead2ca9441652ee92.tar.bz2
hercules-ef51052488cedd262573882ead2ca9441652ee92.tar.xz
hercules-ef51052488cedd262573882ead2ca9441652ee92.zip
Fix the skill element for levels above the MAX_SKILL_LEVEL
Fixes a regression in 2b4bfa5d08931530d5c9b30af10dd58c1af14883 Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/map/skill.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 4bf110b23..6eacde897 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -189,10 +189,6 @@ int skill_get_ele(int skill_id, int skill_lv)
idx = skill->get_index(skill_id);
Assert_retr(ELE_NEUTRAL, idx != 0);
Assert_retr(ELE_NEUTRAL, skill_lv > 0);
- if (skill_lv > MAX_SKILL_LEVEL) {
- int val = skill->dbs->db[idx].element[skill_get_lvl_idx(skill_lv)];
- return skill_adjust_over_level(val, skill_lv, skill->dbs->db[idx].max);
- }
return skill->dbs->db[idx].element[skill_get_lvl_idx(skill_lv)];
}