Fixes Rolling Cutter counter not resetting (#5082)

* Fixes #5052.
* Fixes Rolling Cutter counter not resetting with blown-type attacks/movements.
Thanks to @LordWhiplash!
This commit is contained in:
Aleos
2020-06-15 08:42:18 -04:00
committed by GitHub
parent a6357fd8c2
commit 60d03a1978

View File

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