Wizard Staff of Animation (#34649)
This commit is contained in:
@@ -538,6 +538,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
if (!ValidateEntityTargetBase(user,
|
||||
target,
|
||||
comp.Whitelist,
|
||||
comp.Blacklist,
|
||||
comp.CheckCanInteract,
|
||||
comp.CanTargetSelf,
|
||||
comp.CheckCanAccess,
|
||||
@@ -552,6 +553,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
private bool ValidateEntityTargetBase(EntityUid user,
|
||||
EntityUid? targetEntity,
|
||||
EntityWhitelist? whitelist,
|
||||
EntityWhitelist? blacklist,
|
||||
bool checkCanInteract,
|
||||
bool canTargetSelf,
|
||||
bool checkCanAccess,
|
||||
@@ -563,6 +565,9 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
if (_whitelistSystem.IsWhitelistFail(whitelist, target))
|
||||
return false;
|
||||
|
||||
if (_whitelistSystem.IsBlacklistPass(blacklist, target))
|
||||
return false;
|
||||
|
||||
if (checkCanInteract && !_actionBlockerSystem.CanInteract(user, target))
|
||||
return false;
|
||||
|
||||
@@ -637,6 +642,7 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
var entityValidated = ValidateEntityTargetBase(user,
|
||||
entity,
|
||||
comp.Whitelist,
|
||||
null,
|
||||
comp.CheckCanInteract,
|
||||
comp.CanTargetSelf,
|
||||
comp.CheckCanAccess,
|
||||
|
||||
Reference in New Issue
Block a user