Skip to content

Commit a40b29f

Browse files
[S] Fixes an exploit with mecha ranges (ParadiseSS13#31508)
* mecha melee attacks respect adjacency * use chassis instead of loc
1 parent 095f93c commit a40b29f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

code/game/mecha/equipment/mecha_equipment.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
return FALSE
6565
if(!chassis)
6666
return FALSE
67+
if(!is_ranged() && !chassis.Adjacent(target))
68+
return FALSE
6769
if(!equip_ready)
6870
return FALSE
6971
if(energy_drain && !chassis.has_charge(energy_drain))

0 commit comments

Comments
 (0)