From 3904b3a935395d9f0d9ac2864e6fa34863c630c2 Mon Sep 17 00:00:00 2001 From: Michieru Date: Sun, 26 Oct 2014 22:28:30 +0100 Subject: - 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 --- src/map/unit.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/unit.c') 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)) -- cgit v1.2.3-70-g09d2