Firelocks are no longer pryable by hand if they are powered (#29221)

This commit is contained in:
nikthechampiongr
2024-06-22 17:49:50 +00:00
committed by GitHub
parent 061445ef6e
commit 6aced66406
3 changed files with 24 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ public sealed class PryingSystem : EntitySystem
if (comp != null || Resolve(user, ref comp, false))
{
canev = new BeforePryEvent(user, comp.PryPowered, comp.Force);
canev = new BeforePryEvent(user, comp.PryPowered, comp.Force, true);
}
else
{
@@ -119,7 +119,7 @@ public sealed class PryingSystem : EntitySystem
return false;
}
canev = new BeforePryEvent(user, false, false);
canev = new BeforePryEvent(user, false, false, false);
}
RaiseLocalEvent(target, ref canev);