Merge pull request #7684 from Verkister/patch-54

Diagonal barricade cleave exploit fix
This commit is contained in:
Atermonera
2020-09-26 13:55:10 -07:00
committed by GitHub
+2
View File
@@ -36,6 +36,8 @@
continue
if(!SM.Adjacent(user) || !SM.Adjacent(target)) // Cleaving only hits mobs near the target mob and user.
continue
if(!attack_can_reach(user, SM, 1))
continue
if(resolve_attackby(SM, user, attack_modifier = 0.5)) // Hit them with the weapon. This won't cause recursive cleaving due to the cleaving variable being set to true.
hit_mobs++