summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorAsheraf <acheraf1998@gmail.com>2017-11-12 23:56:11 +0000
committerAsheraf <acheraf1998@gmail.com>2017-11-16 11:18:41 +0000
commita11db78940ba20570f11eda90b21028c09da03f2 (patch)
tree22d0963b31eac60bf4762dc16af5249eac3632f4 /src/map/skill.c
parent14ca1ab7a98d3c6df94b967159d4dd2df555d7e7 (diff)
downloadhercules-a11db78940ba20570f11eda90b21028c09da03f2.tar.gz
hercules-a11db78940ba20570f11eda90b21028c09da03f2.tar.bz2
hercules-a11db78940ba20570f11eda90b21028c09da03f2.tar.xz
hercules-a11db78940ba20570f11eda90b21028c09da03f2.zip
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 726deaa9a..3b5c022ba 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -19651,6 +19651,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);
}