Fix pacified players attacking with mechs (#34954)
This commit is contained in:
@@ -199,7 +199,8 @@ namespace Content.Shared.ActionBlocker
|
|||||||
{
|
{
|
||||||
var containerEv = new CanAttackFromContainerEvent(uid, target);
|
var containerEv = new CanAttackFromContainerEvent(uid, target);
|
||||||
RaiseLocalEvent(uid, containerEv);
|
RaiseLocalEvent(uid, containerEv);
|
||||||
return containerEv.CanAttack;
|
if (!containerEv.CanAttack)
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var ev = new AttackAttemptEvent(uid, target, weapon, disarm);
|
var ev = new AttackAttemptEvent(uid, target, weapon, disarm);
|
||||||
|
|||||||
Reference in New Issue
Block a user