summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorGrumpyLittlePanda <samuli.vaara@yahoo.com>2014-11-24 18:30:09 +0200
committerGrumpyLittlePanda <samuli.vaara@yahoo.com>2014-11-24 18:30:09 +0200
commit90d0bcbfd0534d0cc064ce4d9549b64122fde447 (patch)
treeb00482a4fef26a7c9911923abf32940731854898 /src/map
parent0623d4ff87906d9ea0aee7bf612da2d1afdee1cd (diff)
downloadhercules-90d0bcbfd0534d0cc064ce4d9549b64122fde447.tar.gz
hercules-90d0bcbfd0534d0cc064ce4d9549b64122fde447.tar.bz2
hercules-90d0bcbfd0534d0cc064ce4d9549b64122fde447.tar.xz
hercules-90d0bcbfd0534d0cc064ce4d9549b64122fde447.zip
Correction, safetywall still consumes sp when cast on LP.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/skill.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 8c452252a..29ec2c524 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2858,9 +2858,9 @@ int skill_check_unit_range_sub (struct block_list *bl, va_list ap) {
switch (skill_id) {
case AL_PNEUMA:
- case MG_SAFETYWALL:
if(g_skill_id == SA_LANDPROTECTOR)
break;
+ case MG_SAFETYWALL:
case MH_STEINWAND:
case SC_MAELSTROM:
case SO_ELEMENTAL_SHIELD:
@@ -10107,6 +10107,11 @@ int skill_castend_pos2(struct block_list* src, int x, int y, uint16 skill_id, ui
}
case MG_SAFETYWALL:
+ if (map->foreachincell(skill->cell_overlap,src->m,x,y,BL_SKILL)) {
+ skill->unitsetting(src,skill_id,skill_lv,x,y,0);
+ return 0; // Don't consume gems if cast on LP
+ }
+
case MG_FIREWALL:
case MG_THUNDERSTORM: