Diagonal barricade cleave exploit fix

Fixes the cleave attack being able to diagonally hit unreachable mobs through blocked turfs.
This commit is contained in:
Verkister
2020-09-24 11:02:25 +03:00
committed by GitHub
parent fa4a942faf
commit 3aa2a4c2a7
+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++