summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2014-10-26 22:28:30 +0100
committerMichieru <Michieru@users.noreply.github.com>2014-10-26 22:28:30 +0100
commit3904b3a935395d9f0d9ac2864e6fa34863c630c2 (patch)
tree331327722be106086f91ef266d630df53ccefee5 /src/map/unit.c
parent468e13d4d12dadc9b2a1666f6d2303e30cf93d82 (diff)
downloadhercules-3904b3a935395d9f0d9ac2864e6fa34863c630c2.tar.gz
hercules-3904b3a935395d9f0d9ac2864e6fa34863c630c2.tar.bz2
hercules-3904b3a935395d9f0d9ac2864e6fa34863c630c2.tar.xz
hercules-3904b3a935395d9f0d9ac2864e6fa34863c630c2.zip
- Can't cast icewall more than once on the same center cell. Special thanks to Ind
- Service for you now work properly on all skill level. - Fixed a problem that sometimes randomly a status change was removed on logout although it shouldn't. Special thanks to Playtester
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index b4653df00..849e9348f 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -1584,6 +1584,12 @@ int unit_skilluse_pos2( struct block_list *src, short skill_x, short skill_y, ui
clif->skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0);
return 0;
}
+ /**
+ * "WHY IS IT HEREE": ice wall cannot be canceled past this point, the client displays the animation even,
+ * if we cancel it from castend_pos, so it has to be here for it to not display the animation.
+ **/
+ if ( skill_id == WZ_ICEWALL && map->getcell(src->m, skill_x, skill_y, CELL_CHKNOICEWALL) )
+ return 0;
}
if (!status->check_skilluse(src, NULL, skill_id, 0))