mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-27 07:08:22 +01:00
Diagonal barricade cleave exploit fix
Fixes the cleave attack being able to diagonally hit unreachable mobs through blocked turfs.
This commit is contained in:
@@ -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++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user