Add CanAttack to IActionBlocker, prevent using guns when dead (#769)
This commit is contained in:
committed by
GitHub
parent
5e2cac78ac
commit
d1ff84e95d
@@ -853,7 +853,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
var item = hands.GetActiveHand?.Owner;
|
||||
|
||||
// TODO: If item is null we need some kinda unarmed combat.
|
||||
if (!ActionBlockerSystem.CanInteract(player) || item == null)
|
||||
if (!ActionBlockerSystem.CanAttack(player) || item == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user