From 85454cc7aeb31146c066df4b956b8aecc989e272 Mon Sep 17 00:00:00 2001 From: eppc0330 <47050704+eppc0330@users.noreply.github.com> Date: Sun, 17 Jul 2022 08:57:38 +0900 Subject: [PATCH] Minor change of TF_BACKSLIDING behavior (#7094) Fix Backsliding blow only when a character is moved by the skill. If wall is placed behind the character, skill will show casting animation. Thanks to @Haydrich! --- src/map/skill.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/map/skill.cpp b/src/map/skill.cpp index 6ab1209f95..fe98c99eed 100755 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -9248,17 +9248,20 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui break; case TF_BACKSLIDING: //This is the correct implementation as per packet logging information. [Skotlex] - skill_blown(src,bl,skill_get_blewcount(skill_id,skill_lv),unit_getdir(bl),(enum e_skill_blown)(BLOWN_IGNORE_NO_KNOCKBACK + { + short blew_count = skill_blown(src,bl,skill_get_blewcount(skill_id,skill_lv),unit_getdir(bl),(enum e_skill_blown)(BLOWN_IGNORE_NO_KNOCKBACK #ifdef RENEWAL |BLOWN_DONT_SEND_PACKET #endif - )); - clif_skill_nodamage(src, bl, skill_id, skill_lv, 1); + )); + clif_skill_nodamage(src, bl, skill_id, skill_lv, 1); #ifdef RENEWAL - clif_blown(src); // Always blow, otherwise it shows a casting animation. [Lemongrass] + if(blew_count > 0) + clif_blown(src); // Always blow, otherwise it shows a casting animation. [Lemongrass] #else - clif_slide(bl, bl->x, bl->y); //Show the casting animation on pre-re + clif_slide(bl, bl->x, bl->y); //Show the casting animation on pre-re #endif + } break; case TK_HIGHJUMP: