mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 15:37:36 +01:00
[S] Fixes an exploit with mecha ranges (#31508)
* mecha melee attacks respect adjacency * use chassis instead of loc
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user