[S] Fixes an exploit with mecha ranges (#31508)

* mecha melee attacks respect adjacency

* use chassis instead of loc
This commit is contained in:
BiancaWilkson
2026-01-25 23:47:29 +00:00
committed by GitHub
parent 095f93c416
commit a40b29fe7a
@@ -64,6 +64,8 @@
return FALSE
if(!chassis)
return FALSE
if(!is_ranged() && !chassis.Adjacent(target))
return FALSE
if(!equip_ready)
return FALSE
if(energy_drain && !chassis.has_charge(energy_drain))