Mjollnir and Singularity Hammer for Wizard (#34446)

This commit is contained in:
keronshb
2025-02-20 18:38:52 -05:00
committed by GitHub
parent f3c681153a
commit a9054c5e9c
29 changed files with 698 additions and 206 deletions

View File

@@ -36,9 +36,9 @@ public sealed class SharedAnomalyCoreSystem : EntitySystem
var (uid, comp) = ent;
// don't waste charges on non-anchorable non-anomalous static bodies.
if (!HasComp<AnomalyComponent>(args.Hit)
&& !HasComp<AnchorableComponent>(args.Hit)
&& TryComp<PhysicsComponent>(args.Hit, out var body)
if (!HasComp<AnomalyComponent>(args.Target)
&& !HasComp<AnchorableComponent>(args.Target)
&& TryComp<PhysicsComponent>(args.Target, out var body)
&& body.BodyType == BodyType.Static)
return;