浏览代码

Fixes Rolling Cutter counter not resetting (#5082)

* Fixes #5052.
* Fixes Rolling Cutter counter not resetting with blown-type attacks/movements.
Thanks to @LordWhiplash!
Aleos 4 年之前
父节点
当前提交
60d03a1978
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/map/skill.cpp

+ 2 - 1
src/map/skill.cpp

@@ -2881,6 +2881,8 @@ short skill_blown(struct block_list* src, struct block_list* target, char count,
 	if (tsc) {
 	if (tsc) {
 		if (tsc->data[SC_SU_STOOP]) // Any knockback will cancel it.
 		if (tsc->data[SC_SU_STOOP]) // Any knockback will cancel it.
 			status_change_end(target, SC_SU_STOOP, INVALID_TIMER);
 			status_change_end(target, SC_SU_STOOP, INVALID_TIMER);
+		if (tsc->data[SC_ROLLINGCUTTER])
+			status_change_end(target, SC_ROLLINGCUTTER, INVALID_TIMER);
 		if (tsc->data[SC_SV_ROOTTWIST]) // Shouldn't move.
 		if (tsc->data[SC_SV_ROOTTWIST]) // Shouldn't move.
 			return 0;
 			return 0;
 	}
 	}
@@ -8548,7 +8550,6 @@ int skill_castend_nodamage_id (struct block_list *src, struct block_list *bl, ui
 #ifdef RENEWAL
 #ifdef RENEWAL
 		clif_blown(src); // Always blow, otherwise it shows a casting animation. [Lemongrass]
 		clif_blown(src); // Always blow, otherwise it shows a casting animation. [Lemongrass]
 #endif
 #endif
-		status_change_end(src, SC_ROLLINGCUTTER, INVALID_TIMER);
 		break;
 		break;
 
 
 	case TK_HIGHJUMP:
 	case TK_HIGHJUMP: