earlyport cleave exploit fix

if ya can't poke them ya don't get to slash either
This commit is contained in:
Verkister
2020-09-24 11:15:39 +03:00
committed by GitHub
parent 1e18ca6476
commit 9da36f9244
+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++