getActionIsForPlayerArtifacts(action) {
    let target;

    if (action instanceof SDK.ApplyModifierAction || action instanceof SDK.RemoveModifierAction) {
      const modifier = action.getModifier();
      if (modifier != null && modifier.getIsFromArtifact()) {
        target = modifier.getCardAffected();
      }
    } else if (action instanceof SDK.DamageAction || action instanceof SDK.RefreshArtifactChargesAction || action instanceof SDK.RestoreChargeToAllArtifactsAction) {
      target = action.getTarget();
    }

    return target instanceof SDK.Entity && (target.getIsGeneral() || target.getWasGeneral()) && target.getOwnerId() == this.getPlayerId();
  }
Returns whether an action is for this layer's player artifacts.
@param {SDK.Action} action
@returns {Boolean}