summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-12-03 06:19:35 +0100
committerHaru <haru@dotalux.com>2017-09-17 17:48:16 +0200
commit20caa41aeae6e49375aeb187c06dc077e330b414 (patch)
tree9e96d78a78005c979e8204da8dd806fc706c6ceb /src/map/skill.c
parenta681d759cc887e8adccbd30d3b7a7ca355bbda96 (diff)
downloadhercules-20caa41aeae6e49375aeb187c06dc077e330b414.tar.gz
hercules-20caa41aeae6e49375aeb187c06dc077e330b414.tar.bz2
hercules-20caa41aeae6e49375aeb187c06dc077e330b414.tar.xz
hercules-20caa41aeae6e49375aeb187c06dc077e330b414.zip
Differentiate variables that hold a ViewSprite and a Subtype (part 2)
`sd->status.shield` is renamed to `sd->status.look.shield` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->has_shield`, of boolean type (to detect the presence of a shield) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 4649ace42..25d85e746 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -14245,7 +14245,7 @@ int skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_id
}
break;
case ST_SHIELD:
- if(sd->status.shield <= 0) {
+ if (!sd->has_shield) {
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
return 0;
}