- tweak: Lightning and fireball.

This commit is contained in:
Aviu00
2024-08-05 19:17:30 +03:00
parent fb5fa92438
commit c719eb56e0
7 changed files with 33 additions and 7 deletions

View File

@@ -939,6 +939,10 @@ public sealed class WizardSpellsSystem : EntitySystem
if (hasReqs)
return;
if (_inventory.TryGetSlotEntity(args.Performer, "outerClothing", out var entity) &&
comp.ClothingWhitelist?.IsValid(entity.Value) is true)
return;
args.Cancelled = true;
_popupSystem.PopupEntity(Loc.GetString("magic-component-missing-req"), args.Performer, args.Performer);
}