fix stripping (#5983)

This commit is contained in:
Leon Friedrich
2022-01-02 06:03:29 +13:00
committed by GitHub
parent 1b581f1a9b
commit 4acb8c12af
6 changed files with 23 additions and 13 deletions

View File

@@ -258,13 +258,15 @@ namespace Content.Shared.Stunnable
private void OnEquipAttempt(EntityUid uid, StunnedComponent stunned, IsEquippingAttemptEvent args)
{
if(args.Equipee == uid)
// is this a self-equip, or are they being stripped?
if (args.Equipee == uid)
args.Cancel();
}
private void OnUnequipAttempt(EntityUid uid, StunnedComponent stunned, IsUnequippingAttemptEvent args)
{
if(args.Unequipee == uid)
// is this a self-equip, or are they being stripped?
if (args.Unequipee == uid)
args.Cancel();
}