summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-06-01 02:46:12 +0200
committerGitHub <noreply@github.com>2020-06-01 02:46:12 +0200
commit183488e0088f59242b0ab609271d126dc2a6c758 (patch)
tree7cbcefd162a683bd083f556ea11d75369999bc85 /src/map/clif.c
parent0a2097d8e295a329ad3d0e732fb74e77707dc2bb (diff)
parent560b765a844c453ce2c7cff24a63735f11dc4f0f (diff)
downloadhercules-183488e0088f59242b0ab609271d126dc2a6c758.tar.gz
hercules-183488e0088f59242b0ab609271d126dc2a6c758.tar.bz2
hercules-183488e0088f59242b0ab609271d126dc2a6c758.tar.xz
hercules-183488e0088f59242b0ab609271d126dc2a6c758.zip
Merge pull request #2731 from Kenpachi2k13/skill_db_update
Extend and clean up skill DB code
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 477894805..5b0122401 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -19927,9 +19927,9 @@ static int clif_autoshadowspell_list(struct map_session_data *sd)
WFIFOHEAD(fd, 2 * 6 + 4);
WFIFOW(fd,0) = 0x442;
for (i = 0, c = 0; i < MAX_SKILL_DB; i++)
- if( sd->status.skill[i].flag == SKILL_FLAG_PLAGIARIZED && sd->status.skill[i].id > 0 &&
- sd->status.skill[i].id < GS_GLITTERING && skill->get_type(sd->status.skill[i].id) == BF_MAGIC )
- { // Can't auto cast both Extended class and 3rd class skills.
+ if (sd->status.skill[i].flag == SKILL_FLAG_PLAGIARIZED && sd->status.skill[i].id > 0 && sd->status.skill[i].id < GS_GLITTERING
+ && skill->get_type(sd->status.skill[i].id, sd->status.skill[i].lv) == BF_MAGIC) {
+ // Can't auto cast both Extended class and 3rd class skills.
WFIFOW(fd,8+c*2) = sd->status.skill[i].id;
c++;
}