Fixes holoparasite injector being usable on anything
This commit is contained in:
@@ -126,6 +126,14 @@ namespace Content.Server.Guardian
|
||||
return;
|
||||
}
|
||||
|
||||
// Can only inject things with the component...
|
||||
if (!HasComp<CanHostGuardianComponent>(target))
|
||||
{
|
||||
_popupSystem.PopupEntity(Loc.GetString("guardian-activator-invalid-target"), user, Filter.Entities(user));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// If user is already a host don't duplicate.
|
||||
if (HasComp<GuardianHostComponent>(target))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user