summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-11-18 20:08:29 +0100
committerGitHub <noreply@github.com>2017-11-18 20:08:29 +0100
commit901df02711777462bd9e4016c91b8166441d9353 (patch)
tree66078c91ed3cc6d99e406cad4dfc5f472f2878ee /src/map/skill.c
parent65f7edf0d88ba7a879427ad2e99c91c20b8a599f (diff)
parentf48b5b3e5788105c54c90edf2ba0d3232de639bb (diff)
downloadhercules-901df02711777462bd9e4016c91b8166441d9353.tar.gz
hercules-901df02711777462bd9e4016c91b8166441d9353.tar.bz2
hercules-901df02711777462bd9e4016c91b8166441d9353.tar.xz
hercules-901df02711777462bd9e4016c91b8166441d9353.zip
Merge pull request #1903 from Asheraf/skill_scale
Implement skill scale packet for client versions >= 20151223.
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 1b7d40e83..d20178a34 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -20030,6 +20030,12 @@ void skill_validate_skillinfo(struct config_setting_t *conf, struct s_skill_db *
} else {
sk->inf2 &= ~INF2_FREE_CAST_REDUCED;
}
+ } else if (strcmpi(type, "ShowSkillScale") == 0) {
+ if (on) {
+ sk->inf2 |= INF2_SHOW_SKILL_SCALE;
+ } else {
+ sk->inf2 &= ~INF2_SHOW_SKILL_SCALE;
+ }
} else if (strcmpi(type, "None") != 0) {
skilldb_invalid_error(type, config_setting_name(t), sk->nameid);
}