summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-03 17:52:37 +0200
committerGitHub <noreply@github.com>2018-06-03 17:52:37 +0200
commitfa15bfc417cce6fd81dfa1333548624f84d0e370 (patch)
treed3ffc5a9c844fdd274381c506f0c3138aec360d7
parentc81fee18c0d5ed70f8717679ee16cebe5e591c58 (diff)
parentef51052488cedd262573882ead2ca9441652ee92 (diff)
downloadhercules-fa15bfc417cce6fd81dfa1333548624f84d0e370.tar.gz
hercules-fa15bfc417cce6fd81dfa1333548624f84d0e370.tar.bz2
hercules-fa15bfc417cce6fd81dfa1333548624f84d0e370.tar.xz
hercules-fa15bfc417cce6fd81dfa1333548624f84d0e370.zip
Merge pull request #2059 from MishimaHaruna/fix-skill-get-ele
Fix the skill element for levels above the MAX_SKILL_LEVEL
-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)];
}